1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.68 for handlersocket-plugin 1.0.6.
4@%:@
5@%:@ Report bugs to <https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/issues>.
6@%:@
7@%:@
8@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10@%:@ Foundation, Inc.
11@%:@
12@%:@
13@%:@ This configure script is free software; the Free Software Foundation
14@%:@ gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in @%:@(
30  *posix*) :
31    set -o posix ;; @%:@(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in @%:@(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in @%:@((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in @%:@(
149  *posix*) :
150    set -o posix ;; @%:@(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in @%:@(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in @%:@ ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/issues
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269@%:@ as_fn_unset VAR
270@%:@ ---------------
271@%:@ Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278@%:@ as_fn_set_status STATUS
279@%:@ -----------------------
280@%:@ Set @S|@? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} @%:@ as_fn_set_status
285
286@%:@ as_fn_exit STATUS
287@%:@ -----------------
288@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} @%:@ as_fn_exit
295
296@%:@ as_fn_mkdir_p
297@%:@ -------------
298@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} @%:@ as_fn_mkdir_p
343@%:@ as_fn_append VAR VALUE
344@%:@ ----------------------
345@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
346@%:@ advantage of any shell optimizations that allow amortized linear growth over
347@%:@ repeated appends, instead of the typical quadratic growth present in naive
348@%:@ implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361@%:@ as_fn_arith ARG...
362@%:@ ------------------
363@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
364@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
365@%:@ must be portable across @S|@(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
380@%:@ ----------------------------------------
381@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383@%:@ script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} @%:@ as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in @%:@(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in @%:@(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIB@&t@OBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='handlersocket-plugin'
573PACKAGE_TARNAME='handlersocket-plugin'
574PACKAGE_VERSION='1.0.6'
575PACKAGE_STRING='handlersocket-plugin 1.0.6'
576PACKAGE_BUGREPORT='https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/issues'
577PACKAGE_URL=''
578
579ac_unique_file="libhsclient/fatal.cpp"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIB@&t@OBJS
620HANDLERSOCKET_SUBDIRS
621PLUGIN_DIR
622MYSQL_LIB
623MYSQL_CFLAGS
624ac_mysql_config
625MYSQL_INC
626CXXCPP
627OTOOL64
628OTOOL
629LIPO
630NMEDIT
631DSYMUTIL
632MANIFEST_TOOL
633RANLIB
634ac_ct_AR
635AR
636DLLTOOL
637OBJDUMP
638LN_S
639NM
640ac_ct_DUMPBIN
641DUMPBIN
642LD
643FGREP
644EGREP
645GREP
646SED
647host_os
648host_vendor
649host_cpu
650host
651build_os
652build_vendor
653build_cpu
654build
655LIBTOOL
656CPP
657am__fastdepCXX_FALSE
658am__fastdepCXX_TRUE
659CXXDEPMODE
660ac_ct_CXX
661CXXFLAGS
662CXX
663am__fastdepCC_FALSE
664am__fastdepCC_TRUE
665CCDEPMODE
666AMDEPBACKSLASH
667AMDEP_FALSE
668AMDEP_TRUE
669am__quote
670am__include
671DEPDIR
672OBJEXT
673EXEEXT
674ac_ct_CC
675CPPFLAGS
676LDFLAGS
677CFLAGS
678CC
679am__untar
680am__tar
681AMTAR
682am__leading_dot
683SET_MAKE
684AWK
685mkdir_p
686MKDIR_P
687INSTALL_STRIP_PROGRAM
688STRIP
689install_sh
690MAKEINFO
691AUTOHEADER
692AUTOMAKE
693AUTOCONF
694ACLOCAL
695VERSION
696PACKAGE
697CYGPATH_W
698am__isrc
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
702target_alias
703host_alias
704build_alias
705LIBS
706ECHO_T
707ECHO_N
708ECHO_C
709DEFS
710mandir
711localedir
712libdir
713psdir
714pdfdir
715dvidir
716htmldir
717infodir
718docdir
719oldincludedir
720includedir
721localstatedir
722sharedstatedir
723sysconfdir
724datadir
725datarootdir
726libexecdir
727sbindir
728bindir
729program_transform_name
730prefix
731exec_prefix
732PACKAGE_URL
733PACKAGE_BUGREPORT
734PACKAGE_STRING
735PACKAGE_VERSION
736PACKAGE_TARNAME
737PACKAGE_NAME
738PATH_SEPARATOR
739SHELL'
740ac_subst_files=''
741ac_user_opts='
742enable_option_checking
743enable_dependency_tracking
744enable_shared
745enable_static
746with_pic
747enable_fast_install
748with_gnu_ld
749with_sysroot
750enable_libtool_lock
751enable_mysql_debug
752enable_handlersocket_server
753with_mysql_source
754with_mysql_bindir
755with_mysql_plugindir
756'
757      ac_precious_vars='build_alias
758host_alias
759target_alias
760CC
761CFLAGS
762LDFLAGS
763LIBS
764CPPFLAGS
765CXX
766CXXFLAGS
767CCC
768CPP
769CXXCPP'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1226    If a cross compiler is detected then cross compile mode will be used" >&2
1227  elif test "x$build_alias" != "x$host_alias"; then
1228    cross_compiling=yes
1229  fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241  as_fn_error $? "working directory cannot be determined"
1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243  as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248  ac_srcdir_defaulted=yes
1249  # Try the directory containing this script, then the parent directory.
1250  ac_confdir=`$as_dirname -- "$as_myself" ||
1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252	 X"$as_myself" : 'X\(//\)[^/]' \| \
1253	 X"$as_myself" : 'X\(//\)$' \| \
1254	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255$as_echo X"$as_myself" |
1256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257	    s//\1/
1258	    q
1259	  }
1260	  /^X\(\/\/\)[^/].*/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\).*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  s/.*/./; q'`
1273  srcdir=$ac_confdir
1274  if test ! -r "$srcdir/$ac_unique_file"; then
1275    srcdir=..
1276  fi
1277else
1278  ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
1286	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287	pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290  srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_env_${ac_var}_value=\$${ac_var}
1301  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
1304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309  # Omit some internal or obsolete options to make the list less imposing.
1310  # This message is too long to be a string in the A/UX 3.1 sh.
1311  cat <<_ACEOF
1312\`configure' configures handlersocket-plugin 1.0.6 to adapt to many kinds of systems.
1313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322  -h, --help              display this help and exit
1323      --help=short        display options specific to this package
1324      --help=recursive    display the short help of all the included packages
1325  -V, --version           display version information and exit
1326  -q, --quiet, --silent   do not print \`checking ...' messages
1327      --cache-file=FILE   cache test results in FILE [disabled]
1328  -C, --config-cache      alias for \`--cache-file=config.cache'
1329  -n, --no-create         do not create output files
1330      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332Installation directories:
1333  --prefix=PREFIX         install architecture-independent files in PREFIX
1334                          @<:@@S|@ac_default_prefix@:>@
1335  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                          @<:@PREFIX@:>@
1337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
1346  --bindir=DIR            user executables [EPREFIX/bin]
1347  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348  --libexecdir=DIR        program executables [EPREFIX/libexec]
1349  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352  --libdir=DIR            object code libraries [EPREFIX/lib]
1353  --includedir=DIR        C header files [PREFIX/include]
1354  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357  --infodir=DIR           info documentation [DATAROOTDIR/info]
1358  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359  --mandir=DIR            man documentation [DATAROOTDIR/man]
1360  --docdir=DIR            documentation root
1361                          @<:@DATAROOTDIR/doc/handlersocket-plugin@:>@
1362  --htmldir=DIR           html documentation [DOCDIR]
1363  --dvidir=DIR            dvi documentation [DOCDIR]
1364  --pdfdir=DIR            pdf documentation [DOCDIR]
1365  --psdir=DIR             ps documentation [DOCDIR]
1366_ACEOF
1367
1368  cat <<\_ACEOF
1369
1370Program names:
1371  --program-prefix=PREFIX            prepend PREFIX to installed program names
1372  --program-suffix=SUFFIX            append SUFFIX to installed program names
1373  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1374
1375System types:
1376  --build=BUILD     configure for building on BUILD [guessed]
1377  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382  case $ac_init_help in
1383     short | recursive ) echo "Configuration of handlersocket-plugin 1.0.6:";;
1384   esac
1385  cat <<\_ACEOF
1386
1387Optional Features:
1388  --disable-option-checking  ignore unrecognized --enable/--with options
1389  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391  --disable-dependency-tracking  speeds up one-time build
1392  --enable-dependency-tracking   do not reject slow dependency extractors
1393  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1394  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1395  --enable-fast-install@<:@=PKGS@:>@
1396                          optimize for fast installation @<:@default=yes@:>@
1397  --disable-libtool-lock  avoid locking (might break parallel builds)
1398  --enable-mysql-debug    specify whether MySQL is build with DBUG_ON
1399  --enable-handlersocket-server    build HandlerSocket plugin (defalut=yes)
1400
1401Optional Packages:
1402  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1405                          both@:>@
1406  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1407  --with-sysroot=DIR Search for dependent libraries within DIR
1408                        (or the compiler's sysroot if not specified).
1409  --with-mysql-source=PATH
1410                          MySQL source directory PATH
1411  --with-mysql-bindir=PATH
1412                          MySQL binary directory PATH. This should be the
1413                          directory where mysql_config is located.
1414  --with-mysql-plugindir=PATH
1415                          MySQL plugin directory where handlersocket.so to be
1416                          copied
1417
1418Some influential environment variables:
1419  CC          C compiler command
1420  CFLAGS      C compiler flags
1421  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1422              nonstandard directory <lib dir>
1423  LIBS        libraries to pass to the linker, e.g. -l<library>
1424  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425              you have headers in a nonstandard directory <include dir>
1426  CXX         C++ compiler command
1427  CXXFLAGS    C++ compiler flags
1428  CPP         C preprocessor
1429  CXXCPP      C++ preprocessor
1430
1431Use these variables to override the choices made by `configure' or to help
1432it to find libraries and programs with nonstandard names/locations.
1433
1434Report bugs to <https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/issues>.
1435_ACEOF
1436ac_status=$?
1437fi
1438
1439if test "$ac_init_help" = "recursive"; then
1440  # If there are subdirs, report their specific --help.
1441  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442    test -d "$ac_dir" ||
1443      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444      continue
1445    ac_builddir=.
1446
1447case "$ac_dir" in
1448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449*)
1450  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451  # A ".." for each directory in $ac_dir_suffix.
1452  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453  case $ac_top_builddir_sub in
1454  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456  esac ;;
1457esac
1458ac_abs_top_builddir=$ac_pwd
1459ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460# for backward compatibility:
1461ac_top_builddir=$ac_top_build_prefix
1462
1463case $srcdir in
1464  .)  # We are building in place.
1465    ac_srcdir=.
1466    ac_top_srcdir=$ac_top_builddir_sub
1467    ac_abs_top_srcdir=$ac_pwd ;;
1468  [\\/]* | ?:[\\/]* )  # Absolute name.
1469    ac_srcdir=$srcdir$ac_dir_suffix;
1470    ac_top_srcdir=$srcdir
1471    ac_abs_top_srcdir=$srcdir ;;
1472  *) # Relative name.
1473    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474    ac_top_srcdir=$ac_top_build_prefix$srcdir
1475    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476esac
1477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478
1479    cd "$ac_dir" || { ac_status=$?; continue; }
1480    # Check for guested configure.
1481    if test -f "$ac_srcdir/configure.gnu"; then
1482      echo &&
1483      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484    elif test -f "$ac_srcdir/configure"; then
1485      echo &&
1486      $SHELL "$ac_srcdir/configure" --help=recursive
1487    else
1488      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489    fi || ac_status=$?
1490    cd "$ac_pwd" || { ac_status=$?; break; }
1491  done
1492fi
1493
1494test -n "$ac_init_help" && exit $ac_status
1495if $ac_init_version; then
1496  cat <<\_ACEOF
1497handlersocket-plugin configure 1.0.6
1498generated by GNU Autoconf 2.68
1499
1500Copyright (C) 2010 Free Software Foundation, Inc.
1501This configure script is free software; the Free Software Foundation
1502gives unlimited permission to copy, distribute and modify it.
1503_ACEOF
1504  exit
1505fi
1506
1507## ------------------------ ##
1508## Autoconf initialization. ##
1509## ------------------------ ##
1510
1511@%:@ ac_fn_c_try_compile LINENO
1512@%:@ --------------------------
1513@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1514ac_fn_c_try_compile ()
1515{
1516  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517  rm -f conftest.$ac_objext
1518  if { { ac_try="$ac_compile"
1519case "(($ac_try" in
1520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521  *) ac_try_echo=$ac_try;;
1522esac
1523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524$as_echo "$ac_try_echo"; } >&5
1525  (eval "$ac_compile") 2>conftest.err
1526  ac_status=$?
1527  if test -s conftest.err; then
1528    grep -v '^ *+' conftest.err >conftest.er1
1529    cat conftest.er1 >&5
1530    mv -f conftest.er1 conftest.err
1531  fi
1532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533  test $ac_status = 0; } && {
1534	 test -z "$ac_c_werror_flag" ||
1535	 test ! -s conftest.err
1536       } && test -s conftest.$ac_objext; then :
1537  ac_retval=0
1538else
1539  $as_echo "$as_me: failed program was:" >&5
1540sed 's/^/| /' conftest.$ac_ext >&5
1541
1542	ac_retval=1
1543fi
1544  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545  as_fn_set_status $ac_retval
1546
1547} @%:@ ac_fn_c_try_compile
1548
1549@%:@ ac_fn_cxx_try_compile LINENO
1550@%:@ ----------------------------
1551@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1552ac_fn_cxx_try_compile ()
1553{
1554  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555  rm -f conftest.$ac_objext
1556  if { { ac_try="$ac_compile"
1557case "(($ac_try" in
1558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559  *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562$as_echo "$ac_try_echo"; } >&5
1563  (eval "$ac_compile") 2>conftest.err
1564  ac_status=$?
1565  if test -s conftest.err; then
1566    grep -v '^ *+' conftest.err >conftest.er1
1567    cat conftest.er1 >&5
1568    mv -f conftest.er1 conftest.err
1569  fi
1570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571  test $ac_status = 0; } && {
1572	 test -z "$ac_cxx_werror_flag" ||
1573	 test ! -s conftest.err
1574       } && test -s conftest.$ac_objext; then :
1575  ac_retval=0
1576else
1577  $as_echo "$as_me: failed program was:" >&5
1578sed 's/^/| /' conftest.$ac_ext >&5
1579
1580	ac_retval=1
1581fi
1582  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583  as_fn_set_status $ac_retval
1584
1585} @%:@ ac_fn_cxx_try_compile
1586
1587@%:@ ac_fn_c_try_cpp LINENO
1588@%:@ ----------------------
1589@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1590ac_fn_c_try_cpp ()
1591{
1592  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593  if { { ac_try="$ac_cpp conftest.$ac_ext"
1594case "(($ac_try" in
1595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596  *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1601  ac_status=$?
1602  if test -s conftest.err; then
1603    grep -v '^ *+' conftest.err >conftest.er1
1604    cat conftest.er1 >&5
1605    mv -f conftest.er1 conftest.err
1606  fi
1607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608  test $ac_status = 0; } > conftest.i && {
1609	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1610	 test ! -s conftest.err
1611       }; then :
1612  ac_retval=0
1613else
1614  $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617    ac_retval=1
1618fi
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} @%:@ ac_fn_c_try_cpp
1623
1624@%:@ ac_fn_c_try_link LINENO
1625@%:@ -----------------------
1626@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1627ac_fn_c_try_link ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  rm -f conftest.$ac_objext conftest$ac_exeext
1631  if { { ac_try="$ac_link"
1632case "(($ac_try" in
1633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634  *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638  (eval "$ac_link") 2>conftest.err
1639  ac_status=$?
1640  if test -s conftest.err; then
1641    grep -v '^ *+' conftest.err >conftest.er1
1642    cat conftest.er1 >&5
1643    mv -f conftest.er1 conftest.err
1644  fi
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } && {
1647	 test -z "$ac_c_werror_flag" ||
1648	 test ! -s conftest.err
1649       } && test -s conftest$ac_exeext && {
1650	 test "$cross_compiling" = yes ||
1651	 $as_test_x conftest$ac_exeext
1652       }; then :
1653  ac_retval=0
1654else
1655  $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658	ac_retval=1
1659fi
1660  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662  # interfere with the next link command; also delete a directory that is
1663  # left behind by Apple's compiler.  We do this before executing the actions.
1664  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666  as_fn_set_status $ac_retval
1667
1668} @%:@ ac_fn_c_try_link
1669
1670@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671@%:@ -------------------------------------------------------
1672@%:@ Tests whether HEADER exists and can be compiled using the include files in
1673@%:@ INCLUDES, setting the cache variable VAR accordingly.
1674ac_fn_c_check_header_compile ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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
1681else
1682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h.  */
1684$4
1685@%:@include <$2>
1686_ACEOF
1687if ac_fn_c_try_compile "$LINENO"; then :
1688  eval "$3=yes"
1689else
1690  eval "$3=no"
1691fi
1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693fi
1694eval ac_res=\$$3
1695	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696$as_echo "$ac_res" >&6; }
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698
1699} @%:@ ac_fn_c_check_header_compile
1700
1701@%:@ ac_fn_c_try_run LINENO
1702@%:@ ----------------------
1703@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1704@%:@ that executables *can* be run.
1705ac_fn_c_try_run ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_link") 2>&5
1716  ac_status=$?
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719  { { case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725  (eval "$ac_try") 2>&5
1726  ac_status=$?
1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; }; }; then :
1729  ac_retval=0
1730else
1731  $as_echo "$as_me: program exited with status $ac_status" >&5
1732       $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735       ac_retval=$ac_status
1736fi
1737  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} @%:@ ac_fn_c_try_run
1742
1743@%:@ ac_fn_c_check_func LINENO FUNC VAR
1744@%:@ ----------------------------------
1745@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1746ac_fn_c_check_func ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750$as_echo_n "checking for $2... " >&6; }
1751if eval \${$3+:} false; then :
1752  $as_echo_n "(cached) " >&6
1753else
1754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h.  */
1756/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1758#define $2 innocuous_$2
1759
1760/* System header to define __stub macros and hopefully few prototypes,
1761    which can conflict with char $2 (); below.
1762    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763    <limits.h> exists even on freestanding compilers.  */
1764
1765#ifdef __STDC__
1766# include <limits.h>
1767#else
1768# include <assert.h>
1769#endif
1770
1771#undef $2
1772
1773/* Override any GCC internal prototype to avoid an error.
1774   Use char because int might match the return type of a GCC
1775   builtin and then its argument prototype would still apply.  */
1776#ifdef __cplusplus
1777extern "C"
1778#endif
1779char $2 ();
1780/* The GNU C library defines this for functions which it implements
1781    to always fail with ENOSYS.  Some functions are actually named
1782    something starting with __ and the normal name is an alias.  */
1783#if defined __stub_$2 || defined __stub___$2
1784choke me
1785#endif
1786
1787int
1788main ()
1789{
1790return $2 ();
1791  ;
1792  return 0;
1793}
1794_ACEOF
1795if ac_fn_c_try_link "$LINENO"; then :
1796  eval "$3=yes"
1797else
1798  eval "$3=no"
1799fi
1800rm -f core conftest.err conftest.$ac_objext \
1801    conftest$ac_exeext conftest.$ac_ext
1802fi
1803eval ac_res=\$$3
1804	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808} @%:@ ac_fn_c_check_func
1809
1810@%:@ ac_fn_cxx_try_cpp LINENO
1811@%:@ ------------------------
1812@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1813ac_fn_cxx_try_cpp ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  if { { ac_try="$ac_cpp conftest.$ac_ext"
1817case "(($ac_try" in
1818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819  *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824  ac_status=$?
1825  if test -s conftest.err; then
1826    grep -v '^ *+' conftest.err >conftest.er1
1827    cat conftest.er1 >&5
1828    mv -f conftest.er1 conftest.err
1829  fi
1830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831  test $ac_status = 0; } > conftest.i && {
1832	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1833	 test ! -s conftest.err
1834       }; then :
1835  ac_retval=0
1836else
1837  $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840    ac_retval=1
1841fi
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843  as_fn_set_status $ac_retval
1844
1845} @%:@ ac_fn_cxx_try_cpp
1846
1847@%:@ ac_fn_cxx_try_link LINENO
1848@%:@ -------------------------
1849@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1850ac_fn_cxx_try_link ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  rm -f conftest.$ac_objext conftest$ac_exeext
1854  if { { ac_try="$ac_link"
1855case "(($ac_try" in
1856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857  *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861  (eval "$ac_link") 2>conftest.err
1862  ac_status=$?
1863  if test -s conftest.err; then
1864    grep -v '^ *+' conftest.err >conftest.er1
1865    cat conftest.er1 >&5
1866    mv -f conftest.er1 conftest.err
1867  fi
1868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869  test $ac_status = 0; } && {
1870	 test -z "$ac_cxx_werror_flag" ||
1871	 test ! -s conftest.err
1872       } && test -s conftest$ac_exeext && {
1873	 test "$cross_compiling" = yes ||
1874	 $as_test_x conftest$ac_exeext
1875       }; then :
1876  ac_retval=0
1877else
1878  $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881	ac_retval=1
1882fi
1883  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885  # interfere with the next link command; also delete a directory that is
1886  # left behind by Apple's compiler.  We do this before executing the actions.
1887  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889  as_fn_set_status $ac_retval
1890
1891} @%:@ ac_fn_cxx_try_link
1892cat >config.log <<_ACEOF
1893This file contains any messages produced by compilers while
1894running configure, to aid debugging if configure makes a mistake.
1895
1896It was created by handlersocket-plugin $as_me 1.0.6, which was
1897generated by GNU Autoconf 2.68.  Invocation command line was
1898
1899  $ $0 $@
1900
1901_ACEOF
1902exec 5>>config.log
1903{
1904cat <<_ASUNAME
1905## --------- ##
1906## Platform. ##
1907## --------- ##
1908
1909hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914
1915/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1917
1918/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1919/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1920/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1922/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1923/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1924/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1925
1926_ASUNAME
1927
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931  IFS=$as_save_IFS
1932  test -z "$as_dir" && as_dir=.
1933    $as_echo "PATH: $as_dir"
1934  done
1935IFS=$as_save_IFS
1936
1937} >&5
1938
1939cat >&5 <<_ACEOF
1940
1941
1942## ----------- ##
1943## Core tests. ##
1944## ----------- ##
1945
1946_ACEOF
1947
1948
1949# Keep a trace of the command line.
1950# Strip out --no-create and --no-recursion so they do not pile up.
1951# Strip out --silent because we don't want to record it for future runs.
1952# Also quote any args containing shell meta-characters.
1953# Make two passes to allow for proper duplicate-argument suppression.
1954ac_configure_args=
1955ac_configure_args0=
1956ac_configure_args1=
1957ac_must_keep_next=false
1958for ac_pass in 1 2
1959do
1960  for ac_arg
1961  do
1962    case $ac_arg in
1963    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965    | -silent | --silent | --silen | --sile | --sil)
1966      continue ;;
1967    *\'*)
1968      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969    esac
1970    case $ac_pass in
1971    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972    2)
1973      as_fn_append ac_configure_args1 " '$ac_arg'"
1974      if test $ac_must_keep_next = true; then
1975	ac_must_keep_next=false # Got value, back to normal.
1976      else
1977	case $ac_arg in
1978	  *=* | --config-cache | -C | -disable-* | --disable-* \
1979	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981	  | -with-* | --with-* | -without-* | --without-* | --x)
1982	    case "$ac_configure_args0 " in
1983	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984	    esac
1985	    ;;
1986	  -* ) ac_must_keep_next=true ;;
1987	esac
1988      fi
1989      as_fn_append ac_configure_args " '$ac_arg'"
1990      ;;
1991    esac
1992  done
1993done
1994{ ac_configure_args0=; unset ac_configure_args0;}
1995{ ac_configure_args1=; unset ac_configure_args1;}
1996
1997# When interrupted or exit'd, cleanup temporary files, and complete
1998# config.log.  We remove comments because anyway the quotes in there
1999# would cause problems or look ugly.
2000# WARNING: Use '\'' to represent an apostrophe within the trap.
2001# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002trap 'exit_status=$?
2003  # Save into config.log some information that might help in debugging.
2004  {
2005    echo
2006
2007    $as_echo "## ---------------- ##
2008## Cache variables. ##
2009## ---------------- ##"
2010    echo
2011    # The following way of writing the cache mishandles newlines in values,
2012(
2013  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014    eval ac_val=\$$ac_var
2015    case $ac_val in #(
2016    *${as_nl}*)
2017      case $ac_var in #(
2018      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020      esac
2021      case $ac_var in #(
2022      _ | IFS | as_nl) ;; #(
2023      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024      *) { eval $ac_var=; unset $ac_var;} ;;
2025      esac ;;
2026    esac
2027  done
2028  (set) 2>&1 |
2029    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030    *${as_nl}ac_space=\ *)
2031      sed -n \
2032	"s/'\''/'\''\\\\'\'''\''/g;
2033	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034      ;; #(
2035    *)
2036      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037      ;;
2038    esac |
2039    sort
2040)
2041    echo
2042
2043    $as_echo "## ----------------- ##
2044## Output variables. ##
2045## ----------------- ##"
2046    echo
2047    for ac_var in $ac_subst_vars
2048    do
2049      eval ac_val=\$$ac_var
2050      case $ac_val in
2051      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052      esac
2053      $as_echo "$ac_var='\''$ac_val'\''"
2054    done | sort
2055    echo
2056
2057    if test -n "$ac_subst_files"; then
2058      $as_echo "## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##"
2061      echo
2062      for ac_var in $ac_subst_files
2063      do
2064	eval ac_val=\$$ac_var
2065	case $ac_val in
2066	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067	esac
2068	$as_echo "$ac_var='\''$ac_val'\''"
2069      done | sort
2070      echo
2071    fi
2072
2073    if test -s confdefs.h; then
2074      $as_echo "## ----------- ##
2075## confdefs.h. ##
2076## ----------- ##"
2077      echo
2078      cat confdefs.h
2079      echo
2080    fi
2081    test "$ac_signal" != 0 &&
2082      $as_echo "$as_me: caught signal $ac_signal"
2083    $as_echo "$as_me: exit $exit_status"
2084  } >&5
2085  rm -f core *.core core.conftest.* &&
2086    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087    exit $exit_status
2088' 0
2089for ac_signal in 1 2 13 15; do
2090  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091done
2092ac_signal=0
2093
2094# confdefs.h avoids OS command line length limits that DEFS can exceed.
2095rm -f -r conftest* confdefs.h
2096
2097$as_echo "/* confdefs.h */" > confdefs.h
2098
2099# Predefined preprocessor variables.
2100
2101cat >>confdefs.h <<_ACEOF
2102@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2111_ACEOF
2112
2113cat >>confdefs.h <<_ACEOF
2114@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2115_ACEOF
2116
2117cat >>confdefs.h <<_ACEOF
2118@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119_ACEOF
2120
2121cat >>confdefs.h <<_ACEOF
2122@%:@define PACKAGE_URL "$PACKAGE_URL"
2123_ACEOF
2124
2125
2126# Let the site file select an alternate cache file if it wants to.
2127# Prefer an explicitly selected file to automatically selected ones.
2128ac_site_file1=NONE
2129ac_site_file2=NONE
2130if test -n "$CONFIG_SITE"; then
2131  # We do not want a PATH search for config.site.
2132  case $CONFIG_SITE in @%:@((
2133    -*)  ac_site_file1=./$CONFIG_SITE;;
2134    */*) ac_site_file1=$CONFIG_SITE;;
2135    *)   ac_site_file1=./$CONFIG_SITE;;
2136  esac
2137elif test "x$prefix" != xNONE; then
2138  ac_site_file1=$prefix/share/config.site
2139  ac_site_file2=$prefix/etc/config.site
2140else
2141  ac_site_file1=$ac_default_prefix/share/config.site
2142  ac_site_file2=$ac_default_prefix/etc/config.site
2143fi
2144for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145do
2146  test "x$ac_site_file" = xNONE && continue
2147  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150    sed 's/^/| /' "$ac_site_file" >&5
2151    . "$ac_site_file" \
2152      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154as_fn_error $? "failed to load site script $ac_site_file
2155See \`config.log' for more details" "$LINENO" 5; }
2156  fi
2157done
2158
2159if test -r "$cache_file"; then
2160  # Some versions of bash will fail to source /dev/null (special files
2161  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2162  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164$as_echo "$as_me: loading cache $cache_file" >&6;}
2165    case $cache_file in
2166      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167      *)                      . "./$cache_file";;
2168    esac
2169  fi
2170else
2171  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172$as_echo "$as_me: creating cache $cache_file" >&6;}
2173  >$cache_file
2174fi
2175
2176# Check that the precious variables saved in the cache have kept the same
2177# value.
2178ac_cache_corrupted=false
2179for ac_var in $ac_precious_vars; do
2180  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181  eval ac_new_set=\$ac_env_${ac_var}_set
2182  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183  eval ac_new_val=\$ac_env_${ac_var}_value
2184  case $ac_old_set,$ac_new_set in
2185    set,)
2186      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188      ac_cache_corrupted=: ;;
2189    ,set)
2190      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192      ac_cache_corrupted=: ;;
2193    ,);;
2194    *)
2195      if test "x$ac_old_val" != "x$ac_new_val"; then
2196	# differences in whitespace do not lead to failure.
2197	ac_old_val_w=`echo x $ac_old_val`
2198	ac_new_val_w=`echo x $ac_new_val`
2199	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202	  ac_cache_corrupted=:
2203	else
2204	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206	  eval $ac_var=\$ac_old_val
2207	fi
2208	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2209$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2210	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2211$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2212      fi;;
2213  esac
2214  # Pass precious variables to config.status.
2215  if test "$ac_new_set" = set; then
2216    case $ac_new_val in
2217    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218    *) ac_arg=$ac_var=$ac_new_val ;;
2219    esac
2220    case " $ac_configure_args " in
2221      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2222      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223    esac
2224  fi
2225done
2226if $ac_cache_corrupted; then
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2232fi
2233## -------------------- ##
2234## Main body of script. ##
2235## -------------------- ##
2236
2237ac_ext=c
2238ac_cpp='$CPP $CPPFLAGS'
2239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242
2243
2244ac_config_headers="$ac_config_headers config.h"
2245
2246am__api_version='1.11'
2247
2248ac_aux_dir=
2249for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250  if test -f "$ac_dir/install-sh"; then
2251    ac_aux_dir=$ac_dir
2252    ac_install_sh="$ac_aux_dir/install-sh -c"
2253    break
2254  elif test -f "$ac_dir/install.sh"; then
2255    ac_aux_dir=$ac_dir
2256    ac_install_sh="$ac_aux_dir/install.sh -c"
2257    break
2258  elif test -f "$ac_dir/shtool"; then
2259    ac_aux_dir=$ac_dir
2260    ac_install_sh="$ac_aux_dir/shtool install -c"
2261    break
2262  fi
2263done
2264if test -z "$ac_aux_dir"; then
2265  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2266fi
2267
2268# These three variables are undocumented and unsupported,
2269# and are intended to be withdrawn in a future Autoconf release.
2270# They can cause serious problems if a builder's source tree is in a directory
2271# whose full name contains unusual characters.
2272ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2273ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2274ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2275
2276
2277# Find a good install program.  We prefer a C program (faster),
2278# so one script is as good as another.  But avoid the broken or
2279# incompatible versions:
2280# SysV /etc/install, /usr/sbin/install
2281# SunOS /usr/etc/install
2282# IRIX /sbin/install
2283# AIX /bin/install
2284# AmigaOS /C/install, which installs bootblocks on floppy discs
2285# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288# OS/2's system install, which has a completely different semantic
2289# ./install, which can be erroneously created by make from ./install.sh.
2290# Reject install programs that cannot install multiple files.
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2292$as_echo_n "checking for a BSD-compatible install... " >&6; }
2293if test -z "$INSTALL"; then
2294if ${ac_cv_path_install+:} false; then :
2295  $as_echo_n "(cached) " >&6
2296else
2297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300  IFS=$as_save_IFS
2301  test -z "$as_dir" && as_dir=.
2302    # Account for people who put trailing slashes in PATH elements.
2303case $as_dir/ in @%:@((
2304  ./ | .// | /[cC]/* | \
2305  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2307  /usr/ucb/* ) ;;
2308  *)
2309    # OSF1 and SCO ODT 3.0 have their own names for install.
2310    # Don't use installbsd from OSF since it installs stuff as root
2311    # by default.
2312    for ac_prog in ginstall scoinst install; do
2313      for ac_exec_ext in '' $ac_executable_extensions; do
2314	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2315	  if test $ac_prog = install &&
2316	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317	    # AIX install.  It has an incompatible calling convention.
2318	    :
2319	  elif test $ac_prog = install &&
2320	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321	    # program-specific install script used by HP pwplus--don't use.
2322	    :
2323	  else
2324	    rm -rf conftest.one conftest.two conftest.dir
2325	    echo one > conftest.one
2326	    echo two > conftest.two
2327	    mkdir conftest.dir
2328	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329	      test -s conftest.one && test -s conftest.two &&
2330	      test -s conftest.dir/conftest.one &&
2331	      test -s conftest.dir/conftest.two
2332	    then
2333	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334	      break 3
2335	    fi
2336	  fi
2337	fi
2338      done
2339    done
2340    ;;
2341esac
2342
2343  done
2344IFS=$as_save_IFS
2345
2346rm -rf conftest.one conftest.two conftest.dir
2347
2348fi
2349  if test "${ac_cv_path_install+set}" = set; then
2350    INSTALL=$ac_cv_path_install
2351  else
2352    # As a last resort, use the slow shell script.  Don't cache a
2353    # value for INSTALL within a source directory, because that will
2354    # break other packages using the cache if that directory is
2355    # removed, or if the value is a relative name.
2356    INSTALL=$ac_install_sh
2357  fi
2358fi
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2360$as_echo "$INSTALL" >&6; }
2361
2362# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363# It thinks the first close brace ends the variable substitution.
2364test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2365
2366test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2367
2368test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2369
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2371$as_echo_n "checking whether build environment is sane... " >&6; }
2372# Just in case
2373sleep 1
2374echo timestamp > conftest.file
2375# Reject unsafe characters in $srcdir or the absolute working directory
2376# name.  Accept space and tab only in the latter.
2377am_lf='
2378'
2379case `pwd` in
2380  *[\\\"\#\$\&\'\`$am_lf]*)
2381    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2382esac
2383case $srcdir in
2384  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2385    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2386esac
2387
2388# Do `set' in a subshell so we don't clobber the current shell's
2389# arguments.  Must try -L first in case configure is actually a
2390# symlink; some systems play weird games with the mod time of symlinks
2391# (eg FreeBSD returns the mod time of the symlink's containing
2392# directory).
2393if (
2394   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395   if test "$*" = "X"; then
2396      # -L didn't work.
2397      set X `ls -t "$srcdir/configure" conftest.file`
2398   fi
2399   rm -f conftest.file
2400   if test "$*" != "X $srcdir/configure conftest.file" \
2401      && test "$*" != "X conftest.file $srcdir/configure"; then
2402
2403      # If neither matched, then we have a broken ls.  This can happen
2404      # if, for instance, CONFIG_SHELL is bash and it inherits a
2405      # broken ls alias from the environment.  This has actually
2406      # happened.  Such a system could not be considered "sane".
2407      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2408alias in your environment" "$LINENO" 5
2409   fi
2410
2411   test "$2" = conftest.file
2412   )
2413then
2414   # Ok.
2415   :
2416else
2417   as_fn_error $? "newly created file is older than distributed files!
2418Check your system clock" "$LINENO" 5
2419fi
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2421$as_echo "yes" >&6; }
2422test "$program_prefix" != NONE &&
2423  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2424# Use a double $ so make ignores it.
2425test "$program_suffix" != NONE &&
2426  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427# Double any \ or $.
2428# By default was `s,x,x', remove it if useless.
2429ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2431
2432# expand $ac_aux_dir to an absolute path
2433am_aux_dir=`cd $ac_aux_dir && pwd`
2434
2435if test x"${MISSING+set}" != xset; then
2436  case $am_aux_dir in
2437  *\ * | *\	*)
2438    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2439  *)
2440    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2441  esac
2442fi
2443# Use eval to expand $SHELL
2444if eval "$MISSING --run true"; then
2445  am_missing_run="$MISSING --run "
2446else
2447  am_missing_run=
2448  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2449$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2450fi
2451
2452if test x"${install_sh}" != xset; then
2453  case $am_aux_dir in
2454  *\ * | *\	*)
2455    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2456  *)
2457    install_sh="\${SHELL} $am_aux_dir/install-sh"
2458  esac
2459fi
2460
2461# Installed binaries are usually stripped using `strip' when the user
2462# run `make install-strip'.  However `strip' might not be the right
2463# tool to use in cross-compilation environments, therefore Automake
2464# will honor the `STRIP' environment variable to overrule this program.
2465if test "$cross_compiling" != no; then
2466  if test -n "$ac_tool_prefix"; then
2467  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2468set dummy ${ac_tool_prefix}strip; ac_word=$2
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470$as_echo_n "checking for $ac_word... " >&6; }
2471if ${ac_cv_prog_STRIP+:} false; then :
2472  $as_echo_n "(cached) " >&6
2473else
2474  if test -n "$STRIP"; then
2475  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2476else
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480  IFS=$as_save_IFS
2481  test -z "$as_dir" && as_dir=.
2482    for ac_exec_ext in '' $ac_executable_extensions; do
2483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486    break 2
2487  fi
2488done
2489  done
2490IFS=$as_save_IFS
2491
2492fi
2493fi
2494STRIP=$ac_cv_prog_STRIP
2495if test -n "$STRIP"; then
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2497$as_echo "$STRIP" >&6; }
2498else
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500$as_echo "no" >&6; }
2501fi
2502
2503
2504fi
2505if test -z "$ac_cv_prog_STRIP"; then
2506  ac_ct_STRIP=$STRIP
2507  # Extract the first word of "strip", so it can be a program name with args.
2508set dummy strip; ac_word=$2
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
2511if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2512  $as_echo_n "(cached) " >&6
2513else
2514  if test -n "$ac_ct_STRIP"; then
2515  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520  IFS=$as_save_IFS
2521  test -z "$as_dir" && as_dir=.
2522    for ac_exec_ext in '' $ac_executable_extensions; do
2523  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524    ac_cv_prog_ac_ct_STRIP="strip"
2525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526    break 2
2527  fi
2528done
2529  done
2530IFS=$as_save_IFS
2531
2532fi
2533fi
2534ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2535if test -n "$ac_ct_STRIP"; then
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2537$as_echo "$ac_ct_STRIP" >&6; }
2538else
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540$as_echo "no" >&6; }
2541fi
2542
2543  if test "x$ac_ct_STRIP" = x; then
2544    STRIP=":"
2545  else
2546    case $cross_compiling:$ac_tool_warned in
2547yes:)
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550ac_tool_warned=yes ;;
2551esac
2552    STRIP=$ac_ct_STRIP
2553  fi
2554else
2555  STRIP="$ac_cv_prog_STRIP"
2556fi
2557
2558fi
2559INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2560
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2562$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2563if test -z "$MKDIR_P"; then
2564  if ${ac_cv_path_mkdir+:} false; then :
2565  $as_echo_n "(cached) " >&6
2566else
2567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2569do
2570  IFS=$as_save_IFS
2571  test -z "$as_dir" && as_dir=.
2572    for ac_prog in mkdir gmkdir; do
2573	 for ac_exec_ext in '' $ac_executable_extensions; do
2574	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2575	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2576	     'mkdir (GNU coreutils) '* | \
2577	     'mkdir (coreutils) '* | \
2578	     'mkdir (fileutils) '4.1*)
2579	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2580	       break 3;;
2581	   esac
2582	 done
2583       done
2584  done
2585IFS=$as_save_IFS
2586
2587fi
2588
2589  test -d ./--version && rmdir ./--version
2590  if test "${ac_cv_path_mkdir+set}" = set; then
2591    MKDIR_P="$ac_cv_path_mkdir -p"
2592  else
2593    # As a last resort, use the slow shell script.  Don't cache a
2594    # value for MKDIR_P within a source directory, because that will
2595    # break other packages using the cache if that directory is
2596    # removed, or if the value is a relative name.
2597    MKDIR_P="$ac_install_sh -d"
2598  fi
2599fi
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2601$as_echo "$MKDIR_P" >&6; }
2602
2603mkdir_p="$MKDIR_P"
2604case $mkdir_p in
2605  [\\/$]* | ?:[\\/]*) ;;
2606  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2607esac
2608
2609for ac_prog in gawk mawk nawk awk
2610do
2611  # Extract the first word of "$ac_prog", so it can be a program name with args.
2612set dummy $ac_prog; ac_word=$2
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614$as_echo_n "checking for $ac_word... " >&6; }
2615if ${ac_cv_prog_AWK+:} false; then :
2616  $as_echo_n "(cached) " >&6
2617else
2618  if test -n "$AWK"; then
2619  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    for ac_exec_ext in '' $ac_executable_extensions; do
2627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628    ac_cv_prog_AWK="$ac_prog"
2629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630    break 2
2631  fi
2632done
2633  done
2634IFS=$as_save_IFS
2635
2636fi
2637fi
2638AWK=$ac_cv_prog_AWK
2639if test -n "$AWK"; then
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2641$as_echo "$AWK" >&6; }
2642else
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644$as_echo "no" >&6; }
2645fi
2646
2647
2648  test -n "$AWK" && break
2649done
2650
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2653set x ${MAKE-make}
2654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2655if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  cat >conftest.make <<\_ACEOF
2659SHELL = /bin/sh
2660all:
2661	@echo '@@@%%%=$(MAKE)=@@@%%%'
2662_ACEOF
2663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2664case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665  *@@@%%%=?*=@@@%%%*)
2666    eval ac_cv_prog_make_${ac_make}_set=yes;;
2667  *)
2668    eval ac_cv_prog_make_${ac_make}_set=no;;
2669esac
2670rm -f conftest.make
2671fi
2672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674$as_echo "yes" >&6; }
2675  SET_MAKE=
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679  SET_MAKE="MAKE=${MAKE-make}"
2680fi
2681
2682rm -rf .tst 2>/dev/null
2683mkdir .tst 2>/dev/null
2684if test -d .tst; then
2685  am__leading_dot=.
2686else
2687  am__leading_dot=_
2688fi
2689rmdir .tst 2>/dev/null
2690
2691if test "`cd $srcdir && pwd`" != "`pwd`"; then
2692  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2693  # is not polluted with repeated "-I."
2694  am__isrc=' -I$(srcdir)'
2695  # test to see if srcdir already configured
2696  if test -f $srcdir/config.status; then
2697    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2698  fi
2699fi
2700
2701# test whether we have cygpath
2702if test -z "$CYGPATH_W"; then
2703  if (cygpath --version) >/dev/null 2>/dev/null; then
2704    CYGPATH_W='cygpath -w'
2705  else
2706    CYGPATH_W=echo
2707  fi
2708fi
2709
2710
2711# Define the identity of the package.
2712 PACKAGE='handlersocket-plugin'
2713 VERSION='1.0.6'
2714
2715
2716cat >>confdefs.h <<_ACEOF
2717@%:@define PACKAGE "$PACKAGE"
2718_ACEOF
2719
2720
2721cat >>confdefs.h <<_ACEOF
2722@%:@define VERSION "$VERSION"
2723_ACEOF
2724
2725# Some tools Automake needs.
2726
2727ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2728
2729
2730AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2731
2732
2733AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2734
2735
2736AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2737
2738
2739MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2740
2741# We need awk for the "check" target.  The system "awk" is bad on
2742# some platforms.
2743# Always define AMTAR for backward compatibility.
2744
2745AMTAR=${AMTAR-"${am_missing_run}tar"}
2746
2747am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2748
2749
2750
2751
2752
2753
2754
2755
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761if test -n "$ac_tool_prefix"; then
2762  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765$as_echo_n "checking for $ac_word... " >&6; }
2766if ${ac_cv_prog_CC+:} false; then :
2767  $as_echo_n "(cached) " >&6
2768else
2769  if test -n "$CC"; then
2770  ac_cv_prog_CC="$CC" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775  IFS=$as_save_IFS
2776  test -z "$as_dir" && as_dir=.
2777    for ac_exec_ext in '' $ac_executable_extensions; do
2778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781    break 2
2782  fi
2783done
2784  done
2785IFS=$as_save_IFS
2786
2787fi
2788fi
2789CC=$ac_cv_prog_CC
2790if test -n "$CC"; then
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792$as_echo "$CC" >&6; }
2793else
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795$as_echo "no" >&6; }
2796fi
2797
2798
2799fi
2800if test -z "$ac_cv_prog_CC"; then
2801  ac_ct_CC=$CC
2802  # Extract the first word of "gcc", so it can be a program name with args.
2803set dummy gcc; ac_word=$2
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
2806if ${ac_cv_prog_ac_ct_CC+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  if test -n "$ac_ct_CC"; then
2810  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815  IFS=$as_save_IFS
2816  test -z "$as_dir" && as_dir=.
2817    for ac_exec_ext in '' $ac_executable_extensions; do
2818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819    ac_cv_prog_ac_ct_CC="gcc"
2820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821    break 2
2822  fi
2823done
2824  done
2825IFS=$as_save_IFS
2826
2827fi
2828fi
2829ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830if test -n "$ac_ct_CC"; then
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2832$as_echo "$ac_ct_CC" >&6; }
2833else
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836fi
2837
2838  if test "x$ac_ct_CC" = x; then
2839    CC=""
2840  else
2841    case $cross_compiling:$ac_tool_warned in
2842yes:)
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845ac_tool_warned=yes ;;
2846esac
2847    CC=$ac_ct_CC
2848  fi
2849else
2850  CC="$ac_cv_prog_CC"
2851fi
2852
2853if test -z "$CC"; then
2854          if test -n "$ac_tool_prefix"; then
2855    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2856set dummy ${ac_tool_prefix}cc; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
2859if ${ac_cv_prog_CC+:} false; then :
2860  $as_echo_n "(cached) " >&6
2861else
2862  if test -n "$CC"; then
2863  ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    for ac_exec_ext in '' $ac_executable_extensions; do
2871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872    ac_cv_prog_CC="${ac_tool_prefix}cc"
2873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874    break 2
2875  fi
2876done
2877  done
2878IFS=$as_save_IFS
2879
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885$as_echo "$CC" >&6; }
2886else
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892  fi
2893fi
2894if test -z "$CC"; then
2895  # Extract the first word of "cc", so it can be a program name with args.
2896set dummy cc; ac_word=$2
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
2899if ${ac_cv_prog_CC+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  if test -n "$CC"; then
2903  ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
2905  ac_prog_rejected=no
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911    for ac_exec_ext in '' $ac_executable_extensions; do
2912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914       ac_prog_rejected=yes
2915       continue
2916     fi
2917    ac_cv_prog_CC="cc"
2918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919    break 2
2920  fi
2921done
2922  done
2923IFS=$as_save_IFS
2924
2925if test $ac_prog_rejected = yes; then
2926  # We found a bogon in the path, so make sure we never use it.
2927  set dummy $ac_cv_prog_CC
2928  shift
2929  if test $@%:@ != 0; then
2930    # We chose a different compiler from the bogus one.
2931    # However, it has the same basename, so the bogon will be chosen
2932    # first if we set CC to just the basename; use the full file name.
2933    shift
2934    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935  fi
2936fi
2937fi
2938fi
2939CC=$ac_cv_prog_CC
2940if test -n "$CC"; then
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942$as_echo "$CC" >&6; }
2943else
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949fi
2950if test -z "$CC"; then
2951  if test -n "$ac_tool_prefix"; then
2952  for ac_prog in cl.exe
2953  do
2954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
2958if ${ac_cv_prog_CC+:} false; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  if test -n "$CC"; then
2962  ac_cv_prog_CC="$CC" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  test -z "$as_dir" && as_dir=.
2969    for ac_exec_ext in '' $ac_executable_extensions; do
2970  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973    break 2
2974  fi
2975done
2976  done
2977IFS=$as_save_IFS
2978
2979fi
2980fi
2981CC=$ac_cv_prog_CC
2982if test -n "$CC"; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984$as_echo "$CC" >&6; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
2991    test -n "$CC" && break
2992  done
2993fi
2994if test -z "$CC"; then
2995  ac_ct_CC=$CC
2996  for ac_prog in cl.exe
2997do
2998  # Extract the first word of "$ac_prog", so it can be a program name with args.
2999set dummy $ac_prog; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  if test -n "$ac_ct_CC"; then
3006  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011  IFS=$as_save_IFS
3012  test -z "$as_dir" && as_dir=.
3013    for ac_exec_ext in '' $ac_executable_extensions; do
3014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015    ac_cv_prog_ac_ct_CC="$ac_prog"
3016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020  done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026if test -n "$ac_ct_CC"; then
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028$as_echo "$ac_ct_CC" >&6; }
3029else
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034
3035  test -n "$ac_ct_CC" && break
3036done
3037
3038  if test "x$ac_ct_CC" = x; then
3039    CC=""
3040  else
3041    case $cross_compiling:$ac_tool_warned in
3042yes:)
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045ac_tool_warned=yes ;;
3046esac
3047    CC=$ac_ct_CC
3048  fi
3049fi
3050
3051fi
3052
3053
3054test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056as_fn_error $? "no acceptable C compiler found in \$PATH
3057See \`config.log' for more details" "$LINENO" 5; }
3058
3059# Provide some information about the compiler.
3060$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3061set X $ac_compile
3062ac_compiler=$2
3063for ac_option in --version -v -V -qversion; do
3064  { { ac_try="$ac_compiler $ac_option >&5"
3065case "(($ac_try" in
3066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067  *) ac_try_echo=$ac_try;;
3068esac
3069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070$as_echo "$ac_try_echo"; } >&5
3071  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3072  ac_status=$?
3073  if test -s conftest.err; then
3074    sed '10a\
3075... rest of stderr output deleted ...
3076         10q' conftest.err >conftest.er1
3077    cat conftest.er1 >&5
3078  fi
3079  rm -f conftest.er1 conftest.err
3080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081  test $ac_status = 0; }
3082done
3083
3084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h.  */
3086
3087int
3088main ()
3089{
3090
3091  ;
3092  return 0;
3093}
3094_ACEOF
3095ac_clean_files_save=$ac_clean_files
3096ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3097# Try to create an executable without -o first, disregard a.out.
3098# It will help us diagnose broken compilers, and finding out an intuition
3099# of exeext.
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3101$as_echo_n "checking whether the C compiler works... " >&6; }
3102ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103
3104# The possible output files:
3105ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3106
3107ac_rmfiles=
3108for ac_file in $ac_files
3109do
3110  case $ac_file in
3111    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3112    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3113  esac
3114done
3115rm -f $ac_rmfiles
3116
3117if { { ac_try="$ac_link_default"
3118case "(($ac_try" in
3119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120  *) ac_try_echo=$ac_try;;
3121esac
3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123$as_echo "$ac_try_echo"; } >&5
3124  (eval "$ac_link_default") 2>&5
3125  ac_status=$?
3126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127  test $ac_status = 0; }; then :
3128  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3131# so that the user can short-circuit this test for compilers unknown to
3132# Autoconf.
3133for ac_file in $ac_files ''
3134do
3135  test -f "$ac_file" || continue
3136  case $ac_file in
3137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3138	;;
3139    [ab].out )
3140	# We found the default executable, but exeext='' is most
3141	# certainly right.
3142	break;;
3143    *.* )
3144	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3145	then :; else
3146	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147	fi
3148	# We set ac_cv_exeext here because the later test for it is not
3149	# safe: cross compilers may not add the suffix if given an `-o'
3150	# argument, so we may need to know it at that point already.
3151	# Even if this section looks crufty: it has the advantage of
3152	# actually working.
3153	break;;
3154    * )
3155	break;;
3156  esac
3157done
3158test "$ac_cv_exeext" = no && ac_cv_exeext=
3159
3160else
3161  ac_file=''
3162fi
3163if test -z "$ac_file"; then :
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
3166$as_echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171as_fn_error 77 "C compiler cannot create executables
3172See \`config.log' for more details" "$LINENO" 5; }
3173else
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175$as_echo "yes" >&6; }
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178$as_echo_n "checking for C compiler default output file name... " >&6; }
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3180$as_echo "$ac_file" >&6; }
3181ac_exeext=$ac_cv_exeext
3182
3183rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3184ac_clean_files=$ac_clean_files_save
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186$as_echo_n "checking for suffix of executables... " >&6; }
3187if { { ac_try="$ac_link"
3188case "(($ac_try" in
3189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190  *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194  (eval "$ac_link") 2>&5
3195  ac_status=$?
3196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197  test $ac_status = 0; }; then :
3198  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3200# work properly (i.e., refer to `conftest.exe'), while it won't with
3201# `rm'.
3202for ac_file in conftest.exe conftest conftest.*; do
3203  test -f "$ac_file" || continue
3204  case $ac_file in
3205    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207	  break;;
3208    * ) break;;
3209  esac
3210done
3211else
3212  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3215See \`config.log' for more details" "$LINENO" 5; }
3216fi
3217rm -f conftest conftest$ac_cv_exeext
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219$as_echo "$ac_cv_exeext" >&6; }
3220
3221rm -f conftest.$ac_ext
3222EXEEXT=$ac_cv_exeext
3223ac_exeext=$EXEEXT
3224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225/* end confdefs.h.  */
3226@%:@include <stdio.h>
3227int
3228main ()
3229{
3230FILE *f = fopen ("conftest.out", "w");
3231 return ferror (f) || fclose (f) != 0;
3232
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237ac_clean_files="$ac_clean_files conftest.out"
3238# Check that the compiler produces executables we can run.  If not, either
3239# the compiler is broken, or we cross compile.
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241$as_echo_n "checking whether we are cross compiling... " >&6; }
3242if test "$cross_compiling" != yes; then
3243  { { ac_try="$ac_link"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_link") 2>&5
3251  ac_status=$?
3252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253  test $ac_status = 0; }
3254  if { ac_try='./conftest$ac_cv_exeext'
3255  { { case "(($ac_try" in
3256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257  *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261  (eval "$ac_try") 2>&5
3262  ac_status=$?
3263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264  test $ac_status = 0; }; }; then
3265    cross_compiling=no
3266  else
3267    if test "$cross_compiling" = maybe; then
3268	cross_compiling=yes
3269    else
3270	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272as_fn_error $? "cannot run C compiled programs.
3273If you meant to cross compile, use \`--host'.
3274See \`config.log' for more details" "$LINENO" 5; }
3275    fi
3276  fi
3277fi
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279$as_echo "$cross_compiling" >&6; }
3280
3281rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3282ac_clean_files=$ac_clean_files_save
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3284$as_echo_n "checking for suffix of object files... " >&6; }
3285if ${ac_cv_objext+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290
3291int
3292main ()
3293{
3294
3295  ;
3296  return 0;
3297}
3298_ACEOF
3299rm -f conftest.o conftest.obj
3300if { { ac_try="$ac_compile"
3301case "(($ac_try" in
3302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303  *) ac_try_echo=$ac_try;;
3304esac
3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306$as_echo "$ac_try_echo"; } >&5
3307  (eval "$ac_compile") 2>&5
3308  ac_status=$?
3309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310  test $ac_status = 0; }; then :
3311  for ac_file in conftest.o conftest.obj conftest.*; do
3312  test -f "$ac_file" || continue;
3313  case $ac_file in
3314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3315    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3316       break;;
3317  esac
3318done
3319else
3320  $as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325as_fn_error $? "cannot compute suffix of object files: cannot compile
3326See \`config.log' for more details" "$LINENO" 5; }
3327fi
3328rm -f conftest.$ac_cv_objext conftest.$ac_ext
3329fi
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3331$as_echo "$ac_cv_objext" >&6; }
3332OBJEXT=$ac_cv_objext
3333ac_objext=$OBJEXT
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3335$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3336if ${ac_cv_c_compiler_gnu+:} false; then :
3337  $as_echo_n "(cached) " >&6
3338else
3339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h.  */
3341
3342int
3343main ()
3344{
3345#ifndef __GNUC__
3346       choke me
3347#endif
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353if ac_fn_c_try_compile "$LINENO"; then :
3354  ac_compiler_gnu=yes
3355else
3356  ac_compiler_gnu=no
3357fi
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359ac_cv_c_compiler_gnu=$ac_compiler_gnu
3360
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3363$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364if test $ac_compiler_gnu = yes; then
3365  GCC=yes
3366else
3367  GCC=
3368fi
3369ac_test_CFLAGS=${CFLAGS+set}
3370ac_save_CFLAGS=$CFLAGS
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3372$as_echo_n "checking whether $CC accepts -g... " >&6; }
3373if ${ac_cv_prog_cc_g+:} false; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  ac_save_c_werror_flag=$ac_c_werror_flag
3377   ac_c_werror_flag=yes
3378   ac_cv_prog_cc_g=no
3379   CFLAGS="-g"
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391if ac_fn_c_try_compile "$LINENO"; then :
3392  ac_cv_prog_cc_g=yes
3393else
3394  CFLAGS=""
3395      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406if ac_fn_c_try_compile "$LINENO"; then :
3407
3408else
3409  ac_c_werror_flag=$ac_save_c_werror_flag
3410	 CFLAGS="-g"
3411	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413
3414int
3415main ()
3416{
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"; then :
3423  ac_cv_prog_cc_g=yes
3424fi
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426fi
3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428fi
3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430   ac_c_werror_flag=$ac_save_c_werror_flag
3431fi
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3433$as_echo "$ac_cv_prog_cc_g" >&6; }
3434if test "$ac_test_CFLAGS" = set; then
3435  CFLAGS=$ac_save_CFLAGS
3436elif test $ac_cv_prog_cc_g = yes; then
3437  if test "$GCC" = yes; then
3438    CFLAGS="-g -O2"
3439  else
3440    CFLAGS="-g"
3441  fi
3442else
3443  if test "$GCC" = yes; then
3444    CFLAGS="-O2"
3445  else
3446    CFLAGS=
3447  fi
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3450$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3451if ${ac_cv_prog_cc_c89+:} false; then :
3452  $as_echo_n "(cached) " >&6
3453else
3454  ac_cv_prog_cc_c89=no
3455ac_save_CC=$CC
3456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458#include <stdarg.h>
3459#include <stdio.h>
3460#include <sys/types.h>
3461#include <sys/stat.h>
3462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3463struct buf { int x; };
3464FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465static char *e (p, i)
3466     char **p;
3467     int i;
3468{
3469  return p[i];
3470}
3471static char *f (char * (*g) (char **, int), char **p, ...)
3472{
3473  char *s;
3474  va_list v;
3475  va_start (v,p);
3476  s = g (p, va_arg (v,int));
3477  va_end (v);
3478  return s;
3479}
3480
3481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3482   function prototypes and stuff, but not '\xHH' hex character constants.
3483   These don't provoke an error unfortunately, instead are silently treated
3484   as 'x'.  The following induces an error, until -std is added to get
3485   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3486   array size at least.  It's necessary to write '\x00'==0 to get something
3487   that's true only with -std.  */
3488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491   inside strings and character constants.  */
3492#define FOO(x) 'x'
3493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495int test (int i, double x);
3496struct s1 {int (*f) (int a);};
3497struct s2 {int (*f) (double a);};
3498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499int argc;
3500char **argv;
3501int
3502main ()
3503{
3504return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511do
3512  CC="$ac_save_CC $ac_arg"
3513  if ac_fn_c_try_compile "$LINENO"; then :
3514  ac_cv_prog_cc_c89=$ac_arg
3515fi
3516rm -f core conftest.err conftest.$ac_objext
3517  test "x$ac_cv_prog_cc_c89" != "xno" && break
3518done
3519rm -f conftest.$ac_ext
3520CC=$ac_save_CC
3521
3522fi
3523# AC_CACHE_VAL
3524case "x$ac_cv_prog_cc_c89" in
3525  x)
3526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527$as_echo "none needed" >&6; } ;;
3528  xno)
3529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530$as_echo "unsupported" >&6; } ;;
3531  *)
3532    CC="$CC $ac_cv_prog_cc_c89"
3533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3535esac
3536if test "x$ac_cv_prog_cc_c89" != xno; then :
3537
3538fi
3539
3540ac_ext=c
3541ac_cpp='$CPP $CPPFLAGS'
3542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545DEPDIR="${am__leading_dot}deps"
3546
3547ac_config_commands="$ac_config_commands depfiles"
3548
3549
3550am_make=${MAKE-make}
3551cat > confinc << 'END'
3552am__doit:
3553	@echo this is the am__doit target
3554.PHONY: am__doit
3555END
3556# If we don't find an include directive, just comment out the code.
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3558$as_echo_n "checking for style of include used by $am_make... " >&6; }
3559am__include="#"
3560am__quote=
3561_am_result=none
3562# First try GNU make style include.
3563echo "include confinc" > confmf
3564# Ignore all kinds of additional output from `make'.
3565case `$am_make -s -f confmf 2> /dev/null` in #(
3566*the\ am__doit\ target*)
3567  am__include=include
3568  am__quote=
3569  _am_result=GNU
3570  ;;
3571esac
3572# Now try BSD make style include.
3573if test "$am__include" = "#"; then
3574   echo '.include "confinc"' > confmf
3575   case `$am_make -s -f confmf 2> /dev/null` in #(
3576   *the\ am__doit\ target*)
3577     am__include=.include
3578     am__quote="\""
3579     _am_result=BSD
3580     ;;
3581   esac
3582fi
3583
3584
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3586$as_echo "$_am_result" >&6; }
3587rm -f confinc confmf
3588
3589@%:@ Check whether --enable-dependency-tracking was given.
3590if test "${enable_dependency_tracking+set}" = set; then :
3591  enableval=$enable_dependency_tracking;
3592fi
3593
3594if test "x$enable_dependency_tracking" != xno; then
3595  am_depcomp="$ac_aux_dir/depcomp"
3596  AMDEPBACKSLASH='\'
3597fi
3598 if test "x$enable_dependency_tracking" != xno; then
3599  AMDEP_TRUE=
3600  AMDEP_FALSE='#'
3601else
3602  AMDEP_TRUE='#'
3603  AMDEP_FALSE=
3604fi
3605
3606
3607
3608depcc="$CC"   am_compiler_list=
3609
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3611$as_echo_n "checking dependency style of $depcc... " >&6; }
3612if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3613  $as_echo_n "(cached) " >&6
3614else
3615  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3616  # We make a subdir and do the tests there.  Otherwise we can end up
3617  # making bogus files that we don't know about and never remove.  For
3618  # instance it was reported that on HP-UX the gcc test will end up
3619  # making a dummy file named `D' -- because `-MD' means `put the output
3620  # in D'.
3621  mkdir conftest.dir
3622  # Copy depcomp to subdir because otherwise we won't find it if we're
3623  # using a relative directory.
3624  cp "$am_depcomp" conftest.dir
3625  cd conftest.dir
3626  # We will build objects and dependencies in a subdirectory because
3627  # it helps to detect inapplicable dependency modes.  For instance
3628  # both Tru64's cc and ICC support -MD to output dependencies as a
3629  # side effect of compilation, but ICC will put the dependencies in
3630  # the current directory while Tru64 will put them in the object
3631  # directory.
3632  mkdir sub
3633
3634  am_cv_CC_dependencies_compiler_type=none
3635  if test "$am_compiler_list" = ""; then
3636     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3637  fi
3638  am__universal=false
3639  case " $depcc " in #(
3640     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3641     esac
3642
3643  for depmode in $am_compiler_list; do
3644    # Setup a source with many dependencies, because some compilers
3645    # like to wrap large dependency lists on column 80 (with \), and
3646    # we should not choose a depcomp mode which is confused by this.
3647    #
3648    # We need to recreate these files for each test, as the compiler may
3649    # overwrite some of them when testing with obscure command lines.
3650    # This happens at least with the AIX C compiler.
3651    : > sub/conftest.c
3652    for i in 1 2 3 4 5 6; do
3653      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3654      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3655      # Solaris 8's {/usr,}/bin/sh.
3656      touch sub/conftst$i.h
3657    done
3658    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3659
3660    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3661    # mode.  It turns out that the SunPro C++ compiler does not properly
3662    # handle `-M -o', and we need to detect this.  Also, some Intel
3663    # versions had trouble with output in subdirs
3664    am__obj=sub/conftest.${OBJEXT-o}
3665    am__minus_obj="-o $am__obj"
3666    case $depmode in
3667    gcc)
3668      # This depmode causes a compiler race in universal mode.
3669      test "$am__universal" = false || continue
3670      ;;
3671    nosideeffect)
3672      # after this tag, mechanisms are not by side-effect, so they'll
3673      # only be used when explicitly requested
3674      if test "x$enable_dependency_tracking" = xyes; then
3675	continue
3676      else
3677	break
3678      fi
3679      ;;
3680    msvisualcpp | msvcmsys)
3681      # This compiler won't grok `-c -o', but also, the minuso test has
3682      # not run yet.  These depmodes are late enough in the game, and
3683      # so weak that their functioning should not be impacted.
3684      am__obj=conftest.${OBJEXT-o}
3685      am__minus_obj=
3686      ;;
3687    none) break ;;
3688    esac
3689    if depmode=$depmode \
3690       source=sub/conftest.c object=$am__obj \
3691       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3692       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3693         >/dev/null 2>conftest.err &&
3694       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3695       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3696       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3697       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3698      # icc doesn't choke on unknown options, it will just issue warnings
3699      # or remarks (even with -Werror).  So we grep stderr for any message
3700      # that says an option was ignored or not supported.
3701      # When given -MP, icc 7.0 and 7.1 complain thusly:
3702      #   icc: Command line warning: ignoring option '-M'; no argument required
3703      # The diagnosis changed in icc 8.0:
3704      #   icc: Command line remark: option '-MP' not supported
3705      if (grep 'ignoring option' conftest.err ||
3706          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3707        am_cv_CC_dependencies_compiler_type=$depmode
3708        break
3709      fi
3710    fi
3711  done
3712
3713  cd ..
3714  rm -rf conftest.dir
3715else
3716  am_cv_CC_dependencies_compiler_type=none
3717fi
3718
3719fi
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3721$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3722CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3723
3724 if
3725  test "x$enable_dependency_tracking" != xno \
3726  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3727  am__fastdepCC_TRUE=
3728  am__fastdepCC_FALSE='#'
3729else
3730  am__fastdepCC_TRUE='#'
3731  am__fastdepCC_FALSE=
3732fi
3733
3734
3735ac_ext=cpp
3736ac_cpp='$CXXCPP $CPPFLAGS'
3737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3740if test -z "$CXX"; then
3741  if test -n "$CCC"; then
3742    CXX=$CCC
3743  else
3744    if test -n "$ac_tool_prefix"; then
3745  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3746  do
3747    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750$as_echo_n "checking for $ac_word... " >&6; }
3751if ${ac_cv_prog_CXX+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  if test -n "$CXX"; then
3755  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3756else
3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760  IFS=$as_save_IFS
3761  test -z "$as_dir" && as_dir=.
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766    break 2
3767  fi
3768done
3769  done
3770IFS=$as_save_IFS
3771
3772fi
3773fi
3774CXX=$ac_cv_prog_CXX
3775if test -n "$CXX"; then
3776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3777$as_echo "$CXX" >&6; }
3778else
3779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780$as_echo "no" >&6; }
3781fi
3782
3783
3784    test -n "$CXX" && break
3785  done
3786fi
3787if test -z "$CXX"; then
3788  ac_ct_CXX=$CXX
3789  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3790do
3791  # Extract the first word of "$ac_prog", so it can be a program name with args.
3792set dummy $ac_prog; ac_word=$2
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794$as_echo_n "checking for $ac_word... " >&6; }
3795if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  if test -n "$ac_ct_CXX"; then
3799  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806    for ac_exec_ext in '' $ac_executable_extensions; do
3807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808    ac_cv_prog_ac_ct_CXX="$ac_prog"
3809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810    break 2
3811  fi
3812done
3813  done
3814IFS=$as_save_IFS
3815
3816fi
3817fi
3818ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3819if test -n "$ac_ct_CXX"; then
3820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3821$as_echo "$ac_ct_CXX" >&6; }
3822else
3823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
3826
3827
3828  test -n "$ac_ct_CXX" && break
3829done
3830
3831  if test "x$ac_ct_CXX" = x; then
3832    CXX="g++"
3833  else
3834    case $cross_compiling:$ac_tool_warned in
3835yes:)
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838ac_tool_warned=yes ;;
3839esac
3840    CXX=$ac_ct_CXX
3841  fi
3842fi
3843
3844  fi
3845fi
3846# Provide some information about the compiler.
3847$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3848set X $ac_compile
3849ac_compiler=$2
3850for ac_option in --version -v -V -qversion; do
3851  { { ac_try="$ac_compiler $ac_option >&5"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857$as_echo "$ac_try_echo"; } >&5
3858  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859  ac_status=$?
3860  if test -s conftest.err; then
3861    sed '10a\
3862... rest of stderr output deleted ...
3863         10q' conftest.err >conftest.er1
3864    cat conftest.er1 >&5
3865  fi
3866  rm -f conftest.er1 conftest.err
3867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868  test $ac_status = 0; }
3869done
3870
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3872$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3873if ${ac_cv_cxx_compiler_gnu+:} false; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h.  */
3878
3879int
3880main ()
3881{
3882#ifndef __GNUC__
3883       choke me
3884#endif
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890if ac_fn_cxx_try_compile "$LINENO"; then :
3891  ac_compiler_gnu=yes
3892else
3893  ac_compiler_gnu=no
3894fi
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3897
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3900$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3901if test $ac_compiler_gnu = yes; then
3902  GXX=yes
3903else
3904  GXX=
3905fi
3906ac_test_CXXFLAGS=${CXXFLAGS+set}
3907ac_save_CXXFLAGS=$CXXFLAGS
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3909$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3910if ${ac_cv_prog_cxx_g+:} false; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3914   ac_cxx_werror_flag=yes
3915   ac_cv_prog_cxx_g=no
3916   CXXFLAGS="-g"
3917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918/* end confdefs.h.  */
3919
3920int
3921main ()
3922{
3923
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928if ac_fn_cxx_try_compile "$LINENO"; then :
3929  ac_cv_prog_cxx_g=yes
3930else
3931  CXXFLAGS=""
3932      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934
3935int
3936main ()
3937{
3938
3939  ;
3940  return 0;
3941}
3942_ACEOF
3943if ac_fn_cxx_try_compile "$LINENO"; then :
3944
3945else
3946  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3947	 CXXFLAGS="-g"
3948	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950
3951int
3952main ()
3953{
3954
3955  ;
3956  return 0;
3957}
3958_ACEOF
3959if ac_fn_cxx_try_compile "$LINENO"; then :
3960  ac_cv_prog_cxx_g=yes
3961fi
3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963fi
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965fi
3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3970$as_echo "$ac_cv_prog_cxx_g" >&6; }
3971if test "$ac_test_CXXFLAGS" = set; then
3972  CXXFLAGS=$ac_save_CXXFLAGS
3973elif test $ac_cv_prog_cxx_g = yes; then
3974  if test "$GXX" = yes; then
3975    CXXFLAGS="-g -O2"
3976  else
3977    CXXFLAGS="-g"
3978  fi
3979else
3980  if test "$GXX" = yes; then
3981    CXXFLAGS="-O2"
3982  else
3983    CXXFLAGS=
3984  fi
3985fi
3986ac_ext=c
3987ac_cpp='$CPP $CPPFLAGS'
3988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
3992depcc="$CXX"  am_compiler_list=
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3995$as_echo_n "checking dependency style of $depcc... " >&6; }
3996if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4000  # We make a subdir and do the tests there.  Otherwise we can end up
4001  # making bogus files that we don't know about and never remove.  For
4002  # instance it was reported that on HP-UX the gcc test will end up
4003  # making a dummy file named `D' -- because `-MD' means `put the output
4004  # in D'.
4005  mkdir conftest.dir
4006  # Copy depcomp to subdir because otherwise we won't find it if we're
4007  # using a relative directory.
4008  cp "$am_depcomp" conftest.dir
4009  cd conftest.dir
4010  # We will build objects and dependencies in a subdirectory because
4011  # it helps to detect inapplicable dependency modes.  For instance
4012  # both Tru64's cc and ICC support -MD to output dependencies as a
4013  # side effect of compilation, but ICC will put the dependencies in
4014  # the current directory while Tru64 will put them in the object
4015  # directory.
4016  mkdir sub
4017
4018  am_cv_CXX_dependencies_compiler_type=none
4019  if test "$am_compiler_list" = ""; then
4020     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4021  fi
4022  am__universal=false
4023  case " $depcc " in #(
4024     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4025     esac
4026
4027  for depmode in $am_compiler_list; do
4028    # Setup a source with many dependencies, because some compilers
4029    # like to wrap large dependency lists on column 80 (with \), and
4030    # we should not choose a depcomp mode which is confused by this.
4031    #
4032    # We need to recreate these files for each test, as the compiler may
4033    # overwrite some of them when testing with obscure command lines.
4034    # This happens at least with the AIX C compiler.
4035    : > sub/conftest.c
4036    for i in 1 2 3 4 5 6; do
4037      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4038      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4039      # Solaris 8's {/usr,}/bin/sh.
4040      touch sub/conftst$i.h
4041    done
4042    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4043
4044    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4045    # mode.  It turns out that the SunPro C++ compiler does not properly
4046    # handle `-M -o', and we need to detect this.  Also, some Intel
4047    # versions had trouble with output in subdirs
4048    am__obj=sub/conftest.${OBJEXT-o}
4049    am__minus_obj="-o $am__obj"
4050    case $depmode in
4051    gcc)
4052      # This depmode causes a compiler race in universal mode.
4053      test "$am__universal" = false || continue
4054      ;;
4055    nosideeffect)
4056      # after this tag, mechanisms are not by side-effect, so they'll
4057      # only be used when explicitly requested
4058      if test "x$enable_dependency_tracking" = xyes; then
4059	continue
4060      else
4061	break
4062      fi
4063      ;;
4064    msvisualcpp | msvcmsys)
4065      # This compiler won't grok `-c -o', but also, the minuso test has
4066      # not run yet.  These depmodes are late enough in the game, and
4067      # so weak that their functioning should not be impacted.
4068      am__obj=conftest.${OBJEXT-o}
4069      am__minus_obj=
4070      ;;
4071    none) break ;;
4072    esac
4073    if depmode=$depmode \
4074       source=sub/conftest.c object=$am__obj \
4075       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4076       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4077         >/dev/null 2>conftest.err &&
4078       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4079       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4080       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4081       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4082      # icc doesn't choke on unknown options, it will just issue warnings
4083      # or remarks (even with -Werror).  So we grep stderr for any message
4084      # that says an option was ignored or not supported.
4085      # When given -MP, icc 7.0 and 7.1 complain thusly:
4086      #   icc: Command line warning: ignoring option '-M'; no argument required
4087      # The diagnosis changed in icc 8.0:
4088      #   icc: Command line remark: option '-MP' not supported
4089      if (grep 'ignoring option' conftest.err ||
4090          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4091        am_cv_CXX_dependencies_compiler_type=$depmode
4092        break
4093      fi
4094    fi
4095  done
4096
4097  cd ..
4098  rm -rf conftest.dir
4099else
4100  am_cv_CXX_dependencies_compiler_type=none
4101fi
4102
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4105$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4106CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4107
4108 if
4109  test "x$enable_dependency_tracking" != xno \
4110  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4111  am__fastdepCXX_TRUE=
4112  am__fastdepCXX_FALSE='#'
4113else
4114  am__fastdepCXX_TRUE='#'
4115  am__fastdepCXX_FALSE=
4116fi
4117
4118
4119ac_ext=c
4120ac_cpp='$CPP $CPPFLAGS'
4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4125$as_echo_n "checking how to run the C preprocessor... " >&6; }
4126# On Suns, sometimes $CPP names a directory.
4127if test -n "$CPP" && test -d "$CPP"; then
4128  CPP=
4129fi
4130if test -z "$CPP"; then
4131  if ${ac_cv_prog_CPP+:} false; then :
4132  $as_echo_n "(cached) " >&6
4133else
4134      # Double quotes because CPP needs to be expanded
4135    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4136    do
4137      ac_preproc_ok=false
4138for ac_c_preproc_warn_flag in '' yes
4139do
4140  # Use a header file that comes with gcc, so configuring glibc
4141  # with a fresh cross-compiler works.
4142  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4143  # <limits.h> exists even on freestanding compilers.
4144  # On the NeXT, cc -E runs the code through the compiler's parser,
4145  # not just through cpp. "Syntax error" is here to catch this case.
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148@%:@ifdef __STDC__
4149@%:@ include <limits.h>
4150@%:@else
4151@%:@ include <assert.h>
4152@%:@endif
4153		     Syntax error
4154_ACEOF
4155if ac_fn_c_try_cpp "$LINENO"; then :
4156
4157else
4158  # Broken: fails on valid input.
4159continue
4160fi
4161rm -f conftest.err conftest.i conftest.$ac_ext
4162
4163  # OK, works on sane cases.  Now check whether nonexistent headers
4164  # can be detected and how.
4165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167@%:@include <ac_nonexistent.h>
4168_ACEOF
4169if ac_fn_c_try_cpp "$LINENO"; then :
4170  # Broken: success on invalid input.
4171continue
4172else
4173  # Passes both tests.
4174ac_preproc_ok=:
4175break
4176fi
4177rm -f conftest.err conftest.i conftest.$ac_ext
4178
4179done
4180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4181rm -f conftest.i conftest.err conftest.$ac_ext
4182if $ac_preproc_ok; then :
4183  break
4184fi
4185
4186    done
4187    ac_cv_prog_CPP=$CPP
4188
4189fi
4190  CPP=$ac_cv_prog_CPP
4191else
4192  ac_cv_prog_CPP=$CPP
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4195$as_echo "$CPP" >&6; }
4196ac_preproc_ok=false
4197for ac_c_preproc_warn_flag in '' yes
4198do
4199  # Use a header file that comes with gcc, so configuring glibc
4200  # with a fresh cross-compiler works.
4201  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4202  # <limits.h> exists even on freestanding compilers.
4203  # On the NeXT, cc -E runs the code through the compiler's parser,
4204  # not just through cpp. "Syntax error" is here to catch this case.
4205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206/* end confdefs.h.  */
4207@%:@ifdef __STDC__
4208@%:@ include <limits.h>
4209@%:@else
4210@%:@ include <assert.h>
4211@%:@endif
4212		     Syntax error
4213_ACEOF
4214if ac_fn_c_try_cpp "$LINENO"; then :
4215
4216else
4217  # Broken: fails on valid input.
4218continue
4219fi
4220rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222  # OK, works on sane cases.  Now check whether nonexistent headers
4223  # can be detected and how.
4224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226@%:@include <ac_nonexistent.h>
4227_ACEOF
4228if ac_fn_c_try_cpp "$LINENO"; then :
4229  # Broken: success on invalid input.
4230continue
4231else
4232  # Passes both tests.
4233ac_preproc_ok=:
4234break
4235fi
4236rm -f conftest.err conftest.i conftest.$ac_ext
4237
4238done
4239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4240rm -f conftest.i conftest.err conftest.$ac_ext
4241if $ac_preproc_ok; then :
4242
4243else
4244  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4246as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4247See \`config.log' for more details" "$LINENO" 5; }
4248fi
4249
4250ac_ext=c
4251ac_cpp='$CPP $CPPFLAGS'
4252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255
4256case `pwd` in
4257  *\ * | *\	*)
4258    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4259$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4260esac
4261
4262
4263
4264macro_version='2.4'
4265macro_revision='1.3293'
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279ltmain="$ac_aux_dir/ltmain.sh"
4280
4281# Make sure we can run config.sub.
4282$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4283  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4284
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4286$as_echo_n "checking build system type... " >&6; }
4287if ${ac_cv_build+:} false; then :
4288  $as_echo_n "(cached) " >&6
4289else
4290  ac_build_alias=$build_alias
4291test "x$ac_build_alias" = x &&
4292  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4293test "x$ac_build_alias" = x &&
4294  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4295ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4296  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4297
4298fi
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4300$as_echo "$ac_cv_build" >&6; }
4301case $ac_cv_build in
4302*-*-*) ;;
4303*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4304esac
4305build=$ac_cv_build
4306ac_save_IFS=$IFS; IFS='-'
4307set x $ac_cv_build
4308shift
4309build_cpu=$1
4310build_vendor=$2
4311shift; shift
4312# Remember, the first character of IFS is used to create $*,
4313# except with old shells:
4314build_os=$*
4315IFS=$ac_save_IFS
4316case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4317
4318
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4320$as_echo_n "checking host system type... " >&6; }
4321if ${ac_cv_host+:} false; then :
4322  $as_echo_n "(cached) " >&6
4323else
4324  if test "x$host_alias" = x; then
4325  ac_cv_host=$ac_cv_build
4326else
4327  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4328    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4329fi
4330
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4333$as_echo "$ac_cv_host" >&6; }
4334case $ac_cv_host in
4335*-*-*) ;;
4336*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4337esac
4338host=$ac_cv_host
4339ac_save_IFS=$IFS; IFS='-'
4340set x $ac_cv_host
4341shift
4342host_cpu=$1
4343host_vendor=$2
4344shift; shift
4345# Remember, the first character of IFS is used to create $*,
4346# except with old shells:
4347host_os=$*
4348IFS=$ac_save_IFS
4349case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4350
4351
4352# Backslashify metacharacters that are still active within
4353# double-quoted strings.
4354sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4355
4356# Same as above, but do not quote variable references.
4357double_quote_subst='s/\(["`\\]\)/\\\1/g'
4358
4359# Sed substitution to delay expansion of an escaped shell variable in a
4360# double_quote_subst'ed string.
4361delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4362
4363# Sed substitution to delay expansion of an escaped single quote.
4364delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4365
4366# Sed substitution to avoid accidental globbing in evaled expressions
4367no_glob_subst='s/\*/\\\*/g'
4368
4369ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4370ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4371ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4372
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4374$as_echo_n "checking how to print strings... " >&6; }
4375# Test print first, because it will be a builtin if present.
4376if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4377   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4378  ECHO='print -r --'
4379elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4380  ECHO='printf %s\n'
4381else
4382  # Use this function as a fallback that always works.
4383  func_fallback_echo ()
4384  {
4385    eval 'cat <<_LTECHO_EOF
4386$1
4387_LTECHO_EOF'
4388  }
4389  ECHO='func_fallback_echo'
4390fi
4391
4392# func_echo_all arg...
4393# Invoke $ECHO with all args, space-separated.
4394func_echo_all ()
4395{
4396    $ECHO ""
4397}
4398
4399case "$ECHO" in
4400  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4401$as_echo "printf" >&6; } ;;
4402  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4403$as_echo "print -r" >&6; } ;;
4404  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4405$as_echo "cat" >&6; } ;;
4406esac
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4422$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4423if ${ac_cv_path_SED+:} false; then :
4424  $as_echo_n "(cached) " >&6
4425else
4426            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4427     for ac_i in 1 2 3 4 5 6 7; do
4428       ac_script="$ac_script$as_nl$ac_script"
4429     done
4430     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4431     { ac_script=; unset ac_script;}
4432     if test -z "$SED"; then
4433  ac_path_SED_found=false
4434  # Loop through the user's path and test for each of PROGNAME-LIST
4435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436for as_dir in $PATH
4437do
4438  IFS=$as_save_IFS
4439  test -z "$as_dir" && as_dir=.
4440    for ac_prog in sed gsed; do
4441    for ac_exec_ext in '' $ac_executable_extensions; do
4442      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4443      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4444# Check for GNU ac_path_SED and select it if it is found.
4445  # Check for GNU $ac_path_SED
4446case `"$ac_path_SED" --version 2>&1` in
4447*GNU*)
4448  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4449*)
4450  ac_count=0
4451  $as_echo_n 0123456789 >"conftest.in"
4452  while :
4453  do
4454    cat "conftest.in" "conftest.in" >"conftest.tmp"
4455    mv "conftest.tmp" "conftest.in"
4456    cp "conftest.in" "conftest.nl"
4457    $as_echo '' >> "conftest.nl"
4458    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4459    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4460    as_fn_arith $ac_count + 1 && ac_count=$as_val
4461    if test $ac_count -gt ${ac_path_SED_max-0}; then
4462      # Best one so far, save it but keep looking for a better one
4463      ac_cv_path_SED="$ac_path_SED"
4464      ac_path_SED_max=$ac_count
4465    fi
4466    # 10*(2^10) chars as input seems more than enough
4467    test $ac_count -gt 10 && break
4468  done
4469  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4470esac
4471
4472      $ac_path_SED_found && break 3
4473    done
4474  done
4475  done
4476IFS=$as_save_IFS
4477  if test -z "$ac_cv_path_SED"; then
4478    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4479  fi
4480else
4481  ac_cv_path_SED=$SED
4482fi
4483
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4486$as_echo "$ac_cv_path_SED" >&6; }
4487 SED="$ac_cv_path_SED"
4488  rm -f conftest.sed
4489
4490test -z "$SED" && SED=sed
4491Xsed="$SED -e 1s/^X//"
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4504$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4505if ${ac_cv_path_GREP+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  if test -z "$GREP"; then
4509  ac_path_GREP_found=false
4510  # Loop through the user's path and test for each of PROGNAME-LIST
4511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513do
4514  IFS=$as_save_IFS
4515  test -z "$as_dir" && as_dir=.
4516    for ac_prog in grep ggrep; do
4517    for ac_exec_ext in '' $ac_executable_extensions; do
4518      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4519      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4520# Check for GNU ac_path_GREP and select it if it is found.
4521  # Check for GNU $ac_path_GREP
4522case `"$ac_path_GREP" --version 2>&1` in
4523*GNU*)
4524  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4525*)
4526  ac_count=0
4527  $as_echo_n 0123456789 >"conftest.in"
4528  while :
4529  do
4530    cat "conftest.in" "conftest.in" >"conftest.tmp"
4531    mv "conftest.tmp" "conftest.in"
4532    cp "conftest.in" "conftest.nl"
4533    $as_echo 'GREP' >> "conftest.nl"
4534    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4536    as_fn_arith $ac_count + 1 && ac_count=$as_val
4537    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4538      # Best one so far, save it but keep looking for a better one
4539      ac_cv_path_GREP="$ac_path_GREP"
4540      ac_path_GREP_max=$ac_count
4541    fi
4542    # 10*(2^10) chars as input seems more than enough
4543    test $ac_count -gt 10 && break
4544  done
4545  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4546esac
4547
4548      $ac_path_GREP_found && break 3
4549    done
4550  done
4551  done
4552IFS=$as_save_IFS
4553  if test -z "$ac_cv_path_GREP"; then
4554    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4555  fi
4556else
4557  ac_cv_path_GREP=$GREP
4558fi
4559
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4562$as_echo "$ac_cv_path_GREP" >&6; }
4563 GREP="$ac_cv_path_GREP"
4564
4565
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4567$as_echo_n "checking for egrep... " >&6; }
4568if ${ac_cv_path_EGREP+:} false; then :
4569  $as_echo_n "(cached) " >&6
4570else
4571  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572   then ac_cv_path_EGREP="$GREP -E"
4573   else
4574     if test -z "$EGREP"; then
4575  ac_path_EGREP_found=false
4576  # Loop through the user's path and test for each of PROGNAME-LIST
4577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579do
4580  IFS=$as_save_IFS
4581  test -z "$as_dir" && as_dir=.
4582    for ac_prog in egrep; do
4583    for ac_exec_ext in '' $ac_executable_extensions; do
4584      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4585      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4586# Check for GNU ac_path_EGREP and select it if it is found.
4587  # Check for GNU $ac_path_EGREP
4588case `"$ac_path_EGREP" --version 2>&1` in
4589*GNU*)
4590  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4591*)
4592  ac_count=0
4593  $as_echo_n 0123456789 >"conftest.in"
4594  while :
4595  do
4596    cat "conftest.in" "conftest.in" >"conftest.tmp"
4597    mv "conftest.tmp" "conftest.in"
4598    cp "conftest.in" "conftest.nl"
4599    $as_echo 'EGREP' >> "conftest.nl"
4600    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602    as_fn_arith $ac_count + 1 && ac_count=$as_val
4603    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4604      # Best one so far, save it but keep looking for a better one
4605      ac_cv_path_EGREP="$ac_path_EGREP"
4606      ac_path_EGREP_max=$ac_count
4607    fi
4608    # 10*(2^10) chars as input seems more than enough
4609    test $ac_count -gt 10 && break
4610  done
4611  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612esac
4613
4614      $ac_path_EGREP_found && break 3
4615    done
4616  done
4617  done
4618IFS=$as_save_IFS
4619  if test -z "$ac_cv_path_EGREP"; then
4620    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4621  fi
4622else
4623  ac_cv_path_EGREP=$EGREP
4624fi
4625
4626   fi
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4629$as_echo "$ac_cv_path_EGREP" >&6; }
4630 EGREP="$ac_cv_path_EGREP"
4631
4632
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4634$as_echo_n "checking for fgrep... " >&6; }
4635if ${ac_cv_path_FGREP+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4639   then ac_cv_path_FGREP="$GREP -F"
4640   else
4641     if test -z "$FGREP"; then
4642  ac_path_FGREP_found=false
4643  # Loop through the user's path and test for each of PROGNAME-LIST
4644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646do
4647  IFS=$as_save_IFS
4648  test -z "$as_dir" && as_dir=.
4649    for ac_prog in fgrep; do
4650    for ac_exec_ext in '' $ac_executable_extensions; do
4651      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4652      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4653# Check for GNU ac_path_FGREP and select it if it is found.
4654  # Check for GNU $ac_path_FGREP
4655case `"$ac_path_FGREP" --version 2>&1` in
4656*GNU*)
4657  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4658*)
4659  ac_count=0
4660  $as_echo_n 0123456789 >"conftest.in"
4661  while :
4662  do
4663    cat "conftest.in" "conftest.in" >"conftest.tmp"
4664    mv "conftest.tmp" "conftest.in"
4665    cp "conftest.in" "conftest.nl"
4666    $as_echo 'FGREP' >> "conftest.nl"
4667    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669    as_fn_arith $ac_count + 1 && ac_count=$as_val
4670    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4671      # Best one so far, save it but keep looking for a better one
4672      ac_cv_path_FGREP="$ac_path_FGREP"
4673      ac_path_FGREP_max=$ac_count
4674    fi
4675    # 10*(2^10) chars as input seems more than enough
4676    test $ac_count -gt 10 && break
4677  done
4678  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679esac
4680
4681      $ac_path_FGREP_found && break 3
4682    done
4683  done
4684  done
4685IFS=$as_save_IFS
4686  if test -z "$ac_cv_path_FGREP"; then
4687    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4688  fi
4689else
4690  ac_cv_path_FGREP=$FGREP
4691fi
4692
4693   fi
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4696$as_echo "$ac_cv_path_FGREP" >&6; }
4697 FGREP="$ac_cv_path_FGREP"
4698
4699
4700test -z "$GREP" && GREP=grep
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720@%:@ Check whether --with-gnu-ld was given.
4721if test "${with_gnu_ld+set}" = set; then :
4722  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4723else
4724  with_gnu_ld=no
4725fi
4726
4727ac_prog=ld
4728if test "$GCC" = yes; then
4729  # Check if gcc -print-prog-name=ld gives a path.
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4731$as_echo_n "checking for ld used by $CC... " >&6; }
4732  case $host in
4733  *-*-mingw*)
4734    # gcc leaves a trailing carriage return which upsets mingw
4735    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4736  *)
4737    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4738  esac
4739  case $ac_prog in
4740    # Accept absolute paths.
4741    [\\/]* | ?:[\\/]*)
4742      re_direlt='/[^/][^/]*/\.\./'
4743      # Canonicalize the pathname of ld
4744      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4745      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4746	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4747      done
4748      test -z "$LD" && LD="$ac_prog"
4749      ;;
4750  "")
4751    # If it fails, then pretend we aren't using GCC.
4752    ac_prog=ld
4753    ;;
4754  *)
4755    # If it is relative, then search for the first ld in PATH.
4756    with_gnu_ld=unknown
4757    ;;
4758  esac
4759elif test "$with_gnu_ld" = yes; then
4760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4761$as_echo_n "checking for GNU ld... " >&6; }
4762else
4763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4764$as_echo_n "checking for non-GNU ld... " >&6; }
4765fi
4766if ${lt_cv_path_LD+:} false; then :
4767  $as_echo_n "(cached) " >&6
4768else
4769  if test -z "$LD"; then
4770  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4771  for ac_dir in $PATH; do
4772    IFS="$lt_save_ifs"
4773    test -z "$ac_dir" && ac_dir=.
4774    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4775      lt_cv_path_LD="$ac_dir/$ac_prog"
4776      # Check to see if the program is GNU ld.  I'd rather use --version,
4777      # but apparently some variants of GNU ld only accept -v.
4778      # Break only if it was the GNU/non-GNU ld that we prefer.
4779      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4780      *GNU* | *'with BFD'*)
4781	test "$with_gnu_ld" != no && break
4782	;;
4783      *)
4784	test "$with_gnu_ld" != yes && break
4785	;;
4786      esac
4787    fi
4788  done
4789  IFS="$lt_save_ifs"
4790else
4791  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4792fi
4793fi
4794
4795LD="$lt_cv_path_LD"
4796if test -n "$LD"; then
4797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4798$as_echo "$LD" >&6; }
4799else
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
4802fi
4803test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4805$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4806if ${lt_cv_prog_gnu_ld+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4810case `$LD -v 2>&1 </dev/null` in
4811*GNU* | *'with BFD'*)
4812  lt_cv_prog_gnu_ld=yes
4813  ;;
4814*)
4815  lt_cv_prog_gnu_ld=no
4816  ;;
4817esac
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4820$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4821with_gnu_ld=$lt_cv_prog_gnu_ld
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4832$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4833if ${lt_cv_path_NM+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  if test -n "$NM"; then
4837  # Let the user override the test.
4838  lt_cv_path_NM="$NM"
4839else
4840  lt_nm_to_check="${ac_tool_prefix}nm"
4841  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4842    lt_nm_to_check="$lt_nm_to_check nm"
4843  fi
4844  for lt_tmp_nm in $lt_nm_to_check; do
4845    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4846    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4847      IFS="$lt_save_ifs"
4848      test -z "$ac_dir" && ac_dir=.
4849      tmp_nm="$ac_dir/$lt_tmp_nm"
4850      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4851	# Check to see if the nm accepts a BSD-compat flag.
4852	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4853	#   nm: unknown option "B" ignored
4854	# Tru64's nm complains that /dev/null is an invalid object file
4855	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4856	*/dev/null* | *'Invalid file or object type'*)
4857	  lt_cv_path_NM="$tmp_nm -B"
4858	  break
4859	  ;;
4860	*)
4861	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4862	  */dev/null*)
4863	    lt_cv_path_NM="$tmp_nm -p"
4864	    break
4865	    ;;
4866	  *)
4867	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4868	    continue # so that we can try to find one that supports BSD flags
4869	    ;;
4870	  esac
4871	  ;;
4872	esac
4873      fi
4874    done
4875    IFS="$lt_save_ifs"
4876  done
4877  : ${lt_cv_path_NM=no}
4878fi
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4881$as_echo "$lt_cv_path_NM" >&6; }
4882if test "$lt_cv_path_NM" != "no"; then
4883  NM="$lt_cv_path_NM"
4884else
4885  # Didn't find any BSD compatible name lister, look for dumpbin.
4886  if test -n "$DUMPBIN"; then :
4887    # Let the user override the test.
4888  else
4889    if test -n "$ac_tool_prefix"; then
4890  for ac_prog in dumpbin "link -dump"
4891  do
4892    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if ${ac_cv_prog_DUMPBIN+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  if test -n "$DUMPBIN"; then
4900  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905  IFS=$as_save_IFS
4906  test -z "$as_dir" && as_dir=.
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911    break 2
4912  fi
4913done
4914  done
4915IFS=$as_save_IFS
4916
4917fi
4918fi
4919DUMPBIN=$ac_cv_prog_DUMPBIN
4920if test -n "$DUMPBIN"; then
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4922$as_echo "$DUMPBIN" >&6; }
4923else
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928
4929    test -n "$DUMPBIN" && break
4930  done
4931fi
4932if test -z "$DUMPBIN"; then
4933  ac_ct_DUMPBIN=$DUMPBIN
4934  for ac_prog in dumpbin "link -dump"
4935do
4936  # Extract the first word of "$ac_prog", so it can be a program name with args.
4937set dummy $ac_prog; ac_word=$2
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939$as_echo_n "checking for $ac_word... " >&6; }
4940if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943  if test -n "$ac_ct_DUMPBIN"; then
4944  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4945else
4946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH
4948do
4949  IFS=$as_save_IFS
4950  test -z "$as_dir" && as_dir=.
4951    for ac_exec_ext in '' $ac_executable_extensions; do
4952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955    break 2
4956  fi
4957done
4958  done
4959IFS=$as_save_IFS
4960
4961fi
4962fi
4963ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4964if test -n "$ac_ct_DUMPBIN"; then
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4966$as_echo "$ac_ct_DUMPBIN" >&6; }
4967else
4968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969$as_echo "no" >&6; }
4970fi
4971
4972
4973  test -n "$ac_ct_DUMPBIN" && break
4974done
4975
4976  if test "x$ac_ct_DUMPBIN" = x; then
4977    DUMPBIN=":"
4978  else
4979    case $cross_compiling:$ac_tool_warned in
4980yes:)
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4983ac_tool_warned=yes ;;
4984esac
4985    DUMPBIN=$ac_ct_DUMPBIN
4986  fi
4987fi
4988
4989    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4990    *COFF*)
4991      DUMPBIN="$DUMPBIN -symbols"
4992      ;;
4993    *)
4994      DUMPBIN=:
4995      ;;
4996    esac
4997  fi
4998
4999  if test "$DUMPBIN" != ":"; then
5000    NM="$DUMPBIN"
5001  fi
5002fi
5003test -z "$NM" && NM=nm
5004
5005
5006
5007
5008
5009
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5011$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5012if ${lt_cv_nm_interface+:} false; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015  lt_cv_nm_interface="BSD nm"
5016  echo "int some_variable = 0;" > conftest.$ac_ext
5017  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5018  (eval "$ac_compile" 2>conftest.err)
5019  cat conftest.err >&5
5020  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5021  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5022  cat conftest.err >&5
5023  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5024  cat conftest.out >&5
5025  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5026    lt_cv_nm_interface="MS dumpbin"
5027  fi
5028  rm -f conftest*
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5031$as_echo "$lt_cv_nm_interface" >&6; }
5032
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5034$as_echo_n "checking whether ln -s works... " >&6; }
5035LN_S=$as_ln_s
5036if test "$LN_S" = "ln -s"; then
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038$as_echo "yes" >&6; }
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5041$as_echo "no, using $LN_S" >&6; }
5042fi
5043
5044# find the maximum length of command line arguments
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5046$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5047if ${lt_cv_sys_max_cmd_len+:} false; then :
5048  $as_echo_n "(cached) " >&6
5049else
5050    i=0
5051  teststring="ABCD"
5052
5053  case $build_os in
5054  msdosdjgpp*)
5055    # On DJGPP, this test can blow up pretty badly due to problems in libc
5056    # (any single argument exceeding 2000 bytes causes a buffer overrun
5057    # during glob expansion).  Even if it were fixed, the result of this
5058    # check would be larger than it should be.
5059    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5060    ;;
5061
5062  gnu*)
5063    # Under GNU Hurd, this test is not required because there is
5064    # no limit to the length of command line arguments.
5065    # Libtool will interpret -1 as no limit whatsoever
5066    lt_cv_sys_max_cmd_len=-1;
5067    ;;
5068
5069  cygwin* | mingw* | cegcc*)
5070    # On Win9x/ME, this test blows up -- it succeeds, but takes
5071    # about 5 minutes as the teststring grows exponentially.
5072    # Worse, since 9x/ME are not pre-emptively multitasking,
5073    # you end up with a "frozen" computer, even though with patience
5074    # the test eventually succeeds (with a max line length of 256k).
5075    # Instead, let's just punt: use the minimum linelength reported by
5076    # all of the supported platforms: 8192 (on NT/2K/XP).
5077    lt_cv_sys_max_cmd_len=8192;
5078    ;;
5079
5080  mint*)
5081    # On MiNT this can take a long time and run out of memory.
5082    lt_cv_sys_max_cmd_len=8192;
5083    ;;
5084
5085  amigaos*)
5086    # On AmigaOS with pdksh, this test takes hours, literally.
5087    # So we just punt and use a minimum line length of 8192.
5088    lt_cv_sys_max_cmd_len=8192;
5089    ;;
5090
5091  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5092    # This has been around since 386BSD, at least.  Likely further.
5093    if test -x /sbin/sysctl; then
5094      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5095    elif test -x /usr/sbin/sysctl; then
5096      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5097    else
5098      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5099    fi
5100    # And add a safety zone
5101    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5102    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5103    ;;
5104
5105  interix*)
5106    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5107    lt_cv_sys_max_cmd_len=196608
5108    ;;
5109
5110  osf*)
5111    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5112    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5113    # nice to cause kernel panics so lets avoid the loop below.
5114    # First set a reasonable default.
5115    lt_cv_sys_max_cmd_len=16384
5116    #
5117    if test -x /sbin/sysconfig; then
5118      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5119        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5120      esac
5121    fi
5122    ;;
5123  sco3.2v5*)
5124    lt_cv_sys_max_cmd_len=102400
5125    ;;
5126  sysv5* | sco5v6* | sysv4.2uw2*)
5127    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5128    if test -n "$kargmax"; then
5129      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5130    else
5131      lt_cv_sys_max_cmd_len=32768
5132    fi
5133    ;;
5134  *)
5135    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5136    if test -n "$lt_cv_sys_max_cmd_len"; then
5137      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5138      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5139    else
5140      # Make teststring a little bigger before we do anything with it.
5141      # a 1K string should be a reasonable start.
5142      for i in 1 2 3 4 5 6 7 8 ; do
5143        teststring=$teststring$teststring
5144      done
5145      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5146      # If test is not a shell built-in, we'll probably end up computing a
5147      # maximum length that is only half of the actual maximum length, but
5148      # we can't tell.
5149      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5150	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5151	      test $i != 17 # 1/2 MB should be enough
5152      do
5153        i=`expr $i + 1`
5154        teststring=$teststring$teststring
5155      done
5156      # Only check the string length outside the loop.
5157      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5158      teststring=
5159      # Add a significant safety factor because C++ compilers can tack on
5160      # massive amounts of additional arguments before passing them to the
5161      # linker.  It appears as though 1/2 is a usable value.
5162      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5163    fi
5164    ;;
5165  esac
5166
5167fi
5168
5169if test -n $lt_cv_sys_max_cmd_len ; then
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5171$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5172else
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5174$as_echo "none" >&6; }
5175fi
5176max_cmd_len=$lt_cv_sys_max_cmd_len
5177
5178
5179
5180
5181
5182
5183: ${CP="cp -f"}
5184: ${MV="mv -f"}
5185: ${RM="rm -f"}
5186
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5188$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5189# Try some XSI features
5190xsi_shell=no
5191( _lt_dummy="a/b/c"
5192  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5193      = c,a/b,b/c, \
5194    && eval 'test $(( 1 + 1 )) -eq 2 \
5195    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5196  && xsi_shell=yes
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5198$as_echo "$xsi_shell" >&6; }
5199
5200
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5202$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5203lt_shell_append=no
5204( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5205    >/dev/null 2>&1 \
5206  && lt_shell_append=yes
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5208$as_echo "$lt_shell_append" >&6; }
5209
5210
5211if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5212  lt_unset=unset
5213else
5214  lt_unset=false
5215fi
5216
5217
5218
5219
5220
5221# test EBCDIC or ASCII
5222case `echo X|tr X '\101'` in
5223 A) # ASCII based system
5224    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5225  lt_SP2NL='tr \040 \012'
5226  lt_NL2SP='tr \015\012 \040\040'
5227  ;;
5228 *) # EBCDIC based system
5229  lt_SP2NL='tr \100 \n'
5230  lt_NL2SP='tr \r\n \100\100'
5231  ;;
5232esac
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5243$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5244if ${lt_cv_to_host_file_cmd+:} false; then :
5245  $as_echo_n "(cached) " >&6
5246else
5247  case $host in
5248  *-*-mingw* )
5249    case $build in
5250      *-*-mingw* ) # actually msys
5251        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5252        ;;
5253      *-*-cygwin* )
5254        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5255        ;;
5256      * ) # otherwise, assume *nix
5257        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5258        ;;
5259    esac
5260    ;;
5261  *-*-cygwin* )
5262    case $build in
5263      *-*-mingw* ) # actually msys
5264        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5265        ;;
5266      *-*-cygwin* )
5267        lt_cv_to_host_file_cmd=func_convert_file_noop
5268        ;;
5269      * ) # otherwise, assume *nix
5270        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5271        ;;
5272    esac
5273    ;;
5274  * ) # unhandled hosts (and "normal" native builds)
5275    lt_cv_to_host_file_cmd=func_convert_file_noop
5276    ;;
5277esac
5278
5279fi
5280
5281to_host_file_cmd=$lt_cv_to_host_file_cmd
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5283$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5284
5285
5286
5287
5288
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5290$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5291if ${lt_cv_to_tool_file_cmd+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  #assume ordinary cross tools, or native build.
5295lt_cv_to_tool_file_cmd=func_convert_file_noop
5296case $host in
5297  *-*-mingw* )
5298    case $build in
5299      *-*-mingw* ) # actually msys
5300        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5301        ;;
5302    esac
5303    ;;
5304esac
5305
5306fi
5307
5308to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5310$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5311
5312
5313
5314
5315
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5317$as_echo_n "checking for $LD option to reload object files... " >&6; }
5318if ${lt_cv_ld_reload_flag+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  lt_cv_ld_reload_flag='-r'
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5324$as_echo "$lt_cv_ld_reload_flag" >&6; }
5325reload_flag=$lt_cv_ld_reload_flag
5326case $reload_flag in
5327"" | " "*) ;;
5328*) reload_flag=" $reload_flag" ;;
5329esac
5330reload_cmds='$LD$reload_flag -o $output$reload_objs'
5331case $host_os in
5332  cygwin* | mingw* | pw32* | cegcc*)
5333    if test "$GCC" != yes; then
5334      reload_cmds=false
5335    fi
5336    ;;
5337  darwin*)
5338    if test "$GCC" = yes; then
5339      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5340    else
5341      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5342    fi
5343    ;;
5344esac
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354if test -n "$ac_tool_prefix"; then
5355  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5356set dummy ${ac_tool_prefix}objdump; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if ${ac_cv_prog_OBJDUMP+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$OBJDUMP"; then
5363  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377  done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382OBJDUMP=$ac_cv_prog_OBJDUMP
5383if test -n "$OBJDUMP"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5385$as_echo "$OBJDUMP" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392fi
5393if test -z "$ac_cv_prog_OBJDUMP"; then
5394  ac_ct_OBJDUMP=$OBJDUMP
5395  # Extract the first word of "objdump", so it can be a program name with args.
5396set dummy objdump; ac_word=$2
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  if test -n "$ac_ct_OBJDUMP"; then
5403  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408  IFS=$as_save_IFS
5409  test -z "$as_dir" && as_dir=.
5410    for ac_exec_ext in '' $ac_executable_extensions; do
5411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414    break 2
5415  fi
5416done
5417  done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5423if test -n "$ac_ct_OBJDUMP"; then
5424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5425$as_echo "$ac_ct_OBJDUMP" >&6; }
5426else
5427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431  if test "x$ac_ct_OBJDUMP" = x; then
5432    OBJDUMP="false"
5433  else
5434    case $cross_compiling:$ac_tool_warned in
5435yes:)
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438ac_tool_warned=yes ;;
5439esac
5440    OBJDUMP=$ac_ct_OBJDUMP
5441  fi
5442else
5443  OBJDUMP="$ac_cv_prog_OBJDUMP"
5444fi
5445
5446test -z "$OBJDUMP" && OBJDUMP=objdump
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5457$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5458if ${lt_cv_deplibs_check_method+:} false; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  lt_cv_file_magic_cmd='$MAGIC_CMD'
5462lt_cv_file_magic_test_file=
5463lt_cv_deplibs_check_method='unknown'
5464# Need to set the preceding variable on all platforms that support
5465# interlibrary dependencies.
5466# 'none' -- dependencies not supported.
5467# `unknown' -- same as none, but documents that we really don't know.
5468# 'pass_all' -- all dependencies passed with no checks.
5469# 'test_compile' -- check by making test program.
5470# 'file_magic [[regex]]' -- check by looking for files in library path
5471# which responds to the $file_magic_cmd with a given extended regex.
5472# If you have `file' or equivalent on your system and you're not sure
5473# whether `pass_all' will *always* work, you probably want this one.
5474
5475case $host_os in
5476aix[4-9]*)
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479
5480beos*)
5481  lt_cv_deplibs_check_method=pass_all
5482  ;;
5483
5484bsdi[45]*)
5485  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5486  lt_cv_file_magic_cmd='/usr/bin/file -L'
5487  lt_cv_file_magic_test_file=/shlib/libc.so
5488  ;;
5489
5490cygwin*)
5491  # func_win32_libid is a shell function defined in ltmain.sh
5492  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493  lt_cv_file_magic_cmd='func_win32_libid'
5494  ;;
5495
5496mingw* | pw32*)
5497  # Base MSYS/MinGW do not provide the 'file' command needed by
5498  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5499  # unless we find 'file', for example because we are cross-compiling.
5500  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5501  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5502    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5503    lt_cv_file_magic_cmd='func_win32_libid'
5504  else
5505    # Keep this pattern in sync with the one in func_win32_libid.
5506    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5507    lt_cv_file_magic_cmd='$OBJDUMP -f'
5508  fi
5509  ;;
5510
5511cegcc*)
5512  # use the weaker test based on 'objdump'. See mingw*.
5513  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5514  lt_cv_file_magic_cmd='$OBJDUMP -f'
5515  ;;
5516
5517darwin* | rhapsody*)
5518  lt_cv_deplibs_check_method=pass_all
5519  ;;
5520
5521freebsd* | dragonfly*)
5522  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5523    case $host_cpu in
5524    i*86 )
5525      # Not sure whether the presence of OpenBSD here was a mistake.
5526      # Let's accept both of them until this is cleared up.
5527      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5528      lt_cv_file_magic_cmd=/usr/bin/file
5529      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5530      ;;
5531    esac
5532  else
5533    lt_cv_deplibs_check_method=pass_all
5534  fi
5535  ;;
5536
5537gnu*)
5538  lt_cv_deplibs_check_method=pass_all
5539  ;;
5540
5541haiku*)
5542  lt_cv_deplibs_check_method=pass_all
5543  ;;
5544
5545hpux10.20* | hpux11*)
5546  lt_cv_file_magic_cmd=/usr/bin/file
5547  case $host_cpu in
5548  ia64*)
5549    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5550    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5551    ;;
5552  hppa*64*)
5553    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]'
5554    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5555    ;;
5556  *)
5557    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5558    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5559    ;;
5560  esac
5561  ;;
5562
5563interix[3-9]*)
5564  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5565  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5566  ;;
5567
5568irix5* | irix6* | nonstopux*)
5569  case $LD in
5570  *-32|*"-32 ") libmagic=32-bit;;
5571  *-n32|*"-n32 ") libmagic=N32;;
5572  *-64|*"-64 ") libmagic=64-bit;;
5573  *) libmagic=never-match;;
5574  esac
5575  lt_cv_deplibs_check_method=pass_all
5576  ;;
5577
5578# This must be Linux ELF.
5579linux* | k*bsd*-gnu | kopensolaris*-gnu)
5580  lt_cv_deplibs_check_method=pass_all
5581  ;;
5582
5583netbsd*)
5584  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5585    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5586  else
5587    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5588  fi
5589  ;;
5590
5591newos6*)
5592  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5593  lt_cv_file_magic_cmd=/usr/bin/file
5594  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5595  ;;
5596
5597*nto* | *qnx*)
5598  lt_cv_deplibs_check_method=pass_all
5599  ;;
5600
5601openbsd*)
5602  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5603    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5604  else
5605    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5606  fi
5607  ;;
5608
5609osf3* | osf4* | osf5*)
5610  lt_cv_deplibs_check_method=pass_all
5611  ;;
5612
5613rdos*)
5614  lt_cv_deplibs_check_method=pass_all
5615  ;;
5616
5617solaris*)
5618  lt_cv_deplibs_check_method=pass_all
5619  ;;
5620
5621sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5622  lt_cv_deplibs_check_method=pass_all
5623  ;;
5624
5625sysv4 | sysv4.3*)
5626  case $host_vendor in
5627  motorola)
5628    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]'
5629    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5630    ;;
5631  ncr)
5632    lt_cv_deplibs_check_method=pass_all
5633    ;;
5634  sequent)
5635    lt_cv_file_magic_cmd='/bin/file'
5636    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5637    ;;
5638  sni)
5639    lt_cv_file_magic_cmd='/bin/file'
5640    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5641    lt_cv_file_magic_test_file=/lib/libc.so
5642    ;;
5643  siemens)
5644    lt_cv_deplibs_check_method=pass_all
5645    ;;
5646  pc)
5647    lt_cv_deplibs_check_method=pass_all
5648    ;;
5649  esac
5650  ;;
5651
5652tpf*)
5653  lt_cv_deplibs_check_method=pass_all
5654  ;;
5655esac
5656
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5659$as_echo "$lt_cv_deplibs_check_method" >&6; }
5660
5661file_magic_glob=
5662want_nocaseglob=no
5663if test "$build" = "$host"; then
5664  case $host_os in
5665  mingw* | pw32*)
5666    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5667      want_nocaseglob=yes
5668    else
5669      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5670    fi
5671    ;;
5672  esac
5673fi
5674
5675file_magic_cmd=$lt_cv_file_magic_cmd
5676deplibs_check_method=$lt_cv_deplibs_check_method
5677test -z "$deplibs_check_method" && deplibs_check_method=unknown
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700if test -n "$ac_tool_prefix"; then
5701  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5702set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704$as_echo_n "checking for $ac_word... " >&6; }
5705if ${ac_cv_prog_DLLTOOL+:} false; then :
5706  $as_echo_n "(cached) " >&6
5707else
5708  if test -n "$DLLTOOL"; then
5709  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5710else
5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714  IFS=$as_save_IFS
5715  test -z "$as_dir" && as_dir=.
5716    for ac_exec_ext in '' $ac_executable_extensions; do
5717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720    break 2
5721  fi
5722done
5723  done
5724IFS=$as_save_IFS
5725
5726fi
5727fi
5728DLLTOOL=$ac_cv_prog_DLLTOOL
5729if test -n "$DLLTOOL"; then
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5731$as_echo "$DLLTOOL" >&6; }
5732else
5733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
5735fi
5736
5737
5738fi
5739if test -z "$ac_cv_prog_DLLTOOL"; then
5740  ac_ct_DLLTOOL=$DLLTOOL
5741  # Extract the first word of "dlltool", so it can be a program name with args.
5742set dummy dlltool; ac_word=$2
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
5745if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5746  $as_echo_n "(cached) " >&6
5747else
5748  if test -n "$ac_ct_DLLTOOL"; then
5749  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5750else
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754  IFS=$as_save_IFS
5755  test -z "$as_dir" && as_dir=.
5756    for ac_exec_ext in '' $ac_executable_extensions; do
5757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760    break 2
5761  fi
5762done
5763  done
5764IFS=$as_save_IFS
5765
5766fi
5767fi
5768ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5769if test -n "$ac_ct_DLLTOOL"; then
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5771$as_echo "$ac_ct_DLLTOOL" >&6; }
5772else
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
5776
5777  if test "x$ac_ct_DLLTOOL" = x; then
5778    DLLTOOL="false"
5779  else
5780    case $cross_compiling:$ac_tool_warned in
5781yes:)
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784ac_tool_warned=yes ;;
5785esac
5786    DLLTOOL=$ac_ct_DLLTOOL
5787  fi
5788else
5789  DLLTOOL="$ac_cv_prog_DLLTOOL"
5790fi
5791
5792test -z "$DLLTOOL" && DLLTOOL=dlltool
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5804$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5805if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808  lt_cv_sharedlib_from_linklib_cmd='unknown'
5809
5810case $host_os in
5811cygwin* | mingw* | pw32* | cegcc*)
5812  # two different shell functions defined in ltmain.sh
5813  # decide which to use based on capabilities of $DLLTOOL
5814  case `$DLLTOOL --help 2>&1` in
5815  *--identify-strict*)
5816    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5817    ;;
5818  *)
5819    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5820    ;;
5821  esac
5822  ;;
5823*)
5824  # fallback: assume linklib IS sharedlib
5825  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5826  ;;
5827esac
5828
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5831$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5832sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5833test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5834
5835
5836
5837
5838
5839
5840
5841
5842if test -n "$ac_tool_prefix"; then
5843  for ac_prog in ar
5844  do
5845    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848$as_echo_n "checking for $ac_word... " >&6; }
5849if ${ac_cv_prog_AR+:} false; then :
5850  $as_echo_n "(cached) " >&6
5851else
5852  if test -n "$AR"; then
5853  ac_cv_prog_AR="$AR" # Let the user override the test.
5854else
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858  IFS=$as_save_IFS
5859  test -z "$as_dir" && as_dir=.
5860    for ac_exec_ext in '' $ac_executable_extensions; do
5861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864    break 2
5865  fi
5866done
5867  done
5868IFS=$as_save_IFS
5869
5870fi
5871fi
5872AR=$ac_cv_prog_AR
5873if test -n "$AR"; then
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5875$as_echo "$AR" >&6; }
5876else
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878$as_echo "no" >&6; }
5879fi
5880
5881
5882    test -n "$AR" && break
5883  done
5884fi
5885if test -z "$AR"; then
5886  ac_ct_AR=$AR
5887  for ac_prog in ar
5888do
5889  # Extract the first word of "$ac_prog", so it can be a program name with args.
5890set dummy $ac_prog; ac_word=$2
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892$as_echo_n "checking for $ac_word... " >&6; }
5893if ${ac_cv_prog_ac_ct_AR+:} false; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  if test -n "$ac_ct_AR"; then
5897  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902  IFS=$as_save_IFS
5903  test -z "$as_dir" && as_dir=.
5904    for ac_exec_ext in '' $ac_executable_extensions; do
5905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906    ac_cv_prog_ac_ct_AR="$ac_prog"
5907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908    break 2
5909  fi
5910done
5911  done
5912IFS=$as_save_IFS
5913
5914fi
5915fi
5916ac_ct_AR=$ac_cv_prog_ac_ct_AR
5917if test -n "$ac_ct_AR"; then
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5919$as_echo "$ac_ct_AR" >&6; }
5920else
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
5923fi
5924
5925
5926  test -n "$ac_ct_AR" && break
5927done
5928
5929  if test "x$ac_ct_AR" = x; then
5930    AR="false"
5931  else
5932    case $cross_compiling:$ac_tool_warned in
5933yes:)
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936ac_tool_warned=yes ;;
5937esac
5938    AR=$ac_ct_AR
5939  fi
5940fi
5941
5942: ${AR=ar}
5943: ${AR_FLAGS=cru}
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5956$as_echo_n "checking for archiver @FILE support... " >&6; }
5957if ${lt_cv_ar_at_file+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960  lt_cv_ar_at_file=no
5961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h.  */
5963
5964int
5965main ()
5966{
5967
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972if ac_fn_c_try_compile "$LINENO"; then :
5973  echo conftest.$ac_objext > conftest.lst
5974      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5975      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5976  (eval $lt_ar_try) 2>&5
5977  ac_status=$?
5978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979  test $ac_status = 0; }
5980      if test "$ac_status" -eq 0; then
5981	# Ensure the archiver fails upon bogus file names.
5982	rm -f conftest.$ac_objext libconftest.a
5983	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5984  (eval $lt_ar_try) 2>&5
5985  ac_status=$?
5986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5987  test $ac_status = 0; }
5988	if test "$ac_status" -ne 0; then
5989          lt_cv_ar_at_file=@
5990        fi
5991      fi
5992      rm -f conftest.* libconftest.a
5993
5994fi
5995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5999$as_echo "$lt_cv_ar_at_file" >&6; }
6000
6001if test "x$lt_cv_ar_at_file" = xno; then
6002  archiver_list_spec=
6003else
6004  archiver_list_spec=$lt_cv_ar_at_file
6005fi
6006
6007
6008
6009
6010
6011
6012
6013if test -n "$ac_tool_prefix"; then
6014  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6015set dummy ${ac_tool_prefix}strip; ac_word=$2
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017$as_echo_n "checking for $ac_word... " >&6; }
6018if ${ac_cv_prog_STRIP+:} false; then :
6019  $as_echo_n "(cached) " >&6
6020else
6021  if test -n "$STRIP"; then
6022  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027  IFS=$as_save_IFS
6028  test -z "$as_dir" && as_dir=.
6029    for ac_exec_ext in '' $ac_executable_extensions; do
6030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033    break 2
6034  fi
6035done
6036  done
6037IFS=$as_save_IFS
6038
6039fi
6040fi
6041STRIP=$ac_cv_prog_STRIP
6042if test -n "$STRIP"; then
6043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6044$as_echo "$STRIP" >&6; }
6045else
6046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
6048fi
6049
6050
6051fi
6052if test -z "$ac_cv_prog_STRIP"; then
6053  ac_ct_STRIP=$STRIP
6054  # Extract the first word of "strip", so it can be a program name with args.
6055set dummy strip; ac_word=$2
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057$as_echo_n "checking for $ac_word... " >&6; }
6058if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  if test -n "$ac_ct_STRIP"; then
6062  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067  IFS=$as_save_IFS
6068  test -z "$as_dir" && as_dir=.
6069    for ac_exec_ext in '' $ac_executable_extensions; do
6070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071    ac_cv_prog_ac_ct_STRIP="strip"
6072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073    break 2
6074  fi
6075done
6076  done
6077IFS=$as_save_IFS
6078
6079fi
6080fi
6081ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6082if test -n "$ac_ct_STRIP"; then
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6084$as_echo "$ac_ct_STRIP" >&6; }
6085else
6086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087$as_echo "no" >&6; }
6088fi
6089
6090  if test "x$ac_ct_STRIP" = x; then
6091    STRIP=":"
6092  else
6093    case $cross_compiling:$ac_tool_warned in
6094yes:)
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097ac_tool_warned=yes ;;
6098esac
6099    STRIP=$ac_ct_STRIP
6100  fi
6101else
6102  STRIP="$ac_cv_prog_STRIP"
6103fi
6104
6105test -z "$STRIP" && STRIP=:
6106
6107
6108
6109
6110
6111
6112if test -n "$ac_tool_prefix"; then
6113  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6114set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116$as_echo_n "checking for $ac_word... " >&6; }
6117if ${ac_cv_prog_RANLIB+:} false; then :
6118  $as_echo_n "(cached) " >&6
6119else
6120  if test -n "$RANLIB"; then
6121  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126  IFS=$as_save_IFS
6127  test -z "$as_dir" && as_dir=.
6128    for ac_exec_ext in '' $ac_executable_extensions; do
6129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132    break 2
6133  fi
6134done
6135  done
6136IFS=$as_save_IFS
6137
6138fi
6139fi
6140RANLIB=$ac_cv_prog_RANLIB
6141if test -n "$RANLIB"; then
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6143$as_echo "$RANLIB" >&6; }
6144else
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146$as_echo "no" >&6; }
6147fi
6148
6149
6150fi
6151if test -z "$ac_cv_prog_RANLIB"; then
6152  ac_ct_RANLIB=$RANLIB
6153  # Extract the first word of "ranlib", so it can be a program name with args.
6154set dummy ranlib; ac_word=$2
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156$as_echo_n "checking for $ac_word... " >&6; }
6157if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6158  $as_echo_n "(cached) " >&6
6159else
6160  if test -n "$ac_ct_RANLIB"; then
6161  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6162else
6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
6165do
6166  IFS=$as_save_IFS
6167  test -z "$as_dir" && as_dir=.
6168    for ac_exec_ext in '' $ac_executable_extensions; do
6169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170    ac_cv_prog_ac_ct_RANLIB="ranlib"
6171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172    break 2
6173  fi
6174done
6175  done
6176IFS=$as_save_IFS
6177
6178fi
6179fi
6180ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6181if test -n "$ac_ct_RANLIB"; then
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6183$as_echo "$ac_ct_RANLIB" >&6; }
6184else
6185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186$as_echo "no" >&6; }
6187fi
6188
6189  if test "x$ac_ct_RANLIB" = x; then
6190    RANLIB=":"
6191  else
6192    case $cross_compiling:$ac_tool_warned in
6193yes:)
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198    RANLIB=$ac_ct_RANLIB
6199  fi
6200else
6201  RANLIB="$ac_cv_prog_RANLIB"
6202fi
6203
6204test -z "$RANLIB" && RANLIB=:
6205
6206
6207
6208
6209
6210
6211# Determine commands to create old-style static archives.
6212old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6213old_postinstall_cmds='chmod 644 $oldlib'
6214old_postuninstall_cmds=
6215
6216if test -n "$RANLIB"; then
6217  case $host_os in
6218  openbsd*)
6219    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6220    ;;
6221  *)
6222    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6223    ;;
6224  esac
6225  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6226fi
6227
6228case $host_os in
6229  darwin*)
6230    lock_old_archive_extraction=yes ;;
6231  *)
6232    lock_old_archive_extraction=no ;;
6233esac
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273# If no C compiler was specified, use CC.
6274LTCC=${LTCC-"$CC"}
6275
6276# If no C compiler flags were specified, use CFLAGS.
6277LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6278
6279# Allow CC to be a program name with arguments.
6280compiler=$CC
6281
6282
6283# Check for command to grab the raw symbol name followed by C symbol from nm.
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6285$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6286if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6287  $as_echo_n "(cached) " >&6
6288else
6289
6290# These are sane defaults that work on at least a few old systems.
6291# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6292
6293# Character class describing NM global symbol codes.
6294symcode='[BCDEGRST]'
6295
6296# Regexp to match symbols that can be accessed directly from C.
6297sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6298
6299# Define system-specific variables.
6300case $host_os in
6301aix*)
6302  symcode='[BCDT]'
6303  ;;
6304cygwin* | mingw* | pw32* | cegcc*)
6305  symcode='[ABCDGISTW]'
6306  ;;
6307hpux*)
6308  if test "$host_cpu" = ia64; then
6309    symcode='[ABCDEGRST]'
6310  fi
6311  ;;
6312irix* | nonstopux*)
6313  symcode='[BCDEGRST]'
6314  ;;
6315osf*)
6316  symcode='[BCDEGQRST]'
6317  ;;
6318solaris*)
6319  symcode='[BDRT]'
6320  ;;
6321sco3.2v5*)
6322  symcode='[DT]'
6323  ;;
6324sysv4.2uw2*)
6325  symcode='[DT]'
6326  ;;
6327sysv5* | sco5v6* | unixware* | OpenUNIX*)
6328  symcode='[ABDT]'
6329  ;;
6330sysv4)
6331  symcode='[DFNSTU]'
6332  ;;
6333esac
6334
6335# If we're using GNU nm, then use its standard symbol codes.
6336case `$NM -V 2>&1` in
6337*GNU* | *'with BFD'*)
6338  symcode='[ABCDGIRSTW]' ;;
6339esac
6340
6341# Transform an extracted symbol line into a proper C declaration.
6342# Some systems (esp. on ia64) link data and code symbols differently,
6343# so use this general approach.
6344lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6345
6346# Transform an extracted symbol line into symbol name and symbol address
6347lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6348lt_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'"
6349
6350# Handle CRLF in mingw tool chain
6351opt_cr=
6352case $build_os in
6353mingw*)
6354  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6355  ;;
6356esac
6357
6358# Try without a prefix underscore, then with it.
6359for ac_symprfx in "" "_"; do
6360
6361  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6362  symxfrm="\\1 $ac_symprfx\\2 \\2"
6363
6364  # Write the raw and C identifiers.
6365  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6366    # Fake it for dumpbin and say T for any non-static function
6367    # and D for any global variable.
6368    # Also find C++ and __fastcall symbols from MSVC++,
6369    # which start with @ or ?.
6370    lt_cv_sys_global_symbol_pipe="$AWK '"\
6371"     {last_section=section; section=\$ 3};"\
6372"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6373"     \$ 0!~/External *\|/{next};"\
6374"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6375"     {if(hide[section]) next};"\
6376"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6377"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6378"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6379"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6380"     ' prfx=^$ac_symprfx"
6381  else
6382    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6383  fi
6384  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6385
6386  # Check to see that the pipe works correctly.
6387  pipe_works=no
6388
6389  rm -f conftest*
6390  cat > conftest.$ac_ext <<_LT_EOF
6391#ifdef __cplusplus
6392extern "C" {
6393#endif
6394char nm_test_var;
6395void nm_test_func(void);
6396void nm_test_func(void){}
6397#ifdef __cplusplus
6398}
6399#endif
6400int main(){nm_test_var='a';nm_test_func();return(0);}
6401_LT_EOF
6402
6403  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404  (eval $ac_compile) 2>&5
6405  ac_status=$?
6406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407  test $ac_status = 0; }; then
6408    # Now try to grab the symbols.
6409    nlist=conftest.nm
6410    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6411  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6412  ac_status=$?
6413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414  test $ac_status = 0; } && test -s "$nlist"; then
6415      # Try sorting and uniquifying the output.
6416      if sort "$nlist" | uniq > "$nlist"T; then
6417	mv -f "$nlist"T "$nlist"
6418      else
6419	rm -f "$nlist"T
6420      fi
6421
6422      # Make sure that we snagged all the symbols we need.
6423      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6424	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6425	  cat <<_LT_EOF > conftest.$ac_ext
6426/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6427#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6428/* DATA imports from DLLs on WIN32 con't be const, because runtime
6429   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6430# define LT@&t@_DLSYM_CONST
6431#elif defined(__osf__)
6432/* This system does not cope well with relocations in const data.  */
6433# define LT@&t@_DLSYM_CONST
6434#else
6435# define LT@&t@_DLSYM_CONST const
6436#endif
6437
6438#ifdef __cplusplus
6439extern "C" {
6440#endif
6441
6442_LT_EOF
6443	  # Now generate the symbol file.
6444	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6445
6446	  cat <<_LT_EOF >> conftest.$ac_ext
6447
6448/* The mapping between symbol names and symbols.  */
6449LT@&t@_DLSYM_CONST struct {
6450  const char *name;
6451  void       *address;
6452}
6453lt__PROGRAM__LTX_preloaded_symbols[] =
6454{
6455  { "@PROGRAM@", (void *) 0 },
6456_LT_EOF
6457	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6458	  cat <<\_LT_EOF >> conftest.$ac_ext
6459  {0, (void *) 0}
6460};
6461
6462/* This works around a problem in FreeBSD linker */
6463#ifdef FREEBSD_WORKAROUND
6464static const void *lt_preloaded_setup() {
6465  return lt__PROGRAM__LTX_preloaded_symbols;
6466}
6467#endif
6468
6469#ifdef __cplusplus
6470}
6471#endif
6472_LT_EOF
6473	  # Now try linking the two files.
6474	  mv conftest.$ac_objext conftstm.$ac_objext
6475	  lt_globsym_save_LIBS=$LIBS
6476	  lt_globsym_save_CFLAGS=$CFLAGS
6477	  LIBS="conftstm.$ac_objext"
6478	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6479	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6480  (eval $ac_link) 2>&5
6481  ac_status=$?
6482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6483  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6484	    pipe_works=yes
6485	  fi
6486	  LIBS=$lt_globsym_save_LIBS
6487	  CFLAGS=$lt_globsym_save_CFLAGS
6488	else
6489	  echo "cannot find nm_test_func in $nlist" >&5
6490	fi
6491      else
6492	echo "cannot find nm_test_var in $nlist" >&5
6493      fi
6494    else
6495      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6496    fi
6497  else
6498    echo "$progname: failed program was:" >&5
6499    cat conftest.$ac_ext >&5
6500  fi
6501  rm -rf conftest* conftst*
6502
6503  # Do not use the global_symbol_pipe unless it works.
6504  if test "$pipe_works" = yes; then
6505    break
6506  else
6507    lt_cv_sys_global_symbol_pipe=
6508  fi
6509done
6510
6511fi
6512
6513if test -z "$lt_cv_sys_global_symbol_pipe"; then
6514  lt_cv_sys_global_symbol_to_cdecl=
6515fi
6516if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6518$as_echo "failed" >&6; }
6519else
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6521$as_echo "ok" >&6; }
6522fi
6523
6524# Response file support.
6525if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6526  nm_file_list_spec='@'
6527elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6528  nm_file_list_spec='@'
6529fi
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6558$as_echo_n "checking for sysroot... " >&6; }
6559
6560@%:@ Check whether --with-sysroot was given.
6561if test "${with_sysroot+set}" = set; then :
6562  withval=$with_sysroot;
6563else
6564  with_sysroot=no
6565fi
6566
6567
6568lt_sysroot=
6569case ${with_sysroot} in #(
6570 yes)
6571   if test "$GCC" = yes; then
6572     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6573   fi
6574   ;; #(
6575 /*)
6576   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6577   ;; #(
6578 no|'')
6579   ;; #(
6580 *)
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6582$as_echo "${with_sysroot}" >&6; }
6583   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6584   ;;
6585esac
6586
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6588$as_echo "${lt_sysroot:-no}" >&6; }
6589
6590
6591
6592
6593
6594@%:@ Check whether --enable-libtool-lock was given.
6595if test "${enable_libtool_lock+set}" = set; then :
6596  enableval=$enable_libtool_lock;
6597fi
6598
6599test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6600
6601# Some flags need to be propagated to the compiler or linker for good
6602# libtool support.
6603case $host in
6604ia64-*-hpux*)
6605  # Find out which ABI we are using.
6606  echo 'int i;' > conftest.$ac_ext
6607  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608  (eval $ac_compile) 2>&5
6609  ac_status=$?
6610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611  test $ac_status = 0; }; then
6612    case `/usr/bin/file conftest.$ac_objext` in
6613      *ELF-32*)
6614	HPUX_IA64_MODE="32"
6615	;;
6616      *ELF-64*)
6617	HPUX_IA64_MODE="64"
6618	;;
6619    esac
6620  fi
6621  rm -rf conftest*
6622  ;;
6623*-*-irix6*)
6624  # Find out which ABI we are using.
6625  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6626  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6627  (eval $ac_compile) 2>&5
6628  ac_status=$?
6629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630  test $ac_status = 0; }; then
6631    if test "$lt_cv_prog_gnu_ld" = yes; then
6632      case `/usr/bin/file conftest.$ac_objext` in
6633	*32-bit*)
6634	  LD="${LD-ld} -melf32bsmip"
6635	  ;;
6636	*N32*)
6637	  LD="${LD-ld} -melf32bmipn32"
6638	  ;;
6639	*64-bit*)
6640	  LD="${LD-ld} -melf64bmip"
6641	;;
6642      esac
6643    else
6644      case `/usr/bin/file conftest.$ac_objext` in
6645	*32-bit*)
6646	  LD="${LD-ld} -32"
6647	  ;;
6648	*N32*)
6649	  LD="${LD-ld} -n32"
6650	  ;;
6651	*64-bit*)
6652	  LD="${LD-ld} -64"
6653	  ;;
6654      esac
6655    fi
6656  fi
6657  rm -rf conftest*
6658  ;;
6659
6660x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6661s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6662  # Find out which ABI we are using.
6663  echo 'int i;' > conftest.$ac_ext
6664  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6665  (eval $ac_compile) 2>&5
6666  ac_status=$?
6667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668  test $ac_status = 0; }; then
6669    case `/usr/bin/file conftest.o` in
6670      *32-bit*)
6671	case $host in
6672	  x86_64-*kfreebsd*-gnu)
6673	    LD="${LD-ld} -m elf_i386_fbsd"
6674	    ;;
6675	  x86_64-*linux*)
6676	    LD="${LD-ld} -m elf_i386"
6677	    ;;
6678	  ppc64-*linux*|powerpc64-*linux*)
6679	    LD="${LD-ld} -m elf32ppclinux"
6680	    ;;
6681	  s390x-*linux*)
6682	    LD="${LD-ld} -m elf_s390"
6683	    ;;
6684	  sparc64-*linux*)
6685	    LD="${LD-ld} -m elf32_sparc"
6686	    ;;
6687	esac
6688	;;
6689      *64-bit*)
6690	case $host in
6691	  x86_64-*kfreebsd*-gnu)
6692	    LD="${LD-ld} -m elf_x86_64_fbsd"
6693	    ;;
6694	  x86_64-*linux*)
6695	    LD="${LD-ld} -m elf_x86_64"
6696	    ;;
6697	  ppc*-*linux*|powerpc*-*linux*)
6698	    LD="${LD-ld} -m elf64ppc"
6699	    ;;
6700	  s390*-*linux*|s390*-*tpf*)
6701	    LD="${LD-ld} -m elf64_s390"
6702	    ;;
6703	  sparc*-*linux*)
6704	    LD="${LD-ld} -m elf64_sparc"
6705	    ;;
6706	esac
6707	;;
6708    esac
6709  fi
6710  rm -rf conftest*
6711  ;;
6712
6713*-*-sco3.2v5*)
6714  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6715  SAVE_CFLAGS="$CFLAGS"
6716  CFLAGS="$CFLAGS -belf"
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6718$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6719if ${lt_cv_cc_needs_belf+:} false; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722  ac_ext=c
6723ac_cpp='$CPP $CPPFLAGS'
6724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727
6728     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h.  */
6730
6731int
6732main ()
6733{
6734
6735  ;
6736  return 0;
6737}
6738_ACEOF
6739if ac_fn_c_try_link "$LINENO"; then :
6740  lt_cv_cc_needs_belf=yes
6741else
6742  lt_cv_cc_needs_belf=no
6743fi
6744rm -f core conftest.err conftest.$ac_objext \
6745    conftest$ac_exeext conftest.$ac_ext
6746     ac_ext=c
6747ac_cpp='$CPP $CPPFLAGS'
6748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750ac_compiler_gnu=$ac_cv_c_compiler_gnu
6751
6752fi
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6754$as_echo "$lt_cv_cc_needs_belf" >&6; }
6755  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6756    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6757    CFLAGS="$SAVE_CFLAGS"
6758  fi
6759  ;;
6760sparc*-*solaris*)
6761  # Find out which ABI we are using.
6762  echo 'int i;' > conftest.$ac_ext
6763  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6764  (eval $ac_compile) 2>&5
6765  ac_status=$?
6766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767  test $ac_status = 0; }; then
6768    case `/usr/bin/file conftest.o` in
6769    *64-bit*)
6770      case $lt_cv_prog_gnu_ld in
6771      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6772      *)
6773	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6774	  LD="${LD-ld} -64"
6775	fi
6776	;;
6777      esac
6778      ;;
6779    esac
6780  fi
6781  rm -rf conftest*
6782  ;;
6783esac
6784
6785need_locks="$enable_libtool_lock"
6786
6787if test -n "$ac_tool_prefix"; then
6788  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6789set dummy ${ac_tool_prefix}mt; ac_word=$2
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791$as_echo_n "checking for $ac_word... " >&6; }
6792if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  if test -n "$MANIFEST_TOOL"; then
6796  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803    for ac_exec_ext in '' $ac_executable_extensions; do
6804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810  done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6816if test -n "$MANIFEST_TOOL"; then
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6818$as_echo "$MANIFEST_TOOL" >&6; }
6819else
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821$as_echo "no" >&6; }
6822fi
6823
6824
6825fi
6826if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6827  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6828  # Extract the first word of "mt", so it can be a program name with args.
6829set dummy mt; ac_word=$2
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831$as_echo_n "checking for $ac_word... " >&6; }
6832if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  if test -n "$ac_ct_MANIFEST_TOOL"; then
6836  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843    for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850  done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6856if test -n "$ac_ct_MANIFEST_TOOL"; then
6857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6858$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6859else
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861$as_echo "no" >&6; }
6862fi
6863
6864  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6865    MANIFEST_TOOL=":"
6866  else
6867    case $cross_compiling:$ac_tool_warned in
6868yes:)
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871ac_tool_warned=yes ;;
6872esac
6873    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6874  fi
6875else
6876  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6877fi
6878
6879test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6881$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6882if ${lt_cv_path_mainfest_tool+:} false; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  lt_cv_path_mainfest_tool=no
6886  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6887  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6888  cat conftest.err >&5
6889  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6890    lt_cv_path_mainfest_tool=yes
6891  fi
6892  rm -f conftest*
6893fi
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6895$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6896if test "x$lt_cv_path_mainfest_tool" != xyes; then
6897  MANIFEST_TOOL=:
6898fi
6899
6900
6901
6902
6903
6904
6905  case $host_os in
6906    rhapsody* | darwin*)
6907    if test -n "$ac_tool_prefix"; then
6908  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6909set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911$as_echo_n "checking for $ac_word... " >&6; }
6912if ${ac_cv_prog_DSYMUTIL+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  if test -n "$DSYMUTIL"; then
6916  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921  IFS=$as_save_IFS
6922  test -z "$as_dir" && as_dir=.
6923    for ac_exec_ext in '' $ac_executable_extensions; do
6924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927    break 2
6928  fi
6929done
6930  done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935DSYMUTIL=$ac_cv_prog_DSYMUTIL
6936if test -n "$DSYMUTIL"; then
6937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6938$as_echo "$DSYMUTIL" >&6; }
6939else
6940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944
6945fi
6946if test -z "$ac_cv_prog_DSYMUTIL"; then
6947  ac_ct_DSYMUTIL=$DSYMUTIL
6948  # Extract the first word of "dsymutil", so it can be a program name with args.
6949set dummy dsymutil; ac_word=$2
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951$as_echo_n "checking for $ac_word... " >&6; }
6952if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  if test -n "$ac_ct_DSYMUTIL"; then
6956  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961  IFS=$as_save_IFS
6962  test -z "$as_dir" && as_dir=.
6963    for ac_exec_ext in '' $ac_executable_extensions; do
6964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967    break 2
6968  fi
6969done
6970  done
6971IFS=$as_save_IFS
6972
6973fi
6974fi
6975ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6976if test -n "$ac_ct_DSYMUTIL"; then
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6978$as_echo "$ac_ct_DSYMUTIL" >&6; }
6979else
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981$as_echo "no" >&6; }
6982fi
6983
6984  if test "x$ac_ct_DSYMUTIL" = x; then
6985    DSYMUTIL=":"
6986  else
6987    case $cross_compiling:$ac_tool_warned in
6988yes:)
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991ac_tool_warned=yes ;;
6992esac
6993    DSYMUTIL=$ac_ct_DSYMUTIL
6994  fi
6995else
6996  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6997fi
6998
6999    if test -n "$ac_tool_prefix"; then
7000  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7001set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if ${ac_cv_prog_NMEDIT+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  if test -n "$NMEDIT"; then
7008  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  test -z "$as_dir" && as_dir=.
7015    for ac_exec_ext in '' $ac_executable_extensions; do
7016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019    break 2
7020  fi
7021done
7022  done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027NMEDIT=$ac_cv_prog_NMEDIT
7028if test -n "$NMEDIT"; then
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7030$as_echo "$NMEDIT" >&6; }
7031else
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036
7037fi
7038if test -z "$ac_cv_prog_NMEDIT"; then
7039  ac_ct_NMEDIT=$NMEDIT
7040  # Extract the first word of "nmedit", so it can be a program name with args.
7041set dummy nmedit; ac_word=$2
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043$as_echo_n "checking for $ac_word... " >&6; }
7044if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  if test -n "$ac_ct_NMEDIT"; then
7048  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053  IFS=$as_save_IFS
7054  test -z "$as_dir" && as_dir=.
7055    for ac_exec_ext in '' $ac_executable_extensions; do
7056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059    break 2
7060  fi
7061done
7062  done
7063IFS=$as_save_IFS
7064
7065fi
7066fi
7067ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7068if test -n "$ac_ct_NMEDIT"; then
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7070$as_echo "$ac_ct_NMEDIT" >&6; }
7071else
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
7076  if test "x$ac_ct_NMEDIT" = x; then
7077    NMEDIT=":"
7078  else
7079    case $cross_compiling:$ac_tool_warned in
7080yes:)
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083ac_tool_warned=yes ;;
7084esac
7085    NMEDIT=$ac_ct_NMEDIT
7086  fi
7087else
7088  NMEDIT="$ac_cv_prog_NMEDIT"
7089fi
7090
7091    if test -n "$ac_tool_prefix"; then
7092  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7093set dummy ${ac_tool_prefix}lipo; ac_word=$2
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095$as_echo_n "checking for $ac_word... " >&6; }
7096if ${ac_cv_prog_LIPO+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  if test -n "$LIPO"; then
7100  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  test -z "$as_dir" && as_dir=.
7107    for ac_exec_ext in '' $ac_executable_extensions; do
7108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111    break 2
7112  fi
7113done
7114  done
7115IFS=$as_save_IFS
7116
7117fi
7118fi
7119LIPO=$ac_cv_prog_LIPO
7120if test -n "$LIPO"; then
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7122$as_echo "$LIPO" >&6; }
7123else
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }
7126fi
7127
7128
7129fi
7130if test -z "$ac_cv_prog_LIPO"; then
7131  ac_ct_LIPO=$LIPO
7132  # Extract the first word of "lipo", so it can be a program name with args.
7133set dummy lipo; ac_word=$2
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135$as_echo_n "checking for $ac_word... " >&6; }
7136if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7137  $as_echo_n "(cached) " >&6
7138else
7139  if test -n "$ac_ct_LIPO"; then
7140  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7141else
7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145  IFS=$as_save_IFS
7146  test -z "$as_dir" && as_dir=.
7147    for ac_exec_ext in '' $ac_executable_extensions; do
7148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149    ac_cv_prog_ac_ct_LIPO="lipo"
7150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151    break 2
7152  fi
7153done
7154  done
7155IFS=$as_save_IFS
7156
7157fi
7158fi
7159ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7160if test -n "$ac_ct_LIPO"; then
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7162$as_echo "$ac_ct_LIPO" >&6; }
7163else
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165$as_echo "no" >&6; }
7166fi
7167
7168  if test "x$ac_ct_LIPO" = x; then
7169    LIPO=":"
7170  else
7171    case $cross_compiling:$ac_tool_warned in
7172yes:)
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175ac_tool_warned=yes ;;
7176esac
7177    LIPO=$ac_ct_LIPO
7178  fi
7179else
7180  LIPO="$ac_cv_prog_LIPO"
7181fi
7182
7183    if test -n "$ac_tool_prefix"; then
7184  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7185set dummy ${ac_tool_prefix}otool; ac_word=$2
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if ${ac_cv_prog_OTOOL+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  if test -n "$OTOOL"; then
7192  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199    for ac_exec_ext in '' $ac_executable_extensions; do
7200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206  done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211OTOOL=$ac_cv_prog_OTOOL
7212if test -n "$OTOOL"; then
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7214$as_echo "$OTOOL" >&6; }
7215else
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220
7221fi
7222if test -z "$ac_cv_prog_OTOOL"; then
7223  ac_ct_OTOOL=$OTOOL
7224  # Extract the first word of "otool", so it can be a program name with args.
7225set dummy otool; ac_word=$2
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227$as_echo_n "checking for $ac_word... " >&6; }
7228if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  if test -n "$ac_ct_OTOOL"; then
7232  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239    for ac_exec_ext in '' $ac_executable_extensions; do
7240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241    ac_cv_prog_ac_ct_OTOOL="otool"
7242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246  done
7247IFS=$as_save_IFS
7248
7249fi
7250fi
7251ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7252if test -n "$ac_ct_OTOOL"; then
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7254$as_echo "$ac_ct_OTOOL" >&6; }
7255else
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257$as_echo "no" >&6; }
7258fi
7259
7260  if test "x$ac_ct_OTOOL" = x; then
7261    OTOOL=":"
7262  else
7263    case $cross_compiling:$ac_tool_warned in
7264yes:)
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267ac_tool_warned=yes ;;
7268esac
7269    OTOOL=$ac_ct_OTOOL
7270  fi
7271else
7272  OTOOL="$ac_cv_prog_OTOOL"
7273fi
7274
7275    if test -n "$ac_tool_prefix"; then
7276  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7277set dummy ${ac_tool_prefix}otool64; ac_word=$2
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if ${ac_cv_prog_OTOOL64+:} false; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  if test -n "$OTOOL64"; then
7284  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289  IFS=$as_save_IFS
7290  test -z "$as_dir" && as_dir=.
7291    for ac_exec_ext in '' $ac_executable_extensions; do
7292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295    break 2
7296  fi
7297done
7298  done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303OTOOL64=$ac_cv_prog_OTOOL64
7304if test -n "$OTOOL64"; then
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7306$as_echo "$OTOOL64" >&6; }
7307else
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312
7313fi
7314if test -z "$ac_cv_prog_OTOOL64"; then
7315  ac_ct_OTOOL64=$OTOOL64
7316  # Extract the first word of "otool64", so it can be a program name with args.
7317set dummy otool64; ac_word=$2
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319$as_echo_n "checking for $ac_word... " >&6; }
7320if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  if test -n "$ac_ct_OTOOL64"; then
7324  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329  IFS=$as_save_IFS
7330  test -z "$as_dir" && as_dir=.
7331    for ac_exec_ext in '' $ac_executable_extensions; do
7332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333    ac_cv_prog_ac_ct_OTOOL64="otool64"
7334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335    break 2
7336  fi
7337done
7338  done
7339IFS=$as_save_IFS
7340
7341fi
7342fi
7343ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7344if test -n "$ac_ct_OTOOL64"; then
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7346$as_echo "$ac_ct_OTOOL64" >&6; }
7347else
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349$as_echo "no" >&6; }
7350fi
7351
7352  if test "x$ac_ct_OTOOL64" = x; then
7353    OTOOL64=":"
7354  else
7355    case $cross_compiling:$ac_tool_warned in
7356yes:)
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359ac_tool_warned=yes ;;
7360esac
7361    OTOOL64=$ac_ct_OTOOL64
7362  fi
7363else
7364  OTOOL64="$ac_cv_prog_OTOOL64"
7365fi
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7394$as_echo_n "checking for -single_module linker flag... " >&6; }
7395if ${lt_cv_apple_cc_single_mod+:} false; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  lt_cv_apple_cc_single_mod=no
7399      if test -z "${LT_MULTI_MODULE}"; then
7400	# By default we will add the -single_module flag. You can override
7401	# by either setting the environment variable LT_MULTI_MODULE
7402	# non-empty at configure time, or by adding -multi_module to the
7403	# link flags.
7404	rm -rf libconftest.dylib*
7405	echo "int foo(void){return 1;}" > conftest.c
7406	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7407-dynamiclib -Wl,-single_module conftest.c" >&5
7408	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7409	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7410        _lt_result=$?
7411	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7412	  lt_cv_apple_cc_single_mod=yes
7413	else
7414	  cat conftest.err >&5
7415	fi
7416	rm -rf libconftest.dylib*
7417	rm -f conftest.*
7418      fi
7419fi
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7421$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7423$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7424if ${lt_cv_ld_exported_symbols_list+:} false; then :
7425  $as_echo_n "(cached) " >&6
7426else
7427  lt_cv_ld_exported_symbols_list=no
7428      save_LDFLAGS=$LDFLAGS
7429      echo "_main" > conftest.sym
7430      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7431      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h.  */
7433
7434int
7435main ()
7436{
7437
7438  ;
7439  return 0;
7440}
7441_ACEOF
7442if ac_fn_c_try_link "$LINENO"; then :
7443  lt_cv_ld_exported_symbols_list=yes
7444else
7445  lt_cv_ld_exported_symbols_list=no
7446fi
7447rm -f core conftest.err conftest.$ac_objext \
7448    conftest$ac_exeext conftest.$ac_ext
7449	LDFLAGS="$save_LDFLAGS"
7450
7451fi
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7453$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7455$as_echo_n "checking for -force_load linker flag... " >&6; }
7456if ${lt_cv_ld_force_load+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  lt_cv_ld_force_load=no
7460      cat > conftest.c << _LT_EOF
7461int forced_loaded() { return 2;}
7462_LT_EOF
7463      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7464      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7465      echo "$AR cru libconftest.a conftest.o" >&5
7466      $AR cru libconftest.a conftest.o 2>&5
7467      echo "$RANLIB libconftest.a" >&5
7468      $RANLIB libconftest.a 2>&5
7469      cat > conftest.c << _LT_EOF
7470int main() { return 0;}
7471_LT_EOF
7472      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7473      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7474      _lt_result=$?
7475      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7476	lt_cv_ld_force_load=yes
7477      else
7478	cat conftest.err >&5
7479      fi
7480        rm -f conftest.err libconftest.a conftest conftest.c
7481        rm -rf conftest.dSYM
7482
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7485$as_echo "$lt_cv_ld_force_load" >&6; }
7486    case $host_os in
7487    rhapsody* | darwin1.[012])
7488      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7489    darwin1.*)
7490      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7491    darwin*) # darwin 5.x on
7492      # if running on 10.5 or later, the deployment target defaults
7493      # to the OS version, if on x86, and 10.4, the deployment
7494      # target defaults to 10.4. Don't you love it?
7495      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7496	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7497	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7498	10.[012]*)
7499	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7500	10.*)
7501	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7502      esac
7503    ;;
7504  esac
7505    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7506      _lt_dar_single_mod='$single_module'
7507    fi
7508    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7509      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7510    else
7511      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7512    fi
7513    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7514      _lt_dsymutil='~$DSYMUTIL $lib || :'
7515    else
7516      _lt_dsymutil=
7517    fi
7518    ;;
7519  esac
7520
7521
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7523$as_echo_n "checking for ANSI C header files... " >&6; }
7524if ${ac_cv_header_stdc+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528/* end confdefs.h.  */
7529#include <stdlib.h>
7530#include <stdarg.h>
7531#include <string.h>
7532#include <float.h>
7533
7534int
7535main ()
7536{
7537
7538  ;
7539  return 0;
7540}
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543  ac_cv_header_stdc=yes
7544else
7545  ac_cv_header_stdc=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548
7549if test $ac_cv_header_stdc = yes; then
7550  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552/* end confdefs.h.  */
7553#include <string.h>
7554
7555_ACEOF
7556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7557  $EGREP "memchr" >/dev/null 2>&1; then :
7558
7559else
7560  ac_cv_header_stdc=no
7561fi
7562rm -f conftest*
7563
7564fi
7565
7566if test $ac_cv_header_stdc = yes; then
7567  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570#include <stdlib.h>
7571
7572_ACEOF
7573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7574  $EGREP "free" >/dev/null 2>&1; then :
7575
7576else
7577  ac_cv_header_stdc=no
7578fi
7579rm -f conftest*
7580
7581fi
7582
7583if test $ac_cv_header_stdc = yes; then
7584  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7585  if test "$cross_compiling" = yes; then :
7586  :
7587else
7588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590#include <ctype.h>
7591#include <stdlib.h>
7592#if ((' ' & 0x0FF) == 0x020)
7593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7595#else
7596# define ISLOWER(c) \
7597		   (('a' <= (c) && (c) <= 'i') \
7598		     || ('j' <= (c) && (c) <= 'r') \
7599		     || ('s' <= (c) && (c) <= 'z'))
7600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7601#endif
7602
7603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7604int
7605main ()
7606{
7607  int i;
7608  for (i = 0; i < 256; i++)
7609    if (XOR (islower (i), ISLOWER (i))
7610	|| toupper (i) != TOUPPER (i))
7611      return 2;
7612  return 0;
7613}
7614_ACEOF
7615if ac_fn_c_try_run "$LINENO"; then :
7616
7617else
7618  ac_cv_header_stdc=no
7619fi
7620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7621  conftest.$ac_objext conftest.beam conftest.$ac_ext
7622fi
7623
7624fi
7625fi
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7627$as_echo "$ac_cv_header_stdc" >&6; }
7628if test $ac_cv_header_stdc = yes; then
7629
7630$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7631
7632fi
7633
7634# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7636		  inttypes.h stdint.h unistd.h
7637do :
7638  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7639ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7640"
7641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7642  cat >>confdefs.h <<_ACEOF
7643@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7644_ACEOF
7645
7646fi
7647
7648done
7649
7650
7651for ac_header in dlfcn.h
7652do :
7653  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7654"
7655if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7656  cat >>confdefs.h <<_ACEOF
7657@%:@define HAVE_DLFCN_H 1
7658_ACEOF
7659
7660fi
7661
7662done
7663
7664
7665
7666
7667func_stripname_cnf ()
7668{
7669  case ${2} in
7670  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7671  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7672  esac
7673} # func_stripname_cnf
7674
7675
7676
7677
7678
7679# Set options
7680
7681
7682
7683        enable_dlopen=no
7684
7685
7686  enable_win32_dll=no
7687
7688
7689            @%:@ Check whether --enable-shared was given.
7690if test "${enable_shared+set}" = set; then :
7691  enableval=$enable_shared; p=${PACKAGE-default}
7692    case $enableval in
7693    yes) enable_shared=yes ;;
7694    no) enable_shared=no ;;
7695    *)
7696      enable_shared=no
7697      # Look at the argument we got.  We use all the common list separators.
7698      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699      for pkg in $enableval; do
7700	IFS="$lt_save_ifs"
7701	if test "X$pkg" = "X$p"; then
7702	  enable_shared=yes
7703	fi
7704      done
7705      IFS="$lt_save_ifs"
7706      ;;
7707    esac
7708else
7709  enable_shared=yes
7710fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720  @%:@ Check whether --enable-static was given.
7721if test "${enable_static+set}" = set; then :
7722  enableval=$enable_static; p=${PACKAGE-default}
7723    case $enableval in
7724    yes) enable_static=yes ;;
7725    no) enable_static=no ;;
7726    *)
7727     enable_static=no
7728      # Look at the argument we got.  We use all the common list separators.
7729      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7730      for pkg in $enableval; do
7731	IFS="$lt_save_ifs"
7732	if test "X$pkg" = "X$p"; then
7733	  enable_static=yes
7734	fi
7735      done
7736      IFS="$lt_save_ifs"
7737      ;;
7738    esac
7739else
7740  enable_static=yes
7741fi
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752@%:@ Check whether --with-pic was given.
7753if test "${with_pic+set}" = set; then :
7754  withval=$with_pic; pic_mode="$withval"
7755else
7756  pic_mode=default
7757fi
7758
7759
7760test -z "$pic_mode" && pic_mode=default
7761
7762
7763
7764
7765
7766
7767
7768  @%:@ Check whether --enable-fast-install was given.
7769if test "${enable_fast_install+set}" = set; then :
7770  enableval=$enable_fast_install; p=${PACKAGE-default}
7771    case $enableval in
7772    yes) enable_fast_install=yes ;;
7773    no) enable_fast_install=no ;;
7774    *)
7775      enable_fast_install=no
7776      # Look at the argument we got.  We use all the common list separators.
7777      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7778      for pkg in $enableval; do
7779	IFS="$lt_save_ifs"
7780	if test "X$pkg" = "X$p"; then
7781	  enable_fast_install=yes
7782	fi
7783      done
7784      IFS="$lt_save_ifs"
7785      ;;
7786    esac
7787else
7788  enable_fast_install=yes
7789fi
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801# This can be used to rebuild libtool when needed
7802LIBTOOL_DEPS="$ltmain"
7803
7804# Always use our own libtool.
7805LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832test -z "$LN_S" && LN_S="ln -s"
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847if test -n "${ZSH_VERSION+set}" ; then
7848   setopt NO_GLOB_SUBST
7849fi
7850
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7852$as_echo_n "checking for objdir... " >&6; }
7853if ${lt_cv_objdir+:} false; then :
7854  $as_echo_n "(cached) " >&6
7855else
7856  rm -f .libs 2>/dev/null
7857mkdir .libs 2>/dev/null
7858if test -d .libs; then
7859  lt_cv_objdir=.libs
7860else
7861  # MS-DOS does not allow filenames that begin with a dot.
7862  lt_cv_objdir=_libs
7863fi
7864rmdir .libs 2>/dev/null
7865fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7867$as_echo "$lt_cv_objdir" >&6; }
7868objdir=$lt_cv_objdir
7869
7870
7871
7872
7873
7874cat >>confdefs.h <<_ACEOF
7875@%:@define LT_OBJDIR "$lt_cv_objdir/"
7876_ACEOF
7877
7878
7879
7880
7881case $host_os in
7882aix3*)
7883  # AIX sometimes has problems with the GCC collect2 program.  For some
7884  # reason, if we set the COLLECT_NAMES environment variable, the problems
7885  # vanish in a puff of smoke.
7886  if test "X${COLLECT_NAMES+set}" != Xset; then
7887    COLLECT_NAMES=
7888    export COLLECT_NAMES
7889  fi
7890  ;;
7891esac
7892
7893# Global variables:
7894ofile=libtool
7895can_build_shared=yes
7896
7897# All known linkers require a `.a' archive for static linking (except MSVC,
7898# which needs '.lib').
7899libext=a
7900
7901with_gnu_ld="$lt_cv_prog_gnu_ld"
7902
7903old_CC="$CC"
7904old_CFLAGS="$CFLAGS"
7905
7906# Set sane defaults for various variables
7907test -z "$CC" && CC=cc
7908test -z "$LTCC" && LTCC=$CC
7909test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7910test -z "$LD" && LD=ld
7911test -z "$ac_objext" && ac_objext=o
7912
7913for cc_temp in $compiler""; do
7914  case $cc_temp in
7915    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7916    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7917    \-*) ;;
7918    *) break;;
7919  esac
7920done
7921cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7922
7923
7924# Only perform the check for file, if the check method requires it
7925test -z "$MAGIC_CMD" && MAGIC_CMD=file
7926case $deplibs_check_method in
7927file_magic*)
7928  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7930$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7931if ${lt_cv_path_MAGIC_CMD+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  case $MAGIC_CMD in
7935[\\/*] |  ?:[\\/]*)
7936  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7937  ;;
7938*)
7939  lt_save_MAGIC_CMD="$MAGIC_CMD"
7940  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7941  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7942  for ac_dir in $ac_dummy; do
7943    IFS="$lt_save_ifs"
7944    test -z "$ac_dir" && ac_dir=.
7945    if test -f $ac_dir/${ac_tool_prefix}file; then
7946      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7947      if test -n "$file_magic_test_file"; then
7948	case $deplibs_check_method in
7949	"file_magic "*)
7950	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7951	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7952	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7953	    $EGREP "$file_magic_regex" > /dev/null; then
7954	    :
7955	  else
7956	    cat <<_LT_EOF 1>&2
7957
7958*** Warning: the command libtool uses to detect shared libraries,
7959*** $file_magic_cmd, produces output that libtool cannot recognize.
7960*** The result is that libtool may fail to recognize shared libraries
7961*** as such.  This will affect the creation of libtool libraries that
7962*** depend on shared libraries, but programs linked with such libtool
7963*** libraries will work regardless of this problem.  Nevertheless, you
7964*** may want to report the problem to your system manager and/or to
7965*** bug-libtool@gnu.org
7966
7967_LT_EOF
7968	  fi ;;
7969	esac
7970      fi
7971      break
7972    fi
7973  done
7974  IFS="$lt_save_ifs"
7975  MAGIC_CMD="$lt_save_MAGIC_CMD"
7976  ;;
7977esac
7978fi
7979
7980MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981if test -n "$MAGIC_CMD"; then
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7983$as_echo "$MAGIC_CMD" >&6; }
7984else
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987fi
7988
7989
7990
7991
7992
7993if test -z "$lt_cv_path_MAGIC_CMD"; then
7994  if test -n "$ac_tool_prefix"; then
7995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7996$as_echo_n "checking for file... " >&6; }
7997if ${lt_cv_path_MAGIC_CMD+:} false; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  case $MAGIC_CMD in
8001[\\/*] |  ?:[\\/]*)
8002  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8003  ;;
8004*)
8005  lt_save_MAGIC_CMD="$MAGIC_CMD"
8006  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8007  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8008  for ac_dir in $ac_dummy; do
8009    IFS="$lt_save_ifs"
8010    test -z "$ac_dir" && ac_dir=.
8011    if test -f $ac_dir/file; then
8012      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8013      if test -n "$file_magic_test_file"; then
8014	case $deplibs_check_method in
8015	"file_magic "*)
8016	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8017	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8018	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8019	    $EGREP "$file_magic_regex" > /dev/null; then
8020	    :
8021	  else
8022	    cat <<_LT_EOF 1>&2
8023
8024*** Warning: the command libtool uses to detect shared libraries,
8025*** $file_magic_cmd, produces output that libtool cannot recognize.
8026*** The result is that libtool may fail to recognize shared libraries
8027*** as such.  This will affect the creation of libtool libraries that
8028*** depend on shared libraries, but programs linked with such libtool
8029*** libraries will work regardless of this problem.  Nevertheless, you
8030*** may want to report the problem to your system manager and/or to
8031*** bug-libtool@gnu.org
8032
8033_LT_EOF
8034	  fi ;;
8035	esac
8036      fi
8037      break
8038    fi
8039  done
8040  IFS="$lt_save_ifs"
8041  MAGIC_CMD="$lt_save_MAGIC_CMD"
8042  ;;
8043esac
8044fi
8045
8046MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8047if test -n "$MAGIC_CMD"; then
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8049$as_echo "$MAGIC_CMD" >&6; }
8050else
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052$as_echo "no" >&6; }
8053fi
8054
8055
8056  else
8057    MAGIC_CMD=:
8058  fi
8059fi
8060
8061  fi
8062  ;;
8063esac
8064
8065# Use C for the default configuration in the libtool script
8066
8067lt_save_CC="$CC"
8068ac_ext=c
8069ac_cpp='$CPP $CPPFLAGS'
8070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8072ac_compiler_gnu=$ac_cv_c_compiler_gnu
8073
8074
8075# Source file extension for C test sources.
8076ac_ext=c
8077
8078# Object file extension for compiled C test sources.
8079objext=o
8080objext=$objext
8081
8082# Code to be used in simple compile tests
8083lt_simple_compile_test_code="int some_variable = 0;"
8084
8085# Code to be used in simple link tests
8086lt_simple_link_test_code='int main(){return(0);}'
8087
8088
8089
8090
8091
8092
8093
8094# If no C compiler was specified, use CC.
8095LTCC=${LTCC-"$CC"}
8096
8097# If no C compiler flags were specified, use CFLAGS.
8098LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8099
8100# Allow CC to be a program name with arguments.
8101compiler=$CC
8102
8103# Save the default compiler, since it gets overwritten when the other
8104# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8105compiler_DEFAULT=$CC
8106
8107# save warnings/boilerplate of simple test code
8108ac_outfile=conftest.$ac_objext
8109echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8110eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8111_lt_compiler_boilerplate=`cat conftest.err`
8112$RM conftest*
8113
8114ac_outfile=conftest.$ac_objext
8115echo "$lt_simple_link_test_code" >conftest.$ac_ext
8116eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8117_lt_linker_boilerplate=`cat conftest.err`
8118$RM -r conftest*
8119
8120
8121## CAVEAT EMPTOR:
8122## There is no encapsulation within the following macros, do not change
8123## the running order or otherwise move them around unless you know exactly
8124## what you are doing...
8125if test -n "$compiler"; then
8126
8127lt_prog_compiler_no_builtin_flag=
8128
8129if test "$GCC" = yes; then
8130  case $cc_basename in
8131  nvcc*)
8132    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8133  *)
8134    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8135  esac
8136
8137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8138$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8139if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8140  $as_echo_n "(cached) " >&6
8141else
8142  lt_cv_prog_compiler_rtti_exceptions=no
8143   ac_outfile=conftest.$ac_objext
8144   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8145   lt_compiler_flag="-fno-rtti -fno-exceptions"
8146   # Insert the option either (1) after the last *FLAGS variable, or
8147   # (2) before a word containing "conftest.", or (3) at the end.
8148   # Note that $ac_compile itself does not contain backslashes and begins
8149   # with a dollar sign (not a hyphen), so the echo should work correctly.
8150   # The option is referenced via a variable to avoid confusing sed.
8151   lt_compile=`echo "$ac_compile" | $SED \
8152   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8153   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8154   -e 's:$: $lt_compiler_flag:'`
8155   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8156   (eval "$lt_compile" 2>conftest.err)
8157   ac_status=$?
8158   cat conftest.err >&5
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   if (exit $ac_status) && test -s "$ac_outfile"; then
8161     # The compiler can only warn and ignore the option if not recognized
8162     # So say no if there are warnings other than the usual output.
8163     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8164     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8165     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8166       lt_cv_prog_compiler_rtti_exceptions=yes
8167     fi
8168   fi
8169   $RM conftest*
8170
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8173$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8174
8175if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8176    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8177else
8178    :
8179fi
8180
8181fi
8182
8183
8184
8185
8186
8187
8188  lt_prog_compiler_wl=
8189lt_prog_compiler_pic=
8190lt_prog_compiler_static=
8191
8192
8193  if test "$GCC" = yes; then
8194    lt_prog_compiler_wl='-Wl,'
8195    lt_prog_compiler_static='-static'
8196
8197    case $host_os in
8198      aix*)
8199      # All AIX code is PIC.
8200      if test "$host_cpu" = ia64; then
8201	# AIX 5 now supports IA64 processor
8202	lt_prog_compiler_static='-Bstatic'
8203      fi
8204      ;;
8205
8206    amigaos*)
8207      case $host_cpu in
8208      powerpc)
8209            # see comment about AmigaOS4 .so support
8210            lt_prog_compiler_pic='-fPIC'
8211        ;;
8212      m68k)
8213            # FIXME: we need at least 68020 code to build shared libraries, but
8214            # adding the `-m68020' flag to GCC prevents building anything better,
8215            # like `-m68040'.
8216            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8217        ;;
8218      esac
8219      ;;
8220
8221    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8222      # PIC is the default for these OSes.
8223      ;;
8224
8225    mingw* | cygwin* | pw32* | os2* | cegcc*)
8226      # This hack is so that the source file can tell whether it is being
8227      # built for inclusion in a dll (and should export symbols for example).
8228      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8229      # (--disable-auto-import) libraries
8230      lt_prog_compiler_pic='-DDLL_EXPORT'
8231      ;;
8232
8233    darwin* | rhapsody*)
8234      # PIC is the default on this platform
8235      # Common symbols not allowed in MH_DYLIB files
8236      lt_prog_compiler_pic='-fno-common'
8237      ;;
8238
8239    haiku*)
8240      # PIC is the default for Haiku.
8241      # The "-static" flag exists, but is broken.
8242      lt_prog_compiler_static=
8243      ;;
8244
8245    hpux*)
8246      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8247      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8248      # sets the default TLS model and affects inlining.
8249      case $host_cpu in
8250      hppa*64*)
8251	# +Z the default
8252	;;
8253      *)
8254	lt_prog_compiler_pic='-fPIC'
8255	;;
8256      esac
8257      ;;
8258
8259    interix[3-9]*)
8260      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8261      # Instead, we relocate shared libraries at runtime.
8262      ;;
8263
8264    msdosdjgpp*)
8265      # Just because we use GCC doesn't mean we suddenly get shared libraries
8266      # on systems that don't support them.
8267      lt_prog_compiler_can_build_shared=no
8268      enable_shared=no
8269      ;;
8270
8271    *nto* | *qnx*)
8272      # QNX uses GNU C++, but need to define -shared option too, otherwise
8273      # it will coredump.
8274      lt_prog_compiler_pic='-fPIC -shared'
8275      ;;
8276
8277    sysv4*MP*)
8278      if test -d /usr/nec; then
8279	lt_prog_compiler_pic=-Kconform_pic
8280      fi
8281      ;;
8282
8283    *)
8284      lt_prog_compiler_pic='-fPIC'
8285      ;;
8286    esac
8287
8288    case $cc_basename in
8289    nvcc*) # Cuda Compiler Driver 2.2
8290      lt_prog_compiler_wl='-Xlinker '
8291      lt_prog_compiler_pic='-Xcompiler -fPIC'
8292      ;;
8293    esac
8294  else
8295    # PORTME Check for flag to pass linker flags through the system compiler.
8296    case $host_os in
8297    aix*)
8298      lt_prog_compiler_wl='-Wl,'
8299      if test "$host_cpu" = ia64; then
8300	# AIX 5 now supports IA64 processor
8301	lt_prog_compiler_static='-Bstatic'
8302      else
8303	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8304      fi
8305      ;;
8306
8307    mingw* | cygwin* | pw32* | os2* | cegcc*)
8308      # This hack is so that the source file can tell whether it is being
8309      # built for inclusion in a dll (and should export symbols for example).
8310      lt_prog_compiler_pic='-DDLL_EXPORT'
8311      ;;
8312
8313    hpux9* | hpux10* | hpux11*)
8314      lt_prog_compiler_wl='-Wl,'
8315      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8316      # not for PA HP-UX.
8317      case $host_cpu in
8318      hppa*64*|ia64*)
8319	# +Z the default
8320	;;
8321      *)
8322	lt_prog_compiler_pic='+Z'
8323	;;
8324      esac
8325      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8326      lt_prog_compiler_static='${wl}-a ${wl}archive'
8327      ;;
8328
8329    irix5* | irix6* | nonstopux*)
8330      lt_prog_compiler_wl='-Wl,'
8331      # PIC (with -KPIC) is the default.
8332      lt_prog_compiler_static='-non_shared'
8333      ;;
8334
8335    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8336      case $cc_basename in
8337      # old Intel for x86_64 which still supported -KPIC.
8338      ecc*)
8339	lt_prog_compiler_wl='-Wl,'
8340	lt_prog_compiler_pic='-KPIC'
8341	lt_prog_compiler_static='-static'
8342        ;;
8343      # icc used to be incompatible with GCC.
8344      # ICC 10 doesn't accept -KPIC any more.
8345      icc* | ifort*)
8346	lt_prog_compiler_wl='-Wl,'
8347	lt_prog_compiler_pic='-fPIC'
8348	lt_prog_compiler_static='-static'
8349        ;;
8350      # Lahey Fortran 8.1.
8351      lf95*)
8352	lt_prog_compiler_wl='-Wl,'
8353	lt_prog_compiler_pic='--shared'
8354	lt_prog_compiler_static='--static'
8355	;;
8356      nagfor*)
8357	# NAG Fortran compiler
8358	lt_prog_compiler_wl='-Wl,-Wl,,'
8359	lt_prog_compiler_pic='-PIC'
8360	lt_prog_compiler_static='-Bstatic'
8361	;;
8362      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8363        # Portland Group compilers (*not* the Pentium gcc compiler,
8364	# which looks to be a dead project)
8365	lt_prog_compiler_wl='-Wl,'
8366	lt_prog_compiler_pic='-fpic'
8367	lt_prog_compiler_static='-Bstatic'
8368        ;;
8369      ccc*)
8370        lt_prog_compiler_wl='-Wl,'
8371        # All Alpha code is PIC.
8372        lt_prog_compiler_static='-non_shared'
8373        ;;
8374      xl* | bgxl* | bgf* | mpixl*)
8375	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8376	lt_prog_compiler_wl='-Wl,'
8377	lt_prog_compiler_pic='-qpic'
8378	lt_prog_compiler_static='-qstaticlink'
8379	;;
8380      *)
8381	case `$CC -V 2>&1 | sed 5q` in
8382	*Sun\ F* | *Sun*Fortran*)
8383	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8384	  lt_prog_compiler_pic='-KPIC'
8385	  lt_prog_compiler_static='-Bstatic'
8386	  lt_prog_compiler_wl=''
8387	  ;;
8388	*Sun\ C*)
8389	  # Sun C 5.9
8390	  lt_prog_compiler_pic='-KPIC'
8391	  lt_prog_compiler_static='-Bstatic'
8392	  lt_prog_compiler_wl='-Wl,'
8393	  ;;
8394	esac
8395	;;
8396      esac
8397      ;;
8398
8399    newsos6)
8400      lt_prog_compiler_pic='-KPIC'
8401      lt_prog_compiler_static='-Bstatic'
8402      ;;
8403
8404    *nto* | *qnx*)
8405      # QNX uses GNU C++, but need to define -shared option too, otherwise
8406      # it will coredump.
8407      lt_prog_compiler_pic='-fPIC -shared'
8408      ;;
8409
8410    osf3* | osf4* | osf5*)
8411      lt_prog_compiler_wl='-Wl,'
8412      # All OSF/1 code is PIC.
8413      lt_prog_compiler_static='-non_shared'
8414      ;;
8415
8416    rdos*)
8417      lt_prog_compiler_static='-non_shared'
8418      ;;
8419
8420    solaris*)
8421      lt_prog_compiler_pic='-KPIC'
8422      lt_prog_compiler_static='-Bstatic'
8423      case $cc_basename in
8424      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8425	lt_prog_compiler_wl='-Qoption ld ';;
8426      *)
8427	lt_prog_compiler_wl='-Wl,';;
8428      esac
8429      ;;
8430
8431    sunos4*)
8432      lt_prog_compiler_wl='-Qoption ld '
8433      lt_prog_compiler_pic='-PIC'
8434      lt_prog_compiler_static='-Bstatic'
8435      ;;
8436
8437    sysv4 | sysv4.2uw2* | sysv4.3*)
8438      lt_prog_compiler_wl='-Wl,'
8439      lt_prog_compiler_pic='-KPIC'
8440      lt_prog_compiler_static='-Bstatic'
8441      ;;
8442
8443    sysv4*MP*)
8444      if test -d /usr/nec ;then
8445	lt_prog_compiler_pic='-Kconform_pic'
8446	lt_prog_compiler_static='-Bstatic'
8447      fi
8448      ;;
8449
8450    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8451      lt_prog_compiler_wl='-Wl,'
8452      lt_prog_compiler_pic='-KPIC'
8453      lt_prog_compiler_static='-Bstatic'
8454      ;;
8455
8456    unicos*)
8457      lt_prog_compiler_wl='-Wl,'
8458      lt_prog_compiler_can_build_shared=no
8459      ;;
8460
8461    uts4*)
8462      lt_prog_compiler_pic='-pic'
8463      lt_prog_compiler_static='-Bstatic'
8464      ;;
8465
8466    *)
8467      lt_prog_compiler_can_build_shared=no
8468      ;;
8469    esac
8470  fi
8471
8472case $host_os in
8473  # For platforms which do not support PIC, -DPIC is meaningless:
8474  *djgpp*)
8475    lt_prog_compiler_pic=
8476    ;;
8477  *)
8478    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8479    ;;
8480esac
8481
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8483$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8484if ${lt_cv_prog_compiler_pic+:} false; then :
8485  $as_echo_n "(cached) " >&6
8486else
8487  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8488fi
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8490$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8491lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8492
8493#
8494# Check to make sure the PIC flag actually works.
8495#
8496if test -n "$lt_prog_compiler_pic"; then
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8498$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8499if ${lt_cv_prog_compiler_pic_works+:} false; then :
8500  $as_echo_n "(cached) " >&6
8501else
8502  lt_cv_prog_compiler_pic_works=no
8503   ac_outfile=conftest.$ac_objext
8504   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8505   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8506   # Insert the option either (1) after the last *FLAGS variable, or
8507   # (2) before a word containing "conftest.", or (3) at the end.
8508   # Note that $ac_compile itself does not contain backslashes and begins
8509   # with a dollar sign (not a hyphen), so the echo should work correctly.
8510   # The option is referenced via a variable to avoid confusing sed.
8511   lt_compile=`echo "$ac_compile" | $SED \
8512   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8513   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8514   -e 's:$: $lt_compiler_flag:'`
8515   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8516   (eval "$lt_compile" 2>conftest.err)
8517   ac_status=$?
8518   cat conftest.err >&5
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   if (exit $ac_status) && test -s "$ac_outfile"; then
8521     # The compiler can only warn and ignore the option if not recognized
8522     # So say no if there are warnings other than the usual output.
8523     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8524     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8526       lt_cv_prog_compiler_pic_works=yes
8527     fi
8528   fi
8529   $RM conftest*
8530
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8533$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8534
8535if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8536    case $lt_prog_compiler_pic in
8537     "" | " "*) ;;
8538     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8539     esac
8540else
8541    lt_prog_compiler_pic=
8542     lt_prog_compiler_can_build_shared=no
8543fi
8544
8545fi
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557#
8558# Check to make sure the static flag actually works.
8559#
8560wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8562$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8563if ${lt_cv_prog_compiler_static_works+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  lt_cv_prog_compiler_static_works=no
8567   save_LDFLAGS="$LDFLAGS"
8568   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8569   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8570   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8571     # The linker can only warn and ignore the option if not recognized
8572     # So say no if there are warnings
8573     if test -s conftest.err; then
8574       # Append any errors to the config.log.
8575       cat conftest.err 1>&5
8576       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8577       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8578       if diff conftest.exp conftest.er2 >/dev/null; then
8579         lt_cv_prog_compiler_static_works=yes
8580       fi
8581     else
8582       lt_cv_prog_compiler_static_works=yes
8583     fi
8584   fi
8585   $RM -r conftest*
8586   LDFLAGS="$save_LDFLAGS"
8587
8588fi
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8590$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8591
8592if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8593    :
8594else
8595    lt_prog_compiler_static=
8596fi
8597
8598
8599
8600
8601
8602
8603
8604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8605$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8606if ${lt_cv_prog_compiler_c_o+:} false; then :
8607  $as_echo_n "(cached) " >&6
8608else
8609  lt_cv_prog_compiler_c_o=no
8610   $RM -r conftest 2>/dev/null
8611   mkdir conftest
8612   cd conftest
8613   mkdir out
8614   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8615
8616   lt_compiler_flag="-o out/conftest2.$ac_objext"
8617   # Insert the option either (1) after the last *FLAGS variable, or
8618   # (2) before a word containing "conftest.", or (3) at the end.
8619   # Note that $ac_compile itself does not contain backslashes and begins
8620   # with a dollar sign (not a hyphen), so the echo should work correctly.
8621   lt_compile=`echo "$ac_compile" | $SED \
8622   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8623   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8624   -e 's:$: $lt_compiler_flag:'`
8625   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8626   (eval "$lt_compile" 2>out/conftest.err)
8627   ac_status=$?
8628   cat out/conftest.err >&5
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8631   then
8632     # The compiler can only warn and ignore the option if not recognized
8633     # So say no if there are warnings
8634     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8635     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8636     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8637       lt_cv_prog_compiler_c_o=yes
8638     fi
8639   fi
8640   chmod u+w . 2>&5
8641   $RM conftest*
8642   # SGI C++ compiler will create directory out/ii_files/ for
8643   # template instantiation
8644   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8645   $RM out/* && rmdir out
8646   cd ..
8647   $RM -r conftest
8648   $RM conftest*
8649
8650fi
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8652$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8653
8654
8655
8656
8657
8658
8659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8660$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8661if ${lt_cv_prog_compiler_c_o+:} false; then :
8662  $as_echo_n "(cached) " >&6
8663else
8664  lt_cv_prog_compiler_c_o=no
8665   $RM -r conftest 2>/dev/null
8666   mkdir conftest
8667   cd conftest
8668   mkdir out
8669   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670
8671   lt_compiler_flag="-o out/conftest2.$ac_objext"
8672   # Insert the option either (1) after the last *FLAGS variable, or
8673   # (2) before a word containing "conftest.", or (3) at the end.
8674   # Note that $ac_compile itself does not contain backslashes and begins
8675   # with a dollar sign (not a hyphen), so the echo should work correctly.
8676   lt_compile=`echo "$ac_compile" | $SED \
8677   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679   -e 's:$: $lt_compiler_flag:'`
8680   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8681   (eval "$lt_compile" 2>out/conftest.err)
8682   ac_status=$?
8683   cat out/conftest.err >&5
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8686   then
8687     # The compiler can only warn and ignore the option if not recognized
8688     # So say no if there are warnings
8689     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8690     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8691     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8692       lt_cv_prog_compiler_c_o=yes
8693     fi
8694   fi
8695   chmod u+w . 2>&5
8696   $RM conftest*
8697   # SGI C++ compiler will create directory out/ii_files/ for
8698   # template instantiation
8699   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8700   $RM out/* && rmdir out
8701   cd ..
8702   $RM -r conftest
8703   $RM conftest*
8704
8705fi
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8707$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8708
8709
8710
8711
8712hard_links="nottested"
8713if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8714  # do not overwrite the value of need_locks provided by the user
8715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8716$as_echo_n "checking if we can lock with hard links... " >&6; }
8717  hard_links=yes
8718  $RM conftest*
8719  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8720  touch conftest.a
8721  ln conftest.a conftest.b 2>&5 || hard_links=no
8722  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8724$as_echo "$hard_links" >&6; }
8725  if test "$hard_links" = no; then
8726    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8727$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8728    need_locks=warn
8729  fi
8730else
8731  need_locks=no
8732fi
8733
8734
8735
8736
8737
8738
8739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8740$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8741
8742  runpath_var=
8743  allow_undefined_flag=
8744  always_export_symbols=no
8745  archive_cmds=
8746  archive_expsym_cmds=
8747  compiler_needs_object=no
8748  enable_shared_with_static_runtimes=no
8749  export_dynamic_flag_spec=
8750  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8751  hardcode_automatic=no
8752  hardcode_direct=no
8753  hardcode_direct_absolute=no
8754  hardcode_libdir_flag_spec=
8755  hardcode_libdir_flag_spec_ld=
8756  hardcode_libdir_separator=
8757  hardcode_minus_L=no
8758  hardcode_shlibpath_var=unsupported
8759  inherit_rpath=no
8760  link_all_deplibs=unknown
8761  module_cmds=
8762  module_expsym_cmds=
8763  old_archive_from_new_cmds=
8764  old_archive_from_expsyms_cmds=
8765  thread_safe_flag_spec=
8766  whole_archive_flag_spec=
8767  # include_expsyms should be a list of space-separated symbols to be *always*
8768  # included in the symbol list
8769  include_expsyms=
8770  # exclude_expsyms can be an extended regexp of symbols to exclude
8771  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8772  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8773  # as well as any symbol that contains `d'.
8774  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8775  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8776  # platforms (ab)use it in PIC code, but their linkers get confused if
8777  # the symbol is explicitly referenced.  Since portable code cannot
8778  # rely on this symbol name, it's probably fine to never include it in
8779  # preloaded symbol tables.
8780  # Exclude shared library initialization/finalization symbols.
8781  extract_expsyms_cmds=
8782
8783  case $host_os in
8784  cygwin* | mingw* | pw32* | cegcc*)
8785    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8786    # When not using gcc, we currently assume that we are using
8787    # Microsoft Visual C++.
8788    if test "$GCC" != yes; then
8789      with_gnu_ld=no
8790    fi
8791    ;;
8792  interix*)
8793    # we just hope/assume this is gcc and not c89 (= MSVC++)
8794    with_gnu_ld=yes
8795    ;;
8796  openbsd*)
8797    with_gnu_ld=no
8798    ;;
8799  esac
8800
8801  ld_shlibs=yes
8802
8803  # On some targets, GNU ld is compatible enough with the native linker
8804  # that we're better off using the native interface for both.
8805  lt_use_gnu_ld_interface=no
8806  if test "$with_gnu_ld" = yes; then
8807    case $host_os in
8808      aix*)
8809	# The AIX port of GNU ld has always aspired to compatibility
8810	# with the native linker.  However, as the warning in the GNU ld
8811	# block says, versions before 2.19.5* couldn't really create working
8812	# shared libraries, regardless of the interface used.
8813	case `$LD -v 2>&1` in
8814	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8815	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8816	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8817	  *)
8818	    lt_use_gnu_ld_interface=yes
8819	    ;;
8820	esac
8821	;;
8822      *)
8823	lt_use_gnu_ld_interface=yes
8824	;;
8825    esac
8826  fi
8827
8828  if test "$lt_use_gnu_ld_interface" = yes; then
8829    # If archive_cmds runs LD, not CC, wlarc should be empty
8830    wlarc='${wl}'
8831
8832    # Set some defaults for GNU ld with shared library support. These
8833    # are reset later if shared libraries are not supported. Putting them
8834    # here allows them to be overridden if necessary.
8835    runpath_var=LD_RUN_PATH
8836    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837    export_dynamic_flag_spec='${wl}--export-dynamic'
8838    # ancient GNU ld didn't support --whole-archive et. al.
8839    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8840      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8841    else
8842      whole_archive_flag_spec=
8843    fi
8844    supports_anon_versioning=no
8845    case `$LD -v 2>&1` in
8846      *GNU\ gold*) supports_anon_versioning=yes ;;
8847      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8848      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8849      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8850      *\ 2.11.*) ;; # other 2.11 versions
8851      *) supports_anon_versioning=yes ;;
8852    esac
8853
8854    # See if GNU ld supports shared libraries.
8855    case $host_os in
8856    aix[3-9]*)
8857      # On AIX/PPC, the GNU linker is very broken
8858      if test "$host_cpu" != ia64; then
8859	ld_shlibs=no
8860	cat <<_LT_EOF 1>&2
8861
8862*** Warning: the GNU linker, at least up to release 2.19, is reported
8863*** to be unable to reliably create shared libraries on AIX.
8864*** Therefore, libtool is disabling shared libraries support.  If you
8865*** really care for shared libraries, you may want to install binutils
8866*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8867*** You will then need to restart the configuration process.
8868
8869_LT_EOF
8870      fi
8871      ;;
8872
8873    amigaos*)
8874      case $host_cpu in
8875      powerpc)
8876            # see comment about AmigaOS4 .so support
8877            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878            archive_expsym_cmds=''
8879        ;;
8880      m68k)
8881            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)'
8882            hardcode_libdir_flag_spec='-L$libdir'
8883            hardcode_minus_L=yes
8884        ;;
8885      esac
8886      ;;
8887
8888    beos*)
8889      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8890	allow_undefined_flag=unsupported
8891	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8892	# support --undefined.  This deserves some investigation.  FIXME
8893	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894      else
8895	ld_shlibs=no
8896      fi
8897      ;;
8898
8899    cygwin* | mingw* | pw32* | cegcc*)
8900      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8901      # as there is no search path for DLLs.
8902      hardcode_libdir_flag_spec='-L$libdir'
8903      export_dynamic_flag_spec='${wl}--export-all-symbols'
8904      allow_undefined_flag=unsupported
8905      always_export_symbols=no
8906      enable_shared_with_static_runtimes=yes
8907      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'
8908      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8909
8910      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8911        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8912	# If the export-symbols file already is a .def file (1st line
8913	# is EXPORTS), use it as is; otherwise, prepend...
8914	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8915	  cp $export_symbols $output_objdir/$soname.def;
8916	else
8917	  echo EXPORTS > $output_objdir/$soname.def;
8918	  cat $export_symbols >> $output_objdir/$soname.def;
8919	fi~
8920	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8921      else
8922	ld_shlibs=no
8923      fi
8924      ;;
8925
8926    haiku*)
8927      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928      link_all_deplibs=yes
8929      ;;
8930
8931    interix[3-9]*)
8932      hardcode_direct=no
8933      hardcode_shlibpath_var=no
8934      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935      export_dynamic_flag_spec='${wl}-E'
8936      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8937      # Instead, shared libraries are loaded at an image base (0x10000000 by
8938      # default) and relocated if they conflict, which is a slow very memory
8939      # consuming and fragmenting process.  To avoid this, we pick a random,
8940      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8941      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8942      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8943      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'
8944      ;;
8945
8946    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8947      tmp_diet=no
8948      if test "$host_os" = linux-dietlibc; then
8949	case $cc_basename in
8950	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8951	esac
8952      fi
8953      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8954	 && test "$tmp_diet" = no
8955      then
8956	tmp_addflag=' $pic_flag'
8957	tmp_sharedflag='-shared'
8958	case $cc_basename,$host_cpu in
8959        pgcc*)				# Portland Group C compiler
8960	  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'
8961	  tmp_addflag=' $pic_flag'
8962	  ;;
8963	pgf77* | pgf90* | pgf95* | pgfortran*)
8964					# Portland Group f77 and f90 compilers
8965	  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'
8966	  tmp_addflag=' $pic_flag -Mnomain' ;;
8967	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8968	  tmp_addflag=' -i_dynamic' ;;
8969	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8970	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8971	ifc* | ifort*)			# Intel Fortran compiler
8972	  tmp_addflag=' -nofor_main' ;;
8973	lf95*)				# Lahey Fortran 8.1
8974	  whole_archive_flag_spec=
8975	  tmp_sharedflag='--shared' ;;
8976	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8977	  tmp_sharedflag='-qmkshrobj'
8978	  tmp_addflag= ;;
8979	nvcc*)	# Cuda Compiler Driver 2.2
8980	  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'
8981	  compiler_needs_object=yes
8982	  ;;
8983	esac
8984	case `$CC -V 2>&1 | sed 5q` in
8985	*Sun\ C*)			# Sun C 5.9
8986	  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'
8987	  compiler_needs_object=yes
8988	  tmp_sharedflag='-G' ;;
8989	*Sun\ F*)			# Sun Fortran 8.3
8990	  tmp_sharedflag='-G' ;;
8991	esac
8992	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993
8994        if test "x$supports_anon_versioning" = xyes; then
8995          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8996	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8997	    echo "local: *; };" >> $output_objdir/$libname.ver~
8998	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8999        fi
9000
9001	case $cc_basename in
9002	xlf* | bgf* | bgxlf* | mpixlf*)
9003	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9004	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9005	  hardcode_libdir_flag_spec=
9006	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9007	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9008	  if test "x$supports_anon_versioning" = xyes; then
9009	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9010	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9011	      echo "local: *; };" >> $output_objdir/$libname.ver~
9012	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9013	  fi
9014	  ;;
9015	esac
9016      else
9017        ld_shlibs=no
9018      fi
9019      ;;
9020
9021    netbsd*)
9022      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9023	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9024	wlarc=
9025      else
9026	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9028      fi
9029      ;;
9030
9031    solaris*)
9032      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9033	ld_shlibs=no
9034	cat <<_LT_EOF 1>&2
9035
9036*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9037*** create shared libraries on Solaris systems.  Therefore, libtool
9038*** is disabling shared libraries support.  We urge you to upgrade GNU
9039*** binutils to release 2.9.1 or newer.  Another option is to modify
9040*** your PATH or compiler configuration so that the native linker is
9041*** used, and then restart.
9042
9043_LT_EOF
9044      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9045	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9047      else
9048	ld_shlibs=no
9049      fi
9050      ;;
9051
9052    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9053      case `$LD -v 2>&1` in
9054        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9055	ld_shlibs=no
9056	cat <<_LT_EOF 1>&2
9057
9058*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9059*** reliably create shared libraries on SCO systems.  Therefore, libtool
9060*** is disabling shared libraries support.  We urge you to upgrade GNU
9061*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9062*** your PATH or compiler configuration so that the native linker is
9063*** used, and then restart.
9064
9065_LT_EOF
9066	;;
9067	*)
9068	  # For security reasons, it is highly recommended that you always
9069	  # use absolute paths for naming shared libraries, and exclude the
9070	  # DT_RUNPATH tag from executables and libraries.  But doing so
9071	  # requires that you compile everything twice, which is a pain.
9072	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9073	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076	  else
9077	    ld_shlibs=no
9078	  fi
9079	;;
9080      esac
9081      ;;
9082
9083    sunos4*)
9084      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9085      wlarc=
9086      hardcode_direct=yes
9087      hardcode_shlibpath_var=no
9088      ;;
9089
9090    *)
9091      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9092	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9094      else
9095	ld_shlibs=no
9096      fi
9097      ;;
9098    esac
9099
9100    if test "$ld_shlibs" = no; then
9101      runpath_var=
9102      hardcode_libdir_flag_spec=
9103      export_dynamic_flag_spec=
9104      whole_archive_flag_spec=
9105    fi
9106  else
9107    # PORTME fill in a description of your system's linker (not GNU ld)
9108    case $host_os in
9109    aix3*)
9110      allow_undefined_flag=unsupported
9111      always_export_symbols=yes
9112      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'
9113      # Note: this linker hardcodes the directories in LIBPATH if there
9114      # are no directories specified by -L.
9115      hardcode_minus_L=yes
9116      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9117	# Neither direct hardcoding nor static linking is supported with a
9118	# broken collect2.
9119	hardcode_direct=unsupported
9120      fi
9121      ;;
9122
9123    aix[4-9]*)
9124      if test "$host_cpu" = ia64; then
9125	# On IA64, the linker does run time linking by default, so we don't
9126	# have to do anything special.
9127	aix_use_runtimelinking=no
9128	exp_sym_flag='-Bexport'
9129	no_entry_flag=""
9130      else
9131	# If we're using GNU nm, then we don't want the "-C" option.
9132	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9133	# Also, AIX nm treats weak defined symbols like other global
9134	# defined symbols, whereas GNU nm marks them as "W".
9135	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9136	  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'
9137	else
9138	  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'
9139	fi
9140	aix_use_runtimelinking=no
9141
9142	# Test if we are trying to use run time linking or normal
9143	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9144	# need to do runtime linking.
9145	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9146	  for ld_flag in $LDFLAGS; do
9147	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9148	    aix_use_runtimelinking=yes
9149	    break
9150	  fi
9151	  done
9152	  ;;
9153	esac
9154
9155	exp_sym_flag='-bexport'
9156	no_entry_flag='-bnoentry'
9157      fi
9158
9159      # When large executables or shared objects are built, AIX ld can
9160      # have problems creating the table of contents.  If linking a library
9161      # or program results in "error TOC overflow" add -mminimal-toc to
9162      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9163      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9164
9165      archive_cmds=''
9166      hardcode_direct=yes
9167      hardcode_direct_absolute=yes
9168      hardcode_libdir_separator=':'
9169      link_all_deplibs=yes
9170      file_list_spec='${wl}-f,'
9171
9172      if test "$GCC" = yes; then
9173	case $host_os in aix4.[012]|aix4.[012].*)
9174	# We only want to do this on AIX 4.2 and lower, the check
9175	# below for broken collect2 doesn't work under 4.3+
9176	  collect2name=`${CC} -print-prog-name=collect2`
9177	  if test -f "$collect2name" &&
9178	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9179	  then
9180	  # We have reworked collect2
9181	  :
9182	  else
9183	  # We have old collect2
9184	  hardcode_direct=unsupported
9185	  # It fails to find uninstalled libraries when the uninstalled
9186	  # path is not listed in the libpath.  Setting hardcode_minus_L
9187	  # to unsupported forces relinking
9188	  hardcode_minus_L=yes
9189	  hardcode_libdir_flag_spec='-L$libdir'
9190	  hardcode_libdir_separator=
9191	  fi
9192	  ;;
9193	esac
9194	shared_flag='-shared'
9195	if test "$aix_use_runtimelinking" = yes; then
9196	  shared_flag="$shared_flag "'${wl}-G'
9197	fi
9198      else
9199	# not using gcc
9200	if test "$host_cpu" = ia64; then
9201	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9202	# chokes on -Wl,-G. The following line is correct:
9203	  shared_flag='-G'
9204	else
9205	  if test "$aix_use_runtimelinking" = yes; then
9206	    shared_flag='${wl}-G'
9207	  else
9208	    shared_flag='${wl}-bM:SRE'
9209	  fi
9210	fi
9211      fi
9212
9213      export_dynamic_flag_spec='${wl}-bexpall'
9214      # It seems that -bexpall does not export symbols beginning with
9215      # underscore (_), so it is better to generate a list of symbols to export.
9216      always_export_symbols=yes
9217      if test "$aix_use_runtimelinking" = yes; then
9218	# Warning - without using the other runtime loading flags (-brtl),
9219	# -berok will link without error, but may produce a broken library.
9220	allow_undefined_flag='-berok'
9221        # Determine the default libpath from the value encoded in an
9222        # empty executable.
9223        if test "${lt_cv_aix_libpath+set}" = set; then
9224  aix_libpath=$lt_cv_aix_libpath
9225else
9226  if ${lt_cv_aix_libpath_+:} false; then :
9227  $as_echo_n "(cached) " >&6
9228else
9229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230/* end confdefs.h.  */
9231
9232int
9233main ()
9234{
9235
9236  ;
9237  return 0;
9238}
9239_ACEOF
9240if ac_fn_c_try_link "$LINENO"; then :
9241
9242  lt_aix_libpath_sed='
9243      /Import File Strings/,/^$/ {
9244	  /^0/ {
9245	      s/^0  *\([^ ]*\) *$/\1/
9246	      p
9247	  }
9248      }'
9249  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9250  # Check for a 64-bit object if we didn't find anything.
9251  if test -z "$lt_cv_aix_libpath_"; then
9252    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9253  fi
9254fi
9255rm -f core conftest.err conftest.$ac_objext \
9256    conftest$ac_exeext conftest.$ac_ext
9257  if test -z "$lt_cv_aix_libpath_"; then
9258    lt_cv_aix_libpath_="/usr/lib:/lib"
9259  fi
9260
9261fi
9262
9263  aix_libpath=$lt_cv_aix_libpath_
9264fi
9265
9266        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9267        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"
9268      else
9269	if test "$host_cpu" = ia64; then
9270	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9271	  allow_undefined_flag="-z nodefs"
9272	  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"
9273	else
9274	 # Determine the default libpath from the value encoded in an
9275	 # empty executable.
9276	 if test "${lt_cv_aix_libpath+set}" = set; then
9277  aix_libpath=$lt_cv_aix_libpath
9278else
9279  if ${lt_cv_aix_libpath_+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283/* end confdefs.h.  */
9284
9285int
9286main ()
9287{
9288
9289  ;
9290  return 0;
9291}
9292_ACEOF
9293if ac_fn_c_try_link "$LINENO"; then :
9294
9295  lt_aix_libpath_sed='
9296      /Import File Strings/,/^$/ {
9297	  /^0/ {
9298	      s/^0  *\([^ ]*\) *$/\1/
9299	      p
9300	  }
9301      }'
9302  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9303  # Check for a 64-bit object if we didn't find anything.
9304  if test -z "$lt_cv_aix_libpath_"; then
9305    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9306  fi
9307fi
9308rm -f core conftest.err conftest.$ac_objext \
9309    conftest$ac_exeext conftest.$ac_ext
9310  if test -z "$lt_cv_aix_libpath_"; then
9311    lt_cv_aix_libpath_="/usr/lib:/lib"
9312  fi
9313
9314fi
9315
9316  aix_libpath=$lt_cv_aix_libpath_
9317fi
9318
9319	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9320	  # Warning - without using the other run time loading flags,
9321	  # -berok will link without error, but may produce a broken library.
9322	  no_undefined_flag=' ${wl}-bernotok'
9323	  allow_undefined_flag=' ${wl}-berok'
9324	  if test "$with_gnu_ld" = yes; then
9325	    # We only use this code for GNU lds that support --whole-archive.
9326	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9327	  else
9328	    # Exported symbols can be pulled into shared objects from archives
9329	    whole_archive_flag_spec='$convenience'
9330	  fi
9331	  archive_cmds_need_lc=yes
9332	  # This is similar to how AIX traditionally builds its shared libraries.
9333	  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'
9334	fi
9335      fi
9336      ;;
9337
9338    amigaos*)
9339      case $host_cpu in
9340      powerpc)
9341            # see comment about AmigaOS4 .so support
9342            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343            archive_expsym_cmds=''
9344        ;;
9345      m68k)
9346            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)'
9347            hardcode_libdir_flag_spec='-L$libdir'
9348            hardcode_minus_L=yes
9349        ;;
9350      esac
9351      ;;
9352
9353    bsdi[45]*)
9354      export_dynamic_flag_spec=-rdynamic
9355      ;;
9356
9357    cygwin* | mingw* | pw32* | cegcc*)
9358      # When not using gcc, we currently assume that we are using
9359      # Microsoft Visual C++.
9360      # hardcode_libdir_flag_spec is actually meaningless, as there is
9361      # no search path for DLLs.
9362      case $cc_basename in
9363      cl*)
9364	# Native MSVC
9365	hardcode_libdir_flag_spec=' '
9366	allow_undefined_flag=unsupported
9367	always_export_symbols=yes
9368	file_list_spec='@'
9369	# Tell ltmain to make .lib files, not .a files.
9370	libext=lib
9371	# Tell ltmain to make .dll files, not .so files.
9372	shrext_cmds=".dll"
9373	# FIXME: Setting linknames here is a bad hack.
9374	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9375	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9376	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9377	  else
9378	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9379	  fi~
9380	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9381	  linknames='
9382	# The linker will not automatically build a static lib if we build a DLL.
9383	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9384	enable_shared_with_static_runtimes=yes
9385	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9386	# Don't use ranlib
9387	old_postinstall_cmds='chmod 644 $oldlib'
9388	postlink_cmds='lt_outputfile="@OUTPUT@"~
9389	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9390	  case $lt_outputfile in
9391	    *.exe|*.EXE) ;;
9392	    *)
9393	      lt_outputfile="$lt_outputfile.exe"
9394	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9395	      ;;
9396	  esac~
9397	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9398	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9399	    $RM "$lt_outputfile.manifest";
9400	  fi'
9401	;;
9402      *)
9403	# Assume MSVC wrapper
9404	hardcode_libdir_flag_spec=' '
9405	allow_undefined_flag=unsupported
9406	# Tell ltmain to make .lib files, not .a files.
9407	libext=lib
9408	# Tell ltmain to make .dll files, not .so files.
9409	shrext_cmds=".dll"
9410	# FIXME: Setting linknames here is a bad hack.
9411	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9412	# The linker will automatically build a .lib file if we build a DLL.
9413	old_archive_from_new_cmds='true'
9414	# FIXME: Should let the user specify the lib program.
9415	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9416	enable_shared_with_static_runtimes=yes
9417	;;
9418      esac
9419      ;;
9420
9421    darwin* | rhapsody*)
9422
9423
9424  archive_cmds_need_lc=no
9425  hardcode_direct=no
9426  hardcode_automatic=yes
9427  hardcode_shlibpath_var=unsupported
9428  if test "$lt_cv_ld_force_load" = "yes"; then
9429    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\"`'
9430  else
9431    whole_archive_flag_spec=''
9432  fi
9433  link_all_deplibs=yes
9434  allow_undefined_flag="$_lt_dar_allow_undefined"
9435  case $cc_basename in
9436     ifort*) _lt_dar_can_shared=yes ;;
9437     *) _lt_dar_can_shared=$GCC ;;
9438  esac
9439  if test "$_lt_dar_can_shared" = "yes"; then
9440    output_verbose_link_cmd=func_echo_all
9441    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9442    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9443    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}"
9444    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}"
9445
9446  else
9447  ld_shlibs=no
9448  fi
9449
9450      ;;
9451
9452    dgux*)
9453      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454      hardcode_libdir_flag_spec='-L$libdir'
9455      hardcode_shlibpath_var=no
9456      ;;
9457
9458    freebsd1*)
9459      ld_shlibs=no
9460      ;;
9461
9462    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9463    # support.  Future versions do this automatically, but an explicit c++rt0.o
9464    # does not break anything, and helps significantly (at the cost of a little
9465    # extra space).
9466    freebsd2.2*)
9467      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9468      hardcode_libdir_flag_spec='-R$libdir'
9469      hardcode_direct=yes
9470      hardcode_shlibpath_var=no
9471      ;;
9472
9473    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9474    freebsd2*)
9475      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476      hardcode_direct=yes
9477      hardcode_minus_L=yes
9478      hardcode_shlibpath_var=no
9479      ;;
9480
9481    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9482    freebsd* | dragonfly*)
9483      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9484      hardcode_libdir_flag_spec='-R$libdir'
9485      hardcode_direct=yes
9486      hardcode_shlibpath_var=no
9487      ;;
9488
9489    hpux9*)
9490      if test "$GCC" = yes; then
9491	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'
9492      else
9493	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'
9494      fi
9495      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9496      hardcode_libdir_separator=:
9497      hardcode_direct=yes
9498
9499      # hardcode_minus_L: Not really in the search PATH,
9500      # but as the default location of the library.
9501      hardcode_minus_L=yes
9502      export_dynamic_flag_spec='${wl}-E'
9503      ;;
9504
9505    hpux10*)
9506      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9507	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9508      else
9509	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9510      fi
9511      if test "$with_gnu_ld" = no; then
9512	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9513	hardcode_libdir_flag_spec_ld='+b $libdir'
9514	hardcode_libdir_separator=:
9515	hardcode_direct=yes
9516	hardcode_direct_absolute=yes
9517	export_dynamic_flag_spec='${wl}-E'
9518	# hardcode_minus_L: Not really in the search PATH,
9519	# but as the default location of the library.
9520	hardcode_minus_L=yes
9521      fi
9522      ;;
9523
9524    hpux11*)
9525      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9526	case $host_cpu in
9527	hppa*64*)
9528	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9529	  ;;
9530	ia64*)
9531	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9532	  ;;
9533	*)
9534	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535	  ;;
9536	esac
9537      else
9538	case $host_cpu in
9539	hppa*64*)
9540	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9541	  ;;
9542	ia64*)
9543	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9544	  ;;
9545	*)
9546
9547	  # Older versions of the 11.00 compiler do not understand -b yet
9548	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9549	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9550$as_echo_n "checking if $CC understands -b... " >&6; }
9551if ${lt_cv_prog_compiler__b+:} false; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  lt_cv_prog_compiler__b=no
9555   save_LDFLAGS="$LDFLAGS"
9556   LDFLAGS="$LDFLAGS -b"
9557   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9558   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9559     # The linker can only warn and ignore the option if not recognized
9560     # So say no if there are warnings
9561     if test -s conftest.err; then
9562       # Append any errors to the config.log.
9563       cat conftest.err 1>&5
9564       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9565       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9566       if diff conftest.exp conftest.er2 >/dev/null; then
9567         lt_cv_prog_compiler__b=yes
9568       fi
9569     else
9570       lt_cv_prog_compiler__b=yes
9571     fi
9572   fi
9573   $RM -r conftest*
9574   LDFLAGS="$save_LDFLAGS"
9575
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9578$as_echo "$lt_cv_prog_compiler__b" >&6; }
9579
9580if test x"$lt_cv_prog_compiler__b" = xyes; then
9581    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9582else
9583    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9584fi
9585
9586	  ;;
9587	esac
9588      fi
9589      if test "$with_gnu_ld" = no; then
9590	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9591	hardcode_libdir_separator=:
9592
9593	case $host_cpu in
9594	hppa*64*|ia64*)
9595	  hardcode_direct=no
9596	  hardcode_shlibpath_var=no
9597	  ;;
9598	*)
9599	  hardcode_direct=yes
9600	  hardcode_direct_absolute=yes
9601	  export_dynamic_flag_spec='${wl}-E'
9602
9603	  # hardcode_minus_L: Not really in the search PATH,
9604	  # but as the default location of the library.
9605	  hardcode_minus_L=yes
9606	  ;;
9607	esac
9608      fi
9609      ;;
9610
9611    irix5* | irix6* | nonstopux*)
9612      if test "$GCC" = yes; then
9613	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'
9614	# Try to use the -exported_symbol ld option, if it does not
9615	# work, assume that -exports_file does not work either and
9616	# implicitly export all symbols.
9617	# This should be the same for all languages, so no per-tag cache variable.
9618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9619$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9620if ${lt_cv_irix_exported_symbol+:} false; then :
9621  $as_echo_n "(cached) " >&6
9622else
9623  save_LDFLAGS="$LDFLAGS"
9624	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9625	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h.  */
9627int foo (void) { return 0; }
9628_ACEOF
9629if ac_fn_c_try_link "$LINENO"; then :
9630  lt_cv_irix_exported_symbol=yes
9631else
9632  lt_cv_irix_exported_symbol=no
9633fi
9634rm -f core conftest.err conftest.$ac_objext \
9635    conftest$ac_exeext conftest.$ac_ext
9636           LDFLAGS="$save_LDFLAGS"
9637fi
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9639$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9640	if test "$lt_cv_irix_exported_symbol" = yes; then
9641          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'
9642	fi
9643      else
9644	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'
9645	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'
9646      fi
9647      archive_cmds_need_lc='no'
9648      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649      hardcode_libdir_separator=:
9650      inherit_rpath=yes
9651      link_all_deplibs=yes
9652      ;;
9653
9654    netbsd*)
9655      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9656	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9657      else
9658	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9659      fi
9660      hardcode_libdir_flag_spec='-R$libdir'
9661      hardcode_direct=yes
9662      hardcode_shlibpath_var=no
9663      ;;
9664
9665    newsos6)
9666      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667      hardcode_direct=yes
9668      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9669      hardcode_libdir_separator=:
9670      hardcode_shlibpath_var=no
9671      ;;
9672
9673    *nto* | *qnx*)
9674      ;;
9675
9676    openbsd*)
9677      if test -f /usr/libexec/ld.so; then
9678	hardcode_direct=yes
9679	hardcode_shlibpath_var=no
9680	hardcode_direct_absolute=yes
9681	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9682	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9683	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9684	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9685	  export_dynamic_flag_spec='${wl}-E'
9686	else
9687	  case $host_os in
9688	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9689	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9690	     hardcode_libdir_flag_spec='-R$libdir'
9691	     ;;
9692	   *)
9693	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9694	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9695	     ;;
9696	  esac
9697	fi
9698      else
9699	ld_shlibs=no
9700      fi
9701      ;;
9702
9703    os2*)
9704      hardcode_libdir_flag_spec='-L$libdir'
9705      hardcode_minus_L=yes
9706      allow_undefined_flag=unsupported
9707      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'
9708      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9709      ;;
9710
9711    osf3*)
9712      if test "$GCC" = yes; then
9713	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9714	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'
9715      else
9716	allow_undefined_flag=' -expect_unresolved \*'
9717	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'
9718      fi
9719      archive_cmds_need_lc='no'
9720      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721      hardcode_libdir_separator=:
9722      ;;
9723
9724    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9725      if test "$GCC" = yes; then
9726	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9727	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'
9728	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9729      else
9730	allow_undefined_flag=' -expect_unresolved \*'
9731	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'
9732	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~
9733	$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'
9734
9735	# Both c and cxx compiler support -rpath directly
9736	hardcode_libdir_flag_spec='-rpath $libdir'
9737      fi
9738      archive_cmds_need_lc='no'
9739      hardcode_libdir_separator=:
9740      ;;
9741
9742    solaris*)
9743      no_undefined_flag=' -z defs'
9744      if test "$GCC" = yes; then
9745	wlarc='${wl}'
9746	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9747	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9748	  $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'
9749      else
9750	case `$CC -V 2>&1` in
9751	*"Compilers 5.0"*)
9752	  wlarc=''
9753	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9755	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9756	  ;;
9757	*)
9758	  wlarc='${wl}'
9759	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9760	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9761	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9762	  ;;
9763	esac
9764      fi
9765      hardcode_libdir_flag_spec='-R$libdir'
9766      hardcode_shlibpath_var=no
9767      case $host_os in
9768      solaris2.[0-5] | solaris2.[0-5].*) ;;
9769      *)
9770	# The compiler driver will combine and reorder linker options,
9771	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9772	# but is careful enough not to reorder.
9773	# Supported since Solaris 2.6 (maybe 2.5.1?)
9774	if test "$GCC" = yes; then
9775	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9776	else
9777	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9778	fi
9779	;;
9780      esac
9781      link_all_deplibs=yes
9782      ;;
9783
9784    sunos4*)
9785      if test "x$host_vendor" = xsequent; then
9786	# Use $CC to link under sequent, because it throws in some extra .o
9787	# files that make .init and .fini sections work.
9788	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9789      else
9790	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9791      fi
9792      hardcode_libdir_flag_spec='-L$libdir'
9793      hardcode_direct=yes
9794      hardcode_minus_L=yes
9795      hardcode_shlibpath_var=no
9796      ;;
9797
9798    sysv4)
9799      case $host_vendor in
9800	sni)
9801	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802	  hardcode_direct=yes # is this really true???
9803	;;
9804	siemens)
9805	  ## LD is ld it makes a PLAMLIB
9806	  ## CC just makes a GrossModule.
9807	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9808	  reload_cmds='$CC -r -o $output$reload_objs'
9809	  hardcode_direct=no
9810        ;;
9811	motorola)
9812	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9814	;;
9815      esac
9816      runpath_var='LD_RUN_PATH'
9817      hardcode_shlibpath_var=no
9818      ;;
9819
9820    sysv4.3*)
9821      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822      hardcode_shlibpath_var=no
9823      export_dynamic_flag_spec='-Bexport'
9824      ;;
9825
9826    sysv4*MP*)
9827      if test -d /usr/nec; then
9828	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829	hardcode_shlibpath_var=no
9830	runpath_var=LD_RUN_PATH
9831	hardcode_runpath_var=yes
9832	ld_shlibs=yes
9833      fi
9834      ;;
9835
9836    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9837      no_undefined_flag='${wl}-z,text'
9838      archive_cmds_need_lc=no
9839      hardcode_shlibpath_var=no
9840      runpath_var='LD_RUN_PATH'
9841
9842      if test "$GCC" = yes; then
9843	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845      else
9846	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848      fi
9849      ;;
9850
9851    sysv5* | sco3.2v5* | sco5v6*)
9852      # Note: We can NOT use -z defs as we might desire, because we do not
9853      # link with -lc, and that would cause any symbols used from libc to
9854      # always be unresolved, which means just about no library would
9855      # ever link correctly.  If we're not using GNU ld we use -z text
9856      # though, which does catch some bad symbols but isn't as heavy-handed
9857      # as -z defs.
9858      no_undefined_flag='${wl}-z,text'
9859      allow_undefined_flag='${wl}-z,nodefs'
9860      archive_cmds_need_lc=no
9861      hardcode_shlibpath_var=no
9862      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9863      hardcode_libdir_separator=':'
9864      link_all_deplibs=yes
9865      export_dynamic_flag_spec='${wl}-Bexport'
9866      runpath_var='LD_RUN_PATH'
9867
9868      if test "$GCC" = yes; then
9869	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9870	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871      else
9872	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9873	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874      fi
9875      ;;
9876
9877    uts4*)
9878      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879      hardcode_libdir_flag_spec='-L$libdir'
9880      hardcode_shlibpath_var=no
9881      ;;
9882
9883    *)
9884      ld_shlibs=no
9885      ;;
9886    esac
9887
9888    if test x$host_vendor = xsni; then
9889      case $host in
9890      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9891	export_dynamic_flag_spec='${wl}-Blargedynsym'
9892	;;
9893      esac
9894    fi
9895  fi
9896
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9898$as_echo "$ld_shlibs" >&6; }
9899test "$ld_shlibs" = no && can_build_shared=no
9900
9901with_gnu_ld=$with_gnu_ld
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917#
9918# Do we need to explicitly link libc?
9919#
9920case "x$archive_cmds_need_lc" in
9921x|xyes)
9922  # Assume -lc should be added
9923  archive_cmds_need_lc=yes
9924
9925  if test "$enable_shared" = yes && test "$GCC" = yes; then
9926    case $archive_cmds in
9927    *'~'*)
9928      # FIXME: we may have to deal with multi-command sequences.
9929      ;;
9930    '$CC '*)
9931      # Test whether the compiler implicitly links with -lc since on some
9932      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9933      # to ld, don't add -lc before -lgcc.
9934      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9935$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9936if ${lt_cv_archive_cmds_need_lc+:} false; then :
9937  $as_echo_n "(cached) " >&6
9938else
9939  $RM conftest*
9940	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9941
9942	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9943  (eval $ac_compile) 2>&5
9944  ac_status=$?
9945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9946  test $ac_status = 0; } 2>conftest.err; then
9947	  soname=conftest
9948	  lib=conftest
9949	  libobjs=conftest.$ac_objext
9950	  deplibs=
9951	  wl=$lt_prog_compiler_wl
9952	  pic_flag=$lt_prog_compiler_pic
9953	  compiler_flags=-v
9954	  linker_flags=-v
9955	  verstring=
9956	  output_objdir=.
9957	  libname=conftest
9958	  lt_save_allow_undefined_flag=$allow_undefined_flag
9959	  allow_undefined_flag=
9960	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9961  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9962  ac_status=$?
9963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9964  test $ac_status = 0; }
9965	  then
9966	    lt_cv_archive_cmds_need_lc=no
9967	  else
9968	    lt_cv_archive_cmds_need_lc=yes
9969	  fi
9970	  allow_undefined_flag=$lt_save_allow_undefined_flag
9971	else
9972	  cat conftest.err 1>&5
9973	fi
9974	$RM conftest*
9975
9976fi
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9978$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9979      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9980      ;;
9981    esac
9982  fi
9983  ;;
9984esac
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10143$as_echo_n "checking dynamic linker characteristics... " >&6; }
10144
10145if test "$GCC" = yes; then
10146  case $host_os in
10147    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10148    *) lt_awk_arg="/^libraries:/" ;;
10149  esac
10150  case $host_os in
10151    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10152    *) lt_sed_strip_eq="s,=/,/,g" ;;
10153  esac
10154  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10155  case $lt_search_path_spec in
10156  *\;*)
10157    # if the path contains ";" then we assume it to be the separator
10158    # otherwise default to the standard path separator (i.e. ":") - it is
10159    # assumed that no part of a normal pathname contains ";" but that should
10160    # okay in the real world where ";" in dirpaths is itself problematic.
10161    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10162    ;;
10163  *)
10164    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10165    ;;
10166  esac
10167  # Ok, now we have the path, separated by spaces, we can step through it
10168  # and add multilib dir if necessary.
10169  lt_tmp_lt_search_path_spec=
10170  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10171  for lt_sys_path in $lt_search_path_spec; do
10172    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10173      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10174    else
10175      test -d "$lt_sys_path" && \
10176	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10177    fi
10178  done
10179  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10180BEGIN {RS=" "; FS="/|\n";} {
10181  lt_foo="";
10182  lt_count=0;
10183  for (lt_i = NF; lt_i > 0; lt_i--) {
10184    if ($lt_i != "" && $lt_i != ".") {
10185      if ($lt_i == "..") {
10186        lt_count++;
10187      } else {
10188        if (lt_count == 0) {
10189          lt_foo="/" $lt_i lt_foo;
10190        } else {
10191          lt_count--;
10192        }
10193      }
10194    }
10195  }
10196  if (lt_foo != "") { lt_freq[lt_foo]++; }
10197  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10198}'`
10199  # AWK program above erroneously prepends '/' to C:/dos/paths
10200  # for these hosts.
10201  case $host_os in
10202    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10203      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10204  esac
10205  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10206else
10207  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10208fi
10209library_names_spec=
10210libname_spec='lib$name'
10211soname_spec=
10212shrext_cmds=".so"
10213postinstall_cmds=
10214postuninstall_cmds=
10215finish_cmds=
10216finish_eval=
10217shlibpath_var=
10218shlibpath_overrides_runpath=unknown
10219version_type=none
10220dynamic_linker="$host_os ld.so"
10221sys_lib_dlsearch_path_spec="/lib /usr/lib"
10222need_lib_prefix=unknown
10223hardcode_into_libs=no
10224
10225# when you set need_version to no, make sure it does not cause -set_version
10226# flags to be left without arguments
10227need_version=unknown
10228
10229case $host_os in
10230aix3*)
10231  version_type=linux
10232  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10233  shlibpath_var=LIBPATH
10234
10235  # AIX 3 has no versioning support, so we append a major version to the name.
10236  soname_spec='${libname}${release}${shared_ext}$major'
10237  ;;
10238
10239aix[4-9]*)
10240  version_type=linux
10241  need_lib_prefix=no
10242  need_version=no
10243  hardcode_into_libs=yes
10244  if test "$host_cpu" = ia64; then
10245    # AIX 5 supports IA64
10246    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10247    shlibpath_var=LD_LIBRARY_PATH
10248  else
10249    # With GCC up to 2.95.x, collect2 would create an import file
10250    # for dependence libraries.  The import file would start with
10251    # the line `#! .'.  This would cause the generated library to
10252    # depend on `.', always an invalid library.  This was fixed in
10253    # development snapshots of GCC prior to 3.0.
10254    case $host_os in
10255      aix4 | aix4.[01] | aix4.[01].*)
10256      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10257	   echo ' yes '
10258	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10259	:
10260      else
10261	can_build_shared=no
10262      fi
10263      ;;
10264    esac
10265    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10266    # soname into executable. Probably we can add versioning support to
10267    # collect2, so additional links can be useful in future.
10268    if test "$aix_use_runtimelinking" = yes; then
10269      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10270      # instead of lib<name>.a to let people know that these are not
10271      # typical AIX shared libraries.
10272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273    else
10274      # We preserve .a as extension for shared libraries through AIX4.2
10275      # and later when we are not doing run time linking.
10276      library_names_spec='${libname}${release}.a $libname.a'
10277      soname_spec='${libname}${release}${shared_ext}$major'
10278    fi
10279    shlibpath_var=LIBPATH
10280  fi
10281  ;;
10282
10283amigaos*)
10284  case $host_cpu in
10285  powerpc)
10286    # Since July 2007 AmigaOS4 officially supports .so libraries.
10287    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10288    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289    ;;
10290  m68k)
10291    library_names_spec='$libname.ixlibrary $libname.a'
10292    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10293    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'
10294    ;;
10295  esac
10296  ;;
10297
10298beos*)
10299  library_names_spec='${libname}${shared_ext}'
10300  dynamic_linker="$host_os ld.so"
10301  shlibpath_var=LIBRARY_PATH
10302  ;;
10303
10304bsdi[45]*)
10305  version_type=linux
10306  need_version=no
10307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308  soname_spec='${libname}${release}${shared_ext}$major'
10309  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10310  shlibpath_var=LD_LIBRARY_PATH
10311  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10312  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10313  # the default ld.so.conf also contains /usr/contrib/lib and
10314  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10315  # libtool to hard-code these into programs
10316  ;;
10317
10318cygwin* | mingw* | pw32* | cegcc*)
10319  version_type=windows
10320  shrext_cmds=".dll"
10321  need_version=no
10322  need_lib_prefix=no
10323
10324  case $GCC,$cc_basename in
10325  yes,*)
10326    # gcc
10327    library_names_spec='$libname.dll.a'
10328    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10329    postinstall_cmds='base_file=`basename \${file}`~
10330      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10331      dldir=$destdir/`dirname \$dlpath`~
10332      test -d \$dldir || mkdir -p \$dldir~
10333      $install_prog $dir/$dlname \$dldir/$dlname~
10334      chmod a+x \$dldir/$dlname~
10335      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10336        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10337      fi'
10338    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10339      dlpath=$dir/\$dldll~
10340       $RM \$dlpath'
10341    shlibpath_overrides_runpath=yes
10342
10343    case $host_os in
10344    cygwin*)
10345      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10346      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10347
10348      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10349      ;;
10350    mingw* | cegcc*)
10351      # MinGW DLLs use traditional 'lib' prefix
10352      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10353      ;;
10354    pw32*)
10355      # pw32 DLLs use 'pw' prefix rather than 'lib'
10356      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10357      ;;
10358    esac
10359    dynamic_linker='Win32 ld.exe'
10360    ;;
10361
10362  *,cl*)
10363    # Native MSVC
10364    libname_spec='$name'
10365    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10366    library_names_spec='${libname}.dll.lib'
10367
10368    case $build_os in
10369    mingw*)
10370      sys_lib_search_path_spec=
10371      lt_save_ifs=$IFS
10372      IFS=';'
10373      for lt_path in $LIB
10374      do
10375        IFS=$lt_save_ifs
10376        # Let DOS variable expansion print the short 8.3 style file name.
10377        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10378        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10379      done
10380      IFS=$lt_save_ifs
10381      # Convert to MSYS style.
10382      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10383      ;;
10384    cygwin*)
10385      # Convert to unix form, then to dos form, then back to unix form
10386      # but this time dos style (no spaces!) so that the unix form looks
10387      # like /cygdrive/c/PROGRA~1:/cygdr...
10388      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10389      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10390      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10391      ;;
10392    *)
10393      sys_lib_search_path_spec="$LIB"
10394      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10395        # It is most probably a Windows format PATH.
10396        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10397      else
10398        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10399      fi
10400      # FIXME: find the short name or the path components, as spaces are
10401      # common. (e.g. "Program Files" -> "PROGRA~1")
10402      ;;
10403    esac
10404
10405    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10406    postinstall_cmds='base_file=`basename \${file}`~
10407      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10408      dldir=$destdir/`dirname \$dlpath`~
10409      test -d \$dldir || mkdir -p \$dldir~
10410      $install_prog $dir/$dlname \$dldir/$dlname'
10411    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10412      dlpath=$dir/\$dldll~
10413       $RM \$dlpath'
10414    shlibpath_overrides_runpath=yes
10415    dynamic_linker='Win32 link.exe'
10416    ;;
10417
10418  *)
10419    # Assume MSVC wrapper
10420    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10421    dynamic_linker='Win32 ld.exe'
10422    ;;
10423  esac
10424  # FIXME: first we should search . and the directory the executable is in
10425  shlibpath_var=PATH
10426  ;;
10427
10428darwin* | rhapsody*)
10429  dynamic_linker="$host_os dyld"
10430  version_type=darwin
10431  need_lib_prefix=no
10432  need_version=no
10433  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10434  soname_spec='${libname}${release}${major}$shared_ext'
10435  shlibpath_overrides_runpath=yes
10436  shlibpath_var=DYLD_LIBRARY_PATH
10437  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10438
10439  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10440  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10441  ;;
10442
10443dgux*)
10444  version_type=linux
10445  need_lib_prefix=no
10446  need_version=no
10447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10448  soname_spec='${libname}${release}${shared_ext}$major'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  ;;
10451
10452freebsd1*)
10453  dynamic_linker=no
10454  ;;
10455
10456freebsd* | dragonfly*)
10457  # DragonFly does not have aout.  When/if they implement a new
10458  # versioning mechanism, adjust this.
10459  if test -x /usr/bin/objformat; then
10460    objformat=`/usr/bin/objformat`
10461  else
10462    case $host_os in
10463    freebsd[123]*) objformat=aout ;;
10464    *) objformat=elf ;;
10465    esac
10466  fi
10467  version_type=freebsd-$objformat
10468  case $version_type in
10469    freebsd-elf*)
10470      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10471      need_version=no
10472      need_lib_prefix=no
10473      ;;
10474    freebsd-*)
10475      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10476      need_version=yes
10477      ;;
10478  esac
10479  shlibpath_var=LD_LIBRARY_PATH
10480  case $host_os in
10481  freebsd2*)
10482    shlibpath_overrides_runpath=yes
10483    ;;
10484  freebsd3.[01]* | freebsdelf3.[01]*)
10485    shlibpath_overrides_runpath=yes
10486    hardcode_into_libs=yes
10487    ;;
10488  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10489  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10490    shlibpath_overrides_runpath=no
10491    hardcode_into_libs=yes
10492    ;;
10493  *) # from 4.6 on, and DragonFly
10494    shlibpath_overrides_runpath=yes
10495    hardcode_into_libs=yes
10496    ;;
10497  esac
10498  ;;
10499
10500gnu*)
10501  version_type=linux
10502  need_lib_prefix=no
10503  need_version=no
10504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10505  soname_spec='${libname}${release}${shared_ext}$major'
10506  shlibpath_var=LD_LIBRARY_PATH
10507  hardcode_into_libs=yes
10508  ;;
10509
10510haiku*)
10511  version_type=linux
10512  need_lib_prefix=no
10513  need_version=no
10514  dynamic_linker="$host_os runtime_loader"
10515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10516  soname_spec='${libname}${release}${shared_ext}$major'
10517  shlibpath_var=LIBRARY_PATH
10518  shlibpath_overrides_runpath=yes
10519  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10520  hardcode_into_libs=yes
10521  ;;
10522
10523hpux9* | hpux10* | hpux11*)
10524  # Give a soname corresponding to the major version so that dld.sl refuses to
10525  # link against other versions.
10526  version_type=sunos
10527  need_lib_prefix=no
10528  need_version=no
10529  case $host_cpu in
10530  ia64*)
10531    shrext_cmds='.so'
10532    hardcode_into_libs=yes
10533    dynamic_linker="$host_os dld.so"
10534    shlibpath_var=LD_LIBRARY_PATH
10535    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10536    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537    soname_spec='${libname}${release}${shared_ext}$major'
10538    if test "X$HPUX_IA64_MODE" = X32; then
10539      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10540    else
10541      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10542    fi
10543    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10544    ;;
10545  hppa*64*)
10546    shrext_cmds='.sl'
10547    hardcode_into_libs=yes
10548    dynamic_linker="$host_os dld.sl"
10549    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10550    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10551    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552    soname_spec='${libname}${release}${shared_ext}$major'
10553    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10554    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10555    ;;
10556  *)
10557    shrext_cmds='.sl'
10558    dynamic_linker="$host_os dld.sl"
10559    shlibpath_var=SHLIB_PATH
10560    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10561    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562    soname_spec='${libname}${release}${shared_ext}$major'
10563    ;;
10564  esac
10565  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10566  postinstall_cmds='chmod 555 $lib'
10567  # or fails outright, so override atomically:
10568  install_override_mode=555
10569  ;;
10570
10571interix[3-9]*)
10572  version_type=linux
10573  need_lib_prefix=no
10574  need_version=no
10575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10576  soname_spec='${libname}${release}${shared_ext}$major'
10577  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10578  shlibpath_var=LD_LIBRARY_PATH
10579  shlibpath_overrides_runpath=no
10580  hardcode_into_libs=yes
10581  ;;
10582
10583irix5* | irix6* | nonstopux*)
10584  case $host_os in
10585    nonstopux*) version_type=nonstopux ;;
10586    *)
10587	if test "$lt_cv_prog_gnu_ld" = yes; then
10588		version_type=linux
10589	else
10590		version_type=irix
10591	fi ;;
10592  esac
10593  need_lib_prefix=no
10594  need_version=no
10595  soname_spec='${libname}${release}${shared_ext}$major'
10596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10597  case $host_os in
10598  irix5* | nonstopux*)
10599    libsuff= shlibsuff=
10600    ;;
10601  *)
10602    case $LD in # libtool.m4 will add one of these switches to LD
10603    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10604      libsuff= shlibsuff= libmagic=32-bit;;
10605    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10606      libsuff=32 shlibsuff=N32 libmagic=N32;;
10607    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10608      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10609    *) libsuff= shlibsuff= libmagic=never-match;;
10610    esac
10611    ;;
10612  esac
10613  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10614  shlibpath_overrides_runpath=no
10615  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10616  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10617  hardcode_into_libs=yes
10618  ;;
10619
10620# No shared lib support for Linux oldld, aout, or coff.
10621linux*oldld* | linux*aout* | linux*coff*)
10622  dynamic_linker=no
10623  ;;
10624
10625# This must be Linux ELF.
10626linux* | k*bsd*-gnu | kopensolaris*-gnu)
10627  version_type=linux
10628  need_lib_prefix=no
10629  need_version=no
10630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631  soname_spec='${libname}${release}${shared_ext}$major'
10632  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10633  shlibpath_var=LD_LIBRARY_PATH
10634  shlibpath_overrides_runpath=no
10635
10636  # Some binutils ld are patched to set DT_RUNPATH
10637  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10638  $as_echo_n "(cached) " >&6
10639else
10640  lt_cv_shlibpath_overrides_runpath=no
10641    save_LDFLAGS=$LDFLAGS
10642    save_libdir=$libdir
10643    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10644	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646/* end confdefs.h.  */
10647
10648int
10649main ()
10650{
10651
10652  ;
10653  return 0;
10654}
10655_ACEOF
10656if ac_fn_c_try_link "$LINENO"; then :
10657  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10658  lt_cv_shlibpath_overrides_runpath=yes
10659fi
10660fi
10661rm -f core conftest.err conftest.$ac_objext \
10662    conftest$ac_exeext conftest.$ac_ext
10663    LDFLAGS=$save_LDFLAGS
10664    libdir=$save_libdir
10665
10666fi
10667
10668  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10669
10670  # This implies no fast_install, which is unacceptable.
10671  # Some rework will be needed to allow for fast_install
10672  # before this can be enabled.
10673  hardcode_into_libs=yes
10674
10675  # Append ld.so.conf contents to the search path
10676  if test -f /etc/ld.so.conf; then
10677    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' ' '`
10678    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10679  fi
10680
10681  # We used to test for /lib/ld.so.1 and disable shared libraries on
10682  # powerpc, because MkLinux only supported shared libraries with the
10683  # GNU dynamic linker.  Since this was broken with cross compilers,
10684  # most powerpc-linux boxes support dynamic linking these days and
10685  # people can always --disable-shared, the test was removed, and we
10686  # assume the GNU/Linux dynamic linker is in use.
10687  dynamic_linker='GNU/Linux ld.so'
10688  ;;
10689
10690netbsd*)
10691  version_type=sunos
10692  need_lib_prefix=no
10693  need_version=no
10694  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10695    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10696    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10697    dynamic_linker='NetBSD (a.out) ld.so'
10698  else
10699    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10700    soname_spec='${libname}${release}${shared_ext}$major'
10701    dynamic_linker='NetBSD ld.elf_so'
10702  fi
10703  shlibpath_var=LD_LIBRARY_PATH
10704  shlibpath_overrides_runpath=yes
10705  hardcode_into_libs=yes
10706  ;;
10707
10708newsos6)
10709  version_type=linux
10710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711  shlibpath_var=LD_LIBRARY_PATH
10712  shlibpath_overrides_runpath=yes
10713  ;;
10714
10715*nto* | *qnx*)
10716  version_type=qnx
10717  need_lib_prefix=no
10718  need_version=no
10719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720  soname_spec='${libname}${release}${shared_ext}$major'
10721  shlibpath_var=LD_LIBRARY_PATH
10722  shlibpath_overrides_runpath=no
10723  hardcode_into_libs=yes
10724  dynamic_linker='ldqnx.so'
10725  ;;
10726
10727openbsd*)
10728  version_type=sunos
10729  sys_lib_dlsearch_path_spec="/usr/lib"
10730  need_lib_prefix=no
10731  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10732  case $host_os in
10733    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10734    *)				need_version=no  ;;
10735  esac
10736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10737  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10738  shlibpath_var=LD_LIBRARY_PATH
10739  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10740    case $host_os in
10741      openbsd2.[89] | openbsd2.[89].*)
10742	shlibpath_overrides_runpath=no
10743	;;
10744      *)
10745	shlibpath_overrides_runpath=yes
10746	;;
10747      esac
10748  else
10749    shlibpath_overrides_runpath=yes
10750  fi
10751  ;;
10752
10753os2*)
10754  libname_spec='$name'
10755  shrext_cmds=".dll"
10756  need_lib_prefix=no
10757  library_names_spec='$libname${shared_ext} $libname.a'
10758  dynamic_linker='OS/2 ld.exe'
10759  shlibpath_var=LIBPATH
10760  ;;
10761
10762osf3* | osf4* | osf5*)
10763  version_type=osf
10764  need_lib_prefix=no
10765  need_version=no
10766  soname_spec='${libname}${release}${shared_ext}$major'
10767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768  shlibpath_var=LD_LIBRARY_PATH
10769  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10770  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10771  ;;
10772
10773rdos*)
10774  dynamic_linker=no
10775  ;;
10776
10777solaris*)
10778  version_type=linux
10779  need_lib_prefix=no
10780  need_version=no
10781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782  soname_spec='${libname}${release}${shared_ext}$major'
10783  shlibpath_var=LD_LIBRARY_PATH
10784  shlibpath_overrides_runpath=yes
10785  hardcode_into_libs=yes
10786  # ldd complains unless libraries are executable
10787  postinstall_cmds='chmod +x $lib'
10788  ;;
10789
10790sunos4*)
10791  version_type=sunos
10792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10793  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10794  shlibpath_var=LD_LIBRARY_PATH
10795  shlibpath_overrides_runpath=yes
10796  if test "$with_gnu_ld" = yes; then
10797    need_lib_prefix=no
10798  fi
10799  need_version=yes
10800  ;;
10801
10802sysv4 | sysv4.3*)
10803  version_type=linux
10804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805  soname_spec='${libname}${release}${shared_ext}$major'
10806  shlibpath_var=LD_LIBRARY_PATH
10807  case $host_vendor in
10808    sni)
10809      shlibpath_overrides_runpath=no
10810      need_lib_prefix=no
10811      runpath_var=LD_RUN_PATH
10812      ;;
10813    siemens)
10814      need_lib_prefix=no
10815      ;;
10816    motorola)
10817      need_lib_prefix=no
10818      need_version=no
10819      shlibpath_overrides_runpath=no
10820      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10821      ;;
10822  esac
10823  ;;
10824
10825sysv4*MP*)
10826  if test -d /usr/nec ;then
10827    version_type=linux
10828    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10829    soname_spec='$libname${shared_ext}.$major'
10830    shlibpath_var=LD_LIBRARY_PATH
10831  fi
10832  ;;
10833
10834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10835  version_type=freebsd-elf
10836  need_lib_prefix=no
10837  need_version=no
10838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10839  soname_spec='${libname}${release}${shared_ext}$major'
10840  shlibpath_var=LD_LIBRARY_PATH
10841  shlibpath_overrides_runpath=yes
10842  hardcode_into_libs=yes
10843  if test "$with_gnu_ld" = yes; then
10844    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10845  else
10846    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10847    case $host_os in
10848      sco3.2v5*)
10849        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10850	;;
10851    esac
10852  fi
10853  sys_lib_dlsearch_path_spec='/usr/lib'
10854  ;;
10855
10856tpf*)
10857  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10858  version_type=linux
10859  need_lib_prefix=no
10860  need_version=no
10861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862  shlibpath_var=LD_LIBRARY_PATH
10863  shlibpath_overrides_runpath=no
10864  hardcode_into_libs=yes
10865  ;;
10866
10867uts4*)
10868  version_type=linux
10869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870  soname_spec='${libname}${release}${shared_ext}$major'
10871  shlibpath_var=LD_LIBRARY_PATH
10872  ;;
10873
10874*)
10875  dynamic_linker=no
10876  ;;
10877esac
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10879$as_echo "$dynamic_linker" >&6; }
10880test "$dynamic_linker" = no && can_build_shared=no
10881
10882variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10883if test "$GCC" = yes; then
10884  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10885fi
10886
10887if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10888  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10889fi
10890if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10891  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10892fi
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10986$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10987hardcode_action=
10988if test -n "$hardcode_libdir_flag_spec" ||
10989   test -n "$runpath_var" ||
10990   test "X$hardcode_automatic" = "Xyes" ; then
10991
10992  # We can hardcode non-existent directories.
10993  if test "$hardcode_direct" != no &&
10994     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10995     # have to relink, otherwise we might link with an installed library
10996     # when we should be linking with a yet-to-be-installed one
10997     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10998     test "$hardcode_minus_L" != no; then
10999    # Linking always hardcodes the temporary library directory.
11000    hardcode_action=relink
11001  else
11002    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11003    hardcode_action=immediate
11004  fi
11005else
11006  # We cannot hardcode anything, or else we can only hardcode existing
11007  # directories.
11008  hardcode_action=unsupported
11009fi
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11011$as_echo "$hardcode_action" >&6; }
11012
11013if test "$hardcode_action" = relink ||
11014   test "$inherit_rpath" = yes; then
11015  # Fast installation is not supported
11016  enable_fast_install=no
11017elif test "$shlibpath_overrides_runpath" = yes ||
11018     test "$enable_shared" = no; then
11019  # Fast installation is not necessary
11020  enable_fast_install=needless
11021fi
11022
11023
11024
11025
11026
11027
11028  if test "x$enable_dlopen" != xyes; then
11029  enable_dlopen=unknown
11030  enable_dlopen_self=unknown
11031  enable_dlopen_self_static=unknown
11032else
11033  lt_cv_dlopen=no
11034  lt_cv_dlopen_libs=
11035
11036  case $host_os in
11037  beos*)
11038    lt_cv_dlopen="load_add_on"
11039    lt_cv_dlopen_libs=
11040    lt_cv_dlopen_self=yes
11041    ;;
11042
11043  mingw* | pw32* | cegcc*)
11044    lt_cv_dlopen="LoadLibrary"
11045    lt_cv_dlopen_libs=
11046    ;;
11047
11048  cygwin*)
11049    lt_cv_dlopen="dlopen"
11050    lt_cv_dlopen_libs=
11051    ;;
11052
11053  darwin*)
11054  # if libdl is installed we need to link against it
11055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11056$as_echo_n "checking for dlopen in -ldl... " >&6; }
11057if ${ac_cv_lib_dl_dlopen+:} false; then :
11058  $as_echo_n "(cached) " >&6
11059else
11060  ac_check_lib_save_LIBS=$LIBS
11061LIBS="-ldl  $LIBS"
11062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063/* end confdefs.h.  */
11064
11065/* Override any GCC internal prototype to avoid an error.
11066   Use char because int might match the return type of a GCC
11067   builtin and then its argument prototype would still apply.  */
11068#ifdef __cplusplus
11069extern "C"
11070#endif
11071char dlopen ();
11072int
11073main ()
11074{
11075return dlopen ();
11076  ;
11077  return 0;
11078}
11079_ACEOF
11080if ac_fn_c_try_link "$LINENO"; then :
11081  ac_cv_lib_dl_dlopen=yes
11082else
11083  ac_cv_lib_dl_dlopen=no
11084fi
11085rm -f core conftest.err conftest.$ac_objext \
11086    conftest$ac_exeext conftest.$ac_ext
11087LIBS=$ac_check_lib_save_LIBS
11088fi
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11090$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11091if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11092  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11093else
11094
11095    lt_cv_dlopen="dyld"
11096    lt_cv_dlopen_libs=
11097    lt_cv_dlopen_self=yes
11098
11099fi
11100
11101    ;;
11102
11103  *)
11104    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11105if test "x$ac_cv_func_shl_load" = xyes; then :
11106  lt_cv_dlopen="shl_load"
11107else
11108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11109$as_echo_n "checking for shl_load in -ldld... " >&6; }
11110if ${ac_cv_lib_dld_shl_load+:} false; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  ac_check_lib_save_LIBS=$LIBS
11114LIBS="-ldld  $LIBS"
11115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116/* end confdefs.h.  */
11117
11118/* Override any GCC internal prototype to avoid an error.
11119   Use char because int might match the return type of a GCC
11120   builtin and then its argument prototype would still apply.  */
11121#ifdef __cplusplus
11122extern "C"
11123#endif
11124char shl_load ();
11125int
11126main ()
11127{
11128return shl_load ();
11129  ;
11130  return 0;
11131}
11132_ACEOF
11133if ac_fn_c_try_link "$LINENO"; then :
11134  ac_cv_lib_dld_shl_load=yes
11135else
11136  ac_cv_lib_dld_shl_load=no
11137fi
11138rm -f core conftest.err conftest.$ac_objext \
11139    conftest$ac_exeext conftest.$ac_ext
11140LIBS=$ac_check_lib_save_LIBS
11141fi
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11143$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11144if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11145  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11146else
11147  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11148if test "x$ac_cv_func_dlopen" = xyes; then :
11149  lt_cv_dlopen="dlopen"
11150else
11151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11152$as_echo_n "checking for dlopen in -ldl... " >&6; }
11153if ${ac_cv_lib_dl_dlopen+:} false; then :
11154  $as_echo_n "(cached) " >&6
11155else
11156  ac_check_lib_save_LIBS=$LIBS
11157LIBS="-ldl  $LIBS"
11158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159/* end confdefs.h.  */
11160
11161/* Override any GCC internal prototype to avoid an error.
11162   Use char because int might match the return type of a GCC
11163   builtin and then its argument prototype would still apply.  */
11164#ifdef __cplusplus
11165extern "C"
11166#endif
11167char dlopen ();
11168int
11169main ()
11170{
11171return dlopen ();
11172  ;
11173  return 0;
11174}
11175_ACEOF
11176if ac_fn_c_try_link "$LINENO"; then :
11177  ac_cv_lib_dl_dlopen=yes
11178else
11179  ac_cv_lib_dl_dlopen=no
11180fi
11181rm -f core conftest.err conftest.$ac_objext \
11182    conftest$ac_exeext conftest.$ac_ext
11183LIBS=$ac_check_lib_save_LIBS
11184fi
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11186$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11187if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11188  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11189else
11190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11191$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11192if ${ac_cv_lib_svld_dlopen+:} false; then :
11193  $as_echo_n "(cached) " >&6
11194else
11195  ac_check_lib_save_LIBS=$LIBS
11196LIBS="-lsvld  $LIBS"
11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199
11200/* Override any GCC internal prototype to avoid an error.
11201   Use char because int might match the return type of a GCC
11202   builtin and then its argument prototype would still apply.  */
11203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char dlopen ();
11207int
11208main ()
11209{
11210return dlopen ();
11211  ;
11212  return 0;
11213}
11214_ACEOF
11215if ac_fn_c_try_link "$LINENO"; then :
11216  ac_cv_lib_svld_dlopen=yes
11217else
11218  ac_cv_lib_svld_dlopen=no
11219fi
11220rm -f core conftest.err conftest.$ac_objext \
11221    conftest$ac_exeext conftest.$ac_ext
11222LIBS=$ac_check_lib_save_LIBS
11223fi
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11225$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11226if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11227  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11228else
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11230$as_echo_n "checking for dld_link in -ldld... " >&6; }
11231if ${ac_cv_lib_dld_dld_link+:} false; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234  ac_check_lib_save_LIBS=$LIBS
11235LIBS="-ldld  $LIBS"
11236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237/* end confdefs.h.  */
11238
11239/* Override any GCC internal prototype to avoid an error.
11240   Use char because int might match the return type of a GCC
11241   builtin and then its argument prototype would still apply.  */
11242#ifdef __cplusplus
11243extern "C"
11244#endif
11245char dld_link ();
11246int
11247main ()
11248{
11249return dld_link ();
11250  ;
11251  return 0;
11252}
11253_ACEOF
11254if ac_fn_c_try_link "$LINENO"; then :
11255  ac_cv_lib_dld_dld_link=yes
11256else
11257  ac_cv_lib_dld_dld_link=no
11258fi
11259rm -f core conftest.err conftest.$ac_objext \
11260    conftest$ac_exeext conftest.$ac_ext
11261LIBS=$ac_check_lib_save_LIBS
11262fi
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11264$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11265if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11266  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11267fi
11268
11269
11270fi
11271
11272
11273fi
11274
11275
11276fi
11277
11278
11279fi
11280
11281
11282fi
11283
11284    ;;
11285  esac
11286
11287  if test "x$lt_cv_dlopen" != xno; then
11288    enable_dlopen=yes
11289  else
11290    enable_dlopen=no
11291  fi
11292
11293  case $lt_cv_dlopen in
11294  dlopen)
11295    save_CPPFLAGS="$CPPFLAGS"
11296    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11297
11298    save_LDFLAGS="$LDFLAGS"
11299    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11300
11301    save_LIBS="$LIBS"
11302    LIBS="$lt_cv_dlopen_libs $LIBS"
11303
11304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11305$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11306if ${lt_cv_dlopen_self+:} false; then :
11307  $as_echo_n "(cached) " >&6
11308else
11309  	  if test "$cross_compiling" = yes; then :
11310  lt_cv_dlopen_self=cross
11311else
11312  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11313  lt_status=$lt_dlunknown
11314  cat > conftest.$ac_ext <<_LT_EOF
11315#line $LINENO "configure"
11316#include "confdefs.h"
11317
11318#if HAVE_DLFCN_H
11319#include <dlfcn.h>
11320#endif
11321
11322#include <stdio.h>
11323
11324#ifdef RTLD_GLOBAL
11325#  define LT_DLGLOBAL		RTLD_GLOBAL
11326#else
11327#  ifdef DL_GLOBAL
11328#    define LT_DLGLOBAL		DL_GLOBAL
11329#  else
11330#    define LT_DLGLOBAL		0
11331#  endif
11332#endif
11333
11334/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11335   find out it does not work in some platform. */
11336#ifndef LT_DLLAZY_OR_NOW
11337#  ifdef RTLD_LAZY
11338#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11339#  else
11340#    ifdef DL_LAZY
11341#      define LT_DLLAZY_OR_NOW		DL_LAZY
11342#    else
11343#      ifdef RTLD_NOW
11344#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11345#      else
11346#        ifdef DL_NOW
11347#          define LT_DLLAZY_OR_NOW	DL_NOW
11348#        else
11349#          define LT_DLLAZY_OR_NOW	0
11350#        endif
11351#      endif
11352#    endif
11353#  endif
11354#endif
11355
11356/* When -fvisbility=hidden is used, assume the code has been annotated
11357   correspondingly for the symbols needed.  */
11358#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11359int fnord () __attribute__((visibility("default")));
11360#endif
11361
11362int fnord () { return 42; }
11363int main ()
11364{
11365  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11366  int status = $lt_dlunknown;
11367
11368  if (self)
11369    {
11370      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11371      else
11372        {
11373	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11374          else puts (dlerror ());
11375	}
11376      /* dlclose (self); */
11377    }
11378  else
11379    puts (dlerror ());
11380
11381  return status;
11382}
11383_LT_EOF
11384  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11385  (eval $ac_link) 2>&5
11386  ac_status=$?
11387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11389    (./conftest; exit; ) >&5 2>/dev/null
11390    lt_status=$?
11391    case x$lt_status in
11392      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11393      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11394      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11395    esac
11396  else :
11397    # compilation failed
11398    lt_cv_dlopen_self=no
11399  fi
11400fi
11401rm -fr conftest*
11402
11403
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11406$as_echo "$lt_cv_dlopen_self" >&6; }
11407
11408    if test "x$lt_cv_dlopen_self" = xyes; then
11409      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11410      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11411$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11412if ${lt_cv_dlopen_self_static+:} false; then :
11413  $as_echo_n "(cached) " >&6
11414else
11415  	  if test "$cross_compiling" = yes; then :
11416  lt_cv_dlopen_self_static=cross
11417else
11418  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11419  lt_status=$lt_dlunknown
11420  cat > conftest.$ac_ext <<_LT_EOF
11421#line $LINENO "configure"
11422#include "confdefs.h"
11423
11424#if HAVE_DLFCN_H
11425#include <dlfcn.h>
11426#endif
11427
11428#include <stdio.h>
11429
11430#ifdef RTLD_GLOBAL
11431#  define LT_DLGLOBAL		RTLD_GLOBAL
11432#else
11433#  ifdef DL_GLOBAL
11434#    define LT_DLGLOBAL		DL_GLOBAL
11435#  else
11436#    define LT_DLGLOBAL		0
11437#  endif
11438#endif
11439
11440/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11441   find out it does not work in some platform. */
11442#ifndef LT_DLLAZY_OR_NOW
11443#  ifdef RTLD_LAZY
11444#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11445#  else
11446#    ifdef DL_LAZY
11447#      define LT_DLLAZY_OR_NOW		DL_LAZY
11448#    else
11449#      ifdef RTLD_NOW
11450#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11451#      else
11452#        ifdef DL_NOW
11453#          define LT_DLLAZY_OR_NOW	DL_NOW
11454#        else
11455#          define LT_DLLAZY_OR_NOW	0
11456#        endif
11457#      endif
11458#    endif
11459#  endif
11460#endif
11461
11462/* When -fvisbility=hidden is used, assume the code has been annotated
11463   correspondingly for the symbols needed.  */
11464#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11465int fnord () __attribute__((visibility("default")));
11466#endif
11467
11468int fnord () { return 42; }
11469int main ()
11470{
11471  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11472  int status = $lt_dlunknown;
11473
11474  if (self)
11475    {
11476      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11477      else
11478        {
11479	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11480          else puts (dlerror ());
11481	}
11482      /* dlclose (self); */
11483    }
11484  else
11485    puts (dlerror ());
11486
11487  return status;
11488}
11489_LT_EOF
11490  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11491  (eval $ac_link) 2>&5
11492  ac_status=$?
11493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11495    (./conftest; exit; ) >&5 2>/dev/null
11496    lt_status=$?
11497    case x$lt_status in
11498      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11499      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11500      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11501    esac
11502  else :
11503    # compilation failed
11504    lt_cv_dlopen_self_static=no
11505  fi
11506fi
11507rm -fr conftest*
11508
11509
11510fi
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11512$as_echo "$lt_cv_dlopen_self_static" >&6; }
11513    fi
11514
11515    CPPFLAGS="$save_CPPFLAGS"
11516    LDFLAGS="$save_LDFLAGS"
11517    LIBS="$save_LIBS"
11518    ;;
11519  esac
11520
11521  case $lt_cv_dlopen_self in
11522  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11523  *) enable_dlopen_self=unknown ;;
11524  esac
11525
11526  case $lt_cv_dlopen_self_static in
11527  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11528  *) enable_dlopen_self_static=unknown ;;
11529  esac
11530fi
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548striplib=
11549old_striplib=
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11551$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11552if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11553  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11554  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556$as_echo "yes" >&6; }
11557else
11558# FIXME - insert some real tests, host_os isn't really good enough
11559  case $host_os in
11560  darwin*)
11561    if test -n "$STRIP" ; then
11562      striplib="$STRIP -x"
11563      old_striplib="$STRIP -S"
11564      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11565$as_echo "yes" >&6; }
11566    else
11567      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568$as_echo "no" >&6; }
11569    fi
11570    ;;
11571  *)
11572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573$as_echo "no" >&6; }
11574    ;;
11575  esac
11576fi
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589  # Report which library types will actually be built
11590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11591$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11593$as_echo "$can_build_shared" >&6; }
11594
11595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11596$as_echo_n "checking whether to build shared libraries... " >&6; }
11597  test "$can_build_shared" = "no" && enable_shared=no
11598
11599  # On AIX, shared libraries and static libraries use the same namespace, and
11600  # are all built from PIC.
11601  case $host_os in
11602  aix3*)
11603    test "$enable_shared" = yes && enable_static=no
11604    if test -n "$RANLIB"; then
11605      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11606      postinstall_cmds='$RANLIB $lib'
11607    fi
11608    ;;
11609
11610  aix[4-9]*)
11611    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11612      test "$enable_shared" = yes && enable_static=no
11613    fi
11614    ;;
11615  esac
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11617$as_echo "$enable_shared" >&6; }
11618
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11620$as_echo_n "checking whether to build static libraries... " >&6; }
11621  # Make sure either enable_shared or enable_static is yes.
11622  test "$enable_shared" = yes || enable_static=yes
11623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11624$as_echo "$enable_static" >&6; }
11625
11626
11627
11628
11629fi
11630ac_ext=c
11631ac_cpp='$CPP $CPPFLAGS'
11632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11634ac_compiler_gnu=$ac_cv_c_compiler_gnu
11635
11636CC="$lt_save_CC"
11637
11638      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11639    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11640    (test "X$CXX" != "Xg++"))) ; then
11641  ac_ext=cpp
11642ac_cpp='$CXXCPP $CPPFLAGS'
11643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11647$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11648if test -z "$CXXCPP"; then
11649  if ${ac_cv_prog_CXXCPP+:} false; then :
11650  $as_echo_n "(cached) " >&6
11651else
11652      # Double quotes because CXXCPP needs to be expanded
11653    for CXXCPP in "$CXX -E" "/lib/cpp"
11654    do
11655      ac_preproc_ok=false
11656for ac_cxx_preproc_warn_flag in '' yes
11657do
11658  # Use a header file that comes with gcc, so configuring glibc
11659  # with a fresh cross-compiler works.
11660  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11661  # <limits.h> exists even on freestanding compilers.
11662  # On the NeXT, cc -E runs the code through the compiler's parser,
11663  # not just through cpp. "Syntax error" is here to catch this case.
11664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665/* end confdefs.h.  */
11666@%:@ifdef __STDC__
11667@%:@ include <limits.h>
11668@%:@else
11669@%:@ include <assert.h>
11670@%:@endif
11671		     Syntax error
11672_ACEOF
11673if ac_fn_cxx_try_cpp "$LINENO"; then :
11674
11675else
11676  # Broken: fails on valid input.
11677continue
11678fi
11679rm -f conftest.err conftest.i conftest.$ac_ext
11680
11681  # OK, works on sane cases.  Now check whether nonexistent headers
11682  # can be detected and how.
11683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684/* end confdefs.h.  */
11685@%:@include <ac_nonexistent.h>
11686_ACEOF
11687if ac_fn_cxx_try_cpp "$LINENO"; then :
11688  # Broken: success on invalid input.
11689continue
11690else
11691  # Passes both tests.
11692ac_preproc_ok=:
11693break
11694fi
11695rm -f conftest.err conftest.i conftest.$ac_ext
11696
11697done
11698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11699rm -f conftest.i conftest.err conftest.$ac_ext
11700if $ac_preproc_ok; then :
11701  break
11702fi
11703
11704    done
11705    ac_cv_prog_CXXCPP=$CXXCPP
11706
11707fi
11708  CXXCPP=$ac_cv_prog_CXXCPP
11709else
11710  ac_cv_prog_CXXCPP=$CXXCPP
11711fi
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11713$as_echo "$CXXCPP" >&6; }
11714ac_preproc_ok=false
11715for ac_cxx_preproc_warn_flag in '' yes
11716do
11717  # Use a header file that comes with gcc, so configuring glibc
11718  # with a fresh cross-compiler works.
11719  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11720  # <limits.h> exists even on freestanding compilers.
11721  # On the NeXT, cc -E runs the code through the compiler's parser,
11722  # not just through cpp. "Syntax error" is here to catch this case.
11723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724/* end confdefs.h.  */
11725@%:@ifdef __STDC__
11726@%:@ include <limits.h>
11727@%:@else
11728@%:@ include <assert.h>
11729@%:@endif
11730		     Syntax error
11731_ACEOF
11732if ac_fn_cxx_try_cpp "$LINENO"; then :
11733
11734else
11735  # Broken: fails on valid input.
11736continue
11737fi
11738rm -f conftest.err conftest.i conftest.$ac_ext
11739
11740  # OK, works on sane cases.  Now check whether nonexistent headers
11741  # can be detected and how.
11742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h.  */
11744@%:@include <ac_nonexistent.h>
11745_ACEOF
11746if ac_fn_cxx_try_cpp "$LINENO"; then :
11747  # Broken: success on invalid input.
11748continue
11749else
11750  # Passes both tests.
11751ac_preproc_ok=:
11752break
11753fi
11754rm -f conftest.err conftest.i conftest.$ac_ext
11755
11756done
11757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11758rm -f conftest.i conftest.err conftest.$ac_ext
11759if $ac_preproc_ok; then :
11760
11761else
11762  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11764as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11765See \`config.log' for more details" "$LINENO" 5; }
11766fi
11767
11768ac_ext=c
11769ac_cpp='$CPP $CPPFLAGS'
11770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773
11774else
11775  _lt_caught_CXX_error=yes
11776fi
11777
11778ac_ext=cpp
11779ac_cpp='$CXXCPP $CPPFLAGS'
11780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11783
11784archive_cmds_need_lc_CXX=no
11785allow_undefined_flag_CXX=
11786always_export_symbols_CXX=no
11787archive_expsym_cmds_CXX=
11788compiler_needs_object_CXX=no
11789export_dynamic_flag_spec_CXX=
11790hardcode_direct_CXX=no
11791hardcode_direct_absolute_CXX=no
11792hardcode_libdir_flag_spec_CXX=
11793hardcode_libdir_flag_spec_ld_CXX=
11794hardcode_libdir_separator_CXX=
11795hardcode_minus_L_CXX=no
11796hardcode_shlibpath_var_CXX=unsupported
11797hardcode_automatic_CXX=no
11798inherit_rpath_CXX=no
11799module_cmds_CXX=
11800module_expsym_cmds_CXX=
11801link_all_deplibs_CXX=unknown
11802old_archive_cmds_CXX=$old_archive_cmds
11803reload_flag_CXX=$reload_flag
11804reload_cmds_CXX=$reload_cmds
11805no_undefined_flag_CXX=
11806whole_archive_flag_spec_CXX=
11807enable_shared_with_static_runtimes_CXX=no
11808
11809# Source file extension for C++ test sources.
11810ac_ext=cpp
11811
11812# Object file extension for compiled C++ test sources.
11813objext=o
11814objext_CXX=$objext
11815
11816# No sense in running all these tests if we already determined that
11817# the CXX compiler isn't working.  Some variables (like enable_shared)
11818# are currently assumed to apply to all compilers on this platform,
11819# and will be corrupted by setting them based on a non-working compiler.
11820if test "$_lt_caught_CXX_error" != yes; then
11821  # Code to be used in simple compile tests
11822  lt_simple_compile_test_code="int some_variable = 0;"
11823
11824  # Code to be used in simple link tests
11825  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11826
11827  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11828
11829
11830
11831
11832
11833
11834# If no C compiler was specified, use CC.
11835LTCC=${LTCC-"$CC"}
11836
11837# If no C compiler flags were specified, use CFLAGS.
11838LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11839
11840# Allow CC to be a program name with arguments.
11841compiler=$CC
11842
11843
11844  # save warnings/boilerplate of simple test code
11845  ac_outfile=conftest.$ac_objext
11846echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11847eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11848_lt_compiler_boilerplate=`cat conftest.err`
11849$RM conftest*
11850
11851  ac_outfile=conftest.$ac_objext
11852echo "$lt_simple_link_test_code" >conftest.$ac_ext
11853eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11854_lt_linker_boilerplate=`cat conftest.err`
11855$RM -r conftest*
11856
11857
11858  # Allow CC to be a program name with arguments.
11859  lt_save_CC=$CC
11860  lt_save_CFLAGS=$CFLAGS
11861  lt_save_LD=$LD
11862  lt_save_GCC=$GCC
11863  GCC=$GXX
11864  lt_save_with_gnu_ld=$with_gnu_ld
11865  lt_save_path_LD=$lt_cv_path_LD
11866  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11867    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11868  else
11869    $as_unset lt_cv_prog_gnu_ld
11870  fi
11871  if test -n "${lt_cv_path_LDCXX+set}"; then
11872    lt_cv_path_LD=$lt_cv_path_LDCXX
11873  else
11874    $as_unset lt_cv_path_LD
11875  fi
11876  test -z "${LDCXX+set}" || LD=$LDCXX
11877  CC=${CXX-"c++"}
11878  CFLAGS=$CXXFLAGS
11879  compiler=$CC
11880  compiler_CXX=$CC
11881  for cc_temp in $compiler""; do
11882  case $cc_temp in
11883    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11884    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11885    \-*) ;;
11886    *) break;;
11887  esac
11888done
11889cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11890
11891
11892  if test -n "$compiler"; then
11893    # We don't want -fno-exception when compiling C++ code, so set the
11894    # no_builtin_flag separately
11895    if test "$GXX" = yes; then
11896      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11897    else
11898      lt_prog_compiler_no_builtin_flag_CXX=
11899    fi
11900
11901    if test "$GXX" = yes; then
11902      # Set up default GNU C++ configuration
11903
11904
11905
11906@%:@ Check whether --with-gnu-ld was given.
11907if test "${with_gnu_ld+set}" = set; then :
11908  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11909else
11910  with_gnu_ld=no
11911fi
11912
11913ac_prog=ld
11914if test "$GCC" = yes; then
11915  # Check if gcc -print-prog-name=ld gives a path.
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11917$as_echo_n "checking for ld used by $CC... " >&6; }
11918  case $host in
11919  *-*-mingw*)
11920    # gcc leaves a trailing carriage return which upsets mingw
11921    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11922  *)
11923    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11924  esac
11925  case $ac_prog in
11926    # Accept absolute paths.
11927    [\\/]* | ?:[\\/]*)
11928      re_direlt='/[^/][^/]*/\.\./'
11929      # Canonicalize the pathname of ld
11930      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11931      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11932	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11933      done
11934      test -z "$LD" && LD="$ac_prog"
11935      ;;
11936  "")
11937    # If it fails, then pretend we aren't using GCC.
11938    ac_prog=ld
11939    ;;
11940  *)
11941    # If it is relative, then search for the first ld in PATH.
11942    with_gnu_ld=unknown
11943    ;;
11944  esac
11945elif test "$with_gnu_ld" = yes; then
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11947$as_echo_n "checking for GNU ld... " >&6; }
11948else
11949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11950$as_echo_n "checking for non-GNU ld... " >&6; }
11951fi
11952if ${lt_cv_path_LD+:} false; then :
11953  $as_echo_n "(cached) " >&6
11954else
11955  if test -z "$LD"; then
11956  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11957  for ac_dir in $PATH; do
11958    IFS="$lt_save_ifs"
11959    test -z "$ac_dir" && ac_dir=.
11960    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11961      lt_cv_path_LD="$ac_dir/$ac_prog"
11962      # Check to see if the program is GNU ld.  I'd rather use --version,
11963      # but apparently some variants of GNU ld only accept -v.
11964      # Break only if it was the GNU/non-GNU ld that we prefer.
11965      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11966      *GNU* | *'with BFD'*)
11967	test "$with_gnu_ld" != no && break
11968	;;
11969      *)
11970	test "$with_gnu_ld" != yes && break
11971	;;
11972      esac
11973    fi
11974  done
11975  IFS="$lt_save_ifs"
11976else
11977  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11978fi
11979fi
11980
11981LD="$lt_cv_path_LD"
11982if test -n "$LD"; then
11983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11984$as_echo "$LD" >&6; }
11985else
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
11988fi
11989test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11991$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11992if ${lt_cv_prog_gnu_ld+:} false; then :
11993  $as_echo_n "(cached) " >&6
11994else
11995  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11996case `$LD -v 2>&1 </dev/null` in
11997*GNU* | *'with BFD'*)
11998  lt_cv_prog_gnu_ld=yes
11999  ;;
12000*)
12001  lt_cv_prog_gnu_ld=no
12002  ;;
12003esac
12004fi
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12006$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12007with_gnu_ld=$lt_cv_prog_gnu_ld
12008
12009
12010
12011
12012
12013
12014
12015      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12016      # archiving commands below assume that GNU ld is being used.
12017      if test "$with_gnu_ld" = yes; then
12018        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12019        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'
12020
12021        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12022        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12023
12024        # If archive_cmds runs LD, not CC, wlarc should be empty
12025        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12026        #     investigate it a little bit more. (MM)
12027        wlarc='${wl}'
12028
12029        # ancient GNU ld didn't support --whole-archive et. al.
12030        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12031	  $GREP 'no-whole-archive' > /dev/null; then
12032          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12033        else
12034          whole_archive_flag_spec_CXX=
12035        fi
12036      else
12037        with_gnu_ld=no
12038        wlarc=
12039
12040        # A generic and very simple default shared library creation
12041        # command for GNU C++ for the case where it uses the native
12042        # linker, instead of GNU ld.  If possible, this setting should
12043        # overridden to take advantage of the native linker features on
12044        # the platform it is being used on.
12045        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12046      fi
12047
12048      # Commands to make compiler produce verbose output that lists
12049      # what "hidden" libraries, object files and flags are used when
12050      # linking a shared library.
12051      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12052
12053    else
12054      GXX=no
12055      with_gnu_ld=no
12056      wlarc=
12057    fi
12058
12059    # PORTME: fill in a description of your system's C++ link characteristics
12060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12061$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12062    ld_shlibs_CXX=yes
12063    case $host_os in
12064      aix3*)
12065        # FIXME: insert proper C++ library support
12066        ld_shlibs_CXX=no
12067        ;;
12068      aix[4-9]*)
12069        if test "$host_cpu" = ia64; then
12070          # On IA64, the linker does run time linking by default, so we don't
12071          # have to do anything special.
12072          aix_use_runtimelinking=no
12073          exp_sym_flag='-Bexport'
12074          no_entry_flag=""
12075        else
12076          aix_use_runtimelinking=no
12077
12078          # Test if we are trying to use run time linking or normal
12079          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12080          # need to do runtime linking.
12081          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12082	    for ld_flag in $LDFLAGS; do
12083	      case $ld_flag in
12084	      *-brtl*)
12085	        aix_use_runtimelinking=yes
12086	        break
12087	        ;;
12088	      esac
12089	    done
12090	    ;;
12091          esac
12092
12093          exp_sym_flag='-bexport'
12094          no_entry_flag='-bnoentry'
12095        fi
12096
12097        # When large executables or shared objects are built, AIX ld can
12098        # have problems creating the table of contents.  If linking a library
12099        # or program results in "error TOC overflow" add -mminimal-toc to
12100        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12101        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12102
12103        archive_cmds_CXX=''
12104        hardcode_direct_CXX=yes
12105        hardcode_direct_absolute_CXX=yes
12106        hardcode_libdir_separator_CXX=':'
12107        link_all_deplibs_CXX=yes
12108        file_list_spec_CXX='${wl}-f,'
12109
12110        if test "$GXX" = yes; then
12111          case $host_os in aix4.[012]|aix4.[012].*)
12112          # We only want to do this on AIX 4.2 and lower, the check
12113          # below for broken collect2 doesn't work under 4.3+
12114	  collect2name=`${CC} -print-prog-name=collect2`
12115	  if test -f "$collect2name" &&
12116	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12117	  then
12118	    # We have reworked collect2
12119	    :
12120	  else
12121	    # We have old collect2
12122	    hardcode_direct_CXX=unsupported
12123	    # It fails to find uninstalled libraries when the uninstalled
12124	    # path is not listed in the libpath.  Setting hardcode_minus_L
12125	    # to unsupported forces relinking
12126	    hardcode_minus_L_CXX=yes
12127	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12128	    hardcode_libdir_separator_CXX=
12129	  fi
12130          esac
12131          shared_flag='-shared'
12132	  if test "$aix_use_runtimelinking" = yes; then
12133	    shared_flag="$shared_flag "'${wl}-G'
12134	  fi
12135        else
12136          # not using gcc
12137          if test "$host_cpu" = ia64; then
12138	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12139	  # chokes on -Wl,-G. The following line is correct:
12140	  shared_flag='-G'
12141          else
12142	    if test "$aix_use_runtimelinking" = yes; then
12143	      shared_flag='${wl}-G'
12144	    else
12145	      shared_flag='${wl}-bM:SRE'
12146	    fi
12147          fi
12148        fi
12149
12150        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12151        # It seems that -bexpall does not export symbols beginning with
12152        # underscore (_), so it is better to generate a list of symbols to
12153	# export.
12154        always_export_symbols_CXX=yes
12155        if test "$aix_use_runtimelinking" = yes; then
12156          # Warning - without using the other runtime loading flags (-brtl),
12157          # -berok will link without error, but may produce a broken library.
12158          allow_undefined_flag_CXX='-berok'
12159          # Determine the default libpath from the value encoded in an empty
12160          # executable.
12161          if test "${lt_cv_aix_libpath+set}" = set; then
12162  aix_libpath=$lt_cv_aix_libpath
12163else
12164  if ${lt_cv_aix_libpath__CXX+:} false; then :
12165  $as_echo_n "(cached) " >&6
12166else
12167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h.  */
12169
12170int
12171main ()
12172{
12173
12174  ;
12175  return 0;
12176}
12177_ACEOF
12178if ac_fn_cxx_try_link "$LINENO"; then :
12179
12180  lt_aix_libpath_sed='
12181      /Import File Strings/,/^$/ {
12182	  /^0/ {
12183	      s/^0  *\([^ ]*\) *$/\1/
12184	      p
12185	  }
12186      }'
12187  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12188  # Check for a 64-bit object if we didn't find anything.
12189  if test -z "$lt_cv_aix_libpath__CXX"; then
12190    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12191  fi
12192fi
12193rm -f core conftest.err conftest.$ac_objext \
12194    conftest$ac_exeext conftest.$ac_ext
12195  if test -z "$lt_cv_aix_libpath__CXX"; then
12196    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12197  fi
12198
12199fi
12200
12201  aix_libpath=$lt_cv_aix_libpath__CXX
12202fi
12203
12204          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12205
12206          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"
12207        else
12208          if test "$host_cpu" = ia64; then
12209	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12210	    allow_undefined_flag_CXX="-z nodefs"
12211	    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"
12212          else
12213	    # Determine the default libpath from the value encoded in an
12214	    # empty executable.
12215	    if test "${lt_cv_aix_libpath+set}" = set; then
12216  aix_libpath=$lt_cv_aix_libpath
12217else
12218  if ${lt_cv_aix_libpath__CXX+:} false; then :
12219  $as_echo_n "(cached) " >&6
12220else
12221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222/* end confdefs.h.  */
12223
12224int
12225main ()
12226{
12227
12228  ;
12229  return 0;
12230}
12231_ACEOF
12232if ac_fn_cxx_try_link "$LINENO"; then :
12233
12234  lt_aix_libpath_sed='
12235      /Import File Strings/,/^$/ {
12236	  /^0/ {
12237	      s/^0  *\([^ ]*\) *$/\1/
12238	      p
12239	  }
12240      }'
12241  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12242  # Check for a 64-bit object if we didn't find anything.
12243  if test -z "$lt_cv_aix_libpath__CXX"; then
12244    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12245  fi
12246fi
12247rm -f core conftest.err conftest.$ac_objext \
12248    conftest$ac_exeext conftest.$ac_ext
12249  if test -z "$lt_cv_aix_libpath__CXX"; then
12250    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12251  fi
12252
12253fi
12254
12255  aix_libpath=$lt_cv_aix_libpath__CXX
12256fi
12257
12258	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12259	    # Warning - without using the other run time loading flags,
12260	    # -berok will link without error, but may produce a broken library.
12261	    no_undefined_flag_CXX=' ${wl}-bernotok'
12262	    allow_undefined_flag_CXX=' ${wl}-berok'
12263	    if test "$with_gnu_ld" = yes; then
12264	      # We only use this code for GNU lds that support --whole-archive.
12265	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12266	    else
12267	      # Exported symbols can be pulled into shared objects from archives
12268	      whole_archive_flag_spec_CXX='$convenience'
12269	    fi
12270	    archive_cmds_need_lc_CXX=yes
12271	    # This is similar to how AIX traditionally builds its shared
12272	    # libraries.
12273	    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'
12274          fi
12275        fi
12276        ;;
12277
12278      beos*)
12279	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12280	  allow_undefined_flag_CXX=unsupported
12281	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12282	  # support --undefined.  This deserves some investigation.  FIXME
12283	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12284	else
12285	  ld_shlibs_CXX=no
12286	fi
12287	;;
12288
12289      chorus*)
12290        case $cc_basename in
12291          *)
12292	  # FIXME: insert proper C++ library support
12293	  ld_shlibs_CXX=no
12294	  ;;
12295        esac
12296        ;;
12297
12298      cygwin* | mingw* | pw32* | cegcc*)
12299	case $GXX,$cc_basename in
12300	,cl* | no,cl*)
12301	  # Native MSVC
12302	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12303	  # no search path for DLLs.
12304	  hardcode_libdir_flag_spec_CXX=' '
12305	  allow_undefined_flag_CXX=unsupported
12306	  always_export_symbols_CXX=yes
12307	  file_list_spec_CXX='@'
12308	  # Tell ltmain to make .lib files, not .a files.
12309	  libext=lib
12310	  # Tell ltmain to make .dll files, not .so files.
12311	  shrext_cmds=".dll"
12312	  # FIXME: Setting linknames here is a bad hack.
12313	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12314	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12315	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12316	    else
12317	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12318	    fi~
12319	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12320	    linknames='
12321	  # The linker will not automatically build a static lib if we build a DLL.
12322	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12323	  enable_shared_with_static_runtimes_CXX=yes
12324	  # Don't use ranlib
12325	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12326	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12327	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12328	    case $lt_outputfile in
12329	      *.exe|*.EXE) ;;
12330	      *)
12331		lt_outputfile="$lt_outputfile.exe"
12332		lt_tool_outputfile="$lt_tool_outputfile.exe"
12333		;;
12334	    esac~
12335	    func_to_tool_file "$lt_outputfile"~
12336	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12337	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12338	      $RM "$lt_outputfile.manifest";
12339	    fi'
12340	  ;;
12341	*)
12342	  # g++
12343	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12344	  # as there is no search path for DLLs.
12345	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12346	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12347	  allow_undefined_flag_CXX=unsupported
12348	  always_export_symbols_CXX=no
12349	  enable_shared_with_static_runtimes_CXX=yes
12350
12351	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12352	    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'
12353	    # If the export-symbols file already is a .def file (1st line
12354	    # is EXPORTS), use it as is; otherwise, prepend...
12355	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12356	      cp $export_symbols $output_objdir/$soname.def;
12357	    else
12358	      echo EXPORTS > $output_objdir/$soname.def;
12359	      cat $export_symbols >> $output_objdir/$soname.def;
12360	    fi~
12361	    $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'
12362	  else
12363	    ld_shlibs_CXX=no
12364	  fi
12365	  ;;
12366	esac
12367	;;
12368      darwin* | rhapsody*)
12369
12370
12371  archive_cmds_need_lc_CXX=no
12372  hardcode_direct_CXX=no
12373  hardcode_automatic_CXX=yes
12374  hardcode_shlibpath_var_CXX=unsupported
12375  if test "$lt_cv_ld_force_load" = "yes"; then
12376    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\"`'
12377  else
12378    whole_archive_flag_spec_CXX=''
12379  fi
12380  link_all_deplibs_CXX=yes
12381  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12382  case $cc_basename in
12383     ifort*) _lt_dar_can_shared=yes ;;
12384     *) _lt_dar_can_shared=$GCC ;;
12385  esac
12386  if test "$_lt_dar_can_shared" = "yes"; then
12387    output_verbose_link_cmd=func_echo_all
12388    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}"
12389    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12390    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}"
12391    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}"
12392       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12393      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}"
12394      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}"
12395    fi
12396
12397  else
12398  ld_shlibs_CXX=no
12399  fi
12400
12401	;;
12402
12403      dgux*)
12404        case $cc_basename in
12405          ec++*)
12406	    # FIXME: insert proper C++ library support
12407	    ld_shlibs_CXX=no
12408	    ;;
12409          ghcx*)
12410	    # Green Hills C++ Compiler
12411	    # FIXME: insert proper C++ library support
12412	    ld_shlibs_CXX=no
12413	    ;;
12414          *)
12415	    # FIXME: insert proper C++ library support
12416	    ld_shlibs_CXX=no
12417	    ;;
12418        esac
12419        ;;
12420
12421      freebsd[12]*)
12422        # C++ shared libraries reported to be fairly broken before
12423	# switch to ELF
12424        ld_shlibs_CXX=no
12425        ;;
12426
12427      freebsd-elf*)
12428        archive_cmds_need_lc_CXX=no
12429        ;;
12430
12431      freebsd* | dragonfly*)
12432        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12433        # conventions
12434        ld_shlibs_CXX=yes
12435        ;;
12436
12437      gnu*)
12438        ;;
12439
12440      haiku*)
12441        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12442        link_all_deplibs_CXX=yes
12443        ;;
12444
12445      hpux9*)
12446        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12447        hardcode_libdir_separator_CXX=:
12448        export_dynamic_flag_spec_CXX='${wl}-E'
12449        hardcode_direct_CXX=yes
12450        hardcode_minus_L_CXX=yes # Not in the search PATH,
12451				             # but as the default
12452				             # location of the library.
12453
12454        case $cc_basename in
12455          CC*)
12456            # FIXME: insert proper C++ library support
12457            ld_shlibs_CXX=no
12458            ;;
12459          aCC*)
12460            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'
12461            # Commands to make compiler produce verbose output that lists
12462            # what "hidden" libraries, object files and flags are used when
12463            # linking a shared library.
12464            #
12465            # There doesn't appear to be a way to prevent this compiler from
12466            # explicitly linking system object files so we need to strip them
12467            # from the output so that they don't get included in the library
12468            # dependencies.
12469            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"'
12470            ;;
12471          *)
12472            if test "$GXX" = yes; then
12473              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'
12474            else
12475              # FIXME: insert proper C++ library support
12476              ld_shlibs_CXX=no
12477            fi
12478            ;;
12479        esac
12480        ;;
12481
12482      hpux10*|hpux11*)
12483        if test $with_gnu_ld = no; then
12484	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12485	  hardcode_libdir_separator_CXX=:
12486
12487          case $host_cpu in
12488            hppa*64*|ia64*)
12489              ;;
12490            *)
12491	      export_dynamic_flag_spec_CXX='${wl}-E'
12492              ;;
12493          esac
12494        fi
12495        case $host_cpu in
12496          hppa*64*|ia64*)
12497            hardcode_direct_CXX=no
12498            hardcode_shlibpath_var_CXX=no
12499            ;;
12500          *)
12501            hardcode_direct_CXX=yes
12502            hardcode_direct_absolute_CXX=yes
12503            hardcode_minus_L_CXX=yes # Not in the search PATH,
12504					         # but as the default
12505					         # location of the library.
12506            ;;
12507        esac
12508
12509        case $cc_basename in
12510          CC*)
12511	    # FIXME: insert proper C++ library support
12512	    ld_shlibs_CXX=no
12513	    ;;
12514          aCC*)
12515	    case $host_cpu in
12516	      hppa*64*)
12517	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12518	        ;;
12519	      ia64*)
12520	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12521	        ;;
12522	      *)
12523	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12524	        ;;
12525	    esac
12526	    # Commands to make compiler produce verbose output that lists
12527	    # what "hidden" libraries, object files and flags are used when
12528	    # linking a shared library.
12529	    #
12530	    # There doesn't appear to be a way to prevent this compiler from
12531	    # explicitly linking system object files so we need to strip them
12532	    # from the output so that they don't get included in the library
12533	    # dependencies.
12534	    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"'
12535	    ;;
12536          *)
12537	    if test "$GXX" = yes; then
12538	      if test $with_gnu_ld = no; then
12539	        case $host_cpu in
12540	          hppa*64*)
12541	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542	            ;;
12543	          ia64*)
12544	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12545	            ;;
12546	          *)
12547	            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'
12548	            ;;
12549	        esac
12550	      fi
12551	    else
12552	      # FIXME: insert proper C++ library support
12553	      ld_shlibs_CXX=no
12554	    fi
12555	    ;;
12556        esac
12557        ;;
12558
12559      interix[3-9]*)
12560	hardcode_direct_CXX=no
12561	hardcode_shlibpath_var_CXX=no
12562	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12563	export_dynamic_flag_spec_CXX='${wl}-E'
12564	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12565	# Instead, shared libraries are loaded at an image base (0x10000000 by
12566	# default) and relocated if they conflict, which is a slow very memory
12567	# consuming and fragmenting process.  To avoid this, we pick a random,
12568	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12569	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12570	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'
12571	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'
12572	;;
12573      irix5* | irix6*)
12574        case $cc_basename in
12575          CC*)
12576	    # SGI C++
12577	    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'
12578
12579	    # Archives containing C++ object files must be created using
12580	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12581	    # necessary to make sure instantiated templates are included
12582	    # in the archive.
12583	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12584	    ;;
12585          *)
12586	    if test "$GXX" = yes; then
12587	      if test "$with_gnu_ld" = no; then
12588	        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'
12589	      else
12590	        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'
12591	      fi
12592	    fi
12593	    link_all_deplibs_CXX=yes
12594	    ;;
12595        esac
12596        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12597        hardcode_libdir_separator_CXX=:
12598        inherit_rpath_CXX=yes
12599        ;;
12600
12601      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12602        case $cc_basename in
12603          KCC*)
12604	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12605
12606	    # KCC will only create a shared library if the output file
12607	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12608	    # to its proper name (with version) after linking.
12609	    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'
12610	    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'
12611	    # Commands to make compiler produce verbose output that lists
12612	    # what "hidden" libraries, object files and flags are used when
12613	    # linking a shared library.
12614	    #
12615	    # There doesn't appear to be a way to prevent this compiler from
12616	    # explicitly linking system object files so we need to strip them
12617	    # from the output so that they don't get included in the library
12618	    # dependencies.
12619	    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"'
12620
12621	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12622	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12623
12624	    # Archives containing C++ object files must be created using
12625	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12626	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12627	    ;;
12628	  icpc* | ecpc* )
12629	    # Intel C++
12630	    with_gnu_ld=yes
12631	    # version 8.0 and above of icpc choke on multiply defined symbols
12632	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12633	    # earlier do not add the objects themselves.
12634	    case `$CC -V 2>&1` in
12635	      *"Version 7."*)
12636	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12637		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'
12638		;;
12639	      *)  # Version 8.0 or newer
12640	        tmp_idyn=
12641	        case $host_cpu in
12642		  ia64*) tmp_idyn=' -i_dynamic';;
12643		esac
12644	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645		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'
12646		;;
12647	    esac
12648	    archive_cmds_need_lc_CXX=no
12649	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12650	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12651	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12652	    ;;
12653          pgCC* | pgcpp*)
12654            # Portland Group C++ compiler
12655	    case `$CC -V` in
12656	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12657	      prelink_cmds_CXX='tpldir=Template.dir~
12658		rm -rf $tpldir~
12659		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12660		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12661	      old_archive_cmds_CXX='tpldir=Template.dir~
12662		rm -rf $tpldir~
12663		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12664		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12665		$RANLIB $oldlib'
12666	      archive_cmds_CXX='tpldir=Template.dir~
12667		rm -rf $tpldir~
12668		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12669		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12670	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12671		rm -rf $tpldir~
12672		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12673		$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'
12674	      ;;
12675	    *) # Version 6 and above use weak symbols
12676	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12677	      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'
12678	      ;;
12679	    esac
12680
12681	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12682	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12683	    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'
12684            ;;
12685	  cxx*)
12686	    # Compaq C++
12687	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688	    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'
12689
12690	    runpath_var=LD_RUN_PATH
12691	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12692	    hardcode_libdir_separator_CXX=:
12693
12694	    # Commands to make compiler produce verbose output that lists
12695	    # what "hidden" libraries, object files and flags are used when
12696	    # linking a shared library.
12697	    #
12698	    # There doesn't appear to be a way to prevent this compiler from
12699	    # explicitly linking system object files so we need to strip them
12700	    # from the output so that they don't get included in the library
12701	    # dependencies.
12702	    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'
12703	    ;;
12704	  xl* | mpixl* | bgxl*)
12705	    # IBM XL 8.0 on PPC, with GNU ld
12706	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12707	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12708	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12709	    if test "x$supports_anon_versioning" = xyes; then
12710	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12711		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12712		echo "local: *; };" >> $output_objdir/$libname.ver~
12713		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12714	    fi
12715	    ;;
12716	  *)
12717	    case `$CC -V 2>&1 | sed 5q` in
12718	    *Sun\ C*)
12719	      # Sun C++ 5.9
12720	      no_undefined_flag_CXX=' -zdefs'
12721	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12722	      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'
12723	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12724	      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'
12725	      compiler_needs_object_CXX=yes
12726
12727	      # Not sure whether something based on
12728	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12729	      # would be better.
12730	      output_verbose_link_cmd='func_echo_all'
12731
12732	      # Archives containing C++ object files must be created using
12733	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12734	      # necessary to make sure instantiated templates are included
12735	      # in the archive.
12736	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12737	      ;;
12738	    esac
12739	    ;;
12740	esac
12741	;;
12742
12743      lynxos*)
12744        # FIXME: insert proper C++ library support
12745	ld_shlibs_CXX=no
12746	;;
12747
12748      m88k*)
12749        # FIXME: insert proper C++ library support
12750        ld_shlibs_CXX=no
12751	;;
12752
12753      mvs*)
12754        case $cc_basename in
12755          cxx*)
12756	    # FIXME: insert proper C++ library support
12757	    ld_shlibs_CXX=no
12758	    ;;
12759	  *)
12760	    # FIXME: insert proper C++ library support
12761	    ld_shlibs_CXX=no
12762	    ;;
12763	esac
12764	;;
12765
12766      netbsd*)
12767        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12768	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12769	  wlarc=
12770	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12771	  hardcode_direct_CXX=yes
12772	  hardcode_shlibpath_var_CXX=no
12773	fi
12774	# Workaround some broken pre-1.5 toolchains
12775	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12776	;;
12777
12778      *nto* | *qnx*)
12779        ld_shlibs_CXX=yes
12780	;;
12781
12782      openbsd2*)
12783        # C++ shared libraries are fairly broken
12784	ld_shlibs_CXX=no
12785	;;
12786
12787      openbsd*)
12788	if test -f /usr/libexec/ld.so; then
12789	  hardcode_direct_CXX=yes
12790	  hardcode_shlibpath_var_CXX=no
12791	  hardcode_direct_absolute_CXX=yes
12792	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12793	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12794	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12795	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12796	    export_dynamic_flag_spec_CXX='${wl}-E'
12797	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12798	  fi
12799	  output_verbose_link_cmd=func_echo_all
12800	else
12801	  ld_shlibs_CXX=no
12802	fi
12803	;;
12804
12805      osf3* | osf4* | osf5*)
12806        case $cc_basename in
12807          KCC*)
12808	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12809
12810	    # KCC will only create a shared library if the output file
12811	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12812	    # to its proper name (with version) after linking.
12813	    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'
12814
12815	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12816	    hardcode_libdir_separator_CXX=:
12817
12818	    # Archives containing C++ object files must be created using
12819	    # the KAI C++ compiler.
12820	    case $host in
12821	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12822	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12823	    esac
12824	    ;;
12825          RCC*)
12826	    # Rational C++ 2.4.1
12827	    # FIXME: insert proper C++ library support
12828	    ld_shlibs_CXX=no
12829	    ;;
12830          cxx*)
12831	    case $host in
12832	      osf3*)
12833	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12834	        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'
12835	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12836		;;
12837	      *)
12838	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12839	        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'
12840	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12841	          echo "-hidden">> $lib.exp~
12842	          $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~
12843	          $RM $lib.exp'
12844	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12845		;;
12846	    esac
12847
12848	    hardcode_libdir_separator_CXX=:
12849
12850	    # Commands to make compiler produce verbose output that lists
12851	    # what "hidden" libraries, object files and flags are used when
12852	    # linking a shared library.
12853	    #
12854	    # There doesn't appear to be a way to prevent this compiler from
12855	    # explicitly linking system object files so we need to strip them
12856	    # from the output so that they don't get included in the library
12857	    # dependencies.
12858	    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"'
12859	    ;;
12860	  *)
12861	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12862	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12863	      case $host in
12864	        osf3*)
12865	          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'
12866		  ;;
12867	        *)
12868	          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'
12869		  ;;
12870	      esac
12871
12872	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12873	      hardcode_libdir_separator_CXX=:
12874
12875	      # Commands to make compiler produce verbose output that lists
12876	      # what "hidden" libraries, object files and flags are used when
12877	      # linking a shared library.
12878	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12879
12880	    else
12881	      # FIXME: insert proper C++ library support
12882	      ld_shlibs_CXX=no
12883	    fi
12884	    ;;
12885        esac
12886        ;;
12887
12888      psos*)
12889        # FIXME: insert proper C++ library support
12890        ld_shlibs_CXX=no
12891        ;;
12892
12893      sunos4*)
12894        case $cc_basename in
12895          CC*)
12896	    # Sun C++ 4.x
12897	    # FIXME: insert proper C++ library support
12898	    ld_shlibs_CXX=no
12899	    ;;
12900          lcc*)
12901	    # Lucid
12902	    # FIXME: insert proper C++ library support
12903	    ld_shlibs_CXX=no
12904	    ;;
12905          *)
12906	    # FIXME: insert proper C++ library support
12907	    ld_shlibs_CXX=no
12908	    ;;
12909        esac
12910        ;;
12911
12912      solaris*)
12913        case $cc_basename in
12914          CC* | sunCC*)
12915	    # Sun C++ 4.2, 5.x and Centerline C++
12916            archive_cmds_need_lc_CXX=yes
12917	    no_undefined_flag_CXX=' -zdefs'
12918	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12919	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12920	      $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'
12921
12922	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12923	    hardcode_shlibpath_var_CXX=no
12924	    case $host_os in
12925	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12926	      *)
12927		# The compiler driver will combine and reorder linker options,
12928		# but understands `-z linker_flag'.
12929	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12930		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12931	        ;;
12932	    esac
12933	    link_all_deplibs_CXX=yes
12934
12935	    output_verbose_link_cmd='func_echo_all'
12936
12937	    # Archives containing C++ object files must be created using
12938	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12939	    # necessary to make sure instantiated templates are included
12940	    # in the archive.
12941	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12942	    ;;
12943          gcx*)
12944	    # Green Hills C++ Compiler
12945	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12946
12947	    # The C++ compiler must be used to create the archive.
12948	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12949	    ;;
12950          *)
12951	    # GNU C++ compiler with Solaris linker
12952	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12953	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12954	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12955	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12956	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12957		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12958
12959	        # Commands to make compiler produce verbose output that lists
12960	        # what "hidden" libraries, object files and flags are used when
12961	        # linking a shared library.
12962	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12963	      else
12964	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12965	        # platform.
12966	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12967	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12968		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12969
12970	        # Commands to make compiler produce verbose output that lists
12971	        # what "hidden" libraries, object files and flags are used when
12972	        # linking a shared library.
12973	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12974	      fi
12975
12976	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12977	      case $host_os in
12978		solaris2.[0-5] | solaris2.[0-5].*) ;;
12979		*)
12980		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12981		  ;;
12982	      esac
12983	    fi
12984	    ;;
12985        esac
12986        ;;
12987
12988    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12989      no_undefined_flag_CXX='${wl}-z,text'
12990      archive_cmds_need_lc_CXX=no
12991      hardcode_shlibpath_var_CXX=no
12992      runpath_var='LD_RUN_PATH'
12993
12994      case $cc_basename in
12995        CC*)
12996	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12997	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12998	  ;;
12999	*)
13000	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13001	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13002	  ;;
13003      esac
13004      ;;
13005
13006      sysv5* | sco3.2v5* | sco5v6*)
13007	# Note: We can NOT use -z defs as we might desire, because we do not
13008	# link with -lc, and that would cause any symbols used from libc to
13009	# always be unresolved, which means just about no library would
13010	# ever link correctly.  If we're not using GNU ld we use -z text
13011	# though, which does catch some bad symbols but isn't as heavy-handed
13012	# as -z defs.
13013	no_undefined_flag_CXX='${wl}-z,text'
13014	allow_undefined_flag_CXX='${wl}-z,nodefs'
13015	archive_cmds_need_lc_CXX=no
13016	hardcode_shlibpath_var_CXX=no
13017	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13018	hardcode_libdir_separator_CXX=':'
13019	link_all_deplibs_CXX=yes
13020	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13021	runpath_var='LD_RUN_PATH'
13022
13023	case $cc_basename in
13024          CC*)
13025	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13026	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13027	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13028	      '"$old_archive_cmds_CXX"
13029	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13030	      '"$reload_cmds_CXX"
13031	    ;;
13032	  *)
13033	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13034	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13035	    ;;
13036	esac
13037      ;;
13038
13039      tandem*)
13040        case $cc_basename in
13041          NCC*)
13042	    # NonStop-UX NCC 3.20
13043	    # FIXME: insert proper C++ library support
13044	    ld_shlibs_CXX=no
13045	    ;;
13046          *)
13047	    # FIXME: insert proper C++ library support
13048	    ld_shlibs_CXX=no
13049	    ;;
13050        esac
13051        ;;
13052
13053      vxworks*)
13054        # FIXME: insert proper C++ library support
13055        ld_shlibs_CXX=no
13056        ;;
13057
13058      *)
13059        # FIXME: insert proper C++ library support
13060        ld_shlibs_CXX=no
13061        ;;
13062    esac
13063
13064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13065$as_echo "$ld_shlibs_CXX" >&6; }
13066    test "$ld_shlibs_CXX" = no && can_build_shared=no
13067
13068    GCC_CXX="$GXX"
13069    LD_CXX="$LD"
13070
13071    ## CAVEAT EMPTOR:
13072    ## There is no encapsulation within the following macros, do not change
13073    ## the running order or otherwise move them around unless you know exactly
13074    ## what you are doing...
13075    # Dependencies to place before and after the object being linked:
13076predep_objects_CXX=
13077postdep_objects_CXX=
13078predeps_CXX=
13079postdeps_CXX=
13080compiler_lib_search_path_CXX=
13081
13082cat > conftest.$ac_ext <<_LT_EOF
13083class Foo
13084{
13085public:
13086  Foo (void) { a = 0; }
13087private:
13088  int a;
13089};
13090_LT_EOF
13091
13092
13093_lt_libdeps_save_CFLAGS=$CFLAGS
13094case "$CC $CFLAGS " in #(
13095*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13096*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13097esac
13098
13099if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13100  (eval $ac_compile) 2>&5
13101  ac_status=$?
13102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13103  test $ac_status = 0; }; then
13104  # Parse the compiler output and extract the necessary
13105  # objects, libraries and library flags.
13106
13107  # Sentinel used to keep track of whether or not we are before
13108  # the conftest object file.
13109  pre_test_object_deps_done=no
13110
13111  for p in `eval "$output_verbose_link_cmd"`; do
13112    case ${prev}${p} in
13113
13114    -L* | -R* | -l*)
13115       # Some compilers place space between "-{L,R}" and the path.
13116       # Remove the space.
13117       if test $p = "-L" ||
13118          test $p = "-R"; then
13119	 prev=$p
13120	 continue
13121       fi
13122
13123       # Expand the sysroot to ease extracting the directories later.
13124       if test -z "$prev"; then
13125         case $p in
13126         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13127         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13128         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13129         esac
13130       fi
13131       case $p in
13132       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13133       esac
13134       if test "$pre_test_object_deps_done" = no; then
13135	 case ${prev} in
13136	 -L | -R)
13137	   # Internal compiler library paths should come after those
13138	   # provided the user.  The postdeps already come after the
13139	   # user supplied libs so there is no need to process them.
13140	   if test -z "$compiler_lib_search_path_CXX"; then
13141	     compiler_lib_search_path_CXX="${prev}${p}"
13142	   else
13143	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13144	   fi
13145	   ;;
13146	 # The "-l" case would never come before the object being
13147	 # linked, so don't bother handling this case.
13148	 esac
13149       else
13150	 if test -z "$postdeps_CXX"; then
13151	   postdeps_CXX="${prev}${p}"
13152	 else
13153	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13154	 fi
13155       fi
13156       prev=
13157       ;;
13158
13159    *.lto.$objext) ;; # Ignore GCC LTO objects
13160    *.$objext)
13161       # This assumes that the test object file only shows up
13162       # once in the compiler output.
13163       if test "$p" = "conftest.$objext"; then
13164	 pre_test_object_deps_done=yes
13165	 continue
13166       fi
13167
13168       if test "$pre_test_object_deps_done" = no; then
13169	 if test -z "$predep_objects_CXX"; then
13170	   predep_objects_CXX="$p"
13171	 else
13172	   predep_objects_CXX="$predep_objects_CXX $p"
13173	 fi
13174       else
13175	 if test -z "$postdep_objects_CXX"; then
13176	   postdep_objects_CXX="$p"
13177	 else
13178	   postdep_objects_CXX="$postdep_objects_CXX $p"
13179	 fi
13180       fi
13181       ;;
13182
13183    *) ;; # Ignore the rest.
13184
13185    esac
13186  done
13187
13188  # Clean up.
13189  rm -f a.out a.exe
13190else
13191  echo "libtool.m4: error: problem compiling CXX test program"
13192fi
13193
13194$RM -f confest.$objext
13195CFLAGS=$_lt_libdeps_save_CFLAGS
13196
13197# PORTME: override above test on systems where it is broken
13198case $host_os in
13199interix[3-9]*)
13200  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13201  # hack all around it, let's just trust "g++" to DTRT.
13202  predep_objects_CXX=
13203  postdep_objects_CXX=
13204  postdeps_CXX=
13205  ;;
13206
13207linux*)
13208  case `$CC -V 2>&1 | sed 5q` in
13209  *Sun\ C*)
13210    # Sun C++ 5.9
13211
13212    # The more standards-conforming stlport4 library is
13213    # incompatible with the Cstd library. Avoid specifying
13214    # it if it's in CXXFLAGS. Ignore libCrun as
13215    # -library=stlport4 depends on it.
13216    case " $CXX $CXXFLAGS " in
13217    *" -library=stlport4 "*)
13218      solaris_use_stlport4=yes
13219      ;;
13220    esac
13221
13222    if test "$solaris_use_stlport4" != yes; then
13223      postdeps_CXX='-library=Cstd -library=Crun'
13224    fi
13225    ;;
13226  esac
13227  ;;
13228
13229solaris*)
13230  case $cc_basename in
13231  CC* | sunCC*)
13232    # The more standards-conforming stlport4 library is
13233    # incompatible with the Cstd library. Avoid specifying
13234    # it if it's in CXXFLAGS. Ignore libCrun as
13235    # -library=stlport4 depends on it.
13236    case " $CXX $CXXFLAGS " in
13237    *" -library=stlport4 "*)
13238      solaris_use_stlport4=yes
13239      ;;
13240    esac
13241
13242    # Adding this requires a known-good setup of shared libraries for
13243    # Sun compiler versions before 5.6, else PIC objects from an old
13244    # archive will be linked into the output, leading to subtle bugs.
13245    if test "$solaris_use_stlport4" != yes; then
13246      postdeps_CXX='-library=Cstd -library=Crun'
13247    fi
13248    ;;
13249  esac
13250  ;;
13251esac
13252
13253
13254case " $postdeps_CXX " in
13255*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13256esac
13257 compiler_lib_search_dirs_CXX=
13258if test -n "${compiler_lib_search_path_CXX}"; then
13259 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13260fi
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292    lt_prog_compiler_wl_CXX=
13293lt_prog_compiler_pic_CXX=
13294lt_prog_compiler_static_CXX=
13295
13296
13297  # C++ specific cases for pic, static, wl, etc.
13298  if test "$GXX" = yes; then
13299    lt_prog_compiler_wl_CXX='-Wl,'
13300    lt_prog_compiler_static_CXX='-static'
13301
13302    case $host_os in
13303    aix*)
13304      # All AIX code is PIC.
13305      if test "$host_cpu" = ia64; then
13306	# AIX 5 now supports IA64 processor
13307	lt_prog_compiler_static_CXX='-Bstatic'
13308      fi
13309      ;;
13310
13311    amigaos*)
13312      case $host_cpu in
13313      powerpc)
13314            # see comment about AmigaOS4 .so support
13315            lt_prog_compiler_pic_CXX='-fPIC'
13316        ;;
13317      m68k)
13318            # FIXME: we need at least 68020 code to build shared libraries, but
13319            # adding the `-m68020' flag to GCC prevents building anything better,
13320            # like `-m68040'.
13321            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13322        ;;
13323      esac
13324      ;;
13325
13326    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13327      # PIC is the default for these OSes.
13328      ;;
13329    mingw* | cygwin* | os2* | pw32* | cegcc*)
13330      # This hack is so that the source file can tell whether it is being
13331      # built for inclusion in a dll (and should export symbols for example).
13332      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13333      # (--disable-auto-import) libraries
13334      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13335      ;;
13336    darwin* | rhapsody*)
13337      # PIC is the default on this platform
13338      # Common symbols not allowed in MH_DYLIB files
13339      lt_prog_compiler_pic_CXX='-fno-common'
13340      ;;
13341    *djgpp*)
13342      # DJGPP does not support shared libraries at all
13343      lt_prog_compiler_pic_CXX=
13344      ;;
13345    haiku*)
13346      # PIC is the default for Haiku.
13347      # The "-static" flag exists, but is broken.
13348      lt_prog_compiler_static_CXX=
13349      ;;
13350    interix[3-9]*)
13351      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13352      # Instead, we relocate shared libraries at runtime.
13353      ;;
13354    sysv4*MP*)
13355      if test -d /usr/nec; then
13356	lt_prog_compiler_pic_CXX=-Kconform_pic
13357      fi
13358      ;;
13359    hpux*)
13360      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13361      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13362      # sets the default TLS model and affects inlining.
13363      case $host_cpu in
13364      hppa*64*)
13365	;;
13366      *)
13367	lt_prog_compiler_pic_CXX='-fPIC'
13368	;;
13369      esac
13370      ;;
13371    *qnx* | *nto*)
13372      # QNX uses GNU C++, but need to define -shared option too, otherwise
13373      # it will coredump.
13374      lt_prog_compiler_pic_CXX='-fPIC -shared'
13375      ;;
13376    *)
13377      lt_prog_compiler_pic_CXX='-fPIC'
13378      ;;
13379    esac
13380  else
13381    case $host_os in
13382      aix[4-9]*)
13383	# All AIX code is PIC.
13384	if test "$host_cpu" = ia64; then
13385	  # AIX 5 now supports IA64 processor
13386	  lt_prog_compiler_static_CXX='-Bstatic'
13387	else
13388	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13389	fi
13390	;;
13391      chorus*)
13392	case $cc_basename in
13393	cxch68*)
13394	  # Green Hills C++ Compiler
13395	  # _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"
13396	  ;;
13397	esac
13398	;;
13399      mingw* | cygwin* | os2* | pw32* | cegcc*)
13400	# This hack is so that the source file can tell whether it is being
13401	# built for inclusion in a dll (and should export symbols for example).
13402	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13403	;;
13404      dgux*)
13405	case $cc_basename in
13406	  ec++*)
13407	    lt_prog_compiler_pic_CXX='-KPIC'
13408	    ;;
13409	  ghcx*)
13410	    # Green Hills C++ Compiler
13411	    lt_prog_compiler_pic_CXX='-pic'
13412	    ;;
13413	  *)
13414	    ;;
13415	esac
13416	;;
13417      freebsd* | dragonfly*)
13418	# FreeBSD uses GNU C++
13419	;;
13420      hpux9* | hpux10* | hpux11*)
13421	case $cc_basename in
13422	  CC*)
13423	    lt_prog_compiler_wl_CXX='-Wl,'
13424	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13425	    if test "$host_cpu" != ia64; then
13426	      lt_prog_compiler_pic_CXX='+Z'
13427	    fi
13428	    ;;
13429	  aCC*)
13430	    lt_prog_compiler_wl_CXX='-Wl,'
13431	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13432	    case $host_cpu in
13433	    hppa*64*|ia64*)
13434	      # +Z the default
13435	      ;;
13436	    *)
13437	      lt_prog_compiler_pic_CXX='+Z'
13438	      ;;
13439	    esac
13440	    ;;
13441	  *)
13442	    ;;
13443	esac
13444	;;
13445      interix*)
13446	# This is c89, which is MS Visual C++ (no shared libs)
13447	# Anyone wants to do a port?
13448	;;
13449      irix5* | irix6* | nonstopux*)
13450	case $cc_basename in
13451	  CC*)
13452	    lt_prog_compiler_wl_CXX='-Wl,'
13453	    lt_prog_compiler_static_CXX='-non_shared'
13454	    # CC pic flag -KPIC is the default.
13455	    ;;
13456	  *)
13457	    ;;
13458	esac
13459	;;
13460      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13461	case $cc_basename in
13462	  KCC*)
13463	    # KAI C++ Compiler
13464	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13465	    lt_prog_compiler_pic_CXX='-fPIC'
13466	    ;;
13467	  ecpc* )
13468	    # old Intel C++ for x86_64 which still supported -KPIC.
13469	    lt_prog_compiler_wl_CXX='-Wl,'
13470	    lt_prog_compiler_pic_CXX='-KPIC'
13471	    lt_prog_compiler_static_CXX='-static'
13472	    ;;
13473	  icpc* )
13474	    # Intel C++, used to be incompatible with GCC.
13475	    # ICC 10 doesn't accept -KPIC any more.
13476	    lt_prog_compiler_wl_CXX='-Wl,'
13477	    lt_prog_compiler_pic_CXX='-fPIC'
13478	    lt_prog_compiler_static_CXX='-static'
13479	    ;;
13480	  pgCC* | pgcpp*)
13481	    # Portland Group C++ compiler
13482	    lt_prog_compiler_wl_CXX='-Wl,'
13483	    lt_prog_compiler_pic_CXX='-fpic'
13484	    lt_prog_compiler_static_CXX='-Bstatic'
13485	    ;;
13486	  cxx*)
13487	    # Compaq C++
13488	    # Make sure the PIC flag is empty.  It appears that all Alpha
13489	    # Linux and Compaq Tru64 Unix objects are PIC.
13490	    lt_prog_compiler_pic_CXX=
13491	    lt_prog_compiler_static_CXX='-non_shared'
13492	    ;;
13493	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13494	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13495	    lt_prog_compiler_wl_CXX='-Wl,'
13496	    lt_prog_compiler_pic_CXX='-qpic'
13497	    lt_prog_compiler_static_CXX='-qstaticlink'
13498	    ;;
13499	  *)
13500	    case `$CC -V 2>&1 | sed 5q` in
13501	    *Sun\ C*)
13502	      # Sun C++ 5.9
13503	      lt_prog_compiler_pic_CXX='-KPIC'
13504	      lt_prog_compiler_static_CXX='-Bstatic'
13505	      lt_prog_compiler_wl_CXX='-Qoption ld '
13506	      ;;
13507	    esac
13508	    ;;
13509	esac
13510	;;
13511      lynxos*)
13512	;;
13513      m88k*)
13514	;;
13515      mvs*)
13516	case $cc_basename in
13517	  cxx*)
13518	    lt_prog_compiler_pic_CXX='-W c,exportall'
13519	    ;;
13520	  *)
13521	    ;;
13522	esac
13523	;;
13524      netbsd*)
13525	;;
13526      *qnx* | *nto*)
13527        # QNX uses GNU C++, but need to define -shared option too, otherwise
13528        # it will coredump.
13529        lt_prog_compiler_pic_CXX='-fPIC -shared'
13530        ;;
13531      osf3* | osf4* | osf5*)
13532	case $cc_basename in
13533	  KCC*)
13534	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13535	    ;;
13536	  RCC*)
13537	    # Rational C++ 2.4.1
13538	    lt_prog_compiler_pic_CXX='-pic'
13539	    ;;
13540	  cxx*)
13541	    # Digital/Compaq C++
13542	    lt_prog_compiler_wl_CXX='-Wl,'
13543	    # Make sure the PIC flag is empty.  It appears that all Alpha
13544	    # Linux and Compaq Tru64 Unix objects are PIC.
13545	    lt_prog_compiler_pic_CXX=
13546	    lt_prog_compiler_static_CXX='-non_shared'
13547	    ;;
13548	  *)
13549	    ;;
13550	esac
13551	;;
13552      psos*)
13553	;;
13554      solaris*)
13555	case $cc_basename in
13556	  CC* | sunCC*)
13557	    # Sun C++ 4.2, 5.x and Centerline C++
13558	    lt_prog_compiler_pic_CXX='-KPIC'
13559	    lt_prog_compiler_static_CXX='-Bstatic'
13560	    lt_prog_compiler_wl_CXX='-Qoption ld '
13561	    ;;
13562	  gcx*)
13563	    # Green Hills C++ Compiler
13564	    lt_prog_compiler_pic_CXX='-PIC'
13565	    ;;
13566	  *)
13567	    ;;
13568	esac
13569	;;
13570      sunos4*)
13571	case $cc_basename in
13572	  CC*)
13573	    # Sun C++ 4.x
13574	    lt_prog_compiler_pic_CXX='-pic'
13575	    lt_prog_compiler_static_CXX='-Bstatic'
13576	    ;;
13577	  lcc*)
13578	    # Lucid
13579	    lt_prog_compiler_pic_CXX='-pic'
13580	    ;;
13581	  *)
13582	    ;;
13583	esac
13584	;;
13585      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13586	case $cc_basename in
13587	  CC*)
13588	    lt_prog_compiler_wl_CXX='-Wl,'
13589	    lt_prog_compiler_pic_CXX='-KPIC'
13590	    lt_prog_compiler_static_CXX='-Bstatic'
13591	    ;;
13592	esac
13593	;;
13594      tandem*)
13595	case $cc_basename in
13596	  NCC*)
13597	    # NonStop-UX NCC 3.20
13598	    lt_prog_compiler_pic_CXX='-KPIC'
13599	    ;;
13600	  *)
13601	    ;;
13602	esac
13603	;;
13604      vxworks*)
13605	;;
13606      *)
13607	lt_prog_compiler_can_build_shared_CXX=no
13608	;;
13609    esac
13610  fi
13611
13612case $host_os in
13613  # For platforms which do not support PIC, -DPIC is meaningless:
13614  *djgpp*)
13615    lt_prog_compiler_pic_CXX=
13616    ;;
13617  *)
13618    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13619    ;;
13620esac
13621
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13623$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13624if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13625  $as_echo_n "(cached) " >&6
13626else
13627  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13628fi
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13630$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13631lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13632
13633#
13634# Check to make sure the PIC flag actually works.
13635#
13636if test -n "$lt_prog_compiler_pic_CXX"; then
13637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13638$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13639if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13640  $as_echo_n "(cached) " >&6
13641else
13642  lt_cv_prog_compiler_pic_works_CXX=no
13643   ac_outfile=conftest.$ac_objext
13644   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13645   lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13646   # Insert the option either (1) after the last *FLAGS variable, or
13647   # (2) before a word containing "conftest.", or (3) at the end.
13648   # Note that $ac_compile itself does not contain backslashes and begins
13649   # with a dollar sign (not a hyphen), so the echo should work correctly.
13650   # The option is referenced via a variable to avoid confusing sed.
13651   lt_compile=`echo "$ac_compile" | $SED \
13652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13654   -e 's:$: $lt_compiler_flag:'`
13655   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13656   (eval "$lt_compile" 2>conftest.err)
13657   ac_status=$?
13658   cat conftest.err >&5
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   if (exit $ac_status) && test -s "$ac_outfile"; then
13661     # The compiler can only warn and ignore the option if not recognized
13662     # So say no if there are warnings other than the usual output.
13663     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13666       lt_cv_prog_compiler_pic_works_CXX=yes
13667     fi
13668   fi
13669   $RM conftest*
13670
13671fi
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13673$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13674
13675if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13676    case $lt_prog_compiler_pic_CXX in
13677     "" | " "*) ;;
13678     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13679     esac
13680else
13681    lt_prog_compiler_pic_CXX=
13682     lt_prog_compiler_can_build_shared_CXX=no
13683fi
13684
13685fi
13686
13687
13688
13689
13690
13691#
13692# Check to make sure the static flag actually works.
13693#
13694wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13696$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13697if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13698  $as_echo_n "(cached) " >&6
13699else
13700  lt_cv_prog_compiler_static_works_CXX=no
13701   save_LDFLAGS="$LDFLAGS"
13702   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13703   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13704   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13705     # The linker can only warn and ignore the option if not recognized
13706     # So say no if there are warnings
13707     if test -s conftest.err; then
13708       # Append any errors to the config.log.
13709       cat conftest.err 1>&5
13710       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13711       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13712       if diff conftest.exp conftest.er2 >/dev/null; then
13713         lt_cv_prog_compiler_static_works_CXX=yes
13714       fi
13715     else
13716       lt_cv_prog_compiler_static_works_CXX=yes
13717     fi
13718   fi
13719   $RM -r conftest*
13720   LDFLAGS="$save_LDFLAGS"
13721
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13724$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13725
13726if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13727    :
13728else
13729    lt_prog_compiler_static_CXX=
13730fi
13731
13732
13733
13734
13735    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13736$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13737if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13738  $as_echo_n "(cached) " >&6
13739else
13740  lt_cv_prog_compiler_c_o_CXX=no
13741   $RM -r conftest 2>/dev/null
13742   mkdir conftest
13743   cd conftest
13744   mkdir out
13745   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13746
13747   lt_compiler_flag="-o out/conftest2.$ac_objext"
13748   # Insert the option either (1) after the last *FLAGS variable, or
13749   # (2) before a word containing "conftest.", or (3) at the end.
13750   # Note that $ac_compile itself does not contain backslashes and begins
13751   # with a dollar sign (not a hyphen), so the echo should work correctly.
13752   lt_compile=`echo "$ac_compile" | $SED \
13753   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13754   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13755   -e 's:$: $lt_compiler_flag:'`
13756   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13757   (eval "$lt_compile" 2>out/conftest.err)
13758   ac_status=$?
13759   cat out/conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13762   then
13763     # The compiler can only warn and ignore the option if not recognized
13764     # So say no if there are warnings
13765     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13766     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13767     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13768       lt_cv_prog_compiler_c_o_CXX=yes
13769     fi
13770   fi
13771   chmod u+w . 2>&5
13772   $RM conftest*
13773   # SGI C++ compiler will create directory out/ii_files/ for
13774   # template instantiation
13775   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13776   $RM out/* && rmdir out
13777   cd ..
13778   $RM -r conftest
13779   $RM conftest*
13780
13781fi
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13783$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13784
13785
13786
13787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13788$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13789if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13790  $as_echo_n "(cached) " >&6
13791else
13792  lt_cv_prog_compiler_c_o_CXX=no
13793   $RM -r conftest 2>/dev/null
13794   mkdir conftest
13795   cd conftest
13796   mkdir out
13797   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13798
13799   lt_compiler_flag="-o out/conftest2.$ac_objext"
13800   # Insert the option either (1) after the last *FLAGS variable, or
13801   # (2) before a word containing "conftest.", or (3) at the end.
13802   # Note that $ac_compile itself does not contain backslashes and begins
13803   # with a dollar sign (not a hyphen), so the echo should work correctly.
13804   lt_compile=`echo "$ac_compile" | $SED \
13805   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13806   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13807   -e 's:$: $lt_compiler_flag:'`
13808   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13809   (eval "$lt_compile" 2>out/conftest.err)
13810   ac_status=$?
13811   cat out/conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13814   then
13815     # The compiler can only warn and ignore the option if not recognized
13816     # So say no if there are warnings
13817     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13818     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13819     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13820       lt_cv_prog_compiler_c_o_CXX=yes
13821     fi
13822   fi
13823   chmod u+w . 2>&5
13824   $RM conftest*
13825   # SGI C++ compiler will create directory out/ii_files/ for
13826   # template instantiation
13827   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13828   $RM out/* && rmdir out
13829   cd ..
13830   $RM -r conftest
13831   $RM conftest*
13832
13833fi
13834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13835$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13836
13837
13838
13839
13840hard_links="nottested"
13841if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13842  # do not overwrite the value of need_locks provided by the user
13843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13844$as_echo_n "checking if we can lock with hard links... " >&6; }
13845  hard_links=yes
13846  $RM conftest*
13847  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13848  touch conftest.a
13849  ln conftest.a conftest.b 2>&5 || hard_links=no
13850  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13852$as_echo "$hard_links" >&6; }
13853  if test "$hard_links" = no; then
13854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13855$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13856    need_locks=warn
13857  fi
13858else
13859  need_locks=no
13860fi
13861
13862
13863
13864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13865$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13866
13867  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13868  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13869  case $host_os in
13870  aix[4-9]*)
13871    # If we're using GNU nm, then we don't want the "-C" option.
13872    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13873    # Also, AIX nm treats weak defined symbols like other global defined
13874    # symbols, whereas GNU nm marks them as "W".
13875    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13876      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'
13877    else
13878      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'
13879    fi
13880    ;;
13881  pw32*)
13882    export_symbols_cmds_CXX="$ltdll_cmds"
13883    ;;
13884  cygwin* | mingw* | cegcc*)
13885    case $cc_basename in
13886    cl*) ;;
13887    *)
13888      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'
13889      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13890      ;;
13891    esac
13892    ;;
13893  *)
13894    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13895    ;;
13896  esac
13897
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13899$as_echo "$ld_shlibs_CXX" >&6; }
13900test "$ld_shlibs_CXX" = no && can_build_shared=no
13901
13902with_gnu_ld_CXX=$with_gnu_ld
13903
13904
13905
13906
13907
13908
13909#
13910# Do we need to explicitly link libc?
13911#
13912case "x$archive_cmds_need_lc_CXX" in
13913x|xyes)
13914  # Assume -lc should be added
13915  archive_cmds_need_lc_CXX=yes
13916
13917  if test "$enable_shared" = yes && test "$GCC" = yes; then
13918    case $archive_cmds_CXX in
13919    *'~'*)
13920      # FIXME: we may have to deal with multi-command sequences.
13921      ;;
13922    '$CC '*)
13923      # Test whether the compiler implicitly links with -lc since on some
13924      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13925      # to ld, don't add -lc before -lgcc.
13926      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13927$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13928if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13929  $as_echo_n "(cached) " >&6
13930else
13931  $RM conftest*
13932	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13933
13934	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13935  (eval $ac_compile) 2>&5
13936  ac_status=$?
13937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13938  test $ac_status = 0; } 2>conftest.err; then
13939	  soname=conftest
13940	  lib=conftest
13941	  libobjs=conftest.$ac_objext
13942	  deplibs=
13943	  wl=$lt_prog_compiler_wl_CXX
13944	  pic_flag=$lt_prog_compiler_pic_CXX
13945	  compiler_flags=-v
13946	  linker_flags=-v
13947	  verstring=
13948	  output_objdir=.
13949	  libname=conftest
13950	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13951	  allow_undefined_flag_CXX=
13952	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13953  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13954  ac_status=$?
13955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13956  test $ac_status = 0; }
13957	  then
13958	    lt_cv_archive_cmds_need_lc_CXX=no
13959	  else
13960	    lt_cv_archive_cmds_need_lc_CXX=yes
13961	  fi
13962	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13963	else
13964	  cat conftest.err 1>&5
13965	fi
13966	$RM conftest*
13967
13968fi
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13970$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13971      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13972      ;;
13973    esac
13974  fi
13975  ;;
13976esac
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14042$as_echo_n "checking dynamic linker characteristics... " >&6; }
14043
14044library_names_spec=
14045libname_spec='lib$name'
14046soname_spec=
14047shrext_cmds=".so"
14048postinstall_cmds=
14049postuninstall_cmds=
14050finish_cmds=
14051finish_eval=
14052shlibpath_var=
14053shlibpath_overrides_runpath=unknown
14054version_type=none
14055dynamic_linker="$host_os ld.so"
14056sys_lib_dlsearch_path_spec="/lib /usr/lib"
14057need_lib_prefix=unknown
14058hardcode_into_libs=no
14059
14060# when you set need_version to no, make sure it does not cause -set_version
14061# flags to be left without arguments
14062need_version=unknown
14063
14064case $host_os in
14065aix3*)
14066  version_type=linux
14067  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14068  shlibpath_var=LIBPATH
14069
14070  # AIX 3 has no versioning support, so we append a major version to the name.
14071  soname_spec='${libname}${release}${shared_ext}$major'
14072  ;;
14073
14074aix[4-9]*)
14075  version_type=linux
14076  need_lib_prefix=no
14077  need_version=no
14078  hardcode_into_libs=yes
14079  if test "$host_cpu" = ia64; then
14080    # AIX 5 supports IA64
14081    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14082    shlibpath_var=LD_LIBRARY_PATH
14083  else
14084    # With GCC up to 2.95.x, collect2 would create an import file
14085    # for dependence libraries.  The import file would start with
14086    # the line `#! .'.  This would cause the generated library to
14087    # depend on `.', always an invalid library.  This was fixed in
14088    # development snapshots of GCC prior to 3.0.
14089    case $host_os in
14090      aix4 | aix4.[01] | aix4.[01].*)
14091      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14092	   echo ' yes '
14093	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14094	:
14095      else
14096	can_build_shared=no
14097      fi
14098      ;;
14099    esac
14100    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14101    # soname into executable. Probably we can add versioning support to
14102    # collect2, so additional links can be useful in future.
14103    if test "$aix_use_runtimelinking" = yes; then
14104      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14105      # instead of lib<name>.a to let people know that these are not
14106      # typical AIX shared libraries.
14107      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108    else
14109      # We preserve .a as extension for shared libraries through AIX4.2
14110      # and later when we are not doing run time linking.
14111      library_names_spec='${libname}${release}.a $libname.a'
14112      soname_spec='${libname}${release}${shared_ext}$major'
14113    fi
14114    shlibpath_var=LIBPATH
14115  fi
14116  ;;
14117
14118amigaos*)
14119  case $host_cpu in
14120  powerpc)
14121    # Since July 2007 AmigaOS4 officially supports .so libraries.
14122    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124    ;;
14125  m68k)
14126    library_names_spec='$libname.ixlibrary $libname.a'
14127    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14128    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'
14129    ;;
14130  esac
14131  ;;
14132
14133beos*)
14134  library_names_spec='${libname}${shared_ext}'
14135  dynamic_linker="$host_os ld.so"
14136  shlibpath_var=LIBRARY_PATH
14137  ;;
14138
14139bsdi[45]*)
14140  version_type=linux
14141  need_version=no
14142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143  soname_spec='${libname}${release}${shared_ext}$major'
14144  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14145  shlibpath_var=LD_LIBRARY_PATH
14146  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14147  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14148  # the default ld.so.conf also contains /usr/contrib/lib and
14149  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14150  # libtool to hard-code these into programs
14151  ;;
14152
14153cygwin* | mingw* | pw32* | cegcc*)
14154  version_type=windows
14155  shrext_cmds=".dll"
14156  need_version=no
14157  need_lib_prefix=no
14158
14159  case $GCC,$cc_basename in
14160  yes,*)
14161    # gcc
14162    library_names_spec='$libname.dll.a'
14163    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14164    postinstall_cmds='base_file=`basename \${file}`~
14165      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14166      dldir=$destdir/`dirname \$dlpath`~
14167      test -d \$dldir || mkdir -p \$dldir~
14168      $install_prog $dir/$dlname \$dldir/$dlname~
14169      chmod a+x \$dldir/$dlname~
14170      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14171        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14172      fi'
14173    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14174      dlpath=$dir/\$dldll~
14175       $RM \$dlpath'
14176    shlibpath_overrides_runpath=yes
14177
14178    case $host_os in
14179    cygwin*)
14180      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14181      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14182
14183      ;;
14184    mingw* | cegcc*)
14185      # MinGW DLLs use traditional 'lib' prefix
14186      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14187      ;;
14188    pw32*)
14189      # pw32 DLLs use 'pw' prefix rather than 'lib'
14190      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14191      ;;
14192    esac
14193    dynamic_linker='Win32 ld.exe'
14194    ;;
14195
14196  *,cl*)
14197    # Native MSVC
14198    libname_spec='$name'
14199    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14200    library_names_spec='${libname}.dll.lib'
14201
14202    case $build_os in
14203    mingw*)
14204      sys_lib_search_path_spec=
14205      lt_save_ifs=$IFS
14206      IFS=';'
14207      for lt_path in $LIB
14208      do
14209        IFS=$lt_save_ifs
14210        # Let DOS variable expansion print the short 8.3 style file name.
14211        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14212        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14213      done
14214      IFS=$lt_save_ifs
14215      # Convert to MSYS style.
14216      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14217      ;;
14218    cygwin*)
14219      # Convert to unix form, then to dos form, then back to unix form
14220      # but this time dos style (no spaces!) so that the unix form looks
14221      # like /cygdrive/c/PROGRA~1:/cygdr...
14222      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14223      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14224      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14225      ;;
14226    *)
14227      sys_lib_search_path_spec="$LIB"
14228      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14229        # It is most probably a Windows format PATH.
14230        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14231      else
14232        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14233      fi
14234      # FIXME: find the short name or the path components, as spaces are
14235      # common. (e.g. "Program Files" -> "PROGRA~1")
14236      ;;
14237    esac
14238
14239    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14240    postinstall_cmds='base_file=`basename \${file}`~
14241      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14242      dldir=$destdir/`dirname \$dlpath`~
14243      test -d \$dldir || mkdir -p \$dldir~
14244      $install_prog $dir/$dlname \$dldir/$dlname'
14245    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14246      dlpath=$dir/\$dldll~
14247       $RM \$dlpath'
14248    shlibpath_overrides_runpath=yes
14249    dynamic_linker='Win32 link.exe'
14250    ;;
14251
14252  *)
14253    # Assume MSVC wrapper
14254    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14255    dynamic_linker='Win32 ld.exe'
14256    ;;
14257  esac
14258  # FIXME: first we should search . and the directory the executable is in
14259  shlibpath_var=PATH
14260  ;;
14261
14262darwin* | rhapsody*)
14263  dynamic_linker="$host_os dyld"
14264  version_type=darwin
14265  need_lib_prefix=no
14266  need_version=no
14267  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14268  soname_spec='${libname}${release}${major}$shared_ext'
14269  shlibpath_overrides_runpath=yes
14270  shlibpath_var=DYLD_LIBRARY_PATH
14271  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14272
14273  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14274  ;;
14275
14276dgux*)
14277  version_type=linux
14278  need_lib_prefix=no
14279  need_version=no
14280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14281  soname_spec='${libname}${release}${shared_ext}$major'
14282  shlibpath_var=LD_LIBRARY_PATH
14283  ;;
14284
14285freebsd1*)
14286  dynamic_linker=no
14287  ;;
14288
14289freebsd* | dragonfly*)
14290  # DragonFly does not have aout.  When/if they implement a new
14291  # versioning mechanism, adjust this.
14292  if test -x /usr/bin/objformat; then
14293    objformat=`/usr/bin/objformat`
14294  else
14295    case $host_os in
14296    freebsd[123]*) objformat=aout ;;
14297    *) objformat=elf ;;
14298    esac
14299  fi
14300  version_type=freebsd-$objformat
14301  case $version_type in
14302    freebsd-elf*)
14303      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14304      need_version=no
14305      need_lib_prefix=no
14306      ;;
14307    freebsd-*)
14308      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14309      need_version=yes
14310      ;;
14311  esac
14312  shlibpath_var=LD_LIBRARY_PATH
14313  case $host_os in
14314  freebsd2*)
14315    shlibpath_overrides_runpath=yes
14316    ;;
14317  freebsd3.[01]* | freebsdelf3.[01]*)
14318    shlibpath_overrides_runpath=yes
14319    hardcode_into_libs=yes
14320    ;;
14321  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14322  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14323    shlibpath_overrides_runpath=no
14324    hardcode_into_libs=yes
14325    ;;
14326  *) # from 4.6 on, and DragonFly
14327    shlibpath_overrides_runpath=yes
14328    hardcode_into_libs=yes
14329    ;;
14330  esac
14331  ;;
14332
14333gnu*)
14334  version_type=linux
14335  need_lib_prefix=no
14336  need_version=no
14337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14338  soname_spec='${libname}${release}${shared_ext}$major'
14339  shlibpath_var=LD_LIBRARY_PATH
14340  hardcode_into_libs=yes
14341  ;;
14342
14343haiku*)
14344  version_type=linux
14345  need_lib_prefix=no
14346  need_version=no
14347  dynamic_linker="$host_os runtime_loader"
14348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14349  soname_spec='${libname}${release}${shared_ext}$major'
14350  shlibpath_var=LIBRARY_PATH
14351  shlibpath_overrides_runpath=yes
14352  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14353  hardcode_into_libs=yes
14354  ;;
14355
14356hpux9* | hpux10* | hpux11*)
14357  # Give a soname corresponding to the major version so that dld.sl refuses to
14358  # link against other versions.
14359  version_type=sunos
14360  need_lib_prefix=no
14361  need_version=no
14362  case $host_cpu in
14363  ia64*)
14364    shrext_cmds='.so'
14365    hardcode_into_libs=yes
14366    dynamic_linker="$host_os dld.so"
14367    shlibpath_var=LD_LIBRARY_PATH
14368    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14370    soname_spec='${libname}${release}${shared_ext}$major'
14371    if test "X$HPUX_IA64_MODE" = X32; then
14372      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14373    else
14374      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14375    fi
14376    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14377    ;;
14378  hppa*64*)
14379    shrext_cmds='.sl'
14380    hardcode_into_libs=yes
14381    dynamic_linker="$host_os dld.sl"
14382    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14383    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14384    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385    soname_spec='${libname}${release}${shared_ext}$major'
14386    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14387    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14388    ;;
14389  *)
14390    shrext_cmds='.sl'
14391    dynamic_linker="$host_os dld.sl"
14392    shlibpath_var=SHLIB_PATH
14393    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14394    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395    soname_spec='${libname}${release}${shared_ext}$major'
14396    ;;
14397  esac
14398  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14399  postinstall_cmds='chmod 555 $lib'
14400  # or fails outright, so override atomically:
14401  install_override_mode=555
14402  ;;
14403
14404interix[3-9]*)
14405  version_type=linux
14406  need_lib_prefix=no
14407  need_version=no
14408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14409  soname_spec='${libname}${release}${shared_ext}$major'
14410  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14411  shlibpath_var=LD_LIBRARY_PATH
14412  shlibpath_overrides_runpath=no
14413  hardcode_into_libs=yes
14414  ;;
14415
14416irix5* | irix6* | nonstopux*)
14417  case $host_os in
14418    nonstopux*) version_type=nonstopux ;;
14419    *)
14420	if test "$lt_cv_prog_gnu_ld" = yes; then
14421		version_type=linux
14422	else
14423		version_type=irix
14424	fi ;;
14425  esac
14426  need_lib_prefix=no
14427  need_version=no
14428  soname_spec='${libname}${release}${shared_ext}$major'
14429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14430  case $host_os in
14431  irix5* | nonstopux*)
14432    libsuff= shlibsuff=
14433    ;;
14434  *)
14435    case $LD in # libtool.m4 will add one of these switches to LD
14436    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14437      libsuff= shlibsuff= libmagic=32-bit;;
14438    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14439      libsuff=32 shlibsuff=N32 libmagic=N32;;
14440    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14441      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14442    *) libsuff= shlibsuff= libmagic=never-match;;
14443    esac
14444    ;;
14445  esac
14446  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14447  shlibpath_overrides_runpath=no
14448  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14449  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14450  hardcode_into_libs=yes
14451  ;;
14452
14453# No shared lib support for Linux oldld, aout, or coff.
14454linux*oldld* | linux*aout* | linux*coff*)
14455  dynamic_linker=no
14456  ;;
14457
14458# This must be Linux ELF.
14459linux* | k*bsd*-gnu | kopensolaris*-gnu)
14460  version_type=linux
14461  need_lib_prefix=no
14462  need_version=no
14463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464  soname_spec='${libname}${release}${shared_ext}$major'
14465  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14466  shlibpath_var=LD_LIBRARY_PATH
14467  shlibpath_overrides_runpath=no
14468
14469  # Some binutils ld are patched to set DT_RUNPATH
14470  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14471  $as_echo_n "(cached) " >&6
14472else
14473  lt_cv_shlibpath_overrides_runpath=no
14474    save_LDFLAGS=$LDFLAGS
14475    save_libdir=$libdir
14476    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14477	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479/* end confdefs.h.  */
14480
14481int
14482main ()
14483{
14484
14485  ;
14486  return 0;
14487}
14488_ACEOF
14489if ac_fn_cxx_try_link "$LINENO"; then :
14490  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14491  lt_cv_shlibpath_overrides_runpath=yes
14492fi
14493fi
14494rm -f core conftest.err conftest.$ac_objext \
14495    conftest$ac_exeext conftest.$ac_ext
14496    LDFLAGS=$save_LDFLAGS
14497    libdir=$save_libdir
14498
14499fi
14500
14501  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14502
14503  # This implies no fast_install, which is unacceptable.
14504  # Some rework will be needed to allow for fast_install
14505  # before this can be enabled.
14506  hardcode_into_libs=yes
14507
14508  # Append ld.so.conf contents to the search path
14509  if test -f /etc/ld.so.conf; then
14510    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' ' '`
14511    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14512  fi
14513
14514  # We used to test for /lib/ld.so.1 and disable shared libraries on
14515  # powerpc, because MkLinux only supported shared libraries with the
14516  # GNU dynamic linker.  Since this was broken with cross compilers,
14517  # most powerpc-linux boxes support dynamic linking these days and
14518  # people can always --disable-shared, the test was removed, and we
14519  # assume the GNU/Linux dynamic linker is in use.
14520  dynamic_linker='GNU/Linux ld.so'
14521  ;;
14522
14523netbsd*)
14524  version_type=sunos
14525  need_lib_prefix=no
14526  need_version=no
14527  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14529    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14530    dynamic_linker='NetBSD (a.out) ld.so'
14531  else
14532    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14533    soname_spec='${libname}${release}${shared_ext}$major'
14534    dynamic_linker='NetBSD ld.elf_so'
14535  fi
14536  shlibpath_var=LD_LIBRARY_PATH
14537  shlibpath_overrides_runpath=yes
14538  hardcode_into_libs=yes
14539  ;;
14540
14541newsos6)
14542  version_type=linux
14543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544  shlibpath_var=LD_LIBRARY_PATH
14545  shlibpath_overrides_runpath=yes
14546  ;;
14547
14548*nto* | *qnx*)
14549  version_type=qnx
14550  need_lib_prefix=no
14551  need_version=no
14552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553  soname_spec='${libname}${release}${shared_ext}$major'
14554  shlibpath_var=LD_LIBRARY_PATH
14555  shlibpath_overrides_runpath=no
14556  hardcode_into_libs=yes
14557  dynamic_linker='ldqnx.so'
14558  ;;
14559
14560openbsd*)
14561  version_type=sunos
14562  sys_lib_dlsearch_path_spec="/usr/lib"
14563  need_lib_prefix=no
14564  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14565  case $host_os in
14566    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14567    *)				need_version=no  ;;
14568  esac
14569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14570  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14571  shlibpath_var=LD_LIBRARY_PATH
14572  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14573    case $host_os in
14574      openbsd2.[89] | openbsd2.[89].*)
14575	shlibpath_overrides_runpath=no
14576	;;
14577      *)
14578	shlibpath_overrides_runpath=yes
14579	;;
14580      esac
14581  else
14582    shlibpath_overrides_runpath=yes
14583  fi
14584  ;;
14585
14586os2*)
14587  libname_spec='$name'
14588  shrext_cmds=".dll"
14589  need_lib_prefix=no
14590  library_names_spec='$libname${shared_ext} $libname.a'
14591  dynamic_linker='OS/2 ld.exe'
14592  shlibpath_var=LIBPATH
14593  ;;
14594
14595osf3* | osf4* | osf5*)
14596  version_type=osf
14597  need_lib_prefix=no
14598  need_version=no
14599  soname_spec='${libname}${release}${shared_ext}$major'
14600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601  shlibpath_var=LD_LIBRARY_PATH
14602  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14603  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14604  ;;
14605
14606rdos*)
14607  dynamic_linker=no
14608  ;;
14609
14610solaris*)
14611  version_type=linux
14612  need_lib_prefix=no
14613  need_version=no
14614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615  soname_spec='${libname}${release}${shared_ext}$major'
14616  shlibpath_var=LD_LIBRARY_PATH
14617  shlibpath_overrides_runpath=yes
14618  hardcode_into_libs=yes
14619  # ldd complains unless libraries are executable
14620  postinstall_cmds='chmod +x $lib'
14621  ;;
14622
14623sunos4*)
14624  version_type=sunos
14625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14626  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14627  shlibpath_var=LD_LIBRARY_PATH
14628  shlibpath_overrides_runpath=yes
14629  if test "$with_gnu_ld" = yes; then
14630    need_lib_prefix=no
14631  fi
14632  need_version=yes
14633  ;;
14634
14635sysv4 | sysv4.3*)
14636  version_type=linux
14637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14638  soname_spec='${libname}${release}${shared_ext}$major'
14639  shlibpath_var=LD_LIBRARY_PATH
14640  case $host_vendor in
14641    sni)
14642      shlibpath_overrides_runpath=no
14643      need_lib_prefix=no
14644      runpath_var=LD_RUN_PATH
14645      ;;
14646    siemens)
14647      need_lib_prefix=no
14648      ;;
14649    motorola)
14650      need_lib_prefix=no
14651      need_version=no
14652      shlibpath_overrides_runpath=no
14653      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14654      ;;
14655  esac
14656  ;;
14657
14658sysv4*MP*)
14659  if test -d /usr/nec ;then
14660    version_type=linux
14661    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14662    soname_spec='$libname${shared_ext}.$major'
14663    shlibpath_var=LD_LIBRARY_PATH
14664  fi
14665  ;;
14666
14667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14668  version_type=freebsd-elf
14669  need_lib_prefix=no
14670  need_version=no
14671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14672  soname_spec='${libname}${release}${shared_ext}$major'
14673  shlibpath_var=LD_LIBRARY_PATH
14674  shlibpath_overrides_runpath=yes
14675  hardcode_into_libs=yes
14676  if test "$with_gnu_ld" = yes; then
14677    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14678  else
14679    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14680    case $host_os in
14681      sco3.2v5*)
14682        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14683	;;
14684    esac
14685  fi
14686  sys_lib_dlsearch_path_spec='/usr/lib'
14687  ;;
14688
14689tpf*)
14690  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14691  version_type=linux
14692  need_lib_prefix=no
14693  need_version=no
14694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695  shlibpath_var=LD_LIBRARY_PATH
14696  shlibpath_overrides_runpath=no
14697  hardcode_into_libs=yes
14698  ;;
14699
14700uts4*)
14701  version_type=linux
14702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703  soname_spec='${libname}${release}${shared_ext}$major'
14704  shlibpath_var=LD_LIBRARY_PATH
14705  ;;
14706
14707*)
14708  dynamic_linker=no
14709  ;;
14710esac
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14712$as_echo "$dynamic_linker" >&6; }
14713test "$dynamic_linker" = no && can_build_shared=no
14714
14715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14716if test "$GCC" = yes; then
14717  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14718fi
14719
14720if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14721  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14722fi
14723if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14724  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14725fi
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14765$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14766hardcode_action_CXX=
14767if test -n "$hardcode_libdir_flag_spec_CXX" ||
14768   test -n "$runpath_var_CXX" ||
14769   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14770
14771  # We can hardcode non-existent directories.
14772  if test "$hardcode_direct_CXX" != no &&
14773     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14774     # have to relink, otherwise we might link with an installed library
14775     # when we should be linking with a yet-to-be-installed one
14776     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14777     test "$hardcode_minus_L_CXX" != no; then
14778    # Linking always hardcodes the temporary library directory.
14779    hardcode_action_CXX=relink
14780  else
14781    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14782    hardcode_action_CXX=immediate
14783  fi
14784else
14785  # We cannot hardcode anything, or else we can only hardcode existing
14786  # directories.
14787  hardcode_action_CXX=unsupported
14788fi
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14790$as_echo "$hardcode_action_CXX" >&6; }
14791
14792if test "$hardcode_action_CXX" = relink ||
14793   test "$inherit_rpath_CXX" = yes; then
14794  # Fast installation is not supported
14795  enable_fast_install=no
14796elif test "$shlibpath_overrides_runpath" = yes ||
14797     test "$enable_shared" = no; then
14798  # Fast installation is not necessary
14799  enable_fast_install=needless
14800fi
14801
14802
14803
14804
14805
14806
14807
14808  fi # test -n "$compiler"
14809
14810  CC=$lt_save_CC
14811  CFLAGS=$lt_save_CFLAGS
14812  LDCXX=$LD
14813  LD=$lt_save_LD
14814  GCC=$lt_save_GCC
14815  with_gnu_ld=$lt_save_with_gnu_ld
14816  lt_cv_path_LDCXX=$lt_cv_path_LD
14817  lt_cv_path_LD=$lt_save_path_LD
14818  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14819  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14820fi # test "$_lt_caught_CXX_error" != yes
14821
14822ac_ext=c
14823ac_cpp='$CPP $CPPFLAGS'
14824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826ac_compiler_gnu=$ac_cv_c_compiler_gnu
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840        ac_config_commands="$ac_config_commands libtool"
14841
14842
14843
14844
14845# Only expand once:
14846
14847
14848
14849ac_mysql_debug=
14850@%:@ Check whether --enable-mysql-debug was given.
14851if test "${enable_mysql_debug+set}" = set; then :
14852  enableval=$enable_mysql_debug; ac_mysql_debug="$enableval"
14853else
14854  ac_mysql_debug=no
14855fi
14856
14857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-mysql-debug is specified" >&5
14858$as_echo_n "checking if --enable-mysql-debug is specified... " >&6; }
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_mysql_debug" >&5
14860$as_echo "$ac_mysql_debug" >&6; }
14861
14862
14863
14864HANDLERSOCKET_SUBDIRS="libhsclient"
14865@%:@ Check whether --enable-handlersocket_server was given.
14866if test "${enable_handlersocket_server+set}" = set; then :
14867  enableval=$enable_handlersocket_server;
14868fi
14869
14870if test "$enable_handlersocket_server" != "no"; then
14871
14872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking mysql source" >&5
14873$as_echo_n "checking mysql source... " >&6; }
14874
14875  MYSQL_SOURCE_VERSION=
14876  MYSQL_INC=
14877  ac_mysql_source_dir=
14878
14879@%:@ Check whether --with-mysql-source was given.
14880if test "${with_mysql_source+set}" = set; then :
14881  withval=$with_mysql_source;
14882      ac_mysql_source_dir=`cd $withval && pwd`
14883      if test -f "$ac_mysql_source_dir/sql/handler.h" ; then
14884        MYSQL_INC="-I$ac_mysql_source_dir/sql"
14885        MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir/include"
14886        MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir/regex"
14887        MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir"
14888
14889        if test -f "$ac_mysql_source_dir/VERSION"; then
14890          source "$ac_mysql_source_dir/VERSION"
14891          MYSQL_SOURCE_VERSION="$MYSQL_VERSION_MAJOR.$MYSQL_VERSION_MINOR.$MYSQL_VERSION_PATCH"
14892        else
14893          if test -f "$ac_mysql_source_dir/configure.in"; then
14894            MYSQL_SOURCE_VERSION=`cat $ac_mysql_source_dir/configure.in | grep "\[MySQL Server\]" | sed -e "s|.*\([0-9]\+\.[0-9]\+\.[0-9]\+[0-9a-zA-Z\_\-]*\).*|\1|"`
14895          else
14896            as_fn_error $? "invalid MySQL source directory: $ac_mysql_source_dir" "$LINENO" 5
14897          fi
14898        fi
14899        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: Using $ac_mysql_source_dir, version $MYSQL_SOURCE_VERSION" >&5
14900$as_echo "yes: Using $ac_mysql_source_dir, version $MYSQL_SOURCE_VERSION" >&6; }
14901      else
14902        as_fn_error $? "invalid MySQL source directory: $ac_mysql_source_dir" "$LINENO" 5
14903      fi
14904
14905else
14906  as_fn_error $? "--with-mysql-source=PATH is required for standalone build" "$LINENO" 5
14907
14908fi
14909
14910
14911  MYSQL_BIN_VERSION=
14912  ac_mysql_config=
14913
14914@%:@ Check whether --with-mysql-bindir was given.
14915if test "${with_mysql_bindir+set}" = set; then :
14916  withval=$with_mysql_bindir;
14917      mysql_bin_dir=`cd $withval 2> /dev/null && pwd || echo ""`
14918      ac_mysql_config="$mysql_bin_dir/mysql_config"
14919
14920else
14921
14922      # Extract the first word of "mysql_config", so it can be a program name with args.
14923set dummy mysql_config; ac_word=$2
14924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14925$as_echo_n "checking for $ac_word... " >&6; }
14926if ${ac_cv_path_ac_mysql_config+:} false; then :
14927  $as_echo_n "(cached) " >&6
14928else
14929  case $ac_mysql_config in
14930  [\\/]* | ?:[\\/]*)
14931  ac_cv_path_ac_mysql_config="$ac_mysql_config" # Let the user override the test with a path.
14932  ;;
14933  *)
14934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14935for as_dir in $PATH
14936do
14937  IFS=$as_save_IFS
14938  test -z "$as_dir" && as_dir=.
14939    for ac_exec_ext in '' $ac_executable_extensions; do
14940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14941    ac_cv_path_ac_mysql_config="$as_dir/$ac_word$ac_exec_ext"
14942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14943    break 2
14944  fi
14945done
14946  done
14947IFS=$as_save_IFS
14948
14949  ;;
14950esac
14951fi
14952ac_mysql_config=$ac_cv_path_ac_mysql_config
14953if test -n "$ac_mysql_config"; then
14954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_mysql_config" >&5
14955$as_echo "$ac_mysql_config" >&6; }
14956else
14957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958$as_echo "no" >&6; }
14959fi
14960
14961
14962
14963
14964fi
14965
14966
14967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking mysql binary" >&5
14968$as_echo_n "checking mysql binary... " >&6; }
14969  if test ! -x "$ac_mysql_config" ; then
14970    as_fn_error $? "mysql_config not found! You have to specify the directory where mysql_config resides to --with-mysql-bindir=PATH." "$LINENO" 5
14971  fi
14972
14973  MYSQL_CFLAGS_ADD=`"$ac_mysql_config" --cflags`
14974  MYSQL_CFLAGS="$MYSQL_CFLAGS $MYSQL_CFLAGS_ADD"
14975  if test "$ac_mysql_debug" = "yes"; then
14976    MYSQL_CFLAGS="$MYSQL_CFLAGS -DDBUG_ON -DENABLED_DEBUG_SYNC"
14977  else
14978    MYSQL_CFLAGS="$MYSQL_CFLAGS -DDBUG_OFF"
14979  fi
14980
14981
14982  MYSQL_BIN_VERSION=`"$ac_mysql_config" --version`
14983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: Using $ac_mysql_config, version $MYSQL_BIN_VERSION" >&5
14984$as_echo "yes: Using $ac_mysql_config, version $MYSQL_BIN_VERSION" >&6; }
14985
14986  MYSQL_LIB=`"$ac_mysql_config" --libs_r`
14987  LIB_DIR=`echo $MYSQL_LIB | sed -e "s|.*-L/|/|" | sed -e "s| .*||"`
14988    # FIXME
14989  if test a`basename "$LIB_DIR"` = amysql ; then
14990    MYSQL_LIB="-L`dirname $LIB_DIR` $MYSQL_LIB"
14991      # FIXME
14992  fi
14993
14994
14995  if test a$MYSQL_SOURCE_VERSION != a$MYSQL_BIN_VERSION ; then
14996    as_fn_error $? "MySQL source version does not match MySQL binary version" "$LINENO" 5
14997  fi
14998
14999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking mysql plugin dir" >&5
15000$as_echo_n "checking mysql plugin dir... " >&6; }
15001  ac_mysql_plugin_dir=
15002
15003@%:@ Check whether --with-mysql-plugindir was given.
15004if test "${with_mysql_plugindir+set}" = set; then :
15005  withval=$with_mysql_plugindir;
15006      ac_mysql_plugin_dir=`cd $withval && pwd`
15007      if test -d "$ac_mysql_plugin_dir/" ; then
15008        PLUGIN_DIR="$ac_mysql_plugin_dir"
15009
15010        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: Using $ac_mysql_plugin_dir" >&5
15011$as_echo "yes: Using $ac_mysql_plugin_dir" >&6; }
15012      else
15013        as_fn_error $? "invalid MySQL plugin directory : $ac_mysql_plugin_dir" "$LINENO" 5
15014      fi
15015
15016else
15017
15018      LIB_DIR_TMP=`"$ac_mysql_config" --plugindir`
15019      if test ! -d "$LIB_DIR_TMP"; then
15020        LIB_DIR_TMP=`"$ac_mysql_config" --libs_r | sed -e "s|.*-L/|/|" | sed -e "s| .*||"`/plugin
15021          # FIXME
15022      fi
15023      ac_mysql_plugin_dir=$LIB_DIR_TMP
15024      PLUGIN_DIR="$ac_mysql_plugin_dir"
15025
15026      { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-mysql-plugindir was not set. Using $ac_mysql_plugin_dir" >&5
15027$as_echo "--with-mysql-plugindir was not set. Using $ac_mysql_plugin_dir" >&6; }
15028
15029
15030fi
15031
15032
15033  HANDLERSOCKET_SUBDIRS="libhsclient handlersocket client"
15034fi
15035
15036
15037CFLAGS="$CFLAGS -Werror"
15038CXXFLAGS="$CXXFLAGS -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC"
15039
15040ac_config_files="$ac_config_files Makefile handlersocket/Makefile libhsclient/Makefile client/Makefile"
15041
15042
15043cat >confcache <<\_ACEOF
15044# This file is a shell script that caches the results of configure
15045# tests run on this system so they can be shared between configure
15046# scripts and configure runs, see configure's option --config-cache.
15047# It is not useful on other systems.  If it contains results you don't
15048# want to keep, you may remove or edit it.
15049#
15050# config.status only pays attention to the cache file if you give it
15051# the --recheck option to rerun configure.
15052#
15053# `ac_cv_env_foo' variables (set or unset) will be overridden when
15054# loading this file, other *unset* `ac_cv_foo' will be assigned the
15055# following values.
15056
15057_ACEOF
15058
15059# The following way of writing the cache mishandles newlines in values,
15060# but we know of no workaround that is simple, portable, and efficient.
15061# So, we kill variables containing newlines.
15062# Ultrix sh set writes to stderr and can't be redirected directly,
15063# and sets the high bit in the cache file unless we assign to the vars.
15064(
15065  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15066    eval ac_val=\$$ac_var
15067    case $ac_val in #(
15068    *${as_nl}*)
15069      case $ac_var in #(
15070      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15072      esac
15073      case $ac_var in #(
15074      _ | IFS | as_nl) ;; #(
15075      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15076      *) { eval $ac_var=; unset $ac_var;} ;;
15077      esac ;;
15078    esac
15079  done
15080
15081  (set) 2>&1 |
15082    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15083    *${as_nl}ac_space=\ *)
15084      # `set' does not quote correctly, so add quotes: double-quote
15085      # substitution turns \\\\ into \\, and sed turns \\ into \.
15086      sed -n \
15087	"s/'/'\\\\''/g;
15088	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15089      ;; #(
15090    *)
15091      # `set' quotes correctly as required by POSIX, so do not add quotes.
15092      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15093      ;;
15094    esac |
15095    sort
15096) |
15097  sed '
15098     /^ac_cv_env_/b end
15099     t clear
15100     :clear
15101     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15102     t end
15103     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15104     :end' >>confcache
15105if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15106  if test -w "$cache_file"; then
15107    if test "x$cache_file" != "x/dev/null"; then
15108      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15109$as_echo "$as_me: updating cache $cache_file" >&6;}
15110      if test ! -f "$cache_file" || test -h "$cache_file"; then
15111	cat confcache >"$cache_file"
15112      else
15113        case $cache_file in #(
15114        */* | ?:*)
15115	  mv -f confcache "$cache_file"$$ &&
15116	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15117        *)
15118	  mv -f confcache "$cache_file" ;;
15119	esac
15120      fi
15121    fi
15122  else
15123    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15124$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15125  fi
15126fi
15127rm -f confcache
15128
15129test "x$prefix" = xNONE && prefix=$ac_default_prefix
15130# Let make expand exec_prefix.
15131test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15132
15133DEFS=-DHAVE_CONFIG_H
15134
15135ac_libobjs=
15136ac_ltlibobjs=
15137U=
15138for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15139  # 1. Remove the extension, and $U if already installed.
15140  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15141  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15142  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15143  #    will be set to the directory where LIBOBJS objects are built.
15144  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15145  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15146done
15147LIB@&t@OBJS=$ac_libobjs
15148
15149LTLIBOBJS=$ac_ltlibobjs
15150
15151
15152 if test -n "$EXEEXT"; then
15153  am__EXEEXT_TRUE=
15154  am__EXEEXT_FALSE='#'
15155else
15156  am__EXEEXT_TRUE='#'
15157  am__EXEEXT_FALSE=
15158fi
15159
15160if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15161  as_fn_error $? "conditional \"AMDEP\" was never defined.
15162Usually this means the macro was only invoked conditionally." "$LINENO" 5
15163fi
15164if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15165  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15166Usually this means the macro was only invoked conditionally." "$LINENO" 5
15167fi
15168if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15169  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15170Usually this means the macro was only invoked conditionally." "$LINENO" 5
15171fi
15172
15173: "${CONFIG_STATUS=./config.status}"
15174ac_write_fail=0
15175ac_clean_files_save=$ac_clean_files
15176ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15177{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15178$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15179as_write_fail=0
15180cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15181#! $SHELL
15182# Generated by $as_me.
15183# Run this file to recreate the current configuration.
15184# Compiler output produced by configure, useful for debugging
15185# configure, is in config.log if it exists.
15186
15187debug=false
15188ac_cs_recheck=false
15189ac_cs_silent=false
15190
15191SHELL=\${CONFIG_SHELL-$SHELL}
15192export SHELL
15193_ASEOF
15194cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15195## -------------------- ##
15196## M4sh Initialization. ##
15197## -------------------- ##
15198
15199# Be more Bourne compatible
15200DUALCASE=1; export DUALCASE # for MKS sh
15201if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15202  emulate sh
15203  NULLCMD=:
15204  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15205  # is contrary to our usage.  Disable this feature.
15206  alias -g '${1+"$@"}'='"$@"'
15207  setopt NO_GLOB_SUBST
15208else
15209  case `(set -o) 2>/dev/null` in @%:@(
15210  *posix*) :
15211    set -o posix ;; @%:@(
15212  *) :
15213     ;;
15214esac
15215fi
15216
15217
15218as_nl='
15219'
15220export as_nl
15221# Printing a long string crashes Solaris 7 /usr/bin/printf.
15222as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15223as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15224as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15225# Prefer a ksh shell builtin over an external printf program on Solaris,
15226# but without wasting forks for bash or zsh.
15227if test -z "$BASH_VERSION$ZSH_VERSION" \
15228    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15229  as_echo='print -r --'
15230  as_echo_n='print -rn --'
15231elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15232  as_echo='printf %s\n'
15233  as_echo_n='printf %s'
15234else
15235  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15236    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15237    as_echo_n='/usr/ucb/echo -n'
15238  else
15239    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15240    as_echo_n_body='eval
15241      arg=$1;
15242      case $arg in @%:@(
15243      *"$as_nl"*)
15244	expr "X$arg" : "X\\(.*\\)$as_nl";
15245	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15246      esac;
15247      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15248    '
15249    export as_echo_n_body
15250    as_echo_n='sh -c $as_echo_n_body as_echo'
15251  fi
15252  export as_echo_body
15253  as_echo='sh -c $as_echo_body as_echo'
15254fi
15255
15256# The user is always right.
15257if test "${PATH_SEPARATOR+set}" != set; then
15258  PATH_SEPARATOR=:
15259  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15260    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15261      PATH_SEPARATOR=';'
15262  }
15263fi
15264
15265
15266# IFS
15267# We need space, tab and new line, in precisely that order.  Quoting is
15268# there to prevent editors from complaining about space-tab.
15269# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15270# splitting by setting IFS to empty value.)
15271IFS=" ""	$as_nl"
15272
15273# Find who we are.  Look in the path if we contain no directory separator.
15274as_myself=
15275case $0 in @%:@((
15276  *[\\/]* ) as_myself=$0 ;;
15277  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15278for as_dir in $PATH
15279do
15280  IFS=$as_save_IFS
15281  test -z "$as_dir" && as_dir=.
15282    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15283  done
15284IFS=$as_save_IFS
15285
15286     ;;
15287esac
15288# We did not find ourselves, most probably we were run as `sh COMMAND'
15289# in which case we are not to be found in the path.
15290if test "x$as_myself" = x; then
15291  as_myself=$0
15292fi
15293if test ! -f "$as_myself"; then
15294  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15295  exit 1
15296fi
15297
15298# Unset variables that we do not need and which cause bugs (e.g. in
15299# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15300# suppresses any "Segmentation fault" message there.  '((' could
15301# trigger a bug in pdksh 5.2.14.
15302for as_var in BASH_ENV ENV MAIL MAILPATH
15303do eval test x\${$as_var+set} = xset \
15304  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15305done
15306PS1='$ '
15307PS2='> '
15308PS4='+ '
15309
15310# NLS nuisances.
15311LC_ALL=C
15312export LC_ALL
15313LANGUAGE=C
15314export LANGUAGE
15315
15316# CDPATH.
15317(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15318
15319
15320@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15321@%:@ ----------------------------------------
15322@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15323@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15324@%:@ script with STATUS, using 1 if that was 0.
15325as_fn_error ()
15326{
15327  as_status=$1; test $as_status -eq 0 && as_status=1
15328  if test "$4"; then
15329    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15330    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15331  fi
15332  $as_echo "$as_me: error: $2" >&2
15333  as_fn_exit $as_status
15334} @%:@ as_fn_error
15335
15336
15337@%:@ as_fn_set_status STATUS
15338@%:@ -----------------------
15339@%:@ Set @S|@? to STATUS, without forking.
15340as_fn_set_status ()
15341{
15342  return $1
15343} @%:@ as_fn_set_status
15344
15345@%:@ as_fn_exit STATUS
15346@%:@ -----------------
15347@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15348as_fn_exit ()
15349{
15350  set +e
15351  as_fn_set_status $1
15352  exit $1
15353} @%:@ as_fn_exit
15354
15355@%:@ as_fn_unset VAR
15356@%:@ ---------------
15357@%:@ Portably unset VAR.
15358as_fn_unset ()
15359{
15360  { eval $1=; unset $1;}
15361}
15362as_unset=as_fn_unset
15363@%:@ as_fn_append VAR VALUE
15364@%:@ ----------------------
15365@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15366@%:@ advantage of any shell optimizations that allow amortized linear growth over
15367@%:@ repeated appends, instead of the typical quadratic growth present in naive
15368@%:@ implementations.
15369if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15370  eval 'as_fn_append ()
15371  {
15372    eval $1+=\$2
15373  }'
15374else
15375  as_fn_append ()
15376  {
15377    eval $1=\$$1\$2
15378  }
15379fi # as_fn_append
15380
15381@%:@ as_fn_arith ARG...
15382@%:@ ------------------
15383@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15384@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15385@%:@ must be portable across @S|@(()) and expr.
15386if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15387  eval 'as_fn_arith ()
15388  {
15389    as_val=$(( $* ))
15390  }'
15391else
15392  as_fn_arith ()
15393  {
15394    as_val=`expr "$@" || test $? -eq 1`
15395  }
15396fi # as_fn_arith
15397
15398
15399if expr a : '\(a\)' >/dev/null 2>&1 &&
15400   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15401  as_expr=expr
15402else
15403  as_expr=false
15404fi
15405
15406if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15407  as_basename=basename
15408else
15409  as_basename=false
15410fi
15411
15412if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15413  as_dirname=dirname
15414else
15415  as_dirname=false
15416fi
15417
15418as_me=`$as_basename -- "$0" ||
15419$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15420	 X"$0" : 'X\(//\)$' \| \
15421	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15422$as_echo X/"$0" |
15423    sed '/^.*\/\([^/][^/]*\)\/*$/{
15424	    s//\1/
15425	    q
15426	  }
15427	  /^X\/\(\/\/\)$/{
15428	    s//\1/
15429	    q
15430	  }
15431	  /^X\/\(\/\).*/{
15432	    s//\1/
15433	    q
15434	  }
15435	  s/.*/./; q'`
15436
15437# Avoid depending upon Character Ranges.
15438as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15439as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15440as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15441as_cr_digits='0123456789'
15442as_cr_alnum=$as_cr_Letters$as_cr_digits
15443
15444ECHO_C= ECHO_N= ECHO_T=
15445case `echo -n x` in @%:@(((((
15446-n*)
15447  case `echo 'xy\c'` in
15448  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15449  xy)  ECHO_C='\c';;
15450  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15451       ECHO_T='	';;
15452  esac;;
15453*)
15454  ECHO_N='-n';;
15455esac
15456
15457rm -f conf$$ conf$$.exe conf$$.file
15458if test -d conf$$.dir; then
15459  rm -f conf$$.dir/conf$$.file
15460else
15461  rm -f conf$$.dir
15462  mkdir conf$$.dir 2>/dev/null
15463fi
15464if (echo >conf$$.file) 2>/dev/null; then
15465  if ln -s conf$$.file conf$$ 2>/dev/null; then
15466    as_ln_s='ln -s'
15467    # ... but there are two gotchas:
15468    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15469    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15470    # In both cases, we have to default to `cp -p'.
15471    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15472      as_ln_s='cp -p'
15473  elif ln conf$$.file conf$$ 2>/dev/null; then
15474    as_ln_s=ln
15475  else
15476    as_ln_s='cp -p'
15477  fi
15478else
15479  as_ln_s='cp -p'
15480fi
15481rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15482rmdir conf$$.dir 2>/dev/null
15483
15484
15485@%:@ as_fn_mkdir_p
15486@%:@ -------------
15487@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15488as_fn_mkdir_p ()
15489{
15490
15491  case $as_dir in #(
15492  -*) as_dir=./$as_dir;;
15493  esac
15494  test -d "$as_dir" || eval $as_mkdir_p || {
15495    as_dirs=
15496    while :; do
15497      case $as_dir in #(
15498      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15499      *) as_qdir=$as_dir;;
15500      esac
15501      as_dirs="'$as_qdir' $as_dirs"
15502      as_dir=`$as_dirname -- "$as_dir" ||
15503$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15504	 X"$as_dir" : 'X\(//\)[^/]' \| \
15505	 X"$as_dir" : 'X\(//\)$' \| \
15506	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15507$as_echo X"$as_dir" |
15508    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15509	    s//\1/
15510	    q
15511	  }
15512	  /^X\(\/\/\)[^/].*/{
15513	    s//\1/
15514	    q
15515	  }
15516	  /^X\(\/\/\)$/{
15517	    s//\1/
15518	    q
15519	  }
15520	  /^X\(\/\).*/{
15521	    s//\1/
15522	    q
15523	  }
15524	  s/.*/./; q'`
15525      test -d "$as_dir" && break
15526    done
15527    test -z "$as_dirs" || eval "mkdir $as_dirs"
15528  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15529
15530
15531} @%:@ as_fn_mkdir_p
15532if mkdir -p . 2>/dev/null; then
15533  as_mkdir_p='mkdir -p "$as_dir"'
15534else
15535  test -d ./-p && rmdir ./-p
15536  as_mkdir_p=false
15537fi
15538
15539if test -x / >/dev/null 2>&1; then
15540  as_test_x='test -x'
15541else
15542  if ls -dL / >/dev/null 2>&1; then
15543    as_ls_L_option=L
15544  else
15545    as_ls_L_option=
15546  fi
15547  as_test_x='
15548    eval sh -c '\''
15549      if test -d "$1"; then
15550	test -d "$1/.";
15551      else
15552	case $1 in @%:@(
15553	-*)set "./$1";;
15554	esac;
15555	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
15556	???[sx]*):;;*)false;;esac;fi
15557    '\'' sh
15558  '
15559fi
15560as_executable_p=$as_test_x
15561
15562# Sed expression to map a string onto a valid CPP name.
15563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15564
15565# Sed expression to map a string onto a valid variable name.
15566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15567
15568
15569exec 6>&1
15570## ----------------------------------- ##
15571## Main body of $CONFIG_STATUS script. ##
15572## ----------------------------------- ##
15573_ASEOF
15574test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15575
15576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15577# Save the log message, to keep $0 and so on meaningful, and to
15578# report actual input values of CONFIG_FILES etc. instead of their
15579# values after options handling.
15580ac_log="
15581This file was extended by handlersocket-plugin $as_me 1.0.6, which was
15582generated by GNU Autoconf 2.68.  Invocation command line was
15583
15584  CONFIG_FILES    = $CONFIG_FILES
15585  CONFIG_HEADERS  = $CONFIG_HEADERS
15586  CONFIG_LINKS    = $CONFIG_LINKS
15587  CONFIG_COMMANDS = $CONFIG_COMMANDS
15588  $ $0 $@
15589
15590on `(hostname || uname -n) 2>/dev/null | sed 1q`
15591"
15592
15593_ACEOF
15594
15595case $ac_config_files in *"
15596"*) set x $ac_config_files; shift; ac_config_files=$*;;
15597esac
15598
15599case $ac_config_headers in *"
15600"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15601esac
15602
15603
15604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15605# Files that config.status was made for.
15606config_files="$ac_config_files"
15607config_headers="$ac_config_headers"
15608config_commands="$ac_config_commands"
15609
15610_ACEOF
15611
15612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15613ac_cs_usage="\
15614\`$as_me' instantiates files and other configuration actions
15615from templates according to the current configuration.  Unless the files
15616and actions are specified as TAGs, all are instantiated by default.
15617
15618Usage: $0 [OPTION]... [TAG]...
15619
15620  -h, --help       print this help, then exit
15621  -V, --version    print version number and configuration settings, then exit
15622      --config     print configuration, then exit
15623  -q, --quiet, --silent
15624                   do not print progress messages
15625  -d, --debug      don't remove temporary files
15626      --recheck    update $as_me by reconfiguring in the same conditions
15627      --file=FILE[:TEMPLATE]
15628                   instantiate the configuration file FILE
15629      --header=FILE[:TEMPLATE]
15630                   instantiate the configuration header FILE
15631
15632Configuration files:
15633$config_files
15634
15635Configuration headers:
15636$config_headers
15637
15638Configuration commands:
15639$config_commands
15640
15641Report bugs to <https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/issues>."
15642
15643_ACEOF
15644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15646ac_cs_version="\\
15647handlersocket-plugin config.status 1.0.6
15648configured by $0, generated by GNU Autoconf 2.68,
15649  with options \\"\$ac_cs_config\\"
15650
15651Copyright (C) 2010 Free Software Foundation, Inc.
15652This config.status script is free software; the Free Software Foundation
15653gives unlimited permission to copy, distribute and modify it."
15654
15655ac_pwd='$ac_pwd'
15656srcdir='$srcdir'
15657INSTALL='$INSTALL'
15658MKDIR_P='$MKDIR_P'
15659AWK='$AWK'
15660test -n "\$AWK" || AWK=awk
15661_ACEOF
15662
15663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15664# The default lists apply if the user does not specify any file.
15665ac_need_defaults=:
15666while test $# != 0
15667do
15668  case $1 in
15669  --*=?*)
15670    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15671    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15672    ac_shift=:
15673    ;;
15674  --*=)
15675    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15676    ac_optarg=
15677    ac_shift=:
15678    ;;
15679  *)
15680    ac_option=$1
15681    ac_optarg=$2
15682    ac_shift=shift
15683    ;;
15684  esac
15685
15686  case $ac_option in
15687  # Handling of the options.
15688  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15689    ac_cs_recheck=: ;;
15690  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15691    $as_echo "$ac_cs_version"; exit ;;
15692  --config | --confi | --conf | --con | --co | --c )
15693    $as_echo "$ac_cs_config"; exit ;;
15694  --debug | --debu | --deb | --de | --d | -d )
15695    debug=: ;;
15696  --file | --fil | --fi | --f )
15697    $ac_shift
15698    case $ac_optarg in
15699    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15700    '') as_fn_error $? "missing file argument" ;;
15701    esac
15702    as_fn_append CONFIG_FILES " '$ac_optarg'"
15703    ac_need_defaults=false;;
15704  --header | --heade | --head | --hea )
15705    $ac_shift
15706    case $ac_optarg in
15707    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15708    esac
15709    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15710    ac_need_defaults=false;;
15711  --he | --h)
15712    # Conflict between --help and --header
15713    as_fn_error $? "ambiguous option: \`$1'
15714Try \`$0 --help' for more information.";;
15715  --help | --hel | -h )
15716    $as_echo "$ac_cs_usage"; exit ;;
15717  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15718  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15719    ac_cs_silent=: ;;
15720
15721  # This is an error.
15722  -*) as_fn_error $? "unrecognized option: \`$1'
15723Try \`$0 --help' for more information." ;;
15724
15725  *) as_fn_append ac_config_targets " $1"
15726     ac_need_defaults=false ;;
15727
15728  esac
15729  shift
15730done
15731
15732ac_configure_extra_args=
15733
15734if $ac_cs_silent; then
15735  exec 6>/dev/null
15736  ac_configure_extra_args="$ac_configure_extra_args --silent"
15737fi
15738
15739_ACEOF
15740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15741if \$ac_cs_recheck; then
15742  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15743  shift
15744  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15745  CONFIG_SHELL='$SHELL'
15746  export CONFIG_SHELL
15747  exec "\$@"
15748fi
15749
15750_ACEOF
15751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15752exec 5>>config.log
15753{
15754  echo
15755  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
15756@%:@@%:@ Running $as_me. @%:@@%:@
15757_ASBOX
15758  $as_echo "$ac_log"
15759} >&5
15760
15761_ACEOF
15762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15763#
15764# INIT-COMMANDS
15765#
15766AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15767
15768
15769# The HP-UX ksh and POSIX shell print the target directory to stdout
15770# if CDPATH is set.
15771(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15772
15773sed_quote_subst='$sed_quote_subst'
15774double_quote_subst='$double_quote_subst'
15775delay_variable_subst='$delay_variable_subst'
15776macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15777macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15778enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15779enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15780pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15781enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15782SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15783ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15784host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15785host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15786host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15787build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15788build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15789build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15790SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15791Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15792GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15793EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15794FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15795LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15796NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15797LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15798max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15799ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15800exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15801lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15802lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15803lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15804lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15805lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15806reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15807reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15808OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15809deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15810file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15811file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15812want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15813DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15814sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15815AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15816AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15817archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15818STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15819RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15820old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15821old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15822old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15823lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15824CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15825CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15826compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15827GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15828lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15829lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15830lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15831lt_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"`'
15832nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15833lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15834objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15835MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15836lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15837lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15838lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15839lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15840lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15841need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15842MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15843DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15844NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15845LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15846OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15847OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15848libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15849shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15850extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15851archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15852enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15853export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15854whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15855compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15856old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15857old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15858archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15859archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15860module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15861module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15862with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15863allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15864no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15865hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15866hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15867hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15868hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15869hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15870hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15871hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15872hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15873inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15874link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15875always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15876export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15877exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15878include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15879prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15880postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15881file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15882variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15883need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15884need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15885version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15886runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15887shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15888shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15889libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15890library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15891soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15892install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15893postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15894postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15895finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15896finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15897hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15898sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15899sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15900hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15901enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15902enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15903enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15904old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15905striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15906compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15907predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15908postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15909predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15910postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15911compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15912LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15913reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15914reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15915old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15916compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15917GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15918lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15919lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15920lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15921lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15922lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15923archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15924enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15925export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15926whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15927compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15928old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15929old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15930archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15931archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15932module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15933module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15934with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15935allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15936no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15937hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15938hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15939hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15940hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15941hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15942hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15943hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15944hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15945inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15946link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15947always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15948export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15949exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15950include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15951prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15952postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15953file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15954hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15955compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15956predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15957postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15958predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15959postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15960compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15961
15962LTCC='$LTCC'
15963LTCFLAGS='$LTCFLAGS'
15964compiler='$compiler_DEFAULT'
15965
15966# A function that is used when there is no print builtin or printf.
15967func_fallback_echo ()
15968{
15969  eval 'cat <<_LTECHO_EOF
15970\$1
15971_LTECHO_EOF'
15972}
15973
15974# Quote evaled strings.
15975for var in SHELL \
15976ECHO \
15977SED \
15978GREP \
15979EGREP \
15980FGREP \
15981LD \
15982NM \
15983LN_S \
15984lt_SP2NL \
15985lt_NL2SP \
15986reload_flag \
15987OBJDUMP \
15988deplibs_check_method \
15989file_magic_cmd \
15990file_magic_glob \
15991want_nocaseglob \
15992DLLTOOL \
15993sharedlib_from_linklib_cmd \
15994AR \
15995AR_FLAGS \
15996archiver_list_spec \
15997STRIP \
15998RANLIB \
15999CC \
16000CFLAGS \
16001compiler \
16002lt_cv_sys_global_symbol_pipe \
16003lt_cv_sys_global_symbol_to_cdecl \
16004lt_cv_sys_global_symbol_to_c_name_address \
16005lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16006nm_file_list_spec \
16007lt_prog_compiler_no_builtin_flag \
16008lt_prog_compiler_pic \
16009lt_prog_compiler_wl \
16010lt_prog_compiler_static \
16011lt_cv_prog_compiler_c_o \
16012need_locks \
16013MANIFEST_TOOL \
16014DSYMUTIL \
16015NMEDIT \
16016LIPO \
16017OTOOL \
16018OTOOL64 \
16019shrext_cmds \
16020export_dynamic_flag_spec \
16021whole_archive_flag_spec \
16022compiler_needs_object \
16023with_gnu_ld \
16024allow_undefined_flag \
16025no_undefined_flag \
16026hardcode_libdir_flag_spec \
16027hardcode_libdir_flag_spec_ld \
16028hardcode_libdir_separator \
16029exclude_expsyms \
16030include_expsyms \
16031file_list_spec \
16032variables_saved_for_relink \
16033libname_spec \
16034library_names_spec \
16035soname_spec \
16036install_override_mode \
16037finish_eval \
16038old_striplib \
16039striplib \
16040compiler_lib_search_dirs \
16041predep_objects \
16042postdep_objects \
16043predeps \
16044postdeps \
16045compiler_lib_search_path \
16046LD_CXX \
16047reload_flag_CXX \
16048compiler_CXX \
16049lt_prog_compiler_no_builtin_flag_CXX \
16050lt_prog_compiler_pic_CXX \
16051lt_prog_compiler_wl_CXX \
16052lt_prog_compiler_static_CXX \
16053lt_cv_prog_compiler_c_o_CXX \
16054export_dynamic_flag_spec_CXX \
16055whole_archive_flag_spec_CXX \
16056compiler_needs_object_CXX \
16057with_gnu_ld_CXX \
16058allow_undefined_flag_CXX \
16059no_undefined_flag_CXX \
16060hardcode_libdir_flag_spec_CXX \
16061hardcode_libdir_flag_spec_ld_CXX \
16062hardcode_libdir_separator_CXX \
16063exclude_expsyms_CXX \
16064include_expsyms_CXX \
16065file_list_spec_CXX \
16066compiler_lib_search_dirs_CXX \
16067predep_objects_CXX \
16068postdep_objects_CXX \
16069predeps_CXX \
16070postdeps_CXX \
16071compiler_lib_search_path_CXX; do
16072    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16073    *[\\\\\\\`\\"\\\$]*)
16074      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16075      ;;
16076    *)
16077      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16078      ;;
16079    esac
16080done
16081
16082# Double-quote double-evaled strings.
16083for var in reload_cmds \
16084old_postinstall_cmds \
16085old_postuninstall_cmds \
16086old_archive_cmds \
16087extract_expsyms_cmds \
16088old_archive_from_new_cmds \
16089old_archive_from_expsyms_cmds \
16090archive_cmds \
16091archive_expsym_cmds \
16092module_cmds \
16093module_expsym_cmds \
16094export_symbols_cmds \
16095prelink_cmds \
16096postlink_cmds \
16097postinstall_cmds \
16098postuninstall_cmds \
16099finish_cmds \
16100sys_lib_search_path_spec \
16101sys_lib_dlsearch_path_spec \
16102reload_cmds_CXX \
16103old_archive_cmds_CXX \
16104old_archive_from_new_cmds_CXX \
16105old_archive_from_expsyms_cmds_CXX \
16106archive_cmds_CXX \
16107archive_expsym_cmds_CXX \
16108module_cmds_CXX \
16109module_expsym_cmds_CXX \
16110export_symbols_cmds_CXX \
16111prelink_cmds_CXX \
16112postlink_cmds_CXX; do
16113    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16114    *[\\\\\\\`\\"\\\$]*)
16115      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16116      ;;
16117    *)
16118      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16119      ;;
16120    esac
16121done
16122
16123ac_aux_dir='$ac_aux_dir'
16124xsi_shell='$xsi_shell'
16125lt_shell_append='$lt_shell_append'
16126
16127# See if we are running on zsh, and set the options which allow our
16128# commands through without removal of \ escapes INIT.
16129if test -n "\${ZSH_VERSION+set}" ; then
16130   setopt NO_GLOB_SUBST
16131fi
16132
16133
16134    PACKAGE='$PACKAGE'
16135    VERSION='$VERSION'
16136    TIMESTAMP='$TIMESTAMP'
16137    RM='$RM'
16138    ofile='$ofile'
16139
16140
16141
16142
16143
16144
16145_ACEOF
16146
16147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16148
16149# Handling of arguments.
16150for ac_config_target in $ac_config_targets
16151do
16152  case $ac_config_target in
16153    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16154    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16155    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16156    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16157    "handlersocket/Makefile") CONFIG_FILES="$CONFIG_FILES handlersocket/Makefile" ;;
16158    "libhsclient/Makefile") CONFIG_FILES="$CONFIG_FILES libhsclient/Makefile" ;;
16159    "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
16160
16161  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16162  esac
16163done
16164
16165
16166# If the user did not use the arguments to specify the items to instantiate,
16167# then the envvar interface is used.  Set only those that are not.
16168# We use the long form for the default assignment because of an extremely
16169# bizarre bug on SunOS 4.1.3.
16170if $ac_need_defaults; then
16171  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16172  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16173  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16174fi
16175
16176# Have a temporary directory for convenience.  Make it in the build tree
16177# simply because there is no reason against having it here, and in addition,
16178# creating and moving files from /tmp can sometimes cause problems.
16179# Hook for its removal unless debugging.
16180# Note that there is a small window in which the directory will not be cleaned:
16181# after its creation but before its name has been assigned to `$tmp'.
16182$debug ||
16183{
16184  tmp= ac_tmp=
16185  trap 'exit_status=$?
16186  : "${ac_tmp:=$tmp}"
16187  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16188' 0
16189  trap 'as_fn_exit 1' 1 2 13 15
16190}
16191# Create a (secure) tmp directory for tmp files.
16192
16193{
16194  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16195  test -d "$tmp"
16196}  ||
16197{
16198  tmp=./conf$$-$RANDOM
16199  (umask 077 && mkdir "$tmp")
16200} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16201ac_tmp=$tmp
16202
16203# Set up the scripts for CONFIG_FILES section.
16204# No need to generate them if there are no CONFIG_FILES.
16205# This happens for instance with `./config.status config.h'.
16206if test -n "$CONFIG_FILES"; then
16207
16208
16209ac_cr=`echo X | tr X '\015'`
16210# On cygwin, bash can eat \r inside `` if the user requested igncr.
16211# But we know of no other shell where ac_cr would be empty at this
16212# point, so we can use a bashism as a fallback.
16213if test "x$ac_cr" = x; then
16214  eval ac_cr=\$\'\\r\'
16215fi
16216ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16217if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16218  ac_cs_awk_cr='\\r'
16219else
16220  ac_cs_awk_cr=$ac_cr
16221fi
16222
16223echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16224_ACEOF
16225
16226
16227{
16228  echo "cat >conf$$subs.awk <<_ACEOF" &&
16229  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16230  echo "_ACEOF"
16231} >conf$$subs.sh ||
16232  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16233ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16234ac_delim='%!_!# '
16235for ac_last_try in false false false false false :; do
16236  . ./conf$$subs.sh ||
16237    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16238
16239  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16240  if test $ac_delim_n = $ac_delim_num; then
16241    break
16242  elif $ac_last_try; then
16243    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16244  else
16245    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16246  fi
16247done
16248rm -f conf$$subs.sh
16249
16250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16251cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16252_ACEOF
16253sed -n '
16254h
16255s/^/S["/; s/!.*/"]=/
16256p
16257g
16258s/^[^!]*!//
16259:repl
16260t repl
16261s/'"$ac_delim"'$//
16262t delim
16263:nl
16264h
16265s/\(.\{148\}\)..*/\1/
16266t more1
16267s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16268p
16269n
16270b repl
16271:more1
16272s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16273p
16274g
16275s/.\{148\}//
16276t nl
16277:delim
16278h
16279s/\(.\{148\}\)..*/\1/
16280t more2
16281s/["\\]/\\&/g; s/^/"/; s/$/"/
16282p
16283b
16284:more2
16285s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16286p
16287g
16288s/.\{148\}//
16289t delim
16290' <conf$$subs.awk | sed '
16291/^[^""]/{
16292  N
16293  s/\n//
16294}
16295' >>$CONFIG_STATUS || ac_write_fail=1
16296rm -f conf$$subs.awk
16297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16298_ACAWK
16299cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16300  for (key in S) S_is_set[key] = 1
16301  FS = ""
16302
16303}
16304{
16305  line = $ 0
16306  nfields = split(line, field, "@")
16307  substed = 0
16308  len = length(field[1])
16309  for (i = 2; i < nfields; i++) {
16310    key = field[i]
16311    keylen = length(key)
16312    if (S_is_set[key]) {
16313      value = S[key]
16314      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16315      len += length(value) + length(field[++i])
16316      substed = 1
16317    } else
16318      len += 1 + keylen
16319  }
16320
16321  print line
16322}
16323
16324_ACAWK
16325_ACEOF
16326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16327if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16328  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16329else
16330  cat
16331fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16332  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16333_ACEOF
16334
16335# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16336# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16337# trailing colons and then remove the whole line if VPATH becomes empty
16338# (actually we leave an empty line to preserve line numbers).
16339if test "x$srcdir" = x.; then
16340  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16341h
16342s///
16343s/^/:/
16344s/[	 ]*$/:/
16345s/:\$(srcdir):/:/g
16346s/:\${srcdir}:/:/g
16347s/:@srcdir@:/:/g
16348s/^:*//
16349s/:*$//
16350x
16351s/\(=[	 ]*\).*/\1/
16352G
16353s/\n//
16354s/^[^=]*=[	 ]*$//
16355}'
16356fi
16357
16358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16359fi # test -n "$CONFIG_FILES"
16360
16361# Set up the scripts for CONFIG_HEADERS section.
16362# No need to generate them if there are no CONFIG_HEADERS.
16363# This happens for instance with `./config.status Makefile'.
16364if test -n "$CONFIG_HEADERS"; then
16365cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16366BEGIN {
16367_ACEOF
16368
16369# Transform confdefs.h into an awk script `defines.awk', embedded as
16370# here-document in config.status, that substitutes the proper values into
16371# config.h.in to produce config.h.
16372
16373# Create a delimiter string that does not exist in confdefs.h, to ease
16374# handling of long lines.
16375ac_delim='%!_!# '
16376for ac_last_try in false false :; do
16377  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16378  if test -z "$ac_tt"; then
16379    break
16380  elif $ac_last_try; then
16381    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16382  else
16383    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16384  fi
16385done
16386
16387# For the awk script, D is an array of macro values keyed by name,
16388# likewise P contains macro parameters if any.  Preserve backslash
16389# newline sequences.
16390
16391ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16392sed -n '
16393s/.\{148\}/&'"$ac_delim"'/g
16394t rset
16395:rset
16396s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16397t def
16398d
16399:def
16400s/\\$//
16401t bsnl
16402s/["\\]/\\&/g
16403s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16404D["\1"]=" \3"/p
16405s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16406d
16407:bsnl
16408s/["\\]/\\&/g
16409s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16410D["\1"]=" \3\\\\\\n"\\/p
16411t cont
16412s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16413t cont
16414d
16415:cont
16416n
16417s/.\{148\}/&'"$ac_delim"'/g
16418t clear
16419:clear
16420s/\\$//
16421t bsnlc
16422s/["\\]/\\&/g; s/^/"/; s/$/"/p
16423d
16424:bsnlc
16425s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16426b cont
16427' <confdefs.h | sed '
16428s/'"$ac_delim"'/"\\\
16429"/g' >>$CONFIG_STATUS || ac_write_fail=1
16430
16431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16432  for (key in D) D_is_set[key] = 1
16433  FS = ""
16434}
16435/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16436  line = \$ 0
16437  split(line, arg, " ")
16438  if (arg[1] == "#") {
16439    defundef = arg[2]
16440    mac1 = arg[3]
16441  } else {
16442    defundef = substr(arg[1], 2)
16443    mac1 = arg[2]
16444  }
16445  split(mac1, mac2, "(") #)
16446  macro = mac2[1]
16447  prefix = substr(line, 1, index(line, defundef) - 1)
16448  if (D_is_set[macro]) {
16449    # Preserve the white space surrounding the "#".
16450    print prefix "define", macro P[macro] D[macro]
16451    next
16452  } else {
16453    # Replace #undef with comments.  This is necessary, for example,
16454    # in the case of _POSIX_SOURCE, which is predefined and required
16455    # on some systems where configure will not decide to define it.
16456    if (defundef == "undef") {
16457      print "/*", prefix defundef, macro, "*/"
16458      next
16459    }
16460  }
16461}
16462{ print }
16463_ACAWK
16464_ACEOF
16465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16466  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16467fi # test -n "$CONFIG_HEADERS"
16468
16469
16470eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16471shift
16472for ac_tag
16473do
16474  case $ac_tag in
16475  :[FHLC]) ac_mode=$ac_tag; continue;;
16476  esac
16477  case $ac_mode$ac_tag in
16478  :[FHL]*:*);;
16479  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16480  :[FH]-) ac_tag=-:-;;
16481  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16482  esac
16483  ac_save_IFS=$IFS
16484  IFS=:
16485  set x $ac_tag
16486  IFS=$ac_save_IFS
16487  shift
16488  ac_file=$1
16489  shift
16490
16491  case $ac_mode in
16492  :L) ac_source=$1;;
16493  :[FH])
16494    ac_file_inputs=
16495    for ac_f
16496    do
16497      case $ac_f in
16498      -) ac_f="$ac_tmp/stdin";;
16499      *) # Look for the file first in the build tree, then in the source tree
16500	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16501	 # because $ac_f cannot contain `:'.
16502	 test -f "$ac_f" ||
16503	   case $ac_f in
16504	   [\\/$]*) false;;
16505	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16506	   esac ||
16507	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16508      esac
16509      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16510      as_fn_append ac_file_inputs " '$ac_f'"
16511    done
16512
16513    # Let's still pretend it is `configure' which instantiates (i.e., don't
16514    # use $as_me), people would be surprised to read:
16515    #    /* config.h.  Generated by config.status.  */
16516    configure_input='Generated from '`
16517	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16518	`' by configure.'
16519    if test x"$ac_file" != x-; then
16520      configure_input="$ac_file.  $configure_input"
16521      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16522$as_echo "$as_me: creating $ac_file" >&6;}
16523    fi
16524    # Neutralize special characters interpreted by sed in replacement strings.
16525    case $configure_input in #(
16526    *\&* | *\|* | *\\* )
16527       ac_sed_conf_input=`$as_echo "$configure_input" |
16528       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16529    *) ac_sed_conf_input=$configure_input;;
16530    esac
16531
16532    case $ac_tag in
16533    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16534      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16535    esac
16536    ;;
16537  esac
16538
16539  ac_dir=`$as_dirname -- "$ac_file" ||
16540$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16541	 X"$ac_file" : 'X\(//\)[^/]' \| \
16542	 X"$ac_file" : 'X\(//\)$' \| \
16543	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16544$as_echo X"$ac_file" |
16545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16546	    s//\1/
16547	    q
16548	  }
16549	  /^X\(\/\/\)[^/].*/{
16550	    s//\1/
16551	    q
16552	  }
16553	  /^X\(\/\/\)$/{
16554	    s//\1/
16555	    q
16556	  }
16557	  /^X\(\/\).*/{
16558	    s//\1/
16559	    q
16560	  }
16561	  s/.*/./; q'`
16562  as_dir="$ac_dir"; as_fn_mkdir_p
16563  ac_builddir=.
16564
16565case "$ac_dir" in
16566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16567*)
16568  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16569  # A ".." for each directory in $ac_dir_suffix.
16570  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16571  case $ac_top_builddir_sub in
16572  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16573  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16574  esac ;;
16575esac
16576ac_abs_top_builddir=$ac_pwd
16577ac_abs_builddir=$ac_pwd$ac_dir_suffix
16578# for backward compatibility:
16579ac_top_builddir=$ac_top_build_prefix
16580
16581case $srcdir in
16582  .)  # We are building in place.
16583    ac_srcdir=.
16584    ac_top_srcdir=$ac_top_builddir_sub
16585    ac_abs_top_srcdir=$ac_pwd ;;
16586  [\\/]* | ?:[\\/]* )  # Absolute name.
16587    ac_srcdir=$srcdir$ac_dir_suffix;
16588    ac_top_srcdir=$srcdir
16589    ac_abs_top_srcdir=$srcdir ;;
16590  *) # Relative name.
16591    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16592    ac_top_srcdir=$ac_top_build_prefix$srcdir
16593    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16594esac
16595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16596
16597
16598  case $ac_mode in
16599  :F)
16600  #
16601  # CONFIG_FILE
16602  #
16603
16604  case $INSTALL in
16605  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16606  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16607  esac
16608  ac_MKDIR_P=$MKDIR_P
16609  case $MKDIR_P in
16610  [\\/$]* | ?:[\\/]* ) ;;
16611  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16612  esac
16613_ACEOF
16614
16615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16616# If the template does not know about datarootdir, expand it.
16617# FIXME: This hack should be removed a few years after 2.60.
16618ac_datarootdir_hack=; ac_datarootdir_seen=
16619ac_sed_dataroot='
16620/datarootdir/ {
16621  p
16622  q
16623}
16624/@datadir@/p
16625/@docdir@/p
16626/@infodir@/p
16627/@localedir@/p
16628/@mandir@/p'
16629case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16630*datarootdir*) ac_datarootdir_seen=yes;;
16631*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16632  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16633$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16634_ACEOF
16635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16636  ac_datarootdir_hack='
16637  s&@datadir@&$datadir&g
16638  s&@docdir@&$docdir&g
16639  s&@infodir@&$infodir&g
16640  s&@localedir@&$localedir&g
16641  s&@mandir@&$mandir&g
16642  s&\\\${datarootdir}&$datarootdir&g' ;;
16643esac
16644_ACEOF
16645
16646# Neutralize VPATH when `$srcdir' = `.'.
16647# Shell code in configure.ac might set extrasub.
16648# FIXME: do we really want to maintain this feature?
16649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16650ac_sed_extra="$ac_vpsub
16651$extrasub
16652_ACEOF
16653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654:t
16655/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16656s|@configure_input@|$ac_sed_conf_input|;t t
16657s&@top_builddir@&$ac_top_builddir_sub&;t t
16658s&@top_build_prefix@&$ac_top_build_prefix&;t t
16659s&@srcdir@&$ac_srcdir&;t t
16660s&@abs_srcdir@&$ac_abs_srcdir&;t t
16661s&@top_srcdir@&$ac_top_srcdir&;t t
16662s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16663s&@builddir@&$ac_builddir&;t t
16664s&@abs_builddir@&$ac_abs_builddir&;t t
16665s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16666s&@INSTALL@&$ac_INSTALL&;t t
16667s&@MKDIR_P@&$ac_MKDIR_P&;t t
16668$ac_datarootdir_hack
16669"
16670eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16671  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16672
16673test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16674  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16675  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16676      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16677  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16678which seems to be undefined.  Please make sure it is defined" >&5
16679$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16680which seems to be undefined.  Please make sure it is defined" >&2;}
16681
16682  rm -f "$ac_tmp/stdin"
16683  case $ac_file in
16684  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16685  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16686  esac \
16687  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16688 ;;
16689  :H)
16690  #
16691  # CONFIG_HEADER
16692  #
16693  if test x"$ac_file" != x-; then
16694    {
16695      $as_echo "/* $configure_input  */" \
16696      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16697    } >"$ac_tmp/config.h" \
16698      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16699    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16700      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16701$as_echo "$as_me: $ac_file is unchanged" >&6;}
16702    else
16703      rm -f "$ac_file"
16704      mv "$ac_tmp/config.h" "$ac_file" \
16705	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16706    fi
16707  else
16708    $as_echo "/* $configure_input  */" \
16709      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16710      || as_fn_error $? "could not create -" "$LINENO" 5
16711  fi
16712# Compute "$ac_file"'s index in $config_headers.
16713_am_arg="$ac_file"
16714_am_stamp_count=1
16715for _am_header in $config_headers :; do
16716  case $_am_header in
16717    $_am_arg | $_am_arg:* )
16718      break ;;
16719    * )
16720      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16721  esac
16722done
16723echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16724$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16725	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16726	 X"$_am_arg" : 'X\(//\)$' \| \
16727	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16728$as_echo X"$_am_arg" |
16729    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16730	    s//\1/
16731	    q
16732	  }
16733	  /^X\(\/\/\)[^/].*/{
16734	    s//\1/
16735	    q
16736	  }
16737	  /^X\(\/\/\)$/{
16738	    s//\1/
16739	    q
16740	  }
16741	  /^X\(\/\).*/{
16742	    s//\1/
16743	    q
16744	  }
16745	  s/.*/./; q'`/stamp-h$_am_stamp_count
16746 ;;
16747
16748  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16749$as_echo "$as_me: executing $ac_file commands" >&6;}
16750 ;;
16751  esac
16752
16753
16754  case $ac_file$ac_mode in
16755    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16756  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16757  # are listed without --file.  Let's play safe and only enable the eval
16758  # if we detect the quoting.
16759  case $CONFIG_FILES in
16760  *\'*) eval set x "$CONFIG_FILES" ;;
16761  *)   set x $CONFIG_FILES ;;
16762  esac
16763  shift
16764  for mf
16765  do
16766    # Strip MF so we end up with the name of the file.
16767    mf=`echo "$mf" | sed -e 's/:.*$//'`
16768    # Check whether this is an Automake generated Makefile or not.
16769    # We used to match only the files named `Makefile.in', but
16770    # some people rename them; so instead we look at the file content.
16771    # Grep'ing the first line is not enough: some people post-process
16772    # each Makefile.in and add a new line on top of each file to say so.
16773    # Grep'ing the whole file is not good either: AIX grep has a line
16774    # limit of 2048, but all sed's we know have understand at least 4000.
16775    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16776      dirpart=`$as_dirname -- "$mf" ||
16777$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16778	 X"$mf" : 'X\(//\)[^/]' \| \
16779	 X"$mf" : 'X\(//\)$' \| \
16780	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16781$as_echo X"$mf" |
16782    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16783	    s//\1/
16784	    q
16785	  }
16786	  /^X\(\/\/\)[^/].*/{
16787	    s//\1/
16788	    q
16789	  }
16790	  /^X\(\/\/\)$/{
16791	    s//\1/
16792	    q
16793	  }
16794	  /^X\(\/\).*/{
16795	    s//\1/
16796	    q
16797	  }
16798	  s/.*/./; q'`
16799    else
16800      continue
16801    fi
16802    # Extract the definition of DEPDIR, am__include, and am__quote
16803    # from the Makefile without running `make'.
16804    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16805    test -z "$DEPDIR" && continue
16806    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16807    test -z "am__include" && continue
16808    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16809    # When using ansi2knr, U may be empty or an underscore; expand it
16810    U=`sed -n 's/^U = //p' < "$mf"`
16811    # Find all dependency output files, they are included files with
16812    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16813    # simplest approach to changing $(DEPDIR) to its actual value in the
16814    # expansion.
16815    for file in `sed -n "
16816      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16817	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16818      # Make sure the directory exists.
16819      test -f "$dirpart/$file" && continue
16820      fdir=`$as_dirname -- "$file" ||
16821$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16822	 X"$file" : 'X\(//\)[^/]' \| \
16823	 X"$file" : 'X\(//\)$' \| \
16824	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16825$as_echo X"$file" |
16826    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16827	    s//\1/
16828	    q
16829	  }
16830	  /^X\(\/\/\)[^/].*/{
16831	    s//\1/
16832	    q
16833	  }
16834	  /^X\(\/\/\)$/{
16835	    s//\1/
16836	    q
16837	  }
16838	  /^X\(\/\).*/{
16839	    s//\1/
16840	    q
16841	  }
16842	  s/.*/./; q'`
16843      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16844      # echo "creating $dirpart/$file"
16845      echo '# dummy' > "$dirpart/$file"
16846    done
16847  done
16848}
16849 ;;
16850    "libtool":C)
16851
16852    # See if we are running on zsh, and set the options which allow our
16853    # commands through without removal of \ escapes.
16854    if test -n "${ZSH_VERSION+set}" ; then
16855      setopt NO_GLOB_SUBST
16856    fi
16857
16858    cfgfile="${ofile}T"
16859    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16860    $RM "$cfgfile"
16861
16862    cat <<_LT_EOF >> "$cfgfile"
16863#! $SHELL
16864
16865# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16866# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16867# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16868# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16869#
16870#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16871#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16872#                 Inc.
16873#   Written by Gordon Matzigkeit, 1996
16874#
16875#   This file is part of GNU Libtool.
16876#
16877# GNU Libtool is free software; you can redistribute it and/or
16878# modify it under the terms of the GNU General Public License as
16879# published by the Free Software Foundation; either version 2 of
16880# the License, or (at your option) any later version.
16881#
16882# As a special exception to the GNU General Public License,
16883# if you distribute this file as part of a program or library that
16884# is built using GNU Libtool, you may include this file under the
16885# same distribution terms that you use for the rest of that program.
16886#
16887# GNU Libtool is distributed in the hope that it will be useful,
16888# but WITHOUT ANY WARRANTY; without even the implied warranty of
16889# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16890# GNU General Public License for more details.
16891#
16892# You should have received a copy of the GNU General Public License
16893# along with GNU Libtool; see the file COPYING.  If not, a copy
16894# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16895# obtained by writing to the Free Software Foundation, Inc.,
16896# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16897
16898
16899# The names of the tagged configurations supported by this script.
16900available_tags="CXX "
16901
16902# ### BEGIN LIBTOOL CONFIG
16903
16904# Which release of libtool.m4 was used?
16905macro_version=$macro_version
16906macro_revision=$macro_revision
16907
16908# Whether or not to build shared libraries.
16909build_libtool_libs=$enable_shared
16910
16911# Whether or not to build static libraries.
16912build_old_libs=$enable_static
16913
16914# What type of objects to build.
16915pic_mode=$pic_mode
16916
16917# Whether or not to optimize for fast installation.
16918fast_install=$enable_fast_install
16919
16920# Shell to use when invoking shell scripts.
16921SHELL=$lt_SHELL
16922
16923# An echo program that protects backslashes.
16924ECHO=$lt_ECHO
16925
16926# The host system.
16927host_alias=$host_alias
16928host=$host
16929host_os=$host_os
16930
16931# The build system.
16932build_alias=$build_alias
16933build=$build
16934build_os=$build_os
16935
16936# A sed program that does not truncate output.
16937SED=$lt_SED
16938
16939# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16940Xsed="\$SED -e 1s/^X//"
16941
16942# A grep program that handles long lines.
16943GREP=$lt_GREP
16944
16945# An ERE matcher.
16946EGREP=$lt_EGREP
16947
16948# A literal string matcher.
16949FGREP=$lt_FGREP
16950
16951# A BSD- or MS-compatible name lister.
16952NM=$lt_NM
16953
16954# Whether we need soft or hard links.
16955LN_S=$lt_LN_S
16956
16957# What is the maximum length of a command?
16958max_cmd_len=$max_cmd_len
16959
16960# Object file suffix (normally "o").
16961objext=$ac_objext
16962
16963# Executable file suffix (normally "").
16964exeext=$exeext
16965
16966# whether the shell understands "unset".
16967lt_unset=$lt_unset
16968
16969# turn spaces into newlines.
16970SP2NL=$lt_lt_SP2NL
16971
16972# turn newlines into spaces.
16973NL2SP=$lt_lt_NL2SP
16974
16975# convert \$build file names to \$host format.
16976to_host_file_cmd=$lt_cv_to_host_file_cmd
16977
16978# convert \$build files to toolchain format.
16979to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16980
16981# An object symbol dumper.
16982OBJDUMP=$lt_OBJDUMP
16983
16984# Method to check whether dependent libraries are shared objects.
16985deplibs_check_method=$lt_deplibs_check_method
16986
16987# Command to use when deplibs_check_method = "file_magic".
16988file_magic_cmd=$lt_file_magic_cmd
16989
16990# How to find potential files when deplibs_check_method = "file_magic".
16991file_magic_glob=$lt_file_magic_glob
16992
16993# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16994want_nocaseglob=$lt_want_nocaseglob
16995
16996# DLL creation program.
16997DLLTOOL=$lt_DLLTOOL
16998
16999# Command to associate shared and link libraries.
17000sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17001
17002# The archiver.
17003AR=$lt_AR
17004
17005# Flags to create an archive.
17006AR_FLAGS=$lt_AR_FLAGS
17007
17008# How to feed a file listing to the archiver.
17009archiver_list_spec=$lt_archiver_list_spec
17010
17011# A symbol stripping program.
17012STRIP=$lt_STRIP
17013
17014# Commands used to install an old-style archive.
17015RANLIB=$lt_RANLIB
17016old_postinstall_cmds=$lt_old_postinstall_cmds
17017old_postuninstall_cmds=$lt_old_postuninstall_cmds
17018
17019# Whether to use a lock for old archive extraction.
17020lock_old_archive_extraction=$lock_old_archive_extraction
17021
17022# A C compiler.
17023LTCC=$lt_CC
17024
17025# LTCC compiler flags.
17026LTCFLAGS=$lt_CFLAGS
17027
17028# Take the output of nm and produce a listing of raw symbols and C names.
17029global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17030
17031# Transform the output of nm in a proper C declaration.
17032global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17033
17034# Transform the output of nm in a C name address pair.
17035global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17036
17037# Transform the output of nm in a C name address pair when lib prefix is needed.
17038global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17039
17040# Specify filename containing input files for \$NM.
17041nm_file_list_spec=$lt_nm_file_list_spec
17042
17043# The root where to search for dependent libraries,and in which our libraries should be installed.
17044lt_sysroot=$lt_sysroot
17045
17046# The name of the directory that contains temporary libtool files.
17047objdir=$objdir
17048
17049# Used to examine libraries when file_magic_cmd begins with "file".
17050MAGIC_CMD=$MAGIC_CMD
17051
17052# Must we lock files when doing compilation?
17053need_locks=$lt_need_locks
17054
17055# Manifest tool.
17056MANIFEST_TOOL=$lt_MANIFEST_TOOL
17057
17058# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17059DSYMUTIL=$lt_DSYMUTIL
17060
17061# Tool to change global to local symbols on Mac OS X.
17062NMEDIT=$lt_NMEDIT
17063
17064# Tool to manipulate fat objects and archives on Mac OS X.
17065LIPO=$lt_LIPO
17066
17067# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17068OTOOL=$lt_OTOOL
17069
17070# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17071OTOOL64=$lt_OTOOL64
17072
17073# Old archive suffix (normally "a").
17074libext=$libext
17075
17076# Shared library suffix (normally ".so").
17077shrext_cmds=$lt_shrext_cmds
17078
17079# The commands to extract the exported symbol list from a shared archive.
17080extract_expsyms_cmds=$lt_extract_expsyms_cmds
17081
17082# Variables whose values should be saved in libtool wrapper scripts and
17083# restored at link time.
17084variables_saved_for_relink=$lt_variables_saved_for_relink
17085
17086# Do we need the "lib" prefix for modules?
17087need_lib_prefix=$need_lib_prefix
17088
17089# Do we need a version for libraries?
17090need_version=$need_version
17091
17092# Library versioning type.
17093version_type=$version_type
17094
17095# Shared library runtime path variable.
17096runpath_var=$runpath_var
17097
17098# Shared library path variable.
17099shlibpath_var=$shlibpath_var
17100
17101# Is shlibpath searched before the hard-coded library search path?
17102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17103
17104# Format of library name prefix.
17105libname_spec=$lt_libname_spec
17106
17107# List of archive names.  First name is the real one, the rest are links.
17108# The last name is the one that the linker finds with -lNAME
17109library_names_spec=$lt_library_names_spec
17110
17111# The coded name of the library, if different from the real name.
17112soname_spec=$lt_soname_spec
17113
17114# Permission mode override for installation of shared libraries.
17115install_override_mode=$lt_install_override_mode
17116
17117# Command to use after installation of a shared archive.
17118postinstall_cmds=$lt_postinstall_cmds
17119
17120# Command to use after uninstallation of a shared archive.
17121postuninstall_cmds=$lt_postuninstall_cmds
17122
17123# Commands used to finish a libtool library installation in a directory.
17124finish_cmds=$lt_finish_cmds
17125
17126# As "finish_cmds", except a single script fragment to be evaled but
17127# not shown.
17128finish_eval=$lt_finish_eval
17129
17130# Whether we should hardcode library paths into libraries.
17131hardcode_into_libs=$hardcode_into_libs
17132
17133# Compile-time system search path for libraries.
17134sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17135
17136# Run-time system search path for libraries.
17137sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17138
17139# Whether dlopen is supported.
17140dlopen_support=$enable_dlopen
17141
17142# Whether dlopen of programs is supported.
17143dlopen_self=$enable_dlopen_self
17144
17145# Whether dlopen of statically linked programs is supported.
17146dlopen_self_static=$enable_dlopen_self_static
17147
17148# Commands to strip libraries.
17149old_striplib=$lt_old_striplib
17150striplib=$lt_striplib
17151
17152
17153# The linker used to build libraries.
17154LD=$lt_LD
17155
17156# How to create reloadable object files.
17157reload_flag=$lt_reload_flag
17158reload_cmds=$lt_reload_cmds
17159
17160# Commands used to build an old-style archive.
17161old_archive_cmds=$lt_old_archive_cmds
17162
17163# A language specific compiler.
17164CC=$lt_compiler
17165
17166# Is the compiler the GNU compiler?
17167with_gcc=$GCC
17168
17169# Compiler flag to turn off builtin functions.
17170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17171
17172# Additional compiler flags for building library objects.
17173pic_flag=$lt_lt_prog_compiler_pic
17174
17175# How to pass a linker flag through the compiler.
17176wl=$lt_lt_prog_compiler_wl
17177
17178# Compiler flag to prevent dynamic linking.
17179link_static_flag=$lt_lt_prog_compiler_static
17180
17181# Does compiler simultaneously support -c and -o options?
17182compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17183
17184# Whether or not to add -lc for building shared libraries.
17185build_libtool_need_lc=$archive_cmds_need_lc
17186
17187# Whether or not to disallow shared libs when runtime libs are static.
17188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17189
17190# Compiler flag to allow reflexive dlopens.
17191export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17192
17193# Compiler flag to generate shared objects directly from archives.
17194whole_archive_flag_spec=$lt_whole_archive_flag_spec
17195
17196# Whether the compiler copes with passing no objects directly.
17197compiler_needs_object=$lt_compiler_needs_object
17198
17199# Create an old-style archive from a shared archive.
17200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17201
17202# Create a temporary old-style archive to link instead of a shared archive.
17203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17204
17205# Commands used to build a shared archive.
17206archive_cmds=$lt_archive_cmds
17207archive_expsym_cmds=$lt_archive_expsym_cmds
17208
17209# Commands used to build a loadable module if different from building
17210# a shared archive.
17211module_cmds=$lt_module_cmds
17212module_expsym_cmds=$lt_module_expsym_cmds
17213
17214# Whether we are building with GNU ld or not.
17215with_gnu_ld=$lt_with_gnu_ld
17216
17217# Flag that allows shared libraries with undefined symbols to be built.
17218allow_undefined_flag=$lt_allow_undefined_flag
17219
17220# Flag that enforces no undefined symbols.
17221no_undefined_flag=$lt_no_undefined_flag
17222
17223# Flag to hardcode \$libdir into a binary during linking.
17224# This must work even if \$libdir does not exist
17225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17226
17227# If ld is used when linking, flag to hardcode \$libdir into a binary
17228# during linking.  This must work even if \$libdir does not exist.
17229hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17230
17231# Whether we need a single "-rpath" flag with a separated argument.
17232hardcode_libdir_separator=$lt_hardcode_libdir_separator
17233
17234# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17235# DIR into the resulting binary.
17236hardcode_direct=$hardcode_direct
17237
17238# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239# DIR into the resulting binary and the resulting library dependency is
17240# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17241# library is relocated.
17242hardcode_direct_absolute=$hardcode_direct_absolute
17243
17244# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17245# into the resulting binary.
17246hardcode_minus_L=$hardcode_minus_L
17247
17248# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17249# into the resulting binary.
17250hardcode_shlibpath_var=$hardcode_shlibpath_var
17251
17252# Set to "yes" if building a shared library automatically hardcodes DIR
17253# into the library and all subsequent libraries and executables linked
17254# against it.
17255hardcode_automatic=$hardcode_automatic
17256
17257# Set to yes if linker adds runtime paths of dependent libraries
17258# to runtime path list.
17259inherit_rpath=$inherit_rpath
17260
17261# Whether libtool must link a program against all its dependency libraries.
17262link_all_deplibs=$link_all_deplibs
17263
17264# Set to "yes" if exported symbols are required.
17265always_export_symbols=$always_export_symbols
17266
17267# The commands to list exported symbols.
17268export_symbols_cmds=$lt_export_symbols_cmds
17269
17270# Symbols that should not be listed in the preloaded symbols.
17271exclude_expsyms=$lt_exclude_expsyms
17272
17273# Symbols that must always be exported.
17274include_expsyms=$lt_include_expsyms
17275
17276# Commands necessary for linking programs (against libraries) with templates.
17277prelink_cmds=$lt_prelink_cmds
17278
17279# Commands necessary for finishing linking programs.
17280postlink_cmds=$lt_postlink_cmds
17281
17282# Specify filename containing input files.
17283file_list_spec=$lt_file_list_spec
17284
17285# How to hardcode a shared library path into an executable.
17286hardcode_action=$hardcode_action
17287
17288# The directories searched by this compiler when creating a shared library.
17289compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17290
17291# Dependencies to place before and after the objects being linked to
17292# create a shared library.
17293predep_objects=$lt_predep_objects
17294postdep_objects=$lt_postdep_objects
17295predeps=$lt_predeps
17296postdeps=$lt_postdeps
17297
17298# The library search path used internally by the compiler when linking
17299# a shared library.
17300compiler_lib_search_path=$lt_compiler_lib_search_path
17301
17302# ### END LIBTOOL CONFIG
17303
17304_LT_EOF
17305
17306  case $host_os in
17307  aix3*)
17308    cat <<\_LT_EOF >> "$cfgfile"
17309# AIX sometimes has problems with the GCC collect2 program.  For some
17310# reason, if we set the COLLECT_NAMES environment variable, the problems
17311# vanish in a puff of smoke.
17312if test "X${COLLECT_NAMES+set}" != Xset; then
17313  COLLECT_NAMES=
17314  export COLLECT_NAMES
17315fi
17316_LT_EOF
17317    ;;
17318  esac
17319
17320
17321ltmain="$ac_aux_dir/ltmain.sh"
17322
17323
17324  # We use sed instead of cat because bash on DJGPP gets confused if
17325  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17326  # text mode, it properly converts lines to CR/LF.  This bash problem
17327  # is reportedly fixed, but why not run on old versions too?
17328  sed '$q' "$ltmain" >> "$cfgfile" \
17329     || (rm -f "$cfgfile"; exit 1)
17330
17331  if test x"$xsi_shell" = xyes; then
17332  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17333func_dirname ()\
17334{\
17335\    case ${1} in\
17336\      */*) func_dirname_result="${1%/*}${2}" ;;\
17337\      *  ) func_dirname_result="${3}" ;;\
17338\    esac\
17339} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17340  && mv -f "$cfgfile.tmp" "$cfgfile" \
17341    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17342test 0 -eq $? || _lt_function_replace_fail=:
17343
17344
17345  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17346func_basename ()\
17347{\
17348\    func_basename_result="${1##*/}"\
17349} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17350  && mv -f "$cfgfile.tmp" "$cfgfile" \
17351    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17352test 0 -eq $? || _lt_function_replace_fail=:
17353
17354
17355  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17356func_dirname_and_basename ()\
17357{\
17358\    case ${1} in\
17359\      */*) func_dirname_result="${1%/*}${2}" ;;\
17360\      *  ) func_dirname_result="${3}" ;;\
17361\    esac\
17362\    func_basename_result="${1##*/}"\
17363} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17364  && mv -f "$cfgfile.tmp" "$cfgfile" \
17365    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17366test 0 -eq $? || _lt_function_replace_fail=:
17367
17368
17369  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17370func_stripname ()\
17371{\
17372\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17373\    # positional parameters, so assign one to ordinary parameter first.\
17374\    func_stripname_result=${3}\
17375\    func_stripname_result=${func_stripname_result#"${1}"}\
17376\    func_stripname_result=${func_stripname_result%"${2}"}\
17377} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17378  && mv -f "$cfgfile.tmp" "$cfgfile" \
17379    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17380test 0 -eq $? || _lt_function_replace_fail=:
17381
17382
17383  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17384func_split_long_opt ()\
17385{\
17386\    func_split_long_opt_name=${1%%=*}\
17387\    func_split_long_opt_arg=${1#*=}\
17388} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17389  && mv -f "$cfgfile.tmp" "$cfgfile" \
17390    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17391test 0 -eq $? || _lt_function_replace_fail=:
17392
17393
17394  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17395func_split_short_opt ()\
17396{\
17397\    func_split_short_opt_arg=${1#??}\
17398\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17399} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17400  && mv -f "$cfgfile.tmp" "$cfgfile" \
17401    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17402test 0 -eq $? || _lt_function_replace_fail=:
17403
17404
17405  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17406func_lo2o ()\
17407{\
17408\    case ${1} in\
17409\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17410\      *)    func_lo2o_result=${1} ;;\
17411\    esac\
17412} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17413  && mv -f "$cfgfile.tmp" "$cfgfile" \
17414    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17415test 0 -eq $? || _lt_function_replace_fail=:
17416
17417
17418  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17419func_xform ()\
17420{\
17421    func_xform_result=${1%.*}.lo\
17422} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17423  && mv -f "$cfgfile.tmp" "$cfgfile" \
17424    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17425test 0 -eq $? || _lt_function_replace_fail=:
17426
17427
17428  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17429func_arith ()\
17430{\
17431    func_arith_result=$(( $* ))\
17432} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17433  && mv -f "$cfgfile.tmp" "$cfgfile" \
17434    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17435test 0 -eq $? || _lt_function_replace_fail=:
17436
17437
17438  sed -e '/^func_len ()$/,/^} # func_len /c\
17439func_len ()\
17440{\
17441    func_len_result=${#1}\
17442} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17443  && mv -f "$cfgfile.tmp" "$cfgfile" \
17444    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17445test 0 -eq $? || _lt_function_replace_fail=:
17446
17447fi
17448
17449if test x"$lt_shell_append" = xyes; then
17450  sed -e '/^func_append ()$/,/^} # func_append /c\
17451func_append ()\
17452{\
17453    eval "${1}+=\\${2}"\
17454} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17455  && mv -f "$cfgfile.tmp" "$cfgfile" \
17456    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17457test 0 -eq $? || _lt_function_replace_fail=:
17458
17459
17460  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17461func_append_quoted ()\
17462{\
17463\    func_quote_for_eval "${2}"\
17464\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17465} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17466  && mv -f "$cfgfile.tmp" "$cfgfile" \
17467    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17468test 0 -eq $? || _lt_function_replace_fail=:
17469
17470
17471  # Save a `func_append' function call where possible by direct use of '+='
17472  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17473    && mv -f "$cfgfile.tmp" "$cfgfile" \
17474      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17475  test 0 -eq $? || _lt_function_replace_fail=:
17476else
17477  # Save a `func_append' function call even when '+=' is not available
17478  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17479    && mv -f "$cfgfile.tmp" "$cfgfile" \
17480      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17481  test 0 -eq $? || _lt_function_replace_fail=:
17482fi
17483
17484if test x"$_lt_function_replace_fail" = x":"; then
17485  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17486$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17487fi
17488
17489
17490   mv -f "$cfgfile" "$ofile" ||
17491    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17492  chmod +x "$ofile"
17493
17494
17495    cat <<_LT_EOF >> "$ofile"
17496
17497# ### BEGIN LIBTOOL TAG CONFIG: CXX
17498
17499# The linker used to build libraries.
17500LD=$lt_LD_CXX
17501
17502# How to create reloadable object files.
17503reload_flag=$lt_reload_flag_CXX
17504reload_cmds=$lt_reload_cmds_CXX
17505
17506# Commands used to build an old-style archive.
17507old_archive_cmds=$lt_old_archive_cmds_CXX
17508
17509# A language specific compiler.
17510CC=$lt_compiler_CXX
17511
17512# Is the compiler the GNU compiler?
17513with_gcc=$GCC_CXX
17514
17515# Compiler flag to turn off builtin functions.
17516no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17517
17518# Additional compiler flags for building library objects.
17519pic_flag=$lt_lt_prog_compiler_pic_CXX
17520
17521# How to pass a linker flag through the compiler.
17522wl=$lt_lt_prog_compiler_wl_CXX
17523
17524# Compiler flag to prevent dynamic linking.
17525link_static_flag=$lt_lt_prog_compiler_static_CXX
17526
17527# Does compiler simultaneously support -c and -o options?
17528compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17529
17530# Whether or not to add -lc for building shared libraries.
17531build_libtool_need_lc=$archive_cmds_need_lc_CXX
17532
17533# Whether or not to disallow shared libs when runtime libs are static.
17534allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17535
17536# Compiler flag to allow reflexive dlopens.
17537export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17538
17539# Compiler flag to generate shared objects directly from archives.
17540whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17541
17542# Whether the compiler copes with passing no objects directly.
17543compiler_needs_object=$lt_compiler_needs_object_CXX
17544
17545# Create an old-style archive from a shared archive.
17546old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17547
17548# Create a temporary old-style archive to link instead of a shared archive.
17549old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17550
17551# Commands used to build a shared archive.
17552archive_cmds=$lt_archive_cmds_CXX
17553archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17554
17555# Commands used to build a loadable module if different from building
17556# a shared archive.
17557module_cmds=$lt_module_cmds_CXX
17558module_expsym_cmds=$lt_module_expsym_cmds_CXX
17559
17560# Whether we are building with GNU ld or not.
17561with_gnu_ld=$lt_with_gnu_ld_CXX
17562
17563# Flag that allows shared libraries with undefined symbols to be built.
17564allow_undefined_flag=$lt_allow_undefined_flag_CXX
17565
17566# Flag that enforces no undefined symbols.
17567no_undefined_flag=$lt_no_undefined_flag_CXX
17568
17569# Flag to hardcode \$libdir into a binary during linking.
17570# This must work even if \$libdir does not exist
17571hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17572
17573# If ld is used when linking, flag to hardcode \$libdir into a binary
17574# during linking.  This must work even if \$libdir does not exist.
17575hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17576
17577# Whether we need a single "-rpath" flag with a separated argument.
17578hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17579
17580# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17581# DIR into the resulting binary.
17582hardcode_direct=$hardcode_direct_CXX
17583
17584# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17585# DIR into the resulting binary and the resulting library dependency is
17586# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17587# library is relocated.
17588hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17589
17590# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17591# into the resulting binary.
17592hardcode_minus_L=$hardcode_minus_L_CXX
17593
17594# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17595# into the resulting binary.
17596hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17597
17598# Set to "yes" if building a shared library automatically hardcodes DIR
17599# into the library and all subsequent libraries and executables linked
17600# against it.
17601hardcode_automatic=$hardcode_automatic_CXX
17602
17603# Set to yes if linker adds runtime paths of dependent libraries
17604# to runtime path list.
17605inherit_rpath=$inherit_rpath_CXX
17606
17607# Whether libtool must link a program against all its dependency libraries.
17608link_all_deplibs=$link_all_deplibs_CXX
17609
17610# Set to "yes" if exported symbols are required.
17611always_export_symbols=$always_export_symbols_CXX
17612
17613# The commands to list exported symbols.
17614export_symbols_cmds=$lt_export_symbols_cmds_CXX
17615
17616# Symbols that should not be listed in the preloaded symbols.
17617exclude_expsyms=$lt_exclude_expsyms_CXX
17618
17619# Symbols that must always be exported.
17620include_expsyms=$lt_include_expsyms_CXX
17621
17622# Commands necessary for linking programs (against libraries) with templates.
17623prelink_cmds=$lt_prelink_cmds_CXX
17624
17625# Commands necessary for finishing linking programs.
17626postlink_cmds=$lt_postlink_cmds_CXX
17627
17628# Specify filename containing input files.
17629file_list_spec=$lt_file_list_spec_CXX
17630
17631# How to hardcode a shared library path into an executable.
17632hardcode_action=$hardcode_action_CXX
17633
17634# The directories searched by this compiler when creating a shared library.
17635compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17636
17637# Dependencies to place before and after the objects being linked to
17638# create a shared library.
17639predep_objects=$lt_predep_objects_CXX
17640postdep_objects=$lt_postdep_objects_CXX
17641predeps=$lt_predeps_CXX
17642postdeps=$lt_postdeps_CXX
17643
17644# The library search path used internally by the compiler when linking
17645# a shared library.
17646compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17647
17648# ### END LIBTOOL TAG CONFIG: CXX
17649_LT_EOF
17650
17651 ;;
17652
17653  esac
17654done # for ac_tag
17655
17656
17657as_fn_exit 0
17658_ACEOF
17659ac_clean_files=$ac_clean_files_save
17660
17661test $ac_write_fail = 0 ||
17662  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17663
17664
17665# configure is writing to config.log, and then calls config.status.
17666# config.status does its own redirection, appending to config.log.
17667# Unfortunately, on DOS this fails, as config.log is still kept open
17668# by configure, so config.status won't be able to write to it; its
17669# output is simply discarded.  So we exec the FD to /dev/null,
17670# effectively closing config.log, so it can be properly (re)opened and
17671# appended to by config.status.  When coming back to configure, we
17672# need to make the FD available again.
17673if test "$no_create" != yes; then
17674  ac_cs_success=:
17675  ac_config_status_args=
17676  test "$silent" = yes &&
17677    ac_config_status_args="$ac_config_status_args --quiet"
17678  exec 5>/dev/null
17679  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17680  exec 5>>config.log
17681  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17682  # would make configure fail if this is the last instruction.
17683  $ac_cs_success || as_fn_exit 1
17684fi
17685if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17686  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17687$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17688fi
17689
17690