1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for courier 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: courier-users@lists.sourceforge.net about your system,
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
544
545# Name of the host.
546# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547# so uname gets run too.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
561
562# Identity of this package.
563PACKAGE_NAME='courier'
564PACKAGE_TARNAME='courier'
565PACKAGE_VERSION='0.10'
566PACKAGE_STRING='courier 0.10'
567PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
568PACKAGE_URL=''
569
570ac_unique_file="Makefile.am"
571# Factoring default headers for most tests.
572ac_includes_default="\
573#include <stdio.h>
574#ifdef HAVE_SYS_TYPES_H
575# include <sys/types.h>
576#endif
577#ifdef HAVE_SYS_STAT_H
578# include <sys/stat.h>
579#endif
580#ifdef STDC_HEADERS
581# include <stdlib.h>
582# include <stddef.h>
583#else
584# ifdef HAVE_STDLIB_H
585#  include <stdlib.h>
586# endif
587#endif
588#ifdef HAVE_STRING_H
589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590#  include <memory.h>
591# endif
592# include <string.h>
593#endif
594#ifdef HAVE_STRINGS_H
595# include <strings.h>
596#endif
597#ifdef HAVE_INTTYPES_H
598# include <inttypes.h>
599#endif
600#ifdef HAVE_STDINT_H
601# include <stdint.h>
602#endif
603#ifdef HAVE_UNISTD_H
604# include <unistd.h>
605#endif"
606
607ac_subst_vars='am__EXEEXT_FALSE
608am__EXEEXT_TRUE
609LTLIBOBJS
610LIBOBJS
611testmode
612mailgroup
613mailuser
614COURIERAUTHCONFIG
615CXXCPP
616CPP
617OTOOL64
618OTOOL
619LIPO
620NMEDIT
621DSYMUTIL
622RANLIB
623AR
624OBJDUMP
625NM
626ac_ct_DUMPBIN
627DUMPBIN
628LD
629FGREP
630EGREP
631GREP
632SED
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641LIBTOOL
642am__fastdepCC_FALSE
643am__fastdepCC_TRUE
644CCDEPMODE
645ac_ct_CC
646CFLAGS
647CC
648LN_S
649am__fastdepCXX_FALSE
650am__fastdepCXX_TRUE
651CXXDEPMODE
652AMDEPBACKSLASH
653AMDEP_FALSE
654AMDEP_TRUE
655am__quote
656am__include
657DEPDIR
658OBJEXT
659EXEEXT
660ac_ct_CXX
661CPPFLAGS
662LDFLAGS
663CXXFLAGS
664CXX
665am__untar
666am__tar
667AMTAR
668am__leading_dot
669SET_MAKE
670AWK
671mkdir_p
672MKDIR_P
673INSTALL_STRIP_PROGRAM
674STRIP
675install_sh
676MAKEINFO
677AUTOHEADER
678AUTOMAKE
679AUTOCONF
680ACLOCAL
681VERSION
682PACKAGE
683CYGPATH_W
684am__isrc
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_alias
689host_alias
690build_alias
691LIBS
692ECHO_T
693ECHO_N
694ECHO_C
695DEFS
696mandir
697localedir
698libdir
699psdir
700pdfdir
701dvidir
702htmldir
703infodir
704docdir
705oldincludedir
706includedir
707localstatedir
708sharedstatedir
709sysconfdir
710datadir
711datarootdir
712libexecdir
713sbindir
714bindir
715program_transform_name
716prefix
717exec_prefix
718PACKAGE_URL
719PACKAGE_BUGREPORT
720PACKAGE_STRING
721PACKAGE_VERSION
722PACKAGE_TARNAME
723PACKAGE_NAME
724PATH_SEPARATOR
725SHELL'
726ac_subst_files=''
727ac_user_opts='
728enable_option_checking
729enable_dependency_tracking
730enable_shared
731enable_static
732with_pic
733enable_fast_install
734with_gnu_ld
735enable_libtool_lock
736with_mailuser
737with_mailgroup
738enable_local_extensions
739with_alias
740enable_root
741with_testmode
742with_explicitsync
743with_dirsync
744'
745      ac_precious_vars='build_alias
746host_alias
747target_alias
748CXX
749CXXFLAGS
750LDFLAGS
751LIBS
752CPPFLAGS
753CCC
754CC
755CFLAGS
756CPP
757CXXCPP'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796includedir='${prefix}/include'
797oldincludedir='/usr/include'
798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
807
808ac_prev=
809ac_dashdash=
810for ac_option
811do
812  # If the previous option needs an argument, assign it.
813  if test -n "$ac_prev"; then
814    eval $ac_prev=\$ac_option
815    ac_prev=
816    continue
817  fi
818
819  case $ac_option in
820  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821  *)	ac_optarg=yes ;;
822  esac
823
824  # Accept the important Cygnus configure options, so we can diagnose typos.
825
826  case $ac_dashdash$ac_option in
827  --)
828    ac_dashdash=yes ;;
829
830  -bindir | --bindir | --bindi | --bind | --bin | --bi)
831    ac_prev=bindir ;;
832  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833    bindir=$ac_optarg ;;
834
835  -build | --build | --buil | --bui | --bu)
836    ac_prev=build_alias ;;
837  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838    build_alias=$ac_optarg ;;
839
840  -cache-file | --cache-file | --cache-fil | --cache-fi \
841  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842    ac_prev=cache_file ;;
843  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845    cache_file=$ac_optarg ;;
846
847  --config-cache | -C)
848    cache_file=config.cache ;;
849
850  -datadir | --datadir | --datadi | --datad)
851    ac_prev=datadir ;;
852  -datadir=* | --datadir=* | --datadi=* | --datad=*)
853    datadir=$ac_optarg ;;
854
855  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856  | --dataroo | --dataro | --datar)
857    ac_prev=datarootdir ;;
858  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860    datarootdir=$ac_optarg ;;
861
862  -disable-* | --disable-*)
863    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864    # Reject names that are not valid shell variable names.
865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866      as_fn_error $? "invalid feature name: $ac_useropt"
867    ac_useropt_orig=$ac_useropt
868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869    case $ac_user_opts in
870      *"
871"enable_$ac_useropt"
872"*) ;;
873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874	 ac_unrecognized_sep=', ';;
875    esac
876    eval enable_$ac_useropt=no ;;
877
878  -docdir | --docdir | --docdi | --doc | --do)
879    ac_prev=docdir ;;
880  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881    docdir=$ac_optarg ;;
882
883  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884    ac_prev=dvidir ;;
885  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886    dvidir=$ac_optarg ;;
887
888  -enable-* | --enable-*)
889    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890    # Reject names that are not valid shell variable names.
891    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892      as_fn_error $? "invalid feature name: $ac_useropt"
893    ac_useropt_orig=$ac_useropt
894    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895    case $ac_user_opts in
896      *"
897"enable_$ac_useropt"
898"*) ;;
899      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900	 ac_unrecognized_sep=', ';;
901    esac
902    eval enable_$ac_useropt=\$ac_optarg ;;
903
904  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906  | --exec | --exe | --ex)
907    ac_prev=exec_prefix ;;
908  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910  | --exec=* | --exe=* | --ex=*)
911    exec_prefix=$ac_optarg ;;
912
913  -gas | --gas | --ga | --g)
914    # Obsolete; use --with-gas.
915    with_gas=yes ;;
916
917  -help | --help | --hel | --he | -h)
918    ac_init_help=long ;;
919  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920    ac_init_help=recursive ;;
921  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922    ac_init_help=short ;;
923
924  -host | --host | --hos | --ho)
925    ac_prev=host_alias ;;
926  -host=* | --host=* | --hos=* | --ho=*)
927    host_alias=$ac_optarg ;;
928
929  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930    ac_prev=htmldir ;;
931  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932  | --ht=*)
933    htmldir=$ac_optarg ;;
934
935  -includedir | --includedir | --includedi | --included | --include \
936  | --includ | --inclu | --incl | --inc)
937    ac_prev=includedir ;;
938  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939  | --includ=* | --inclu=* | --incl=* | --inc=*)
940    includedir=$ac_optarg ;;
941
942  -infodir | --infodir | --infodi | --infod | --info | --inf)
943    ac_prev=infodir ;;
944  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945    infodir=$ac_optarg ;;
946
947  -libdir | --libdir | --libdi | --libd)
948    ac_prev=libdir ;;
949  -libdir=* | --libdir=* | --libdi=* | --libd=*)
950    libdir=$ac_optarg ;;
951
952  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953  | --libexe | --libex | --libe)
954    ac_prev=libexecdir ;;
955  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956  | --libexe=* | --libex=* | --libe=*)
957    libexecdir=$ac_optarg ;;
958
959  -localedir | --localedir | --localedi | --localed | --locale)
960    ac_prev=localedir ;;
961  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962    localedir=$ac_optarg ;;
963
964  -localstatedir | --localstatedir | --localstatedi | --localstated \
965  | --localstate | --localstat | --localsta | --localst | --locals)
966    ac_prev=localstatedir ;;
967  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969    localstatedir=$ac_optarg ;;
970
971  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972    ac_prev=mandir ;;
973  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974    mandir=$ac_optarg ;;
975
976  -nfp | --nfp | --nf)
977    # Obsolete; use --without-fp.
978    with_fp=no ;;
979
980  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981  | --no-cr | --no-c | -n)
982    no_create=yes ;;
983
984  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986    no_recursion=yes ;;
987
988  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990  | --oldin | --oldi | --old | --ol | --o)
991    ac_prev=oldincludedir ;;
992  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995    oldincludedir=$ac_optarg ;;
996
997  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998    ac_prev=prefix ;;
999  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000    prefix=$ac_optarg ;;
1001
1002  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003  | --program-pre | --program-pr | --program-p)
1004    ac_prev=program_prefix ;;
1005  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007    program_prefix=$ac_optarg ;;
1008
1009  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010  | --program-suf | --program-su | --program-s)
1011    ac_prev=program_suffix ;;
1012  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014    program_suffix=$ac_optarg ;;
1015
1016  -program-transform-name | --program-transform-name \
1017  | --program-transform-nam | --program-transform-na \
1018  | --program-transform-n | --program-transform- \
1019  | --program-transform | --program-transfor \
1020  | --program-transfo | --program-transf \
1021  | --program-trans | --program-tran \
1022  | --progr-tra | --program-tr | --program-t)
1023    ac_prev=program_transform_name ;;
1024  -program-transform-name=* | --program-transform-name=* \
1025  | --program-transform-nam=* | --program-transform-na=* \
1026  | --program-transform-n=* | --program-transform-=* \
1027  | --program-transform=* | --program-transfor=* \
1028  | --program-transfo=* | --program-transf=* \
1029  | --program-trans=* | --program-tran=* \
1030  | --progr-tra=* | --program-tr=* | --program-t=*)
1031    program_transform_name=$ac_optarg ;;
1032
1033  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034    ac_prev=pdfdir ;;
1035  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036    pdfdir=$ac_optarg ;;
1037
1038  -psdir | --psdir | --psdi | --psd | --ps)
1039    ac_prev=psdir ;;
1040  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041    psdir=$ac_optarg ;;
1042
1043  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044  | -silent | --silent | --silen | --sile | --sil)
1045    silent=yes ;;
1046
1047  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048    ac_prev=sbindir ;;
1049  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050  | --sbi=* | --sb=*)
1051    sbindir=$ac_optarg ;;
1052
1053  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055  | --sharedst | --shareds | --shared | --share | --shar \
1056  | --sha | --sh)
1057    ac_prev=sharedstatedir ;;
1058  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061  | --sha=* | --sh=*)
1062    sharedstatedir=$ac_optarg ;;
1063
1064  -site | --site | --sit)
1065    ac_prev=site ;;
1066  -site=* | --site=* | --sit=*)
1067    site=$ac_optarg ;;
1068
1069  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070    ac_prev=srcdir ;;
1071  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072    srcdir=$ac_optarg ;;
1073
1074  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075  | --syscon | --sysco | --sysc | --sys | --sy)
1076    ac_prev=sysconfdir ;;
1077  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079    sysconfdir=$ac_optarg ;;
1080
1081  -target | --target | --targe | --targ | --tar | --ta | --t)
1082    ac_prev=target_alias ;;
1083  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084    target_alias=$ac_optarg ;;
1085
1086  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087    verbose=yes ;;
1088
1089  -version | --version | --versio | --versi | --vers | -V)
1090    ac_init_version=: ;;
1091
1092  -with-* | --with-*)
1093    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096      as_fn_error $? "invalid package name: $ac_useropt"
1097    ac_useropt_orig=$ac_useropt
1098    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099    case $ac_user_opts in
1100      *"
1101"with_$ac_useropt"
1102"*) ;;
1103      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104	 ac_unrecognized_sep=', ';;
1105    esac
1106    eval with_$ac_useropt=\$ac_optarg ;;
1107
1108  -without-* | --without-*)
1109    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110    # Reject names that are not valid shell variable names.
1111    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112      as_fn_error $? "invalid package name: $ac_useropt"
1113    ac_useropt_orig=$ac_useropt
1114    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115    case $ac_user_opts in
1116      *"
1117"with_$ac_useropt"
1118"*) ;;
1119      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120	 ac_unrecognized_sep=', ';;
1121    esac
1122    eval with_$ac_useropt=no ;;
1123
1124  --x)
1125    # Obsolete; use --with-x.
1126    with_x=yes ;;
1127
1128  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129  | --x-incl | --x-inc | --x-in | --x-i)
1130    ac_prev=x_includes ;;
1131  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133    x_includes=$ac_optarg ;;
1134
1135  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137    ac_prev=x_libraries ;;
1138  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140    x_libraries=$ac_optarg ;;
1141
1142  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143Try \`$0 --help' for more information"
1144    ;;
1145
1146  *=*)
1147    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148    # Reject names that are not valid shell variable names.
1149    case $ac_envvar in #(
1150      '' | [0-9]* | *[!_$as_cr_alnum]* )
1151      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152    esac
1153    eval $ac_envvar=\$ac_optarg
1154    export $ac_envvar ;;
1155
1156  *)
1157    # FIXME: should be removed in autoconf 3.0.
1158    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162    ;;
1163
1164  esac
1165done
1166
1167if test -n "$ac_prev"; then
1168  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169  as_fn_error $? "missing argument to $ac_option"
1170fi
1171
1172if test -n "$ac_unrecognized_opts"; then
1173  case $enable_option_checking in
1174    no) ;;
1175    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177  esac
1178fi
1179
1180# Check all directory arguments for consistency.
1181for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182		datadir sysconfdir sharedstatedir localstatedir includedir \
1183		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184		libdir localedir mandir
1185do
1186  eval ac_val=\$$ac_var
1187  # Remove trailing slashes.
1188  case $ac_val in
1189    */ )
1190      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191      eval $ac_var=\$ac_val;;
1192  esac
1193  # Be sure to have absolute directory names.
1194  case $ac_val in
1195    [\\/$]* | ?:[\\/]* )  continue;;
1196    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197  esac
1198  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210  if test "x$build_alias" = x; then
1211    cross_compiling=maybe
1212    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1213    If a cross compiler is detected then cross compile mode will be used" >&2
1214  elif test "x$build_alias" != "x$host_alias"; then
1215    cross_compiling=yes
1216  fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228  as_fn_error $? "working directory cannot be determined"
1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230  as_fn_error $? "pwd does not report name of working directory"
1231
1232
1233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235  ac_srcdir_defaulted=yes
1236  # Try the directory containing this script, then the parent directory.
1237  ac_confdir=`$as_dirname -- "$as_myself" ||
1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239	 X"$as_myself" : 'X\(//\)[^/]' \| \
1240	 X"$as_myself" : 'X\(//\)$' \| \
1241	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242$as_echo X"$as_myself" |
1243    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)[^/].*/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\/\)$/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\).*/{
1256	    s//\1/
1257	    q
1258	  }
1259	  s/.*/./; q'`
1260  srcdir=$ac_confdir
1261  if test ! -r "$srcdir/$ac_unique_file"; then
1262    srcdir=..
1263  fi
1264else
1265  ac_srcdir_defaulted=no
1266fi
1267if test ! -r "$srcdir/$ac_unique_file"; then
1268  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270fi
1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272ac_abs_confdir=`(
1273	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274	pwd)`
1275# When building in place, set srcdir=.
1276if test "$ac_abs_confdir" = "$ac_pwd"; then
1277  srcdir=.
1278fi
1279# Remove unnecessary trailing slashes from srcdir.
1280# Double slashes in file names in object file debugging info
1281# mess up M-x gdb in Emacs.
1282case $srcdir in
1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284esac
1285for ac_var in $ac_precious_vars; do
1286  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287  eval ac_env_${ac_var}_value=\$${ac_var}
1288  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290done
1291
1292#
1293# Report the --help message.
1294#
1295if test "$ac_init_help" = "long"; then
1296  # Omit some internal or obsolete options to make the list less imposing.
1297  # This message is too long to be a string in the A/UX 3.1 sh.
1298  cat <<_ACEOF
1299\`configure' configures courier 0.10 to adapt to many kinds of systems.
1300
1301Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304VAR=VALUE.  See below for descriptions of some of the useful variables.
1305
1306Defaults for the options are specified in brackets.
1307
1308Configuration:
1309  -h, --help              display this help and exit
1310      --help=short        display options specific to this package
1311      --help=recursive    display the short help of all the included packages
1312  -V, --version           display version information and exit
1313  -q, --quiet, --silent   do not print \`checking ...' messages
1314      --cache-file=FILE   cache test results in FILE [disabled]
1315  -C, --config-cache      alias for \`--cache-file=config.cache'
1316  -n, --no-create         do not create output files
1317      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1318
1319Installation directories:
1320  --prefix=PREFIX         install architecture-independent files in PREFIX
1321                          [$ac_default_prefix]
1322  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1323                          [PREFIX]
1324
1325By default, \`make install' will install all the files in
1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1327an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328for instance \`--prefix=\$HOME'.
1329
1330For better control, use the options below.
1331
1332Fine tuning of the installation directories:
1333  --bindir=DIR            user executables [EPREFIX/bin]
1334  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1335  --libexecdir=DIR        program executables [EPREFIX/libexec]
1336  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1337  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1338  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1339  --libdir=DIR            object code libraries [EPREFIX/lib]
1340  --includedir=DIR        C header files [PREFIX/include]
1341  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1342  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1343  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1344  --infodir=DIR           info documentation [DATAROOTDIR/info]
1345  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1346  --mandir=DIR            man documentation [DATAROOTDIR/man]
1347  --docdir=DIR            documentation root [DATAROOTDIR/doc/courier]
1348  --htmldir=DIR           html documentation [DOCDIR]
1349  --dvidir=DIR            dvi documentation [DOCDIR]
1350  --pdfdir=DIR            pdf documentation [DOCDIR]
1351  --psdir=DIR             ps documentation [DOCDIR]
1352_ACEOF
1353
1354  cat <<\_ACEOF
1355
1356Program names:
1357  --program-prefix=PREFIX            prepend PREFIX to installed program names
1358  --program-suffix=SUFFIX            append SUFFIX to installed program names
1359  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1360
1361System types:
1362  --build=BUILD     configure for building on BUILD [guessed]
1363  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368  case $ac_init_help in
1369     short | recursive ) echo "Configuration of courier 0.10:";;
1370   esac
1371  cat <<\_ACEOF
1372
1373Optional Features:
1374  --disable-option-checking  ignore unrecognized --enable/--with options
1375  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377  --disable-dependency-tracking  speeds up one-time build
1378  --enable-dependency-tracking   do not reject slow dependency extractors
1379  --enable-shared[=PKGS]  build shared libraries [default=yes]
1380  --enable-static[=PKGS]  build static libraries [default=yes]
1381  --enable-fast-install[=PKGS]
1382                          optimize for fast installation [default=yes]
1383  --disable-libtool-lock  avoid locking (might break parallel builds)
1384--disable-local-extensions  Disable user-ext local addresses
1385--enable-root               Allow mail delivery to root
1386
1387Optional Packages:
1388  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1389  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1390  --with-pic              try to use only PIC/non-PIC objects [default=use
1391                          both]
1392  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1393--with-mailuser=user      Specify mail user name (defaults to mail)
1394--with-mailgroup=group    Specify mail group name (defaults to mail)
1395--without-alias             Do not search in ~alias for non-existent addresses
1396
1397--with-explicitsync       Explicitly sync cache files
1398
1399 --with-dirsync           Manually sync queue file directory
1400
1401Some influential environment variables:
1402  CXX         C++ compiler command
1403  CXXFLAGS    C++ compiler flags
1404  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405              nonstandard directory <lib dir>
1406  LIBS        libraries to pass to the linker, e.g. -l<library>
1407  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408              you have headers in a nonstandard directory <include dir>
1409  CC          C compiler command
1410  CFLAGS      C compiler flags
1411  CPP         C preprocessor
1412  CXXCPP      C++ preprocessor
1413
1414Use these variables to override the choices made by `configure' or to help
1415it to find libraries and programs with nonstandard names/locations.
1416
1417Report bugs to <courier-users@lists.sourceforge.net>.
1418_ACEOF
1419ac_status=$?
1420fi
1421
1422if test "$ac_init_help" = "recursive"; then
1423  # If there are subdirs, report their specific --help.
1424  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425    test -d "$ac_dir" ||
1426      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427      continue
1428    ac_builddir=.
1429
1430case "$ac_dir" in
1431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432*)
1433  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434  # A ".." for each directory in $ac_dir_suffix.
1435  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436  case $ac_top_builddir_sub in
1437  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439  esac ;;
1440esac
1441ac_abs_top_builddir=$ac_pwd
1442ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443# for backward compatibility:
1444ac_top_builddir=$ac_top_build_prefix
1445
1446case $srcdir in
1447  .)  # We are building in place.
1448    ac_srcdir=.
1449    ac_top_srcdir=$ac_top_builddir_sub
1450    ac_abs_top_srcdir=$ac_pwd ;;
1451  [\\/]* | ?:[\\/]* )  # Absolute name.
1452    ac_srcdir=$srcdir$ac_dir_suffix;
1453    ac_top_srcdir=$srcdir
1454    ac_abs_top_srcdir=$srcdir ;;
1455  *) # Relative name.
1456    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457    ac_top_srcdir=$ac_top_build_prefix$srcdir
1458    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459esac
1460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461
1462    cd "$ac_dir" || { ac_status=$?; continue; }
1463    # Check for guested configure.
1464    if test -f "$ac_srcdir/configure.gnu"; then
1465      echo &&
1466      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467    elif test -f "$ac_srcdir/configure"; then
1468      echo &&
1469      $SHELL "$ac_srcdir/configure" --help=recursive
1470    else
1471      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472    fi || ac_status=$?
1473    cd "$ac_pwd" || { ac_status=$?; break; }
1474  done
1475fi
1476
1477test -n "$ac_init_help" && exit $ac_status
1478if $ac_init_version; then
1479  cat <<\_ACEOF
1480courier configure 0.10
1481generated by GNU Autoconf 2.66
1482
1483Copyright (C) 2010 Free Software Foundation, Inc.
1484This configure script is free software; the Free Software Foundation
1485gives unlimited permission to copy, distribute and modify it.
1486_ACEOF
1487  exit
1488fi
1489
1490## ------------------------ ##
1491## Autoconf initialization. ##
1492## ------------------------ ##
1493
1494# ac_fn_cxx_try_compile LINENO
1495# ----------------------------
1496# Try to compile conftest.$ac_ext, and return whether this succeeded.
1497ac_fn_cxx_try_compile ()
1498{
1499  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500  rm -f conftest.$ac_objext
1501  if { { ac_try="$ac_compile"
1502case "(($ac_try" in
1503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504  *) ac_try_echo=$ac_try;;
1505esac
1506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507$as_echo "$ac_try_echo"; } >&5
1508  (eval "$ac_compile") 2>conftest.err
1509  ac_status=$?
1510  if test -s conftest.err; then
1511    grep -v '^ *+' conftest.err >conftest.er1
1512    cat conftest.er1 >&5
1513    mv -f conftest.er1 conftest.err
1514  fi
1515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516  test $ac_status = 0; } && {
1517	 test -z "$ac_cxx_werror_flag" ||
1518	 test ! -s conftest.err
1519       } && test -s conftest.$ac_objext; then :
1520  ac_retval=0
1521else
1522  $as_echo "$as_me: failed program was:" >&5
1523sed 's/^/| /' conftest.$ac_ext >&5
1524
1525	ac_retval=1
1526fi
1527  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1528  as_fn_set_status $ac_retval
1529
1530} # ac_fn_cxx_try_compile
1531
1532# ac_fn_c_try_compile LINENO
1533# --------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_compile ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  rm -f conftest.$ac_objext
1539  if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542  *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546  (eval "$ac_compile") 2>conftest.err
1547  ac_status=$?
1548  if test -s conftest.err; then
1549    grep -v '^ *+' conftest.err >conftest.er1
1550    cat conftest.er1 >&5
1551    mv -f conftest.er1 conftest.err
1552  fi
1553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554  test $ac_status = 0; } && {
1555	 test -z "$ac_c_werror_flag" ||
1556	 test ! -s conftest.err
1557       } && test -s conftest.$ac_objext; then :
1558  ac_retval=0
1559else
1560  $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563	ac_retval=1
1564fi
1565  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566  as_fn_set_status $ac_retval
1567
1568} # ac_fn_c_try_compile
1569
1570# ac_fn_c_try_link LINENO
1571# -----------------------
1572# Try to link conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_link ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  rm -f conftest.$ac_objext conftest$ac_exeext
1577  if { { ac_try="$ac_link"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_link") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } && {
1593	 test -z "$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       } && test -s conftest$ac_exeext && {
1596	 test "$cross_compiling" = yes ||
1597	 $as_test_x conftest$ac_exeext
1598       }; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608  # interfere with the next link command; also delete a directory that is
1609  # left behind by Apple's compiler.  We do this before executing the actions.
1610  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_link
1615
1616# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists and can be compiled using the include files in
1619# INCLUDES, setting the cache variable VAR accordingly.
1620ac_fn_c_check_header_compile ()
1621{
1622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624$as_echo_n "checking for $2... " >&6; }
1625if eval "test \"\${$3+set}\"" = set; then :
1626  $as_echo_n "(cached) " >&6
1627else
1628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h.  */
1630$4
1631#include <$2>
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
1634  eval "$3=yes"
1635else
1636  eval "$3=no"
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639fi
1640eval ac_res=\$$3
1641	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642$as_echo "$ac_res" >&6; }
1643  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644
1645} # ac_fn_c_check_header_compile
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } >/dev/null && {
1669	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677    ac_retval=1
1678fi
1679  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_try_run LINENO
1685# ----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687# that executables *can* be run.
1688ac_fn_c_try_run ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_link") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702  { { case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_try") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; }; }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: program exited with status $ac_status" >&5
1715       $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718       ac_retval=$ac_status
1719fi
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_run
1725
1726# ac_fn_c_check_func LINENO FUNC VAR
1727# ----------------------------------
1728# Tests whether FUNC exists, setting the cache variable VAR accordingly
1729ac_fn_c_check_func ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval "test \"\${$3+set}\"" = set; then :
1735  $as_echo_n "(cached) " >&6
1736else
1737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1741#define $2 innocuous_$2
1742
1743/* System header to define __stub macros and hopefully few prototypes,
1744    which can conflict with char $2 (); below.
1745    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746    <limits.h> exists even on freestanding compilers.  */
1747
1748#ifdef __STDC__
1749# include <limits.h>
1750#else
1751# include <assert.h>
1752#endif
1753
1754#undef $2
1755
1756/* Override any GCC internal prototype to avoid an error.
1757   Use char because int might match the return type of a GCC
1758   builtin and then its argument prototype would still apply.  */
1759#ifdef __cplusplus
1760extern "C"
1761#endif
1762char $2 ();
1763/* The GNU C library defines this for functions which it implements
1764    to always fail with ENOSYS.  Some functions are actually named
1765    something starting with __ and the normal name is an alias.  */
1766#if defined __stub_$2 || defined __stub___$2
1767choke me
1768#endif
1769
1770int
1771main ()
1772{
1773return $2 ();
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_link "$LINENO"; then :
1779  eval "$3=yes"
1780else
1781  eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext \
1784    conftest$ac_exeext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790
1791} # ac_fn_c_check_func
1792
1793# ac_fn_cxx_try_cpp LINENO
1794# ------------------------
1795# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_cxx_try_cpp ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  if { { ac_try="$ac_cpp conftest.$ac_ext"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807  ac_status=$?
1808  if test -s conftest.err; then
1809    grep -v '^ *+' conftest.err >conftest.er1
1810    cat conftest.er1 >&5
1811    mv -f conftest.er1 conftest.err
1812  fi
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; } >/dev/null && {
1815	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1816	 test ! -s conftest.err
1817       }; then :
1818  ac_retval=0
1819else
1820  $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823    ac_retval=1
1824fi
1825  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_cxx_try_cpp
1829
1830# ac_fn_cxx_try_link LINENO
1831# -------------------------
1832# Try to link conftest.$ac_ext, and return whether this succeeded.
1833ac_fn_cxx_try_link ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  rm -f conftest.$ac_objext conftest$ac_exeext
1837  if { { ac_try="$ac_link"
1838case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844  (eval "$ac_link") 2>conftest.err
1845  ac_status=$?
1846  if test -s conftest.err; then
1847    grep -v '^ *+' conftest.err >conftest.er1
1848    cat conftest.er1 >&5
1849    mv -f conftest.er1 conftest.err
1850  fi
1851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852  test $ac_status = 0; } && {
1853	 test -z "$ac_cxx_werror_flag" ||
1854	 test ! -s conftest.err
1855       } && test -s conftest$ac_exeext && {
1856	 test "$cross_compiling" = yes ||
1857	 $as_test_x conftest$ac_exeext
1858       }; then :
1859  ac_retval=0
1860else
1861  $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864	ac_retval=1
1865fi
1866  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868  # interfere with the next link command; also delete a directory that is
1869  # left behind by Apple's compiler.  We do this before executing the actions.
1870  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_cxx_try_link
1875
1876# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1877# -------------------------------------------------------
1878# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1879# the include files in INCLUDES and setting the cache variable VAR
1880# accordingly.
1881ac_fn_c_check_header_mongrel ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  if eval "test \"\${$3+set}\"" = set; then :
1885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval "test \"\${$3+set}\"" = set; then :
1888  $as_echo_n "(cached) " >&6
1889fi
1890eval ac_res=\$$3
1891	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893else
1894  # Is the header compilable?
1895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1896$as_echo_n "checking $2 usability... " >&6; }
1897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899$4
1900#include <$2>
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903  ac_header_compiler=yes
1904else
1905  ac_header_compiler=no
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1909$as_echo "$ac_header_compiler" >&6; }
1910
1911# Is the header present?
1912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1913$as_echo_n "checking $2 presence... " >&6; }
1914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h.  */
1916#include <$2>
1917_ACEOF
1918if ac_fn_c_try_cpp "$LINENO"; then :
1919  ac_header_preproc=yes
1920else
1921  ac_header_preproc=no
1922fi
1923rm -f conftest.err conftest.$ac_ext
1924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1925$as_echo "$ac_header_preproc" >&6; }
1926
1927# So?  What about this header?
1928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929  yes:no: )
1930    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1931$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1932    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934    ;;
1935  no:yes:* )
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1937$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1939$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1941$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1943$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946( $as_echo "## -------------------------------------------------- ##
1947## Report this to courier-users@lists.sourceforge.net ##
1948## -------------------------------------------------- ##"
1949     ) | sed "s/^/$as_me: WARNING:     /" >&2
1950    ;;
1951esac
1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953$as_echo_n "checking for $2... " >&6; }
1954if eval "test \"\${$3+set}\"" = set; then :
1955  $as_echo_n "(cached) " >&6
1956else
1957  eval "$3=\$ac_header_compiler"
1958fi
1959eval ac_res=\$$3
1960	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962fi
1963  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965} # ac_fn_c_check_header_mongrel
1966
1967# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968# -------------------------------------------
1969# Tests whether TYPE exists after having included INCLUDES, setting cache
1970# variable VAR accordingly.
1971ac_fn_c_check_type ()
1972{
1973  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if eval "test \"\${$3+set}\"" = set; then :
1977  $as_echo_n "(cached) " >&6
1978else
1979  eval "$3=no"
1980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982$4
1983int
1984main ()
1985{
1986if (sizeof ($2))
1987	 return 0;
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h.  */
1995$4
1996int
1997main ()
1998{
1999if (sizeof (($2)))
2000	    return 0;
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006
2007else
2008  eval "$3=yes"
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013fi
2014eval ac_res=\$$3
2015	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018
2019} # ac_fn_c_check_type
2020cat >config.log <<_ACEOF
2021This file contains any messages produced by compilers while
2022running configure, to aid debugging if configure makes a mistake.
2023
2024It was created by courier $as_me 0.10, which was
2025generated by GNU Autoconf 2.66.  Invocation command line was
2026
2027  $ $0 $@
2028
2029_ACEOF
2030exec 5>>config.log
2031{
2032cat <<_ASUNAME
2033## --------- ##
2034## Platform. ##
2035## --------- ##
2036
2037hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2038uname -m = `(uname -m) 2>/dev/null || echo unknown`
2039uname -r = `(uname -r) 2>/dev/null || echo unknown`
2040uname -s = `(uname -s) 2>/dev/null || echo unknown`
2041uname -v = `(uname -v) 2>/dev/null || echo unknown`
2042
2043/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2044/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2045
2046/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2047/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2048/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2049/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2050/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2051/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2052/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2053
2054_ASUNAME
2055
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061    $as_echo "PATH: $as_dir"
2062  done
2063IFS=$as_save_IFS
2064
2065} >&5
2066
2067cat >&5 <<_ACEOF
2068
2069
2070## ----------- ##
2071## Core tests. ##
2072## ----------- ##
2073
2074_ACEOF
2075
2076
2077# Keep a trace of the command line.
2078# Strip out --no-create and --no-recursion so they do not pile up.
2079# Strip out --silent because we don't want to record it for future runs.
2080# Also quote any args containing shell meta-characters.
2081# Make two passes to allow for proper duplicate-argument suppression.
2082ac_configure_args=
2083ac_configure_args0=
2084ac_configure_args1=
2085ac_must_keep_next=false
2086for ac_pass in 1 2
2087do
2088  for ac_arg
2089  do
2090    case $ac_arg in
2091    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093    | -silent | --silent | --silen | --sile | --sil)
2094      continue ;;
2095    *\'*)
2096      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097    esac
2098    case $ac_pass in
2099    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2100    2)
2101      as_fn_append ac_configure_args1 " '$ac_arg'"
2102      if test $ac_must_keep_next = true; then
2103	ac_must_keep_next=false # Got value, back to normal.
2104      else
2105	case $ac_arg in
2106	  *=* | --config-cache | -C | -disable-* | --disable-* \
2107	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109	  | -with-* | --with-* | -without-* | --without-* | --x)
2110	    case "$ac_configure_args0 " in
2111	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112	    esac
2113	    ;;
2114	  -* ) ac_must_keep_next=true ;;
2115	esac
2116      fi
2117      as_fn_append ac_configure_args " '$ac_arg'"
2118      ;;
2119    esac
2120  done
2121done
2122{ ac_configure_args0=; unset ac_configure_args0;}
2123{ ac_configure_args1=; unset ac_configure_args1;}
2124
2125# When interrupted or exit'd, cleanup temporary files, and complete
2126# config.log.  We remove comments because anyway the quotes in there
2127# would cause problems or look ugly.
2128# WARNING: Use '\'' to represent an apostrophe within the trap.
2129# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130trap 'exit_status=$?
2131  # Save into config.log some information that might help in debugging.
2132  {
2133    echo
2134
2135    $as_echo "## ---------------- ##
2136## Cache variables. ##
2137## ---------------- ##"
2138    echo
2139    # The following way of writing the cache mishandles newlines in values,
2140(
2141  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2142    eval ac_val=\$$ac_var
2143    case $ac_val in #(
2144    *${as_nl}*)
2145      case $ac_var in #(
2146      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2147$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2148      esac
2149      case $ac_var in #(
2150      _ | IFS | as_nl) ;; #(
2151      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2152      *) { eval $ac_var=; unset $ac_var;} ;;
2153      esac ;;
2154    esac
2155  done
2156  (set) 2>&1 |
2157    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2158    *${as_nl}ac_space=\ *)
2159      sed -n \
2160	"s/'\''/'\''\\\\'\'''\''/g;
2161	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162      ;; #(
2163    *)
2164      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2165      ;;
2166    esac |
2167    sort
2168)
2169    echo
2170
2171    $as_echo "## ----------------- ##
2172## Output variables. ##
2173## ----------------- ##"
2174    echo
2175    for ac_var in $ac_subst_vars
2176    do
2177      eval ac_val=\$$ac_var
2178      case $ac_val in
2179      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180      esac
2181      $as_echo "$ac_var='\''$ac_val'\''"
2182    done | sort
2183    echo
2184
2185    if test -n "$ac_subst_files"; then
2186      $as_echo "## ------------------- ##
2187## File substitutions. ##
2188## ------------------- ##"
2189      echo
2190      for ac_var in $ac_subst_files
2191      do
2192	eval ac_val=\$$ac_var
2193	case $ac_val in
2194	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195	esac
2196	$as_echo "$ac_var='\''$ac_val'\''"
2197      done | sort
2198      echo
2199    fi
2200
2201    if test -s confdefs.h; then
2202      $as_echo "## ----------- ##
2203## confdefs.h. ##
2204## ----------- ##"
2205      echo
2206      cat confdefs.h
2207      echo
2208    fi
2209    test "$ac_signal" != 0 &&
2210      $as_echo "$as_me: caught signal $ac_signal"
2211    $as_echo "$as_me: exit $exit_status"
2212  } >&5
2213  rm -f core *.core core.conftest.* &&
2214    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2215    exit $exit_status
2216' 0
2217for ac_signal in 1 2 13 15; do
2218  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219done
2220ac_signal=0
2221
2222# confdefs.h avoids OS command line length limits that DEFS can exceed.
2223rm -f -r conftest* confdefs.h
2224
2225$as_echo "/* confdefs.h */" > confdefs.h
2226
2227# Predefined preprocessor variables.
2228
2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_NAME "$PACKAGE_NAME"
2231_ACEOF
2232
2233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2235_ACEOF
2236
2237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_VERSION "$PACKAGE_VERSION"
2239_ACEOF
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_STRING "$PACKAGE_STRING"
2243_ACEOF
2244
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2247_ACEOF
2248
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_URL "$PACKAGE_URL"
2251_ACEOF
2252
2253
2254# Let the site file select an alternate cache file if it wants to.
2255# Prefer an explicitly selected file to automatically selected ones.
2256ac_site_file1=NONE
2257ac_site_file2=NONE
2258if test -n "$CONFIG_SITE"; then
2259  # We do not want a PATH search for config.site.
2260  case $CONFIG_SITE in #((
2261    -*)  ac_site_file1=./$CONFIG_SITE;;
2262    */*) ac_site_file1=$CONFIG_SITE;;
2263    *)   ac_site_file1=./$CONFIG_SITE;;
2264  esac
2265elif test "x$prefix" != xNONE; then
2266  ac_site_file1=$prefix/share/config.site
2267  ac_site_file2=$prefix/etc/config.site
2268else
2269  ac_site_file1=$ac_default_prefix/share/config.site
2270  ac_site_file2=$ac_default_prefix/etc/config.site
2271fi
2272for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2273do
2274  test "x$ac_site_file" = xNONE && continue
2275  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2276    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2277$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2278    sed 's/^/| /' "$ac_site_file" >&5
2279    . "$ac_site_file" \
2280      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282as_fn_error $? "failed to load site script $ac_site_file
2283See \`config.log' for more details" "$LINENO" 5; }
2284  fi
2285done
2286
2287if test -r "$cache_file"; then
2288  # Some versions of bash will fail to source /dev/null (special files
2289  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2290  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2291    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2292$as_echo "$as_me: loading cache $cache_file" >&6;}
2293    case $cache_file in
2294      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295      *)                      . "./$cache_file";;
2296    esac
2297  fi
2298else
2299  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2300$as_echo "$as_me: creating cache $cache_file" >&6;}
2301  >$cache_file
2302fi
2303
2304# Check that the precious variables saved in the cache have kept the same
2305# value.
2306ac_cache_corrupted=false
2307for ac_var in $ac_precious_vars; do
2308  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309  eval ac_new_set=\$ac_env_${ac_var}_set
2310  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311  eval ac_new_val=\$ac_env_${ac_var}_value
2312  case $ac_old_set,$ac_new_set in
2313    set,)
2314      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316      ac_cache_corrupted=: ;;
2317    ,set)
2318      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2319$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320      ac_cache_corrupted=: ;;
2321    ,);;
2322    *)
2323      if test "x$ac_old_val" != "x$ac_new_val"; then
2324	# differences in whitespace do not lead to failure.
2325	ac_old_val_w=`echo x $ac_old_val`
2326	ac_new_val_w=`echo x $ac_new_val`
2327	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2328	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2329$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330	  ac_cache_corrupted=:
2331	else
2332	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2333$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2334	  eval $ac_var=\$ac_old_val
2335	fi
2336	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2337$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2338	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2339$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2340      fi;;
2341  esac
2342  # Pass precious variables to config.status.
2343  if test "$ac_new_set" = set; then
2344    case $ac_new_val in
2345    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2346    *) ac_arg=$ac_var=$ac_new_val ;;
2347    esac
2348    case " $ac_configure_args " in
2349      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2350      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2351    esac
2352  fi
2353done
2354if $ac_cache_corrupted; then
2355  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2358$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2359  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2360fi
2361## -------------------- ##
2362## Main body of script. ##
2363## -------------------- ##
2364
2365ac_ext=c
2366ac_cpp='$CPP $CPPFLAGS'
2367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
2371
2372
2373>confdefs.h  # Kill PACKAGE_ macros
2374
2375
2376am__api_version='1.11'
2377
2378ac_aux_dir=
2379for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2380  if test -f "$ac_dir/install-sh"; then
2381    ac_aux_dir=$ac_dir
2382    ac_install_sh="$ac_aux_dir/install-sh -c"
2383    break
2384  elif test -f "$ac_dir/install.sh"; then
2385    ac_aux_dir=$ac_dir
2386    ac_install_sh="$ac_aux_dir/install.sh -c"
2387    break
2388  elif test -f "$ac_dir/shtool"; then
2389    ac_aux_dir=$ac_dir
2390    ac_install_sh="$ac_aux_dir/shtool install -c"
2391    break
2392  fi
2393done
2394if test -z "$ac_aux_dir"; then
2395  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2396fi
2397
2398# These three variables are undocumented and unsupported,
2399# and are intended to be withdrawn in a future Autoconf release.
2400# They can cause serious problems if a builder's source tree is in a directory
2401# whose full name contains unusual characters.
2402ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2403ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2404ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2405
2406
2407# Find a good install program.  We prefer a C program (faster),
2408# so one script is as good as another.  But avoid the broken or
2409# incompatible versions:
2410# SysV /etc/install, /usr/sbin/install
2411# SunOS /usr/etc/install
2412# IRIX /sbin/install
2413# AIX /bin/install
2414# AmigaOS /C/install, which installs bootblocks on floppy discs
2415# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2416# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2417# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2418# OS/2's system install, which has a completely different semantic
2419# ./install, which can be erroneously created by make from ./install.sh.
2420# Reject install programs that cannot install multiple files.
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2422$as_echo_n "checking for a BSD-compatible install... " >&6; }
2423if test -z "$INSTALL"; then
2424if test "${ac_cv_path_install+set}" = set; then :
2425  $as_echo_n "(cached) " >&6
2426else
2427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430  IFS=$as_save_IFS
2431  test -z "$as_dir" && as_dir=.
2432    # Account for people who put trailing slashes in PATH elements.
2433case $as_dir/ in #((
2434  ./ | .// | /[cC]/* | \
2435  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2436  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2437  /usr/ucb/* ) ;;
2438  *)
2439    # OSF1 and SCO ODT 3.0 have their own names for install.
2440    # Don't use installbsd from OSF since it installs stuff as root
2441    # by default.
2442    for ac_prog in ginstall scoinst install; do
2443      for ac_exec_ext in '' $ac_executable_extensions; do
2444	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2445	  if test $ac_prog = install &&
2446	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2447	    # AIX install.  It has an incompatible calling convention.
2448	    :
2449	  elif test $ac_prog = install &&
2450	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2451	    # program-specific install script used by HP pwplus--don't use.
2452	    :
2453	  else
2454	    rm -rf conftest.one conftest.two conftest.dir
2455	    echo one > conftest.one
2456	    echo two > conftest.two
2457	    mkdir conftest.dir
2458	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2459	      test -s conftest.one && test -s conftest.two &&
2460	      test -s conftest.dir/conftest.one &&
2461	      test -s conftest.dir/conftest.two
2462	    then
2463	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2464	      break 3
2465	    fi
2466	  fi
2467	fi
2468      done
2469    done
2470    ;;
2471esac
2472
2473  done
2474IFS=$as_save_IFS
2475
2476rm -rf conftest.one conftest.two conftest.dir
2477
2478fi
2479  if test "${ac_cv_path_install+set}" = set; then
2480    INSTALL=$ac_cv_path_install
2481  else
2482    # As a last resort, use the slow shell script.  Don't cache a
2483    # value for INSTALL within a source directory, because that will
2484    # break other packages using the cache if that directory is
2485    # removed, or if the value is a relative name.
2486    INSTALL=$ac_install_sh
2487  fi
2488fi
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2490$as_echo "$INSTALL" >&6; }
2491
2492# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2493# It thinks the first close brace ends the variable substitution.
2494test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2495
2496test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2497
2498test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2499
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2501$as_echo_n "checking whether build environment is sane... " >&6; }
2502# Just in case
2503sleep 1
2504echo timestamp > conftest.file
2505# Reject unsafe characters in $srcdir or the absolute working directory
2506# name.  Accept space and tab only in the latter.
2507am_lf='
2508'
2509case `pwd` in
2510  *[\\\"\#\$\&\'\`$am_lf]*)
2511    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2512esac
2513case $srcdir in
2514  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2515    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2516esac
2517
2518# Do `set' in a subshell so we don't clobber the current shell's
2519# arguments.  Must try -L first in case configure is actually a
2520# symlink; some systems play weird games with the mod time of symlinks
2521# (eg FreeBSD returns the mod time of the symlink's containing
2522# directory).
2523if (
2524   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2525   if test "$*" = "X"; then
2526      # -L didn't work.
2527      set X `ls -t "$srcdir/configure" conftest.file`
2528   fi
2529   rm -f conftest.file
2530   if test "$*" != "X $srcdir/configure conftest.file" \
2531      && test "$*" != "X conftest.file $srcdir/configure"; then
2532
2533      # If neither matched, then we have a broken ls.  This can happen
2534      # if, for instance, CONFIG_SHELL is bash and it inherits a
2535      # broken ls alias from the environment.  This has actually
2536      # happened.  Such a system could not be considered "sane".
2537      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2538alias in your environment" "$LINENO" 5
2539   fi
2540
2541   test "$2" = conftest.file
2542   )
2543then
2544   # Ok.
2545   :
2546else
2547   as_fn_error $? "newly created file is older than distributed files!
2548Check your system clock" "$LINENO" 5
2549fi
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551$as_echo "yes" >&6; }
2552test "$program_prefix" != NONE &&
2553  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2554# Use a double $ so make ignores it.
2555test "$program_suffix" != NONE &&
2556  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2557# Double any \ or $.
2558# By default was `s,x,x', remove it if useless.
2559ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2560program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2561
2562# expand $ac_aux_dir to an absolute path
2563am_aux_dir=`cd $ac_aux_dir && pwd`
2564
2565if test x"${MISSING+set}" != xset; then
2566  case $am_aux_dir in
2567  *\ * | *\	*)
2568    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2569  *)
2570    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2571  esac
2572fi
2573# Use eval to expand $SHELL
2574if eval "$MISSING --run true"; then
2575  am_missing_run="$MISSING --run "
2576else
2577  am_missing_run=
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2579$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2580fi
2581
2582if test x"${install_sh}" != xset; then
2583  case $am_aux_dir in
2584  *\ * | *\	*)
2585    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2586  *)
2587    install_sh="\${SHELL} $am_aux_dir/install-sh"
2588  esac
2589fi
2590
2591# Installed binaries are usually stripped using `strip' when the user
2592# run `make install-strip'.  However `strip' might not be the right
2593# tool to use in cross-compilation environments, therefore Automake
2594# will honor the `STRIP' environment variable to overrule this program.
2595if test "$cross_compiling" != no; then
2596  if test -n "$ac_tool_prefix"; then
2597  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2598set dummy ${ac_tool_prefix}strip; ac_word=$2
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
2601if test "${ac_cv_prog_STRIP+set}" = set; then :
2602  $as_echo_n "(cached) " >&6
2603else
2604  if test -n "$STRIP"; then
2605  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    for ac_exec_ext in '' $ac_executable_extensions; do
2613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616    break 2
2617  fi
2618done
2619  done
2620IFS=$as_save_IFS
2621
2622fi
2623fi
2624STRIP=$ac_cv_prog_STRIP
2625if test -n "$STRIP"; then
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2627$as_echo "$STRIP" >&6; }
2628else
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630$as_echo "no" >&6; }
2631fi
2632
2633
2634fi
2635if test -z "$ac_cv_prog_STRIP"; then
2636  ac_ct_STRIP=$STRIP
2637  # Extract the first word of "strip", so it can be a program name with args.
2638set dummy strip; ac_word=$2
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640$as_echo_n "checking for $ac_word... " >&6; }
2641if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2642  $as_echo_n "(cached) " >&6
2643else
2644  if test -n "$ac_ct_STRIP"; then
2645  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650  IFS=$as_save_IFS
2651  test -z "$as_dir" && as_dir=.
2652    for ac_exec_ext in '' $ac_executable_extensions; do
2653  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654    ac_cv_prog_ac_ct_STRIP="strip"
2655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656    break 2
2657  fi
2658done
2659  done
2660IFS=$as_save_IFS
2661
2662fi
2663fi
2664ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2665if test -n "$ac_ct_STRIP"; then
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2667$as_echo "$ac_ct_STRIP" >&6; }
2668else
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670$as_echo "no" >&6; }
2671fi
2672
2673  if test "x$ac_ct_STRIP" = x; then
2674    STRIP=":"
2675  else
2676    case $cross_compiling:$ac_tool_warned in
2677yes:)
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2680ac_tool_warned=yes ;;
2681esac
2682    STRIP=$ac_ct_STRIP
2683  fi
2684else
2685  STRIP="$ac_cv_prog_STRIP"
2686fi
2687
2688fi
2689INSTALL_STRIP_PROGRAM="install  -s -m 555 -s"
2690
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2692$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2693if test -z "$MKDIR_P"; then
2694  if test "${ac_cv_path_mkdir+set}" = set; then :
2695  $as_echo_n "(cached) " >&6
2696else
2697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702    for ac_prog in mkdir gmkdir; do
2703	 for ac_exec_ext in '' $ac_executable_extensions; do
2704	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2705	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2706	     'mkdir (GNU coreutils) '* | \
2707	     'mkdir (coreutils) '* | \
2708	     'mkdir (fileutils) '4.1*)
2709	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2710	       break 3;;
2711	   esac
2712	 done
2713       done
2714  done
2715IFS=$as_save_IFS
2716
2717fi
2718
2719  test -d ./--version && rmdir ./--version
2720  if test "${ac_cv_path_mkdir+set}" = set; then
2721    MKDIR_P="$ac_cv_path_mkdir -p"
2722  else
2723    # As a last resort, use the slow shell script.  Don't cache a
2724    # value for MKDIR_P within a source directory, because that will
2725    # break other packages using the cache if that directory is
2726    # removed, or if the value is a relative name.
2727    MKDIR_P="$ac_install_sh -d"
2728  fi
2729fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2731$as_echo "$MKDIR_P" >&6; }
2732
2733mkdir_p="$MKDIR_P"
2734case $mkdir_p in
2735  [\\/$]* | ?:[\\/]*) ;;
2736  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2737esac
2738
2739for ac_prog in gawk mawk nawk awk
2740do
2741  # Extract the first word of "$ac_prog", so it can be a program name with args.
2742set dummy $ac_prog; ac_word=$2
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if test "${ac_cv_prog_AWK+set}" = set; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  if test -n "$AWK"; then
2749  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2750else
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754  IFS=$as_save_IFS
2755  test -z "$as_dir" && as_dir=.
2756    for ac_exec_ext in '' $ac_executable_extensions; do
2757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758    ac_cv_prog_AWK="$ac_prog"
2759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760    break 2
2761  fi
2762done
2763  done
2764IFS=$as_save_IFS
2765
2766fi
2767fi
2768AWK=$ac_cv_prog_AWK
2769if test -n "$AWK"; then
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2771$as_echo "$AWK" >&6; }
2772else
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2775fi
2776
2777
2778  test -n "$AWK" && break
2779done
2780
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2782$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2783set x ${MAKE-make}
2784ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2785if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2786  $as_echo_n "(cached) " >&6
2787else
2788  cat >conftest.make <<\_ACEOF
2789SHELL = /bin/sh
2790all:
2791	@echo '@@@%%%=$(MAKE)=@@@%%%'
2792_ACEOF
2793# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2794case `${MAKE-make} -f conftest.make 2>/dev/null` in
2795  *@@@%%%=?*=@@@%%%*)
2796    eval ac_cv_prog_make_${ac_make}_set=yes;;
2797  *)
2798    eval ac_cv_prog_make_${ac_make}_set=no;;
2799esac
2800rm -f conftest.make
2801fi
2802if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2804$as_echo "yes" >&6; }
2805  SET_MAKE=
2806else
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
2809  SET_MAKE="MAKE=${MAKE-make}"
2810fi
2811
2812rm -rf .tst 2>/dev/null
2813mkdir .tst 2>/dev/null
2814if test -d .tst; then
2815  am__leading_dot=.
2816else
2817  am__leading_dot=_
2818fi
2819rmdir .tst 2>/dev/null
2820
2821if test "`cd $srcdir && pwd`" != "`pwd`"; then
2822  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2823  # is not polluted with repeated "-I."
2824  am__isrc=' -I$(srcdir)'
2825  # test to see if srcdir already configured
2826  if test -f $srcdir/config.status; then
2827    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2828  fi
2829fi
2830
2831# test whether we have cygpath
2832if test -z "$CYGPATH_W"; then
2833  if (cygpath --version) >/dev/null 2>/dev/null; then
2834    CYGPATH_W='cygpath -w'
2835  else
2836    CYGPATH_W=echo
2837  fi
2838fi
2839
2840
2841# Define the identity of the package.
2842 PACKAGE='courier'
2843 VERSION='0.10'
2844
2845
2846# Some tools Automake needs.
2847
2848ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2849
2850
2851AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2852
2853
2854AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2855
2856
2857AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2858
2859
2860MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861
2862# We need awk for the "check" target.  The system "awk" is bad on
2863# some platforms.
2864# Always define AMTAR for backward compatibility.
2865
2866AMTAR=${AMTAR-"${am_missing_run}tar"}
2867
2868am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2869
2870
2871
2872
2873
2874ac_config_headers="$ac_config_headers config.h"
2875
2876
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2878$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2879set x ${MAKE-make}
2880ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2881if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  cat >conftest.make <<\_ACEOF
2885SHELL = /bin/sh
2886all:
2887	@echo '@@@%%%=$(MAKE)=@@@%%%'
2888_ACEOF
2889# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2890case `${MAKE-make} -f conftest.make 2>/dev/null` in
2891  *@@@%%%=?*=@@@%%%*)
2892    eval ac_cv_prog_make_${ac_make}_set=yes;;
2893  *)
2894    eval ac_cv_prog_make_${ac_make}_set=no;;
2895esac
2896rm -f conftest.make
2897fi
2898if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2900$as_echo "yes" >&6; }
2901  SET_MAKE=
2902else
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905  SET_MAKE="MAKE=${MAKE-make}"
2906fi
2907
2908for ac_prog in gawk mawk nawk awk
2909do
2910  # Extract the first word of "$ac_prog", so it can be a program name with args.
2911set dummy $ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if test "${ac_cv_prog_AWK+set}" = set; then :
2915  $as_echo_n "(cached) " >&6
2916else
2917  if test -n "$AWK"; then
2918  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  test -z "$as_dir" && as_dir=.
2925    for ac_exec_ext in '' $ac_executable_extensions; do
2926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927    ac_cv_prog_AWK="$ac_prog"
2928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929    break 2
2930  fi
2931done
2932  done
2933IFS=$as_save_IFS
2934
2935fi
2936fi
2937AWK=$ac_cv_prog_AWK
2938if test -n "$AWK"; then
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940$as_echo "$AWK" >&6; }
2941else
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
2945
2946
2947  test -n "$AWK" && break
2948done
2949
2950ac_ext=cpp
2951ac_cpp='$CXXCPP $CPPFLAGS'
2952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2955if test -z "$CXX"; then
2956  if test -n "$CCC"; then
2957    CXX=$CCC
2958  else
2959    if test -n "$ac_tool_prefix"; then
2960  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2961  do
2962    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if test "${ac_cv_prog_CXX+set}" = set; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$CXX"; then
2970  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989CXX=$ac_cv_prog_CXX
2990if test -n "$CXX"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2992$as_echo "$CXX" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998
2999    test -n "$CXX" && break
3000  done
3001fi
3002if test -z "$CXX"; then
3003  ac_ct_CXX=$CXX
3004  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3005do
3006  # Extract the first word of "$ac_prog", so it can be a program name with args.
3007set dummy $ac_prog; ac_word=$2
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009$as_echo_n "checking for $ac_word... " >&6; }
3010if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3011  $as_echo_n "(cached) " >&6
3012else
3013  if test -n "$ac_ct_CXX"; then
3014  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3015else
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019  IFS=$as_save_IFS
3020  test -z "$as_dir" && as_dir=.
3021    for ac_exec_ext in '' $ac_executable_extensions; do
3022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023    ac_cv_prog_ac_ct_CXX="$ac_prog"
3024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025    break 2
3026  fi
3027done
3028  done
3029IFS=$as_save_IFS
3030
3031fi
3032fi
3033ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3034if test -n "$ac_ct_CXX"; then
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3036$as_echo "$ac_ct_CXX" >&6; }
3037else
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039$as_echo "no" >&6; }
3040fi
3041
3042
3043  test -n "$ac_ct_CXX" && break
3044done
3045
3046  if test "x$ac_ct_CXX" = x; then
3047    CXX="g++"
3048  else
3049    case $cross_compiling:$ac_tool_warned in
3050yes:)
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3053ac_tool_warned=yes ;;
3054esac
3055    CXX=$ac_ct_CXX
3056  fi
3057fi
3058
3059  fi
3060fi
3061# Provide some information about the compiler.
3062$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3063set X $ac_compile
3064ac_compiler=$2
3065for ac_option in --version -v -V -qversion; do
3066  { { ac_try="$ac_compiler $ac_option >&5"
3067case "(($ac_try" in
3068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069  *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3074  ac_status=$?
3075  if test -s conftest.err; then
3076    sed '10a\
3077... rest of stderr output deleted ...
3078         10q' conftest.err >conftest.er1
3079    cat conftest.er1 >&5
3080  fi
3081  rm -f conftest.er1 conftest.err
3082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083  test $ac_status = 0; }
3084done
3085
3086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097ac_clean_files_save=$ac_clean_files
3098ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3099# Try to create an executable without -o first, disregard a.out.
3100# It will help us diagnose broken compilers, and finding out an intuition
3101# of exeext.
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3103$as_echo_n "checking whether the C++ compiler works... " >&6; }
3104ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105
3106# The possible output files:
3107ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108
3109ac_rmfiles=
3110for ac_file in $ac_files
3111do
3112  case $ac_file in
3113    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3115  esac
3116done
3117rm -f $ac_rmfiles
3118
3119if { { ac_try="$ac_link_default"
3120case "(($ac_try" in
3121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122  *) ac_try_echo=$ac_try;;
3123esac
3124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125$as_echo "$ac_try_echo"; } >&5
3126  (eval "$ac_link_default") 2>&5
3127  ac_status=$?
3128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129  test $ac_status = 0; }; then :
3130  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3133# so that the user can short-circuit this test for compilers unknown to
3134# Autoconf.
3135for ac_file in $ac_files ''
3136do
3137  test -f "$ac_file" || continue
3138  case $ac_file in
3139    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140	;;
3141    [ab].out )
3142	# We found the default executable, but exeext='' is most
3143	# certainly right.
3144	break;;
3145    *.* )
3146	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3147	then :; else
3148	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149	fi
3150	# We set ac_cv_exeext here because the later test for it is not
3151	# safe: cross compilers may not add the suffix if given an `-o'
3152	# argument, so we may need to know it at that point already.
3153	# Even if this section looks crufty: it has the advantage of
3154	# actually working.
3155	break;;
3156    * )
3157	break;;
3158  esac
3159done
3160test "$ac_cv_exeext" = no && ac_cv_exeext=
3161
3162else
3163  ac_file=''
3164fi
3165if test -z "$ac_file"; then :
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167$as_echo "no" >&6; }
3168$as_echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173as_fn_error 77 "C++ compiler cannot create executables
3174See \`config.log' for more details" "$LINENO" 5; }
3175else
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177$as_echo "yes" >&6; }
3178fi
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3180$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3182$as_echo "$ac_file" >&6; }
3183ac_exeext=$ac_cv_exeext
3184
3185rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3186ac_clean_files=$ac_clean_files_save
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3188$as_echo_n "checking for suffix of executables... " >&6; }
3189if { { ac_try="$ac_link"
3190case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196  (eval "$ac_link") 2>&5
3197  ac_status=$?
3198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199  test $ac_status = 0; }; then :
3200  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3201# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3202# work properly (i.e., refer to `conftest.exe'), while it won't with
3203# `rm'.
3204for ac_file in conftest.exe conftest conftest.*; do
3205  test -f "$ac_file" || continue
3206  case $ac_file in
3207    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3208    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209	  break;;
3210    * ) break;;
3211  esac
3212done
3213else
3214  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3217See \`config.log' for more details" "$LINENO" 5; }
3218fi
3219rm -f conftest conftest$ac_cv_exeext
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3221$as_echo "$ac_cv_exeext" >&6; }
3222
3223rm -f conftest.$ac_ext
3224EXEEXT=$ac_cv_exeext
3225ac_exeext=$EXEEXT
3226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227/* end confdefs.h.  */
3228#include <stdio.h>
3229int
3230main ()
3231{
3232FILE *f = fopen ("conftest.out", "w");
3233 return ferror (f) || fclose (f) != 0;
3234
3235  ;
3236  return 0;
3237}
3238_ACEOF
3239ac_clean_files="$ac_clean_files conftest.out"
3240# Check that the compiler produces executables we can run.  If not, either
3241# the compiler is broken, or we cross compile.
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243$as_echo_n "checking whether we are cross compiling... " >&6; }
3244if test "$cross_compiling" != yes; then
3245  { { ac_try="$ac_link"
3246case "(($ac_try" in
3247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248  *) ac_try_echo=$ac_try;;
3249esac
3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
3252  (eval "$ac_link") 2>&5
3253  ac_status=$?
3254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255  test $ac_status = 0; }
3256  if { ac_try='./conftest$ac_cv_exeext'
3257  { { case "(($ac_try" in
3258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259  *) ac_try_echo=$ac_try;;
3260esac
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
3263  (eval "$ac_try") 2>&5
3264  ac_status=$?
3265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266  test $ac_status = 0; }; }; then
3267    cross_compiling=no
3268  else
3269    if test "$cross_compiling" = maybe; then
3270	cross_compiling=yes
3271    else
3272	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274as_fn_error $? "cannot run C++ compiled programs.
3275If you meant to cross compile, use \`--host'.
3276See \`config.log' for more details" "$LINENO" 5; }
3277    fi
3278  fi
3279fi
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3281$as_echo "$cross_compiling" >&6; }
3282
3283rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3284ac_clean_files=$ac_clean_files_save
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3286$as_echo_n "checking for suffix of object files... " >&6; }
3287if test "${ac_cv_objext+set}" = set; then :
3288  $as_echo_n "(cached) " >&6
3289else
3290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h.  */
3292
3293int
3294main ()
3295{
3296
3297  ;
3298  return 0;
3299}
3300_ACEOF
3301rm -f conftest.o conftest.obj
3302if { { ac_try="$ac_compile"
3303case "(($ac_try" in
3304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305  *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309  (eval "$ac_compile") 2>&5
3310  ac_status=$?
3311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312  test $ac_status = 0; }; then :
3313  for ac_file in conftest.o conftest.obj conftest.*; do
3314  test -f "$ac_file" || continue;
3315  case $ac_file in
3316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3317    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3318       break;;
3319  esac
3320done
3321else
3322  $as_echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327as_fn_error $? "cannot compute suffix of object files: cannot compile
3328See \`config.log' for more details" "$LINENO" 5; }
3329fi
3330rm -f conftest.$ac_cv_objext conftest.$ac_ext
3331fi
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3333$as_echo "$ac_cv_objext" >&6; }
3334OBJEXT=$ac_cv_objext
3335ac_objext=$OBJEXT
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3337$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3338if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3339  $as_echo_n "(cached) " >&6
3340else
3341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h.  */
3343
3344int
3345main ()
3346{
3347#ifndef __GNUC__
3348       choke me
3349#endif
3350
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355if ac_fn_cxx_try_compile "$LINENO"; then :
3356  ac_compiler_gnu=yes
3357else
3358  ac_compiler_gnu=no
3359fi
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3362
3363fi
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3365$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3366if test $ac_compiler_gnu = yes; then
3367  GXX=yes
3368else
3369  GXX=
3370fi
3371ac_test_CXXFLAGS=${CXXFLAGS+set}
3372ac_save_CXXFLAGS=$CXXFLAGS
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3374$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3375if test "${ac_cv_prog_cxx_g+set}" = set; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3379   ac_cxx_werror_flag=yes
3380   ac_cv_prog_cxx_g=no
3381   CXXFLAGS="-g"
3382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383/* end confdefs.h.  */
3384
3385int
3386main ()
3387{
3388
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393if ac_fn_cxx_try_compile "$LINENO"; then :
3394  ac_cv_prog_cxx_g=yes
3395else
3396  CXXFLAGS=""
3397      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h.  */
3399
3400int
3401main ()
3402{
3403
3404  ;
3405  return 0;
3406}
3407_ACEOF
3408if ac_fn_cxx_try_compile "$LINENO"; then :
3409
3410else
3411  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3412	 CXXFLAGS="-g"
3413	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h.  */
3415
3416int
3417main ()
3418{
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424if ac_fn_cxx_try_compile "$LINENO"; then :
3425  ac_cv_prog_cxx_g=yes
3426fi
3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428fi
3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430fi
3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3433fi
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3435$as_echo "$ac_cv_prog_cxx_g" >&6; }
3436if test "$ac_test_CXXFLAGS" = set; then
3437  CXXFLAGS=$ac_save_CXXFLAGS
3438elif test $ac_cv_prog_cxx_g = yes; then
3439  if test "$GXX" = yes; then
3440    CXXFLAGS="-g -O2"
3441  else
3442    CXXFLAGS="-g"
3443  fi
3444else
3445  if test "$GXX" = yes; then
3446    CXXFLAGS="-O2"
3447  else
3448    CXXFLAGS=
3449  fi
3450fi
3451ac_ext=c
3452ac_cpp='$CPP $CPPFLAGS'
3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456DEPDIR="${am__leading_dot}deps"
3457
3458ac_config_commands="$ac_config_commands depfiles"
3459
3460
3461am_make=${MAKE-make}
3462cat > confinc << 'END'
3463am__doit:
3464	@echo this is the am__doit target
3465.PHONY: am__doit
3466END
3467# If we don't find an include directive, just comment out the code.
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3469$as_echo_n "checking for style of include used by $am_make... " >&6; }
3470am__include="#"
3471am__quote=
3472_am_result=none
3473# First try GNU make style include.
3474echo "include confinc" > confmf
3475# Ignore all kinds of additional output from `make'.
3476case `$am_make -s -f confmf 2> /dev/null` in #(
3477*the\ am__doit\ target*)
3478  am__include=include
3479  am__quote=
3480  _am_result=GNU
3481  ;;
3482esac
3483# Now try BSD make style include.
3484if test "$am__include" = "#"; then
3485   echo '.include "confinc"' > confmf
3486   case `$am_make -s -f confmf 2> /dev/null` in #(
3487   *the\ am__doit\ target*)
3488     am__include=.include
3489     am__quote="\""
3490     _am_result=BSD
3491     ;;
3492   esac
3493fi
3494
3495
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3497$as_echo "$_am_result" >&6; }
3498rm -f confinc confmf
3499
3500# Check whether --enable-dependency-tracking was given.
3501if test "${enable_dependency_tracking+set}" = set; then :
3502  enableval=$enable_dependency_tracking;
3503fi
3504
3505if test "x$enable_dependency_tracking" != xno; then
3506  am_depcomp="$ac_aux_dir/depcomp"
3507  AMDEPBACKSLASH='\'
3508fi
3509 if test "x$enable_dependency_tracking" != xno; then
3510  AMDEP_TRUE=
3511  AMDEP_FALSE='#'
3512else
3513  AMDEP_TRUE='#'
3514  AMDEP_FALSE=
3515fi
3516
3517
3518
3519depcc="$CXX"  am_compiler_list=
3520
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3522$as_echo_n "checking dependency style of $depcc... " >&6; }
3523if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3527  # We make a subdir and do the tests there.  Otherwise we can end up
3528  # making bogus files that we don't know about and never remove.  For
3529  # instance it was reported that on HP-UX the gcc test will end up
3530  # making a dummy file named `D' -- because `-MD' means `put the output
3531  # in D'.
3532  mkdir conftest.dir
3533  # Copy depcomp to subdir because otherwise we won't find it if we're
3534  # using a relative directory.
3535  cp "$am_depcomp" conftest.dir
3536  cd conftest.dir
3537  # We will build objects and dependencies in a subdirectory because
3538  # it helps to detect inapplicable dependency modes.  For instance
3539  # both Tru64's cc and ICC support -MD to output dependencies as a
3540  # side effect of compilation, but ICC will put the dependencies in
3541  # the current directory while Tru64 will put them in the object
3542  # directory.
3543  mkdir sub
3544
3545  am_cv_CXX_dependencies_compiler_type=none
3546  if test "$am_compiler_list" = ""; then
3547     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3548  fi
3549  am__universal=false
3550  case " $depcc " in #(
3551     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3552     esac
3553
3554  for depmode in $am_compiler_list; do
3555    # Setup a source with many dependencies, because some compilers
3556    # like to wrap large dependency lists on column 80 (with \), and
3557    # we should not choose a depcomp mode which is confused by this.
3558    #
3559    # We need to recreate these files for each test, as the compiler may
3560    # overwrite some of them when testing with obscure command lines.
3561    # This happens at least with the AIX C compiler.
3562    : > sub/conftest.c
3563    for i in 1 2 3 4 5 6; do
3564      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3565      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3566      # Solaris 8's {/usr,}/bin/sh.
3567      touch sub/conftst$i.h
3568    done
3569    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3570
3571    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3572    # mode.  It turns out that the SunPro C++ compiler does not properly
3573    # handle `-M -o', and we need to detect this.  Also, some Intel
3574    # versions had trouble with output in subdirs
3575    am__obj=sub/conftest.${OBJEXT-o}
3576    am__minus_obj="-o $am__obj"
3577    case $depmode in
3578    gcc)
3579      # This depmode causes a compiler race in universal mode.
3580      test "$am__universal" = false || continue
3581      ;;
3582    nosideeffect)
3583      # after this tag, mechanisms are not by side-effect, so they'll
3584      # only be used when explicitly requested
3585      if test "x$enable_dependency_tracking" = xyes; then
3586	continue
3587      else
3588	break
3589      fi
3590      ;;
3591    msvisualcpp | msvcmsys)
3592      # This compiler won't grok `-c -o', but also, the minuso test has
3593      # not run yet.  These depmodes are late enough in the game, and
3594      # so weak that their functioning should not be impacted.
3595      am__obj=conftest.${OBJEXT-o}
3596      am__minus_obj=
3597      ;;
3598    none) break ;;
3599    esac
3600    if depmode=$depmode \
3601       source=sub/conftest.c object=$am__obj \
3602       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3603       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3604         >/dev/null 2>conftest.err &&
3605       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3606       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3608       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609      # icc doesn't choke on unknown options, it will just issue warnings
3610      # or remarks (even with -Werror).  So we grep stderr for any message
3611      # that says an option was ignored or not supported.
3612      # When given -MP, icc 7.0 and 7.1 complain thusly:
3613      #   icc: Command line warning: ignoring option '-M'; no argument required
3614      # The diagnosis changed in icc 8.0:
3615      #   icc: Command line remark: option '-MP' not supported
3616      if (grep 'ignoring option' conftest.err ||
3617          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618        am_cv_CXX_dependencies_compiler_type=$depmode
3619        break
3620      fi
3621    fi
3622  done
3623
3624  cd ..
3625  rm -rf conftest.dir
3626else
3627  am_cv_CXX_dependencies_compiler_type=none
3628fi
3629
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3633CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3634
3635 if
3636  test "x$enable_dependency_tracking" != xno \
3637  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3638  am__fastdepCXX_TRUE=
3639  am__fastdepCXX_FALSE='#'
3640else
3641  am__fastdepCXX_TRUE='#'
3642  am__fastdepCXX_FALSE=
3643fi
3644
3645
3646
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3648$as_echo_n "checking whether ln -s works... " >&6; }
3649LN_S=$as_ln_s
3650if test "$LN_S" = "ln -s"; then
3651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3652$as_echo "yes" >&6; }
3653else
3654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3655$as_echo "no, using $LN_S" >&6; }
3656fi
3657
3658ac_ext=c
3659ac_cpp='$CPP $CPPFLAGS'
3660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663if test -n "$ac_tool_prefix"; then
3664  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3665set dummy ${ac_tool_prefix}gcc; ac_word=$2
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667$as_echo_n "checking for $ac_word... " >&6; }
3668if test "${ac_cv_prog_CC+set}" = set; then :
3669  $as_echo_n "(cached) " >&6
3670else
3671  if test -n "$CC"; then
3672  ac_cv_prog_CC="$CC" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677  IFS=$as_save_IFS
3678  test -z "$as_dir" && as_dir=.
3679    for ac_exec_ext in '' $ac_executable_extensions; do
3680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683    break 2
3684  fi
3685done
3686  done
3687IFS=$as_save_IFS
3688
3689fi
3690fi
3691CC=$ac_cv_prog_CC
3692if test -n "$CC"; then
3693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694$as_echo "$CC" >&6; }
3695else
3696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697$as_echo "no" >&6; }
3698fi
3699
3700
3701fi
3702if test -z "$ac_cv_prog_CC"; then
3703  ac_ct_CC=$CC
3704  # Extract the first word of "gcc", so it can be a program name with args.
3705set dummy gcc; ac_word=$2
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707$as_echo_n "checking for $ac_word... " >&6; }
3708if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3709  $as_echo_n "(cached) " >&6
3710else
3711  if test -n "$ac_ct_CC"; then
3712  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713else
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717  IFS=$as_save_IFS
3718  test -z "$as_dir" && as_dir=.
3719    for ac_exec_ext in '' $ac_executable_extensions; do
3720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721    ac_cv_prog_ac_ct_CC="gcc"
3722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723    break 2
3724  fi
3725done
3726  done
3727IFS=$as_save_IFS
3728
3729fi
3730fi
3731ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732if test -n "$ac_ct_CC"; then
3733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734$as_echo "$ac_ct_CC" >&6; }
3735else
3736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737$as_echo "no" >&6; }
3738fi
3739
3740  if test "x$ac_ct_CC" = x; then
3741    CC=""
3742  else
3743    case $cross_compiling:$ac_tool_warned in
3744yes:)
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747ac_tool_warned=yes ;;
3748esac
3749    CC=$ac_ct_CC
3750  fi
3751else
3752  CC="$ac_cv_prog_CC"
3753fi
3754
3755if test -z "$CC"; then
3756          if test -n "$ac_tool_prefix"; then
3757    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3758set dummy ${ac_tool_prefix}cc; ac_word=$2
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760$as_echo_n "checking for $ac_word... " >&6; }
3761if test "${ac_cv_prog_CC+set}" = set; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  if test -n "$CC"; then
3765  ac_cv_prog_CC="$CC" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770  IFS=$as_save_IFS
3771  test -z "$as_dir" && as_dir=.
3772    for ac_exec_ext in '' $ac_executable_extensions; do
3773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774    ac_cv_prog_CC="${ac_tool_prefix}cc"
3775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776    break 2
3777  fi
3778done
3779  done
3780IFS=$as_save_IFS
3781
3782fi
3783fi
3784CC=$ac_cv_prog_CC
3785if test -n "$CC"; then
3786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787$as_echo "$CC" >&6; }
3788else
3789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
3791fi
3792
3793
3794  fi
3795fi
3796if test -z "$CC"; then
3797  # Extract the first word of "cc", so it can be a program name with args.
3798set dummy cc; ac_word=$2
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800$as_echo_n "checking for $ac_word... " >&6; }
3801if test "${ac_cv_prog_CC+set}" = set; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  if test -n "$CC"; then
3805  ac_cv_prog_CC="$CC" # Let the user override the test.
3806else
3807  ac_prog_rejected=no
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811  IFS=$as_save_IFS
3812  test -z "$as_dir" && as_dir=.
3813    for ac_exec_ext in '' $ac_executable_extensions; do
3814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3816       ac_prog_rejected=yes
3817       continue
3818     fi
3819    ac_cv_prog_CC="cc"
3820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821    break 2
3822  fi
3823done
3824  done
3825IFS=$as_save_IFS
3826
3827if test $ac_prog_rejected = yes; then
3828  # We found a bogon in the path, so make sure we never use it.
3829  set dummy $ac_cv_prog_CC
3830  shift
3831  if test $# != 0; then
3832    # We chose a different compiler from the bogus one.
3833    # However, it has the same basename, so the bogon will be chosen
3834    # first if we set CC to just the basename; use the full file name.
3835    shift
3836    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3837  fi
3838fi
3839fi
3840fi
3841CC=$ac_cv_prog_CC
3842if test -n "$CC"; then
3843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3844$as_echo "$CC" >&6; }
3845else
3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847$as_echo "no" >&6; }
3848fi
3849
3850
3851fi
3852if test -z "$CC"; then
3853  if test -n "$ac_tool_prefix"; then
3854  for ac_prog in cl.exe
3855  do
3856    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3857set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859$as_echo_n "checking for $ac_word... " >&6; }
3860if test "${ac_cv_prog_CC+set}" = set; then :
3861  $as_echo_n "(cached) " >&6
3862else
3863  if test -n "$CC"; then
3864  ac_cv_prog_CC="$CC" # Let the user override the test.
3865else
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869  IFS=$as_save_IFS
3870  test -z "$as_dir" && as_dir=.
3871    for ac_exec_ext in '' $ac_executable_extensions; do
3872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3873    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875    break 2
3876  fi
3877done
3878  done
3879IFS=$as_save_IFS
3880
3881fi
3882fi
3883CC=$ac_cv_prog_CC
3884if test -n "$CC"; then
3885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3886$as_echo "$CC" >&6; }
3887else
3888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889$as_echo "no" >&6; }
3890fi
3891
3892
3893    test -n "$CC" && break
3894  done
3895fi
3896if test -z "$CC"; then
3897  ac_ct_CC=$CC
3898  for ac_prog in cl.exe
3899do
3900  # Extract the first word of "$ac_prog", so it can be a program name with args.
3901set dummy $ac_prog; ac_word=$2
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903$as_echo_n "checking for $ac_word... " >&6; }
3904if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  if test -n "$ac_ct_CC"; then
3908  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3909else
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915    for ac_exec_ext in '' $ac_executable_extensions; do
3916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917    ac_cv_prog_ac_ct_CC="$ac_prog"
3918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919    break 2
3920  fi
3921done
3922  done
3923IFS=$as_save_IFS
3924
3925fi
3926fi
3927ac_ct_CC=$ac_cv_prog_ac_ct_CC
3928if test -n "$ac_ct_CC"; then
3929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3930$as_echo "$ac_ct_CC" >&6; }
3931else
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934fi
3935
3936
3937  test -n "$ac_ct_CC" && break
3938done
3939
3940  if test "x$ac_ct_CC" = x; then
3941    CC=""
3942  else
3943    case $cross_compiling:$ac_tool_warned in
3944yes:)
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3947ac_tool_warned=yes ;;
3948esac
3949    CC=$ac_ct_CC
3950  fi
3951fi
3952
3953fi
3954
3955
3956test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958as_fn_error $? "no acceptable C compiler found in \$PATH
3959See \`config.log' for more details" "$LINENO" 5; }
3960
3961# Provide some information about the compiler.
3962$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3963set X $ac_compile
3964ac_compiler=$2
3965for ac_option in --version -v -V -qversion; do
3966  { { ac_try="$ac_compiler $ac_option >&5"
3967case "(($ac_try" in
3968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969  *) ac_try_echo=$ac_try;;
3970esac
3971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972$as_echo "$ac_try_echo"; } >&5
3973  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3974  ac_status=$?
3975  if test -s conftest.err; then
3976    sed '10a\
3977... rest of stderr output deleted ...
3978         10q' conftest.err >conftest.er1
3979    cat conftest.er1 >&5
3980  fi
3981  rm -f conftest.er1 conftest.err
3982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983  test $ac_status = 0; }
3984done
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3987$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3988if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3989  $as_echo_n "(cached) " >&6
3990else
3991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h.  */
3993
3994int
3995main ()
3996{
3997#ifndef __GNUC__
3998       choke me
3999#endif
4000
4001  ;
4002  return 0;
4003}
4004_ACEOF
4005if ac_fn_c_try_compile "$LINENO"; then :
4006  ac_compiler_gnu=yes
4007else
4008  ac_compiler_gnu=no
4009fi
4010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011ac_cv_c_compiler_gnu=$ac_compiler_gnu
4012
4013fi
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4015$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4016if test $ac_compiler_gnu = yes; then
4017  GCC=yes
4018else
4019  GCC=
4020fi
4021ac_test_CFLAGS=${CFLAGS+set}
4022ac_save_CFLAGS=$CFLAGS
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4024$as_echo_n "checking whether $CC accepts -g... " >&6; }
4025if test "${ac_cv_prog_cc_g+set}" = set; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028  ac_save_c_werror_flag=$ac_c_werror_flag
4029   ac_c_werror_flag=yes
4030   ac_cv_prog_cc_g=no
4031   CFLAGS="-g"
4032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h.  */
4034
4035int
4036main ()
4037{
4038
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043if ac_fn_c_try_compile "$LINENO"; then :
4044  ac_cv_prog_cc_g=yes
4045else
4046  CFLAGS=""
4047      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h.  */
4049
4050int
4051main ()
4052{
4053
4054  ;
4055  return 0;
4056}
4057_ACEOF
4058if ac_fn_c_try_compile "$LINENO"; then :
4059
4060else
4061  ac_c_werror_flag=$ac_save_c_werror_flag
4062	 CFLAGS="-g"
4063	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065
4066int
4067main ()
4068{
4069
4070  ;
4071  return 0;
4072}
4073_ACEOF
4074if ac_fn_c_try_compile "$LINENO"; then :
4075  ac_cv_prog_cc_g=yes
4076fi
4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078fi
4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080fi
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082   ac_c_werror_flag=$ac_save_c_werror_flag
4083fi
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4085$as_echo "$ac_cv_prog_cc_g" >&6; }
4086if test "$ac_test_CFLAGS" = set; then
4087  CFLAGS=$ac_save_CFLAGS
4088elif test $ac_cv_prog_cc_g = yes; then
4089  if test "$GCC" = yes; then
4090    CFLAGS="-g -O2"
4091  else
4092    CFLAGS="-g"
4093  fi
4094else
4095  if test "$GCC" = yes; then
4096    CFLAGS="-O2"
4097  else
4098    CFLAGS=
4099  fi
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4102$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4103if test "${ac_cv_prog_cc_c89+set}" = set; then :
4104  $as_echo_n "(cached) " >&6
4105else
4106  ac_cv_prog_cc_c89=no
4107ac_save_CC=$CC
4108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110#include <stdarg.h>
4111#include <stdio.h>
4112#include <sys/types.h>
4113#include <sys/stat.h>
4114/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4115struct buf { int x; };
4116FILE * (*rcsopen) (struct buf *, struct stat *, int);
4117static char *e (p, i)
4118     char **p;
4119     int i;
4120{
4121  return p[i];
4122}
4123static char *f (char * (*g) (char **, int), char **p, ...)
4124{
4125  char *s;
4126  va_list v;
4127  va_start (v,p);
4128  s = g (p, va_arg (v,int));
4129  va_end (v);
4130  return s;
4131}
4132
4133/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4134   function prototypes and stuff, but not '\xHH' hex character constants.
4135   These don't provoke an error unfortunately, instead are silently treated
4136   as 'x'.  The following induces an error, until -std is added to get
4137   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4138   array size at least.  It's necessary to write '\x00'==0 to get something
4139   that's true only with -std.  */
4140int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4141
4142/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4143   inside strings and character constants.  */
4144#define FOO(x) 'x'
4145int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4146
4147int test (int i, double x);
4148struct s1 {int (*f) (int a);};
4149struct s2 {int (*f) (double a);};
4150int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151int argc;
4152char **argv;
4153int
4154main ()
4155{
4156return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4157  ;
4158  return 0;
4159}
4160_ACEOF
4161for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4162	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4163do
4164  CC="$ac_save_CC $ac_arg"
4165  if ac_fn_c_try_compile "$LINENO"; then :
4166  ac_cv_prog_cc_c89=$ac_arg
4167fi
4168rm -f core conftest.err conftest.$ac_objext
4169  test "x$ac_cv_prog_cc_c89" != "xno" && break
4170done
4171rm -f conftest.$ac_ext
4172CC=$ac_save_CC
4173
4174fi
4175# AC_CACHE_VAL
4176case "x$ac_cv_prog_cc_c89" in
4177  x)
4178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4179$as_echo "none needed" >&6; } ;;
4180  xno)
4181    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4182$as_echo "unsupported" >&6; } ;;
4183  *)
4184    CC="$CC $ac_cv_prog_cc_c89"
4185    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4186$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4187esac
4188if test "x$ac_cv_prog_cc_c89" != xno; then :
4189
4190fi
4191
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198depcc="$CC"   am_compiler_list=
4199
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4201$as_echo_n "checking dependency style of $depcc... " >&6; }
4202if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4203  $as_echo_n "(cached) " >&6
4204else
4205  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4206  # We make a subdir and do the tests there.  Otherwise we can end up
4207  # making bogus files that we don't know about and never remove.  For
4208  # instance it was reported that on HP-UX the gcc test will end up
4209  # making a dummy file named `D' -- because `-MD' means `put the output
4210  # in D'.
4211  mkdir conftest.dir
4212  # Copy depcomp to subdir because otherwise we won't find it if we're
4213  # using a relative directory.
4214  cp "$am_depcomp" conftest.dir
4215  cd conftest.dir
4216  # We will build objects and dependencies in a subdirectory because
4217  # it helps to detect inapplicable dependency modes.  For instance
4218  # both Tru64's cc and ICC support -MD to output dependencies as a
4219  # side effect of compilation, but ICC will put the dependencies in
4220  # the current directory while Tru64 will put them in the object
4221  # directory.
4222  mkdir sub
4223
4224  am_cv_CC_dependencies_compiler_type=none
4225  if test "$am_compiler_list" = ""; then
4226     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4227  fi
4228  am__universal=false
4229  case " $depcc " in #(
4230     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4231     esac
4232
4233  for depmode in $am_compiler_list; do
4234    # Setup a source with many dependencies, because some compilers
4235    # like to wrap large dependency lists on column 80 (with \), and
4236    # we should not choose a depcomp mode which is confused by this.
4237    #
4238    # We need to recreate these files for each test, as the compiler may
4239    # overwrite some of them when testing with obscure command lines.
4240    # This happens at least with the AIX C compiler.
4241    : > sub/conftest.c
4242    for i in 1 2 3 4 5 6; do
4243      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4244      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4245      # Solaris 8's {/usr,}/bin/sh.
4246      touch sub/conftst$i.h
4247    done
4248    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4249
4250    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4251    # mode.  It turns out that the SunPro C++ compiler does not properly
4252    # handle `-M -o', and we need to detect this.  Also, some Intel
4253    # versions had trouble with output in subdirs
4254    am__obj=sub/conftest.${OBJEXT-o}
4255    am__minus_obj="-o $am__obj"
4256    case $depmode in
4257    gcc)
4258      # This depmode causes a compiler race in universal mode.
4259      test "$am__universal" = false || continue
4260      ;;
4261    nosideeffect)
4262      # after this tag, mechanisms are not by side-effect, so they'll
4263      # only be used when explicitly requested
4264      if test "x$enable_dependency_tracking" = xyes; then
4265	continue
4266      else
4267	break
4268      fi
4269      ;;
4270    msvisualcpp | msvcmsys)
4271      # This compiler won't grok `-c -o', but also, the minuso test has
4272      # not run yet.  These depmodes are late enough in the game, and
4273      # so weak that their functioning should not be impacted.
4274      am__obj=conftest.${OBJEXT-o}
4275      am__minus_obj=
4276      ;;
4277    none) break ;;
4278    esac
4279    if depmode=$depmode \
4280       source=sub/conftest.c object=$am__obj \
4281       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4282       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4283         >/dev/null 2>conftest.err &&
4284       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4285       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4286       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4287       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4288      # icc doesn't choke on unknown options, it will just issue warnings
4289      # or remarks (even with -Werror).  So we grep stderr for any message
4290      # that says an option was ignored or not supported.
4291      # When given -MP, icc 7.0 and 7.1 complain thusly:
4292      #   icc: Command line warning: ignoring option '-M'; no argument required
4293      # The diagnosis changed in icc 8.0:
4294      #   icc: Command line remark: option '-MP' not supported
4295      if (grep 'ignoring option' conftest.err ||
4296          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4297        am_cv_CC_dependencies_compiler_type=$depmode
4298        break
4299      fi
4300    fi
4301  done
4302
4303  cd ..
4304  rm -rf conftest.dir
4305else
4306  am_cv_CC_dependencies_compiler_type=none
4307fi
4308
4309fi
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4311$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4312CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4313
4314 if
4315  test "x$enable_dependency_tracking" != xno \
4316  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4317  am__fastdepCC_TRUE=
4318  am__fastdepCC_FALSE='#'
4319else
4320  am__fastdepCC_TRUE='#'
4321  am__fastdepCC_FALSE=
4322fi
4323
4324
4325enable_dlopen=yes
4326
4327
4328
4329case `pwd` in
4330  *\ * | *\	*)
4331    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4332$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4333esac
4334
4335
4336
4337macro_version='2.2.10'
4338macro_revision='1.3175'
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352ltmain="$ac_aux_dir/ltmain.sh"
4353
4354# Make sure we can run config.sub.
4355$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4356  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4357
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4359$as_echo_n "checking build system type... " >&6; }
4360if test "${ac_cv_build+set}" = set; then :
4361  $as_echo_n "(cached) " >&6
4362else
4363  ac_build_alias=$build_alias
4364test "x$ac_build_alias" = x &&
4365  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4366test "x$ac_build_alias" = x &&
4367  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4368ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4369  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4370
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4373$as_echo "$ac_cv_build" >&6; }
4374case $ac_cv_build in
4375*-*-*) ;;
4376*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4377esac
4378build=$ac_cv_build
4379ac_save_IFS=$IFS; IFS='-'
4380set x $ac_cv_build
4381shift
4382build_cpu=$1
4383build_vendor=$2
4384shift; shift
4385# Remember, the first character of IFS is used to create $*,
4386# except with old shells:
4387build_os=$*
4388IFS=$ac_save_IFS
4389case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4390
4391
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4393$as_echo_n "checking host system type... " >&6; }
4394if test "${ac_cv_host+set}" = set; then :
4395  $as_echo_n "(cached) " >&6
4396else
4397  if test "x$host_alias" = x; then
4398  ac_cv_host=$ac_cv_build
4399else
4400  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4401    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4402fi
4403
4404fi
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4406$as_echo "$ac_cv_host" >&6; }
4407case $ac_cv_host in
4408*-*-*) ;;
4409*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4410esac
4411host=$ac_cv_host
4412ac_save_IFS=$IFS; IFS='-'
4413set x $ac_cv_host
4414shift
4415host_cpu=$1
4416host_vendor=$2
4417shift; shift
4418# Remember, the first character of IFS is used to create $*,
4419# except with old shells:
4420host_os=$*
4421IFS=$ac_save_IFS
4422case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4423
4424
4425# Backslashify metacharacters that are still active within
4426# double-quoted strings.
4427sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4428
4429# Same as above, but do not quote variable references.
4430double_quote_subst='s/\(["`\\]\)/\\\1/g'
4431
4432# Sed substitution to delay expansion of an escaped shell variable in a
4433# double_quote_subst'ed string.
4434delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4435
4436# Sed substitution to delay expansion of an escaped single quote.
4437delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4438
4439# Sed substitution to avoid accidental globbing in evaled expressions
4440no_glob_subst='s/\*/\\\*/g'
4441
4442ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4443ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4444ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4445
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4447$as_echo_n "checking how to print strings... " >&6; }
4448# Test print first, because it will be a builtin if present.
4449if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4450   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4451  ECHO='print -r --'
4452elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4453  ECHO='printf %s\n'
4454else
4455  # Use this function as a fallback that always works.
4456  func_fallback_echo ()
4457  {
4458    eval 'cat <<_LTECHO_EOF
4459$1
4460_LTECHO_EOF'
4461  }
4462  ECHO='func_fallback_echo'
4463fi
4464
4465# func_echo_all arg...
4466# Invoke $ECHO with all args, space-separated.
4467func_echo_all ()
4468{
4469    $ECHO ""
4470}
4471
4472case "$ECHO" in
4473  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4474$as_echo "printf" >&6; } ;;
4475  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4476$as_echo "print -r" >&6; } ;;
4477  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4478$as_echo "cat" >&6; } ;;
4479esac
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4495$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4496if test "${ac_cv_path_SED+set}" = set; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4500     for ac_i in 1 2 3 4 5 6 7; do
4501       ac_script="$ac_script$as_nl$ac_script"
4502     done
4503     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4504     { ac_script=; unset ac_script;}
4505     if test -z "$SED"; then
4506  ac_path_SED_found=false
4507  # Loop through the user's path and test for each of PROGNAME-LIST
4508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511  IFS=$as_save_IFS
4512  test -z "$as_dir" && as_dir=.
4513    for ac_prog in sed gsed; do
4514    for ac_exec_ext in '' $ac_executable_extensions; do
4515      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4516      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4517# Check for GNU ac_path_SED and select it if it is found.
4518  # Check for GNU $ac_path_SED
4519case `"$ac_path_SED" --version 2>&1` in
4520*GNU*)
4521  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4522*)
4523  ac_count=0
4524  $as_echo_n 0123456789 >"conftest.in"
4525  while :
4526  do
4527    cat "conftest.in" "conftest.in" >"conftest.tmp"
4528    mv "conftest.tmp" "conftest.in"
4529    cp "conftest.in" "conftest.nl"
4530    $as_echo '' >> "conftest.nl"
4531    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533    as_fn_arith $ac_count + 1 && ac_count=$as_val
4534    if test $ac_count -gt ${ac_path_SED_max-0}; then
4535      # Best one so far, save it but keep looking for a better one
4536      ac_cv_path_SED="$ac_path_SED"
4537      ac_path_SED_max=$ac_count
4538    fi
4539    # 10*(2^10) chars as input seems more than enough
4540    test $ac_count -gt 10 && break
4541  done
4542  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543esac
4544
4545      $ac_path_SED_found && break 3
4546    done
4547  done
4548  done
4549IFS=$as_save_IFS
4550  if test -z "$ac_cv_path_SED"; then
4551    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4552  fi
4553else
4554  ac_cv_path_SED=$SED
4555fi
4556
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4559$as_echo "$ac_cv_path_SED" >&6; }
4560 SED="$ac_cv_path_SED"
4561  rm -f conftest.sed
4562
4563test -z "$SED" && SED=sed
4564Xsed="$SED -e 1s/^X//"
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4577$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578if test "${ac_cv_path_GREP+set}" = set; then :
4579  $as_echo_n "(cached) " >&6
4580else
4581  if test -z "$GREP"; then
4582  ac_path_GREP_found=false
4583  # Loop through the user's path and test for each of PROGNAME-LIST
4584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586do
4587  IFS=$as_save_IFS
4588  test -z "$as_dir" && as_dir=.
4589    for ac_prog in grep ggrep; do
4590    for ac_exec_ext in '' $ac_executable_extensions; do
4591      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593# Check for GNU ac_path_GREP and select it if it is found.
4594  # Check for GNU $ac_path_GREP
4595case `"$ac_path_GREP" --version 2>&1` in
4596*GNU*)
4597  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4598*)
4599  ac_count=0
4600  $as_echo_n 0123456789 >"conftest.in"
4601  while :
4602  do
4603    cat "conftest.in" "conftest.in" >"conftest.tmp"
4604    mv "conftest.tmp" "conftest.in"
4605    cp "conftest.in" "conftest.nl"
4606    $as_echo 'GREP' >> "conftest.nl"
4607    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609    as_fn_arith $ac_count + 1 && ac_count=$as_val
4610    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611      # Best one so far, save it but keep looking for a better one
4612      ac_cv_path_GREP="$ac_path_GREP"
4613      ac_path_GREP_max=$ac_count
4614    fi
4615    # 10*(2^10) chars as input seems more than enough
4616    test $ac_count -gt 10 && break
4617  done
4618  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619esac
4620
4621      $ac_path_GREP_found && break 3
4622    done
4623  done
4624  done
4625IFS=$as_save_IFS
4626  if test -z "$ac_cv_path_GREP"; then
4627    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628  fi
4629else
4630  ac_cv_path_GREP=$GREP
4631fi
4632
4633fi
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4635$as_echo "$ac_cv_path_GREP" >&6; }
4636 GREP="$ac_cv_path_GREP"
4637
4638
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4640$as_echo_n "checking for egrep... " >&6; }
4641if test "${ac_cv_path_EGREP+set}" = set; then :
4642  $as_echo_n "(cached) " >&6
4643else
4644  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4645   then ac_cv_path_EGREP="$GREP -E"
4646   else
4647     if test -z "$EGREP"; then
4648  ac_path_EGREP_found=false
4649  # Loop through the user's path and test for each of PROGNAME-LIST
4650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652do
4653  IFS=$as_save_IFS
4654  test -z "$as_dir" && as_dir=.
4655    for ac_prog in egrep; do
4656    for ac_exec_ext in '' $ac_executable_extensions; do
4657      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4658      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4659# Check for GNU ac_path_EGREP and select it if it is found.
4660  # Check for GNU $ac_path_EGREP
4661case `"$ac_path_EGREP" --version 2>&1` in
4662*GNU*)
4663  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664*)
4665  ac_count=0
4666  $as_echo_n 0123456789 >"conftest.in"
4667  while :
4668  do
4669    cat "conftest.in" "conftest.in" >"conftest.tmp"
4670    mv "conftest.tmp" "conftest.in"
4671    cp "conftest.in" "conftest.nl"
4672    $as_echo 'EGREP' >> "conftest.nl"
4673    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675    as_fn_arith $ac_count + 1 && ac_count=$as_val
4676    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4677      # Best one so far, save it but keep looking for a better one
4678      ac_cv_path_EGREP="$ac_path_EGREP"
4679      ac_path_EGREP_max=$ac_count
4680    fi
4681    # 10*(2^10) chars as input seems more than enough
4682    test $ac_count -gt 10 && break
4683  done
4684  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685esac
4686
4687      $ac_path_EGREP_found && break 3
4688    done
4689  done
4690  done
4691IFS=$as_save_IFS
4692  if test -z "$ac_cv_path_EGREP"; then
4693    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4694  fi
4695else
4696  ac_cv_path_EGREP=$EGREP
4697fi
4698
4699   fi
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4702$as_echo "$ac_cv_path_EGREP" >&6; }
4703 EGREP="$ac_cv_path_EGREP"
4704
4705
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4707$as_echo_n "checking for fgrep... " >&6; }
4708if test "${ac_cv_path_FGREP+set}" = set; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4712   then ac_cv_path_FGREP="$GREP -F"
4713   else
4714     if test -z "$FGREP"; then
4715  ac_path_FGREP_found=false
4716  # Loop through the user's path and test for each of PROGNAME-LIST
4717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4719do
4720  IFS=$as_save_IFS
4721  test -z "$as_dir" && as_dir=.
4722    for ac_prog in fgrep; do
4723    for ac_exec_ext in '' $ac_executable_extensions; do
4724      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4725      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4726# Check for GNU ac_path_FGREP and select it if it is found.
4727  # Check for GNU $ac_path_FGREP
4728case `"$ac_path_FGREP" --version 2>&1` in
4729*GNU*)
4730  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4731*)
4732  ac_count=0
4733  $as_echo_n 0123456789 >"conftest.in"
4734  while :
4735  do
4736    cat "conftest.in" "conftest.in" >"conftest.tmp"
4737    mv "conftest.tmp" "conftest.in"
4738    cp "conftest.in" "conftest.nl"
4739    $as_echo 'FGREP' >> "conftest.nl"
4740    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742    as_fn_arith $ac_count + 1 && ac_count=$as_val
4743    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4744      # Best one so far, save it but keep looking for a better one
4745      ac_cv_path_FGREP="$ac_path_FGREP"
4746      ac_path_FGREP_max=$ac_count
4747    fi
4748    # 10*(2^10) chars as input seems more than enough
4749    test $ac_count -gt 10 && break
4750  done
4751  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752esac
4753
4754      $ac_path_FGREP_found && break 3
4755    done
4756  done
4757  done
4758IFS=$as_save_IFS
4759  if test -z "$ac_cv_path_FGREP"; then
4760    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4761  fi
4762else
4763  ac_cv_path_FGREP=$FGREP
4764fi
4765
4766   fi
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4769$as_echo "$ac_cv_path_FGREP" >&6; }
4770 FGREP="$ac_cv_path_FGREP"
4771
4772
4773test -z "$GREP" && GREP=grep
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793# Check whether --with-gnu-ld was given.
4794if test "${with_gnu_ld+set}" = set; then :
4795  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4796else
4797  with_gnu_ld=no
4798fi
4799
4800ac_prog=ld
4801if test "$GCC" = yes; then
4802  # Check if gcc -print-prog-name=ld gives a path.
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4804$as_echo_n "checking for ld used by $CC... " >&6; }
4805  case $host in
4806  *-*-mingw*)
4807    # gcc leaves a trailing carriage return which upsets mingw
4808    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4809  *)
4810    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4811  esac
4812  case $ac_prog in
4813    # Accept absolute paths.
4814    [\\/]* | ?:[\\/]*)
4815      re_direlt='/[^/][^/]*/\.\./'
4816      # Canonicalize the pathname of ld
4817      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4818      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4819	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4820      done
4821      test -z "$LD" && LD="$ac_prog"
4822      ;;
4823  "")
4824    # If it fails, then pretend we aren't using GCC.
4825    ac_prog=ld
4826    ;;
4827  *)
4828    # If it is relative, then search for the first ld in PATH.
4829    with_gnu_ld=unknown
4830    ;;
4831  esac
4832elif test "$with_gnu_ld" = yes; then
4833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4834$as_echo_n "checking for GNU ld... " >&6; }
4835else
4836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4837$as_echo_n "checking for non-GNU ld... " >&6; }
4838fi
4839if test "${lt_cv_path_LD+set}" = set; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  if test -z "$LD"; then
4843  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4844  for ac_dir in $PATH; do
4845    IFS="$lt_save_ifs"
4846    test -z "$ac_dir" && ac_dir=.
4847    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4848      lt_cv_path_LD="$ac_dir/$ac_prog"
4849      # Check to see if the program is GNU ld.  I'd rather use --version,
4850      # but apparently some variants of GNU ld only accept -v.
4851      # Break only if it was the GNU/non-GNU ld that we prefer.
4852      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4853      *GNU* | *'with BFD'*)
4854	test "$with_gnu_ld" != no && break
4855	;;
4856      *)
4857	test "$with_gnu_ld" != yes && break
4858	;;
4859      esac
4860    fi
4861  done
4862  IFS="$lt_save_ifs"
4863else
4864  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4865fi
4866fi
4867
4868LD="$lt_cv_path_LD"
4869if test -n "$LD"; then
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4871$as_echo "$LD" >&6; }
4872else
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874$as_echo "no" >&6; }
4875fi
4876test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4878$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4879if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4883case `$LD -v 2>&1 </dev/null` in
4884*GNU* | *'with BFD'*)
4885  lt_cv_prog_gnu_ld=yes
4886  ;;
4887*)
4888  lt_cv_prog_gnu_ld=no
4889  ;;
4890esac
4891fi
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4893$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4894with_gnu_ld=$lt_cv_prog_gnu_ld
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4905$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4906if test "${lt_cv_path_NM+set}" = set; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  if test -n "$NM"; then
4910  # Let the user override the test.
4911  lt_cv_path_NM="$NM"
4912else
4913  lt_nm_to_check="${ac_tool_prefix}nm"
4914  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4915    lt_nm_to_check="$lt_nm_to_check nm"
4916  fi
4917  for lt_tmp_nm in $lt_nm_to_check; do
4918    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4919    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4920      IFS="$lt_save_ifs"
4921      test -z "$ac_dir" && ac_dir=.
4922      tmp_nm="$ac_dir/$lt_tmp_nm"
4923      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4924	# Check to see if the nm accepts a BSD-compat flag.
4925	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4926	#   nm: unknown option "B" ignored
4927	# Tru64's nm complains that /dev/null is an invalid object file
4928	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4929	*/dev/null* | *'Invalid file or object type'*)
4930	  lt_cv_path_NM="$tmp_nm -B"
4931	  break
4932	  ;;
4933	*)
4934	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4935	  */dev/null*)
4936	    lt_cv_path_NM="$tmp_nm -p"
4937	    break
4938	    ;;
4939	  *)
4940	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4941	    continue # so that we can try to find one that supports BSD flags
4942	    ;;
4943	  esac
4944	  ;;
4945	esac
4946      fi
4947    done
4948    IFS="$lt_save_ifs"
4949  done
4950  : ${lt_cv_path_NM=no}
4951fi
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4954$as_echo "$lt_cv_path_NM" >&6; }
4955if test "$lt_cv_path_NM" != "no"; then
4956  NM="$lt_cv_path_NM"
4957else
4958  # Didn't find any BSD compatible name lister, look for dumpbin.
4959  if test -n "$DUMPBIN"; then :
4960    # Let the user override the test.
4961  else
4962    if test -n "$ac_tool_prefix"; then
4963  for ac_prog in dumpbin "link -dump"
4964  do
4965    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968$as_echo_n "checking for $ac_word... " >&6; }
4969if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  if test -n "$DUMPBIN"; then
4973  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978  IFS=$as_save_IFS
4979  test -z "$as_dir" && as_dir=.
4980    for ac_exec_ext in '' $ac_executable_extensions; do
4981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984    break 2
4985  fi
4986done
4987  done
4988IFS=$as_save_IFS
4989
4990fi
4991fi
4992DUMPBIN=$ac_cv_prog_DUMPBIN
4993if test -n "$DUMPBIN"; then
4994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4995$as_echo "$DUMPBIN" >&6; }
4996else
4997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998$as_echo "no" >&6; }
4999fi
5000
5001
5002    test -n "$DUMPBIN" && break
5003  done
5004fi
5005if test -z "$DUMPBIN"; then
5006  ac_ct_DUMPBIN=$DUMPBIN
5007  for ac_prog in dumpbin "link -dump"
5008do
5009  # Extract the first word of "$ac_prog", so it can be a program name with args.
5010set dummy $ac_prog; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  if test -n "$ac_ct_DUMPBIN"; then
5017  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022  IFS=$as_save_IFS
5023  test -z "$as_dir" && as_dir=.
5024    for ac_exec_ext in '' $ac_executable_extensions; do
5025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028    break 2
5029  fi
5030done
5031  done
5032IFS=$as_save_IFS
5033
5034fi
5035fi
5036ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5037if test -n "$ac_ct_DUMPBIN"; then
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5039$as_echo "$ac_ct_DUMPBIN" >&6; }
5040else
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
5043fi
5044
5045
5046  test -n "$ac_ct_DUMPBIN" && break
5047done
5048
5049  if test "x$ac_ct_DUMPBIN" = x; then
5050    DUMPBIN=":"
5051  else
5052    case $cross_compiling:$ac_tool_warned in
5053yes:)
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056ac_tool_warned=yes ;;
5057esac
5058    DUMPBIN=$ac_ct_DUMPBIN
5059  fi
5060fi
5061
5062    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5063    *COFF*)
5064      DUMPBIN="$DUMPBIN -symbols"
5065      ;;
5066    *)
5067      DUMPBIN=:
5068      ;;
5069    esac
5070  fi
5071
5072  if test "$DUMPBIN" != ":"; then
5073    NM="$DUMPBIN"
5074  fi
5075fi
5076test -z "$NM" && NM=nm
5077
5078
5079
5080
5081
5082
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5084$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5085if test "${lt_cv_nm_interface+set}" = set; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  lt_cv_nm_interface="BSD nm"
5089  echo "int some_variable = 0;" > conftest.$ac_ext
5090  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5091  (eval "$ac_compile" 2>conftest.err)
5092  cat conftest.err >&5
5093  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5094  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5095  cat conftest.err >&5
5096  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5097  cat conftest.out >&5
5098  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5099    lt_cv_nm_interface="MS dumpbin"
5100  fi
5101  rm -f conftest*
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5104$as_echo "$lt_cv_nm_interface" >&6; }
5105
5106# find the maximum length of command line arguments
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5108$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5109if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112    i=0
5113  teststring="ABCD"
5114
5115  case $build_os in
5116  msdosdjgpp*)
5117    # On DJGPP, this test can blow up pretty badly due to problems in libc
5118    # (any single argument exceeding 2000 bytes causes a buffer overrun
5119    # during glob expansion).  Even if it were fixed, the result of this
5120    # check would be larger than it should be.
5121    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5122    ;;
5123
5124  gnu*)
5125    # Under GNU Hurd, this test is not required because there is
5126    # no limit to the length of command line arguments.
5127    # Libtool will interpret -1 as no limit whatsoever
5128    lt_cv_sys_max_cmd_len=-1;
5129    ;;
5130
5131  cygwin* | mingw* | cegcc*)
5132    # On Win9x/ME, this test blows up -- it succeeds, but takes
5133    # about 5 minutes as the teststring grows exponentially.
5134    # Worse, since 9x/ME are not pre-emptively multitasking,
5135    # you end up with a "frozen" computer, even though with patience
5136    # the test eventually succeeds (with a max line length of 256k).
5137    # Instead, let's just punt: use the minimum linelength reported by
5138    # all of the supported platforms: 8192 (on NT/2K/XP).
5139    lt_cv_sys_max_cmd_len=8192;
5140    ;;
5141
5142  mint*)
5143    # On MiNT this can take a long time and run out of memory.
5144    lt_cv_sys_max_cmd_len=8192;
5145    ;;
5146
5147  amigaos*)
5148    # On AmigaOS with pdksh, this test takes hours, literally.
5149    # So we just punt and use a minimum line length of 8192.
5150    lt_cv_sys_max_cmd_len=8192;
5151    ;;
5152
5153  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5154    # This has been around since 386BSD, at least.  Likely further.
5155    if test -x /sbin/sysctl; then
5156      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5157    elif test -x /usr/sbin/sysctl; then
5158      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5159    else
5160      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5161    fi
5162    # And add a safety zone
5163    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5165    ;;
5166
5167  interix*)
5168    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5169    lt_cv_sys_max_cmd_len=196608
5170    ;;
5171
5172  osf*)
5173    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5174    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5175    # nice to cause kernel panics so lets avoid the loop below.
5176    # First set a reasonable default.
5177    lt_cv_sys_max_cmd_len=16384
5178    #
5179    if test -x /sbin/sysconfig; then
5180      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5181        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5182      esac
5183    fi
5184    ;;
5185  sco3.2v5*)
5186    lt_cv_sys_max_cmd_len=102400
5187    ;;
5188  sysv5* | sco5v6* | sysv4.2uw2*)
5189    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5190    if test -n "$kargmax"; then
5191      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5192    else
5193      lt_cv_sys_max_cmd_len=32768
5194    fi
5195    ;;
5196  *)
5197    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5198    if test -n "$lt_cv_sys_max_cmd_len"; then
5199      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5200      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5201    else
5202      # Make teststring a little bigger before we do anything with it.
5203      # a 1K string should be a reasonable start.
5204      for i in 1 2 3 4 5 6 7 8 ; do
5205        teststring=$teststring$teststring
5206      done
5207      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5208      # If test is not a shell built-in, we'll probably end up computing a
5209      # maximum length that is only half of the actual maximum length, but
5210      # we can't tell.
5211      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5212	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5213	      test $i != 17 # 1/2 MB should be enough
5214      do
5215        i=`expr $i + 1`
5216        teststring=$teststring$teststring
5217      done
5218      # Only check the string length outside the loop.
5219      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5220      teststring=
5221      # Add a significant safety factor because C++ compilers can tack on
5222      # massive amounts of additional arguments before passing them to the
5223      # linker.  It appears as though 1/2 is a usable value.
5224      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5225    fi
5226    ;;
5227  esac
5228
5229fi
5230
5231if test -n $lt_cv_sys_max_cmd_len ; then
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5233$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5234else
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5236$as_echo "none" >&6; }
5237fi
5238max_cmd_len=$lt_cv_sys_max_cmd_len
5239
5240
5241
5242
5243
5244
5245: ${CP="cp -f"}
5246: ${MV="mv -f"}
5247: ${RM="rm -f"}
5248
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5250$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5251# Try some XSI features
5252xsi_shell=no
5253( _lt_dummy="a/b/c"
5254  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5255      = c,a/b,, \
5256    && eval 'test $(( 1 + 1 )) -eq 2 \
5257    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5258  && xsi_shell=yes
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5260$as_echo "$xsi_shell" >&6; }
5261
5262
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5264$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5265lt_shell_append=no
5266( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5267    >/dev/null 2>&1 \
5268  && lt_shell_append=yes
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5270$as_echo "$lt_shell_append" >&6; }
5271
5272
5273if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5274  lt_unset=unset
5275else
5276  lt_unset=false
5277fi
5278
5279
5280
5281
5282
5283# test EBCDIC or ASCII
5284case `echo X|tr X '\101'` in
5285 A) # ASCII based system
5286    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5287  lt_SP2NL='tr \040 \012'
5288  lt_NL2SP='tr \015\012 \040\040'
5289  ;;
5290 *) # EBCDIC based system
5291  lt_SP2NL='tr \100 \n'
5292  lt_NL2SP='tr \r\n \100\100'
5293  ;;
5294esac
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5305$as_echo_n "checking for $LD option to reload object files... " >&6; }
5306if test "${lt_cv_ld_reload_flag+set}" = set; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309  lt_cv_ld_reload_flag='-r'
5310fi
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5312$as_echo "$lt_cv_ld_reload_flag" >&6; }
5313reload_flag=$lt_cv_ld_reload_flag
5314case $reload_flag in
5315"" | " "*) ;;
5316*) reload_flag=" $reload_flag" ;;
5317esac
5318reload_cmds='$LD$reload_flag -o $output$reload_objs'
5319case $host_os in
5320  darwin*)
5321    if test "$GCC" = yes; then
5322      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5323    else
5324      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5325    fi
5326    ;;
5327esac
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337if test -n "$ac_tool_prefix"; then
5338  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5339set dummy ${ac_tool_prefix}objdump; ac_word=$2
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341$as_echo_n "checking for $ac_word... " >&6; }
5342if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5343  $as_echo_n "(cached) " >&6
5344else
5345  if test -n "$OBJDUMP"; then
5346  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5347else
5348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351  IFS=$as_save_IFS
5352  test -z "$as_dir" && as_dir=.
5353    for ac_exec_ext in '' $ac_executable_extensions; do
5354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357    break 2
5358  fi
5359done
5360  done
5361IFS=$as_save_IFS
5362
5363fi
5364fi
5365OBJDUMP=$ac_cv_prog_OBJDUMP
5366if test -n "$OBJDUMP"; then
5367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5368$as_echo "$OBJDUMP" >&6; }
5369else
5370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371$as_echo "no" >&6; }
5372fi
5373
5374
5375fi
5376if test -z "$ac_cv_prog_OBJDUMP"; then
5377  ac_ct_OBJDUMP=$OBJDUMP
5378  # Extract the first word of "objdump", so it can be a program name with args.
5379set dummy objdump; ac_word=$2
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381$as_echo_n "checking for $ac_word... " >&6; }
5382if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5383  $as_echo_n "(cached) " >&6
5384else
5385  if test -n "$ac_ct_OBJDUMP"; then
5386  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5387else
5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391  IFS=$as_save_IFS
5392  test -z "$as_dir" && as_dir=.
5393    for ac_exec_ext in '' $ac_executable_extensions; do
5394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397    break 2
5398  fi
5399done
5400  done
5401IFS=$as_save_IFS
5402
5403fi
5404fi
5405ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5406if test -n "$ac_ct_OBJDUMP"; then
5407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5408$as_echo "$ac_ct_OBJDUMP" >&6; }
5409else
5410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411$as_echo "no" >&6; }
5412fi
5413
5414  if test "x$ac_ct_OBJDUMP" = x; then
5415    OBJDUMP="false"
5416  else
5417    case $cross_compiling:$ac_tool_warned in
5418yes:)
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5421ac_tool_warned=yes ;;
5422esac
5423    OBJDUMP=$ac_ct_OBJDUMP
5424  fi
5425else
5426  OBJDUMP="$ac_cv_prog_OBJDUMP"
5427fi
5428
5429test -z "$OBJDUMP" && OBJDUMP=objdump
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5440$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5441if test "${lt_cv_deplibs_check_method+set}" = set; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  lt_cv_file_magic_cmd='$MAGIC_CMD'
5445lt_cv_file_magic_test_file=
5446lt_cv_deplibs_check_method='unknown'
5447# Need to set the preceding variable on all platforms that support
5448# interlibrary dependencies.
5449# 'none' -- dependencies not supported.
5450# `unknown' -- same as none, but documents that we really don't know.
5451# 'pass_all' -- all dependencies passed with no checks.
5452# 'test_compile' -- check by making test program.
5453# 'file_magic [[regex]]' -- check by looking for files in library path
5454# which responds to the $file_magic_cmd with a given extended regex.
5455# If you have `file' or equivalent on your system and you're not sure
5456# whether `pass_all' will *always* work, you probably want this one.
5457
5458case $host_os in
5459aix[4-9]*)
5460  lt_cv_deplibs_check_method=pass_all
5461  ;;
5462
5463beos*)
5464  lt_cv_deplibs_check_method=pass_all
5465  ;;
5466
5467bsdi[45]*)
5468  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5469  lt_cv_file_magic_cmd='/usr/bin/file -L'
5470  lt_cv_file_magic_test_file=/shlib/libc.so
5471  ;;
5472
5473cygwin*)
5474  # func_win32_libid is a shell function defined in ltmain.sh
5475  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5476  lt_cv_file_magic_cmd='func_win32_libid'
5477  ;;
5478
5479mingw* | pw32*)
5480  # Base MSYS/MinGW do not provide the 'file' command needed by
5481  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5482  # unless we find 'file', for example because we are cross-compiling.
5483  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5484  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5485    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5486    lt_cv_file_magic_cmd='func_win32_libid'
5487  else
5488    # Keep this pattern in sync with the one in func_win32_libid.
5489    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5490    lt_cv_file_magic_cmd='$OBJDUMP -f'
5491  fi
5492  ;;
5493
5494cegcc*)
5495  # use the weaker test based on 'objdump'. See mingw*.
5496  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5497  lt_cv_file_magic_cmd='$OBJDUMP -f'
5498  ;;
5499
5500darwin* | rhapsody*)
5501  lt_cv_deplibs_check_method=pass_all
5502  ;;
5503
5504freebsd* | dragonfly*)
5505  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5506    case $host_cpu in
5507    i*86 )
5508      # Not sure whether the presence of OpenBSD here was a mistake.
5509      # Let's accept both of them until this is cleared up.
5510      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5511      lt_cv_file_magic_cmd=/usr/bin/file
5512      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5513      ;;
5514    esac
5515  else
5516    lt_cv_deplibs_check_method=pass_all
5517  fi
5518  ;;
5519
5520gnu*)
5521  lt_cv_deplibs_check_method=pass_all
5522  ;;
5523
5524haiku*)
5525  lt_cv_deplibs_check_method=pass_all
5526  ;;
5527
5528hpux10.20* | hpux11*)
5529  lt_cv_file_magic_cmd=/usr/bin/file
5530  case $host_cpu in
5531  ia64*)
5532    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5533    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5534    ;;
5535  hppa*64*)
5536    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]'
5537    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5538    ;;
5539  *)
5540    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5541    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5542    ;;
5543  esac
5544  ;;
5545
5546interix[3-9]*)
5547  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5548  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5549  ;;
5550
5551irix5* | irix6* | nonstopux*)
5552  case $LD in
5553  *-32|*"-32 ") libmagic=32-bit;;
5554  *-n32|*"-n32 ") libmagic=N32;;
5555  *-64|*"-64 ") libmagic=64-bit;;
5556  *) libmagic=never-match;;
5557  esac
5558  lt_cv_deplibs_check_method=pass_all
5559  ;;
5560
5561# This must be Linux ELF.
5562linux* | k*bsd*-gnu | kopensolaris*-gnu)
5563  lt_cv_deplibs_check_method=pass_all
5564  ;;
5565
5566netbsd*)
5567  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5569  else
5570    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5571  fi
5572  ;;
5573
5574newos6*)
5575  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5576  lt_cv_file_magic_cmd=/usr/bin/file
5577  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5578  ;;
5579
5580*nto* | *qnx*)
5581  lt_cv_deplibs_check_method=pass_all
5582  ;;
5583
5584openbsd*)
5585  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5587  else
5588    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5589  fi
5590  ;;
5591
5592osf3* | osf4* | osf5*)
5593  lt_cv_deplibs_check_method=pass_all
5594  ;;
5595
5596rdos*)
5597  lt_cv_deplibs_check_method=pass_all
5598  ;;
5599
5600solaris*)
5601  lt_cv_deplibs_check_method=pass_all
5602  ;;
5603
5604sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5605  lt_cv_deplibs_check_method=pass_all
5606  ;;
5607
5608sysv4 | sysv4.3*)
5609  case $host_vendor in
5610  motorola)
5611    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]'
5612    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5613    ;;
5614  ncr)
5615    lt_cv_deplibs_check_method=pass_all
5616    ;;
5617  sequent)
5618    lt_cv_file_magic_cmd='/bin/file'
5619    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5620    ;;
5621  sni)
5622    lt_cv_file_magic_cmd='/bin/file'
5623    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5624    lt_cv_file_magic_test_file=/lib/libc.so
5625    ;;
5626  siemens)
5627    lt_cv_deplibs_check_method=pass_all
5628    ;;
5629  pc)
5630    lt_cv_deplibs_check_method=pass_all
5631    ;;
5632  esac
5633  ;;
5634
5635tpf*)
5636  lt_cv_deplibs_check_method=pass_all
5637  ;;
5638esac
5639
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5642$as_echo "$lt_cv_deplibs_check_method" >&6; }
5643file_magic_cmd=$lt_cv_file_magic_cmd
5644deplibs_check_method=$lt_cv_deplibs_check_method
5645test -z "$deplibs_check_method" && deplibs_check_method=unknown
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658if test -n "$ac_tool_prefix"; then
5659  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5660set dummy ${ac_tool_prefix}ar; ac_word=$2
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
5663if test "${ac_cv_prog_AR+set}" = set; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  if test -n "$AR"; then
5667  ac_cv_prog_AR="$AR" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672  IFS=$as_save_IFS
5673  test -z "$as_dir" && as_dir=.
5674    for ac_exec_ext in '' $ac_executable_extensions; do
5675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676    ac_cv_prog_AR="${ac_tool_prefix}ar"
5677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678    break 2
5679  fi
5680done
5681  done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686AR=$ac_cv_prog_AR
5687if test -n "$AR"; then
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5689$as_echo "$AR" >&6; }
5690else
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694
5695
5696fi
5697if test -z "$ac_cv_prog_AR"; then
5698  ac_ct_AR=$AR
5699  # Extract the first word of "ar", so it can be a program name with args.
5700set dummy ar; ac_word=$2
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702$as_echo_n "checking for $ac_word... " >&6; }
5703if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  if test -n "$ac_ct_AR"; then
5707  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712  IFS=$as_save_IFS
5713  test -z "$as_dir" && as_dir=.
5714    for ac_exec_ext in '' $ac_executable_extensions; do
5715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716    ac_cv_prog_ac_ct_AR="ar"
5717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718    break 2
5719  fi
5720done
5721  done
5722IFS=$as_save_IFS
5723
5724fi
5725fi
5726ac_ct_AR=$ac_cv_prog_ac_ct_AR
5727if test -n "$ac_ct_AR"; then
5728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5729$as_echo "$ac_ct_AR" >&6; }
5730else
5731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732$as_echo "no" >&6; }
5733fi
5734
5735  if test "x$ac_ct_AR" = x; then
5736    AR="false"
5737  else
5738    case $cross_compiling:$ac_tool_warned in
5739yes:)
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742ac_tool_warned=yes ;;
5743esac
5744    AR=$ac_ct_AR
5745  fi
5746else
5747  AR="$ac_cv_prog_AR"
5748fi
5749
5750test -z "$AR" && AR=ar
5751test -z "$AR_FLAGS" && AR_FLAGS=cru
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763if test -n "$ac_tool_prefix"; then
5764  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5765set dummy ${ac_tool_prefix}strip; ac_word=$2
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767$as_echo_n "checking for $ac_word... " >&6; }
5768if test "${ac_cv_prog_STRIP+set}" = set; then :
5769  $as_echo_n "(cached) " >&6
5770else
5771  if test -n "$STRIP"; then
5772  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777  IFS=$as_save_IFS
5778  test -z "$as_dir" && as_dir=.
5779    for ac_exec_ext in '' $ac_executable_extensions; do
5780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783    break 2
5784  fi
5785done
5786  done
5787IFS=$as_save_IFS
5788
5789fi
5790fi
5791STRIP=$ac_cv_prog_STRIP
5792if test -n "$STRIP"; then
5793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5794$as_echo "$STRIP" >&6; }
5795else
5796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797$as_echo "no" >&6; }
5798fi
5799
5800
5801fi
5802if test -z "$ac_cv_prog_STRIP"; then
5803  ac_ct_STRIP=$STRIP
5804  # Extract the first word of "strip", so it can be a program name with args.
5805set dummy strip; ac_word=$2
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
5808if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  if test -n "$ac_ct_STRIP"; then
5812  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817  IFS=$as_save_IFS
5818  test -z "$as_dir" && as_dir=.
5819    for ac_exec_ext in '' $ac_executable_extensions; do
5820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821    ac_cv_prog_ac_ct_STRIP="strip"
5822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823    break 2
5824  fi
5825done
5826  done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5832if test -n "$ac_ct_STRIP"; then
5833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5834$as_echo "$ac_ct_STRIP" >&6; }
5835else
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
5838fi
5839
5840  if test "x$ac_ct_STRIP" = x; then
5841    STRIP=":"
5842  else
5843    case $cross_compiling:$ac_tool_warned in
5844yes:)
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847ac_tool_warned=yes ;;
5848esac
5849    STRIP=$ac_ct_STRIP
5850  fi
5851else
5852  STRIP="$ac_cv_prog_STRIP"
5853fi
5854
5855test -z "$STRIP" && STRIP=:
5856
5857
5858
5859
5860
5861
5862if test -n "$ac_tool_prefix"; then
5863  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5864set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
5867if test "${ac_cv_prog_RANLIB+set}" = set; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  if test -n "$RANLIB"; then
5871  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878    for ac_exec_ext in '' $ac_executable_extensions; do
5879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885  done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890RANLIB=$ac_cv_prog_RANLIB
5891if test -n "$RANLIB"; then
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5893$as_echo "$RANLIB" >&6; }
5894else
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899
5900fi
5901if test -z "$ac_cv_prog_RANLIB"; then
5902  ac_ct_RANLIB=$RANLIB
5903  # Extract the first word of "ranlib", so it can be a program name with args.
5904set dummy ranlib; ac_word=$2
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906$as_echo_n "checking for $ac_word... " >&6; }
5907if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  if test -n "$ac_ct_RANLIB"; then
5911  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916  IFS=$as_save_IFS
5917  test -z "$as_dir" && as_dir=.
5918    for ac_exec_ext in '' $ac_executable_extensions; do
5919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920    ac_cv_prog_ac_ct_RANLIB="ranlib"
5921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922    break 2
5923  fi
5924done
5925  done
5926IFS=$as_save_IFS
5927
5928fi
5929fi
5930ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5931if test -n "$ac_ct_RANLIB"; then
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5933$as_echo "$ac_ct_RANLIB" >&6; }
5934else
5935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937fi
5938
5939  if test "x$ac_ct_RANLIB" = x; then
5940    RANLIB=":"
5941  else
5942    case $cross_compiling:$ac_tool_warned in
5943yes:)
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946ac_tool_warned=yes ;;
5947esac
5948    RANLIB=$ac_ct_RANLIB
5949  fi
5950else
5951  RANLIB="$ac_cv_prog_RANLIB"
5952fi
5953
5954test -z "$RANLIB" && RANLIB=:
5955
5956
5957
5958
5959
5960
5961# Determine commands to create old-style static archives.
5962old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5963old_postinstall_cmds='chmod 644 $oldlib'
5964old_postuninstall_cmds=
5965
5966if test -n "$RANLIB"; then
5967  case $host_os in
5968  openbsd*)
5969    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5970    ;;
5971  *)
5972    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5973    ;;
5974  esac
5975  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5976fi
5977
5978case $host_os in
5979  darwin*)
5980    lock_old_archive_extraction=yes ;;
5981  *)
5982    lock_old_archive_extraction=no ;;
5983esac
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023# If no C compiler was specified, use CC.
6024LTCC=${LTCC-"$CC"}
6025
6026# If no C compiler flags were specified, use CFLAGS.
6027LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6028
6029# Allow CC to be a program name with arguments.
6030compiler=$CC
6031
6032
6033# Check for command to grab the raw symbol name followed by C symbol from nm.
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6035$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6036if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039
6040# These are sane defaults that work on at least a few old systems.
6041# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6042
6043# Character class describing NM global symbol codes.
6044symcode='[BCDEGRST]'
6045
6046# Regexp to match symbols that can be accessed directly from C.
6047sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6048
6049# Define system-specific variables.
6050case $host_os in
6051aix*)
6052  symcode='[BCDT]'
6053  ;;
6054cygwin* | mingw* | pw32* | cegcc*)
6055  symcode='[ABCDGISTW]'
6056  ;;
6057hpux*)
6058  if test "$host_cpu" = ia64; then
6059    symcode='[ABCDEGRST]'
6060  fi
6061  ;;
6062irix* | nonstopux*)
6063  symcode='[BCDEGRST]'
6064  ;;
6065osf*)
6066  symcode='[BCDEGQRST]'
6067  ;;
6068solaris*)
6069  symcode='[BDRT]'
6070  ;;
6071sco3.2v5*)
6072  symcode='[DT]'
6073  ;;
6074sysv4.2uw2*)
6075  symcode='[DT]'
6076  ;;
6077sysv5* | sco5v6* | unixware* | OpenUNIX*)
6078  symcode='[ABDT]'
6079  ;;
6080sysv4)
6081  symcode='[DFNSTU]'
6082  ;;
6083esac
6084
6085# If we're using GNU nm, then use its standard symbol codes.
6086case `$NM -V 2>&1` in
6087*GNU* | *'with BFD'*)
6088  symcode='[ABCDGIRSTW]' ;;
6089esac
6090
6091# Transform an extracted symbol line into a proper C declaration.
6092# Some systems (esp. on ia64) link data and code symbols differently,
6093# so use this general approach.
6094lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6095
6096# Transform an extracted symbol line into symbol name and symbol address
6097lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6098lt_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'"
6099
6100# Handle CRLF in mingw tool chain
6101opt_cr=
6102case $build_os in
6103mingw*)
6104  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6105  ;;
6106esac
6107
6108# Try without a prefix underscore, then with it.
6109for ac_symprfx in "" "_"; do
6110
6111  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6112  symxfrm="\\1 $ac_symprfx\\2 \\2"
6113
6114  # Write the raw and C identifiers.
6115  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6116    # Fake it for dumpbin and say T for any non-static function
6117    # and D for any global variable.
6118    # Also find C++ and __fastcall symbols from MSVC++,
6119    # which start with @ or ?.
6120    lt_cv_sys_global_symbol_pipe="$AWK '"\
6121"     {last_section=section; section=\$ 3};"\
6122"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6123"     \$ 0!~/External *\|/{next};"\
6124"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6125"     {if(hide[section]) next};"\
6126"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6127"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6128"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6129"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6130"     ' prfx=^$ac_symprfx"
6131  else
6132    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6133  fi
6134
6135  # Check to see that the pipe works correctly.
6136  pipe_works=no
6137
6138  rm -f conftest*
6139  cat > conftest.$ac_ext <<_LT_EOF
6140#ifdef __cplusplus
6141extern "C" {
6142#endif
6143char nm_test_var;
6144void nm_test_func(void);
6145void nm_test_func(void){}
6146#ifdef __cplusplus
6147}
6148#endif
6149int main(){nm_test_var='a';nm_test_func();return(0);}
6150_LT_EOF
6151
6152  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6153  (eval $ac_compile) 2>&5
6154  ac_status=$?
6155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156  test $ac_status = 0; }; then
6157    # Now try to grab the symbols.
6158    nlist=conftest.nm
6159    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6160  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6161  ac_status=$?
6162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163  test $ac_status = 0; } && test -s "$nlist"; then
6164      # Try sorting and uniquifying the output.
6165      if sort "$nlist" | uniq > "$nlist"T; then
6166	mv -f "$nlist"T "$nlist"
6167      else
6168	rm -f "$nlist"T
6169      fi
6170
6171      # Make sure that we snagged all the symbols we need.
6172      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6173	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6174	  cat <<_LT_EOF > conftest.$ac_ext
6175#ifdef __cplusplus
6176extern "C" {
6177#endif
6178
6179_LT_EOF
6180	  # Now generate the symbol file.
6181	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6182
6183	  cat <<_LT_EOF >> conftest.$ac_ext
6184
6185/* The mapping between symbol names and symbols.  */
6186const struct {
6187  const char *name;
6188  void       *address;
6189}
6190lt__PROGRAM__LTX_preloaded_symbols[] =
6191{
6192  { "@PROGRAM@", (void *) 0 },
6193_LT_EOF
6194	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6195	  cat <<\_LT_EOF >> conftest.$ac_ext
6196  {0, (void *) 0}
6197};
6198
6199/* This works around a problem in FreeBSD linker */
6200#ifdef FREEBSD_WORKAROUND
6201static const void *lt_preloaded_setup() {
6202  return lt__PROGRAM__LTX_preloaded_symbols;
6203}
6204#endif
6205
6206#ifdef __cplusplus
6207}
6208#endif
6209_LT_EOF
6210	  # Now try linking the two files.
6211	  mv conftest.$ac_objext conftstm.$ac_objext
6212	  lt_save_LIBS="$LIBS"
6213	  lt_save_CFLAGS="$CFLAGS"
6214	  LIBS="conftstm.$ac_objext"
6215	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6216	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6217  (eval $ac_link) 2>&5
6218  ac_status=$?
6219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6221	    pipe_works=yes
6222	  fi
6223	  LIBS="$lt_save_LIBS"
6224	  CFLAGS="$lt_save_CFLAGS"
6225	else
6226	  echo "cannot find nm_test_func in $nlist" >&5
6227	fi
6228      else
6229	echo "cannot find nm_test_var in $nlist" >&5
6230      fi
6231    else
6232      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6233    fi
6234  else
6235    echo "$progname: failed program was:" >&5
6236    cat conftest.$ac_ext >&5
6237  fi
6238  rm -rf conftest* conftst*
6239
6240  # Do not use the global_symbol_pipe unless it works.
6241  if test "$pipe_works" = yes; then
6242    break
6243  else
6244    lt_cv_sys_global_symbol_pipe=
6245  fi
6246done
6247
6248fi
6249
6250if test -z "$lt_cv_sys_global_symbol_pipe"; then
6251  lt_cv_sys_global_symbol_to_cdecl=
6252fi
6253if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6255$as_echo "failed" >&6; }
6256else
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6258$as_echo "ok" >&6; }
6259fi
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283# Check whether --enable-libtool-lock was given.
6284if test "${enable_libtool_lock+set}" = set; then :
6285  enableval=$enable_libtool_lock;
6286fi
6287
6288test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6289
6290# Some flags need to be propagated to the compiler or linker for good
6291# libtool support.
6292case $host in
6293ia64-*-hpux*)
6294  # Find out which ABI we are using.
6295  echo 'int i;' > conftest.$ac_ext
6296  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6297  (eval $ac_compile) 2>&5
6298  ac_status=$?
6299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300  test $ac_status = 0; }; then
6301    case `/usr/bin/file conftest.$ac_objext` in
6302      *ELF-32*)
6303	HPUX_IA64_MODE="32"
6304	;;
6305      *ELF-64*)
6306	HPUX_IA64_MODE="64"
6307	;;
6308    esac
6309  fi
6310  rm -rf conftest*
6311  ;;
6312*-*-irix6*)
6313  # Find out which ABI we are using.
6314  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6315  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6316  (eval $ac_compile) 2>&5
6317  ac_status=$?
6318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6319  test $ac_status = 0; }; then
6320    if test "$lt_cv_prog_gnu_ld" = yes; then
6321      case `/usr/bin/file conftest.$ac_objext` in
6322	*32-bit*)
6323	  LD="${LD-ld} -melf32bsmip"
6324	  ;;
6325	*N32*)
6326	  LD="${LD-ld} -melf32bmipn32"
6327	  ;;
6328	*64-bit*)
6329	  LD="${LD-ld} -melf64bmip"
6330	;;
6331      esac
6332    else
6333      case `/usr/bin/file conftest.$ac_objext` in
6334	*32-bit*)
6335	  LD="${LD-ld} -32"
6336	  ;;
6337	*N32*)
6338	  LD="${LD-ld} -n32"
6339	  ;;
6340	*64-bit*)
6341	  LD="${LD-ld} -64"
6342	  ;;
6343      esac
6344    fi
6345  fi
6346  rm -rf conftest*
6347  ;;
6348
6349x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6350s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6351  # Find out which ABI we are using.
6352  echo 'int i;' > conftest.$ac_ext
6353  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6354  (eval $ac_compile) 2>&5
6355  ac_status=$?
6356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6357  test $ac_status = 0; }; then
6358    case `/usr/bin/file conftest.o` in
6359      *32-bit*)
6360	case $host in
6361	  x86_64-*kfreebsd*-gnu)
6362	    LD="${LD-ld} -m elf_i386_fbsd"
6363	    ;;
6364	  x86_64-*linux*)
6365	    LD="${LD-ld} -m elf_i386"
6366	    ;;
6367	  ppc64-*linux*|powerpc64-*linux*)
6368	    LD="${LD-ld} -m elf32ppclinux"
6369	    ;;
6370	  s390x-*linux*)
6371	    LD="${LD-ld} -m elf_s390"
6372	    ;;
6373	  sparc64-*linux*)
6374	    LD="${LD-ld} -m elf32_sparc"
6375	    ;;
6376	esac
6377	;;
6378      *64-bit*)
6379	case $host in
6380	  x86_64-*kfreebsd*-gnu)
6381	    LD="${LD-ld} -m elf_x86_64_fbsd"
6382	    ;;
6383	  x86_64-*linux*)
6384	    LD="${LD-ld} -m elf_x86_64"
6385	    ;;
6386	  ppc*-*linux*|powerpc*-*linux*)
6387	    LD="${LD-ld} -m elf64ppc"
6388	    ;;
6389	  s390*-*linux*|s390*-*tpf*)
6390	    LD="${LD-ld} -m elf64_s390"
6391	    ;;
6392	  sparc*-*linux*)
6393	    LD="${LD-ld} -m elf64_sparc"
6394	    ;;
6395	esac
6396	;;
6397    esac
6398  fi
6399  rm -rf conftest*
6400  ;;
6401
6402*-*-sco3.2v5*)
6403  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6404  SAVE_CFLAGS="$CFLAGS"
6405  CFLAGS="$CFLAGS -belf"
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6407$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6408if test "${lt_cv_cc_needs_belf+set}" = set; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  ac_ext=c
6412ac_cpp='$CPP $CPPFLAGS'
6413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
6417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h.  */
6419
6420int
6421main ()
6422{
6423
6424  ;
6425  return 0;
6426}
6427_ACEOF
6428if ac_fn_c_try_link "$LINENO"; then :
6429  lt_cv_cc_needs_belf=yes
6430else
6431  lt_cv_cc_needs_belf=no
6432fi
6433rm -f core conftest.err conftest.$ac_objext \
6434    conftest$ac_exeext conftest.$ac_ext
6435     ac_ext=c
6436ac_cpp='$CPP $CPPFLAGS'
6437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6439ac_compiler_gnu=$ac_cv_c_compiler_gnu
6440
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6443$as_echo "$lt_cv_cc_needs_belf" >&6; }
6444  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6445    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6446    CFLAGS="$SAVE_CFLAGS"
6447  fi
6448  ;;
6449sparc*-*solaris*)
6450  # Find out which ABI we are using.
6451  echo 'int i;' > conftest.$ac_ext
6452  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6453  (eval $ac_compile) 2>&5
6454  ac_status=$?
6455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456  test $ac_status = 0; }; then
6457    case `/usr/bin/file conftest.o` in
6458    *64-bit*)
6459      case $lt_cv_prog_gnu_ld in
6460      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6461      *)
6462	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6463	  LD="${LD-ld} -64"
6464	fi
6465	;;
6466      esac
6467      ;;
6468    esac
6469  fi
6470  rm -rf conftest*
6471  ;;
6472esac
6473
6474need_locks="$enable_libtool_lock"
6475
6476
6477  case $host_os in
6478    rhapsody* | darwin*)
6479    if test -n "$ac_tool_prefix"; then
6480  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6481set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483$as_echo_n "checking for $ac_word... " >&6; }
6484if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if test -n "$DSYMUTIL"; then
6488  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507DSYMUTIL=$ac_cv_prog_DSYMUTIL
6508if test -n "$DSYMUTIL"; then
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6510$as_echo "$DSYMUTIL" >&6; }
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516
6517fi
6518if test -z "$ac_cv_prog_DSYMUTIL"; then
6519  ac_ct_DSYMUTIL=$DSYMUTIL
6520  # Extract the first word of "dsymutil", so it can be a program name with args.
6521set dummy dsymutil; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523$as_echo_n "checking for $ac_word... " >&6; }
6524if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  if test -n "$ac_ct_DSYMUTIL"; then
6528  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533  IFS=$as_save_IFS
6534  test -z "$as_dir" && as_dir=.
6535    for ac_exec_ext in '' $ac_executable_extensions; do
6536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539    break 2
6540  fi
6541done
6542  done
6543IFS=$as_save_IFS
6544
6545fi
6546fi
6547ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6548if test -n "$ac_ct_DSYMUTIL"; then
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6550$as_echo "$ac_ct_DSYMUTIL" >&6; }
6551else
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553$as_echo "no" >&6; }
6554fi
6555
6556  if test "x$ac_ct_DSYMUTIL" = x; then
6557    DSYMUTIL=":"
6558  else
6559    case $cross_compiling:$ac_tool_warned in
6560yes:)
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563ac_tool_warned=yes ;;
6564esac
6565    DSYMUTIL=$ac_ct_DSYMUTIL
6566  fi
6567else
6568  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6569fi
6570
6571    if test -n "$ac_tool_prefix"; then
6572  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6573set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  if test -n "$NMEDIT"; then
6580  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599NMEDIT=$ac_cv_prog_NMEDIT
6600if test -n "$NMEDIT"; then
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6602$as_echo "$NMEDIT" >&6; }
6603else
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609fi
6610if test -z "$ac_cv_prog_NMEDIT"; then
6611  ac_ct_NMEDIT=$NMEDIT
6612  # Extract the first word of "nmedit", so it can be a program name with args.
6613set dummy nmedit; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  if test -n "$ac_ct_NMEDIT"; then
6620  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625  IFS=$as_save_IFS
6626  test -z "$as_dir" && as_dir=.
6627    for ac_exec_ext in '' $ac_executable_extensions; do
6628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631    break 2
6632  fi
6633done
6634  done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6640if test -n "$ac_ct_NMEDIT"; then
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6642$as_echo "$ac_ct_NMEDIT" >&6; }
6643else
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648  if test "x$ac_ct_NMEDIT" = x; then
6649    NMEDIT=":"
6650  else
6651    case $cross_compiling:$ac_tool_warned in
6652yes:)
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655ac_tool_warned=yes ;;
6656esac
6657    NMEDIT=$ac_ct_NMEDIT
6658  fi
6659else
6660  NMEDIT="$ac_cv_prog_NMEDIT"
6661fi
6662
6663    if test -n "$ac_tool_prefix"; then
6664  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6665set dummy ${ac_tool_prefix}lipo; ac_word=$2
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if test "${ac_cv_prog_LIPO+set}" = set; then :
6669  $as_echo_n "(cached) " >&6
6670else
6671  if test -n "$LIPO"; then
6672  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677  IFS=$as_save_IFS
6678  test -z "$as_dir" && as_dir=.
6679    for ac_exec_ext in '' $ac_executable_extensions; do
6680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683    break 2
6684  fi
6685done
6686  done
6687IFS=$as_save_IFS
6688
6689fi
6690fi
6691LIPO=$ac_cv_prog_LIPO
6692if test -n "$LIPO"; then
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6694$as_echo "$LIPO" >&6; }
6695else
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
6698fi
6699
6700
6701fi
6702if test -z "$ac_cv_prog_LIPO"; then
6703  ac_ct_LIPO=$LIPO
6704  # Extract the first word of "lipo", so it can be a program name with args.
6705set dummy lipo; ac_word=$2
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707$as_echo_n "checking for $ac_word... " >&6; }
6708if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  if test -n "$ac_ct_LIPO"; then
6712  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6713else
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717  IFS=$as_save_IFS
6718  test -z "$as_dir" && as_dir=.
6719    for ac_exec_ext in '' $ac_executable_extensions; do
6720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721    ac_cv_prog_ac_ct_LIPO="lipo"
6722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723    break 2
6724  fi
6725done
6726  done
6727IFS=$as_save_IFS
6728
6729fi
6730fi
6731ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6732if test -n "$ac_ct_LIPO"; then
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6734$as_echo "$ac_ct_LIPO" >&6; }
6735else
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737$as_echo "no" >&6; }
6738fi
6739
6740  if test "x$ac_ct_LIPO" = x; then
6741    LIPO=":"
6742  else
6743    case $cross_compiling:$ac_tool_warned in
6744yes:)
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747ac_tool_warned=yes ;;
6748esac
6749    LIPO=$ac_ct_LIPO
6750  fi
6751else
6752  LIPO="$ac_cv_prog_LIPO"
6753fi
6754
6755    if test -n "$ac_tool_prefix"; then
6756  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6757set dummy ${ac_tool_prefix}otool; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if test "${ac_cv_prog_OTOOL+set}" = set; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if test -n "$OTOOL"; then
6764  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_exec_ext in '' $ac_executable_extensions; do
6772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778  done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783OTOOL=$ac_cv_prog_OTOOL
6784if test -n "$OTOOL"; then
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6786$as_echo "$OTOOL" >&6; }
6787else
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792
6793fi
6794if test -z "$ac_cv_prog_OTOOL"; then
6795  ac_ct_OTOOL=$OTOOL
6796  # Extract the first word of "otool", so it can be a program name with args.
6797set dummy otool; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  if test -n "$ac_ct_OTOOL"; then
6804  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809  IFS=$as_save_IFS
6810  test -z "$as_dir" && as_dir=.
6811    for ac_exec_ext in '' $ac_executable_extensions; do
6812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813    ac_cv_prog_ac_ct_OTOOL="otool"
6814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815    break 2
6816  fi
6817done
6818  done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6824if test -n "$ac_ct_OTOOL"; then
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6826$as_echo "$ac_ct_OTOOL" >&6; }
6827else
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832  if test "x$ac_ct_OTOOL" = x; then
6833    OTOOL=":"
6834  else
6835    case $cross_compiling:$ac_tool_warned in
6836yes:)
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841    OTOOL=$ac_ct_OTOOL
6842  fi
6843else
6844  OTOOL="$ac_cv_prog_OTOOL"
6845fi
6846
6847    if test -n "$ac_tool_prefix"; then
6848  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6849set dummy ${ac_tool_prefix}otool64; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$OTOOL64"; then
6856  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875OTOOL64=$ac_cv_prog_OTOOL64
6876if test -n "$OTOOL64"; then
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6878$as_echo "$OTOOL64" >&6; }
6879else
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884
6885fi
6886if test -z "$ac_cv_prog_OTOOL64"; then
6887  ac_ct_OTOOL64=$OTOOL64
6888  # Extract the first word of "otool64", so it can be a program name with args.
6889set dummy otool64; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if test -n "$ac_ct_OTOOL64"; then
6896  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905    ac_cv_prog_ac_ct_OTOOL64="otool64"
6906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6916if test -n "$ac_ct_OTOOL64"; then
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6918$as_echo "$ac_ct_OTOOL64" >&6; }
6919else
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924  if test "x$ac_ct_OTOOL64" = x; then
6925    OTOOL64=":"
6926  else
6927    case $cross_compiling:$ac_tool_warned in
6928yes:)
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6931ac_tool_warned=yes ;;
6932esac
6933    OTOOL64=$ac_ct_OTOOL64
6934  fi
6935else
6936  OTOOL64="$ac_cv_prog_OTOOL64"
6937fi
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6966$as_echo_n "checking for -single_module linker flag... " >&6; }
6967if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6968  $as_echo_n "(cached) " >&6
6969else
6970  lt_cv_apple_cc_single_mod=no
6971      if test -z "${LT_MULTI_MODULE}"; then
6972	# By default we will add the -single_module flag. You can override
6973	# by either setting the environment variable LT_MULTI_MODULE
6974	# non-empty at configure time, or by adding -multi_module to the
6975	# link flags.
6976	rm -rf libconftest.dylib*
6977	echo "int foo(void){return 1;}" > conftest.c
6978	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6979-dynamiclib -Wl,-single_module conftest.c" >&5
6980	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6981	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6982        _lt_result=$?
6983	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6984	  lt_cv_apple_cc_single_mod=yes
6985	else
6986	  cat conftest.err >&5
6987	fi
6988	rm -rf libconftest.dylib*
6989	rm -f conftest.*
6990      fi
6991fi
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6993$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6995$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6996if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  lt_cv_ld_exported_symbols_list=no
7000      save_LDFLAGS=$LDFLAGS
7001      echo "_main" > conftest.sym
7002      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7003      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004/* end confdefs.h.  */
7005
7006int
7007main ()
7008{
7009
7010  ;
7011  return 0;
7012}
7013_ACEOF
7014if ac_fn_c_try_link "$LINENO"; then :
7015  lt_cv_ld_exported_symbols_list=yes
7016else
7017  lt_cv_ld_exported_symbols_list=no
7018fi
7019rm -f core conftest.err conftest.$ac_objext \
7020    conftest$ac_exeext conftest.$ac_ext
7021	LDFLAGS="$save_LDFLAGS"
7022
7023fi
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7025$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7027$as_echo_n "checking for -force_load linker flag... " >&6; }
7028if test "${lt_cv_ld_force_load+set}" = set; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  lt_cv_ld_force_load=no
7032      cat > conftest.c << _LT_EOF
7033int forced_loaded() { return 2;}
7034_LT_EOF
7035      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7036      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7037      echo "$AR cru libconftest.a conftest.o" >&5
7038      $AR cru libconftest.a conftest.o 2>&5
7039      echo "$RANLIB libconftest.a" >&5
7040      $RANLIB libconftest.a 2>&5
7041      cat > conftest.c << _LT_EOF
7042int main() { return 0;}
7043_LT_EOF
7044      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7045      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7046      _lt_result=$?
7047      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7048	lt_cv_ld_force_load=yes
7049      else
7050	cat conftest.err >&5
7051      fi
7052        rm -f conftest.err libconftest.a conftest conftest.c
7053        rm -rf conftest.dSYM
7054
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7057$as_echo "$lt_cv_ld_force_load" >&6; }
7058    case $host_os in
7059    rhapsody* | darwin1.[012])
7060      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7061    darwin1.*)
7062      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063    darwin*) # darwin 5.x on
7064      # if running on 10.5 or later, the deployment target defaults
7065      # to the OS version, if on x86, and 10.4, the deployment
7066      # target defaults to 10.4. Don't you love it?
7067      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7068	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7069	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7070	10.[012]*)
7071	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7072	10.*)
7073	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7074      esac
7075    ;;
7076  esac
7077    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7078      _lt_dar_single_mod='$single_module'
7079    fi
7080    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7081      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7082    else
7083      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7084    fi
7085    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7086      _lt_dsymutil='~$DSYMUTIL $lib || :'
7087    else
7088      _lt_dsymutil=
7089    fi
7090    ;;
7091  esac
7092
7093ac_ext=c
7094ac_cpp='$CPP $CPPFLAGS'
7095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7099$as_echo_n "checking how to run the C preprocessor... " >&6; }
7100# On Suns, sometimes $CPP names a directory.
7101if test -n "$CPP" && test -d "$CPP"; then
7102  CPP=
7103fi
7104if test -z "$CPP"; then
7105  if test "${ac_cv_prog_CPP+set}" = set; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108      # Double quotes because CPP needs to be expanded
7109    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7110    do
7111      ac_preproc_ok=false
7112for ac_c_preproc_warn_flag in '' yes
7113do
7114  # Use a header file that comes with gcc, so configuring glibc
7115  # with a fresh cross-compiler works.
7116  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117  # <limits.h> exists even on freestanding compilers.
7118  # On the NeXT, cc -E runs the code through the compiler's parser,
7119  # not just through cpp. "Syntax error" is here to catch this case.
7120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h.  */
7122#ifdef __STDC__
7123# include <limits.h>
7124#else
7125# include <assert.h>
7126#endif
7127		     Syntax error
7128_ACEOF
7129if ac_fn_c_try_cpp "$LINENO"; then :
7130
7131else
7132  # Broken: fails on valid input.
7133continue
7134fi
7135rm -f conftest.err conftest.$ac_ext
7136
7137  # OK, works on sane cases.  Now check whether nonexistent headers
7138  # can be detected and how.
7139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h.  */
7141#include <ac_nonexistent.h>
7142_ACEOF
7143if ac_fn_c_try_cpp "$LINENO"; then :
7144  # Broken: success on invalid input.
7145continue
7146else
7147  # Passes both tests.
7148ac_preproc_ok=:
7149break
7150fi
7151rm -f conftest.err conftest.$ac_ext
7152
7153done
7154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7155rm -f conftest.err conftest.$ac_ext
7156if $ac_preproc_ok; then :
7157  break
7158fi
7159
7160    done
7161    ac_cv_prog_CPP=$CPP
7162
7163fi
7164  CPP=$ac_cv_prog_CPP
7165else
7166  ac_cv_prog_CPP=$CPP
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7169$as_echo "$CPP" >&6; }
7170ac_preproc_ok=false
7171for ac_c_preproc_warn_flag in '' yes
7172do
7173  # Use a header file that comes with gcc, so configuring glibc
7174  # with a fresh cross-compiler works.
7175  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176  # <limits.h> exists even on freestanding compilers.
7177  # On the NeXT, cc -E runs the code through the compiler's parser,
7178  # not just through cpp. "Syntax error" is here to catch this case.
7179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h.  */
7181#ifdef __STDC__
7182# include <limits.h>
7183#else
7184# include <assert.h>
7185#endif
7186		     Syntax error
7187_ACEOF
7188if ac_fn_c_try_cpp "$LINENO"; then :
7189
7190else
7191  # Broken: fails on valid input.
7192continue
7193fi
7194rm -f conftest.err conftest.$ac_ext
7195
7196  # OK, works on sane cases.  Now check whether nonexistent headers
7197  # can be detected and how.
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200#include <ac_nonexistent.h>
7201_ACEOF
7202if ac_fn_c_try_cpp "$LINENO"; then :
7203  # Broken: success on invalid input.
7204continue
7205else
7206  # Passes both tests.
7207ac_preproc_ok=:
7208break
7209fi
7210rm -f conftest.err conftest.$ac_ext
7211
7212done
7213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7214rm -f conftest.err conftest.$ac_ext
7215if $ac_preproc_ok; then :
7216
7217else
7218  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7221See \`config.log' for more details" "$LINENO" 5; }
7222fi
7223
7224ac_ext=c
7225ac_cpp='$CPP $CPPFLAGS'
7226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
7230
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7232$as_echo_n "checking for ANSI C header files... " >&6; }
7233if test "${ac_cv_header_stdc+set}" = set; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237/* end confdefs.h.  */
7238#include <stdlib.h>
7239#include <stdarg.h>
7240#include <string.h>
7241#include <float.h>
7242
7243int
7244main ()
7245{
7246
7247  ;
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_compile "$LINENO"; then :
7252  ac_cv_header_stdc=yes
7253else
7254  ac_cv_header_stdc=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257
7258if test $ac_cv_header_stdc = yes; then
7259  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262#include <string.h>
7263
7264_ACEOF
7265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7266  $EGREP "memchr" >/dev/null 2>&1; then :
7267
7268else
7269  ac_cv_header_stdc=no
7270fi
7271rm -f conftest*
7272
7273fi
7274
7275if test $ac_cv_header_stdc = yes; then
7276  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279#include <stdlib.h>
7280
7281_ACEOF
7282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283  $EGREP "free" >/dev/null 2>&1; then :
7284
7285else
7286  ac_cv_header_stdc=no
7287fi
7288rm -f conftest*
7289
7290fi
7291
7292if test $ac_cv_header_stdc = yes; then
7293  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7294  if test "$cross_compiling" = yes; then :
7295  :
7296else
7297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h.  */
7299#include <ctype.h>
7300#include <stdlib.h>
7301#if ((' ' & 0x0FF) == 0x020)
7302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7304#else
7305# define ISLOWER(c) \
7306		   (('a' <= (c) && (c) <= 'i') \
7307		     || ('j' <= (c) && (c) <= 'r') \
7308		     || ('s' <= (c) && (c) <= 'z'))
7309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7310#endif
7311
7312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7313int
7314main ()
7315{
7316  int i;
7317  for (i = 0; i < 256; i++)
7318    if (XOR (islower (i), ISLOWER (i))
7319	|| toupper (i) != TOUPPER (i))
7320      return 2;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_run "$LINENO"; then :
7325
7326else
7327  ac_cv_header_stdc=no
7328fi
7329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7330  conftest.$ac_objext conftest.beam conftest.$ac_ext
7331fi
7332
7333fi
7334fi
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7336$as_echo "$ac_cv_header_stdc" >&6; }
7337if test $ac_cv_header_stdc = yes; then
7338
7339$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7340
7341fi
7342
7343# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7344for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7345		  inttypes.h stdint.h unistd.h
7346do :
7347  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7349"
7350if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7351  cat >>confdefs.h <<_ACEOF
7352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7353_ACEOF
7354
7355fi
7356
7357done
7358
7359
7360for ac_header in dlfcn.h
7361do :
7362  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7363"
7364if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7365  cat >>confdefs.h <<_ACEOF
7366#define HAVE_DLFCN_H 1
7367_ACEOF
7368
7369fi
7370
7371done
7372
7373
7374
7375
7376
7377
7378# Set options
7379
7380
7381
7382
7383  enable_win32_dll=no
7384
7385
7386            # Check whether --enable-shared was given.
7387if test "${enable_shared+set}" = set; then :
7388  enableval=$enable_shared; p=${PACKAGE-default}
7389    case $enableval in
7390    yes) enable_shared=yes ;;
7391    no) enable_shared=no ;;
7392    *)
7393      enable_shared=no
7394      # Look at the argument we got.  We use all the common list separators.
7395      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7396      for pkg in $enableval; do
7397	IFS="$lt_save_ifs"
7398	if test "X$pkg" = "X$p"; then
7399	  enable_shared=yes
7400	fi
7401      done
7402      IFS="$lt_save_ifs"
7403      ;;
7404    esac
7405else
7406  enable_shared=yes
7407fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417  # Check whether --enable-static was given.
7418if test "${enable_static+set}" = set; then :
7419  enableval=$enable_static; p=${PACKAGE-default}
7420    case $enableval in
7421    yes) enable_static=yes ;;
7422    no) enable_static=no ;;
7423    *)
7424     enable_static=no
7425      # Look at the argument we got.  We use all the common list separators.
7426      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7427      for pkg in $enableval; do
7428	IFS="$lt_save_ifs"
7429	if test "X$pkg" = "X$p"; then
7430	  enable_static=yes
7431	fi
7432      done
7433      IFS="$lt_save_ifs"
7434      ;;
7435    esac
7436else
7437  enable_static=yes
7438fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449# Check whether --with-pic was given.
7450if test "${with_pic+set}" = set; then :
7451  withval=$with_pic; pic_mode="$withval"
7452else
7453  pic_mode=default
7454fi
7455
7456
7457test -z "$pic_mode" && pic_mode=default
7458
7459
7460
7461
7462
7463
7464
7465  # Check whether --enable-fast-install was given.
7466if test "${enable_fast_install+set}" = set; then :
7467  enableval=$enable_fast_install; p=${PACKAGE-default}
7468    case $enableval in
7469    yes) enable_fast_install=yes ;;
7470    no) enable_fast_install=no ;;
7471    *)
7472      enable_fast_install=no
7473      # Look at the argument we got.  We use all the common list separators.
7474      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7475      for pkg in $enableval; do
7476	IFS="$lt_save_ifs"
7477	if test "X$pkg" = "X$p"; then
7478	  enable_fast_install=yes
7479	fi
7480      done
7481      IFS="$lt_save_ifs"
7482      ;;
7483    esac
7484else
7485  enable_fast_install=yes
7486fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498# This can be used to rebuild libtool when needed
7499LIBTOOL_DEPS="$ltmain"
7500
7501# Always use our own libtool.
7502LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529test -z "$LN_S" && LN_S="ln -s"
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544if test -n "${ZSH_VERSION+set}" ; then
7545   setopt NO_GLOB_SUBST
7546fi
7547
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7549$as_echo_n "checking for objdir... " >&6; }
7550if test "${lt_cv_objdir+set}" = set; then :
7551  $as_echo_n "(cached) " >&6
7552else
7553  rm -f .libs 2>/dev/null
7554mkdir .libs 2>/dev/null
7555if test -d .libs; then
7556  lt_cv_objdir=.libs
7557else
7558  # MS-DOS does not allow filenames that begin with a dot.
7559  lt_cv_objdir=_libs
7560fi
7561rmdir .libs 2>/dev/null
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7564$as_echo "$lt_cv_objdir" >&6; }
7565objdir=$lt_cv_objdir
7566
7567
7568
7569
7570
7571cat >>confdefs.h <<_ACEOF
7572#define LT_OBJDIR "$lt_cv_objdir/"
7573_ACEOF
7574
7575
7576
7577
7578case $host_os in
7579aix3*)
7580  # AIX sometimes has problems with the GCC collect2 program.  For some
7581  # reason, if we set the COLLECT_NAMES environment variable, the problems
7582  # vanish in a puff of smoke.
7583  if test "X${COLLECT_NAMES+set}" != Xset; then
7584    COLLECT_NAMES=
7585    export COLLECT_NAMES
7586  fi
7587  ;;
7588esac
7589
7590# Global variables:
7591ofile=libtool
7592can_build_shared=yes
7593
7594# All known linkers require a `.a' archive for static linking (except MSVC,
7595# which needs '.lib').
7596libext=a
7597
7598with_gnu_ld="$lt_cv_prog_gnu_ld"
7599
7600old_CC="$CC"
7601old_CFLAGS="$CFLAGS"
7602
7603# Set sane defaults for various variables
7604test -z "$CC" && CC=cc
7605test -z "$LTCC" && LTCC=$CC
7606test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7607test -z "$LD" && LD=ld
7608test -z "$ac_objext" && ac_objext=o
7609
7610for cc_temp in $compiler""; do
7611  case $cc_temp in
7612    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7613    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7614    \-*) ;;
7615    *) break;;
7616  esac
7617done
7618cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7619
7620
7621# Only perform the check for file, if the check method requires it
7622test -z "$MAGIC_CMD" && MAGIC_CMD=file
7623case $deplibs_check_method in
7624file_magic*)
7625  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7627$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7628if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  case $MAGIC_CMD in
7632[\\/*] |  ?:[\\/]*)
7633  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7634  ;;
7635*)
7636  lt_save_MAGIC_CMD="$MAGIC_CMD"
7637  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7638  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7639  for ac_dir in $ac_dummy; do
7640    IFS="$lt_save_ifs"
7641    test -z "$ac_dir" && ac_dir=.
7642    if test -f $ac_dir/${ac_tool_prefix}file; then
7643      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7644      if test -n "$file_magic_test_file"; then
7645	case $deplibs_check_method in
7646	"file_magic "*)
7647	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7648	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7649	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7650	    $EGREP "$file_magic_regex" > /dev/null; then
7651	    :
7652	  else
7653	    cat <<_LT_EOF 1>&2
7654
7655*** Warning: the command libtool uses to detect shared libraries,
7656*** $file_magic_cmd, produces output that libtool cannot recognize.
7657*** The result is that libtool may fail to recognize shared libraries
7658*** as such.  This will affect the creation of libtool libraries that
7659*** depend on shared libraries, but programs linked with such libtool
7660*** libraries will work regardless of this problem.  Nevertheless, you
7661*** may want to report the problem to your system manager and/or to
7662*** bug-libtool@gnu.org
7663
7664_LT_EOF
7665	  fi ;;
7666	esac
7667      fi
7668      break
7669    fi
7670  done
7671  IFS="$lt_save_ifs"
7672  MAGIC_CMD="$lt_save_MAGIC_CMD"
7673  ;;
7674esac
7675fi
7676
7677MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7678if test -n "$MAGIC_CMD"; then
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7680$as_echo "$MAGIC_CMD" >&6; }
7681else
7682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683$as_echo "no" >&6; }
7684fi
7685
7686
7687
7688
7689
7690if test -z "$lt_cv_path_MAGIC_CMD"; then
7691  if test -n "$ac_tool_prefix"; then
7692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7693$as_echo_n "checking for file... " >&6; }
7694if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  case $MAGIC_CMD in
7698[\\/*] |  ?:[\\/]*)
7699  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7700  ;;
7701*)
7702  lt_save_MAGIC_CMD="$MAGIC_CMD"
7703  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7704  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7705  for ac_dir in $ac_dummy; do
7706    IFS="$lt_save_ifs"
7707    test -z "$ac_dir" && ac_dir=.
7708    if test -f $ac_dir/file; then
7709      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7710      if test -n "$file_magic_test_file"; then
7711	case $deplibs_check_method in
7712	"file_magic "*)
7713	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7714	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7715	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7716	    $EGREP "$file_magic_regex" > /dev/null; then
7717	    :
7718	  else
7719	    cat <<_LT_EOF 1>&2
7720
7721*** Warning: the command libtool uses to detect shared libraries,
7722*** $file_magic_cmd, produces output that libtool cannot recognize.
7723*** The result is that libtool may fail to recognize shared libraries
7724*** as such.  This will affect the creation of libtool libraries that
7725*** depend on shared libraries, but programs linked with such libtool
7726*** libraries will work regardless of this problem.  Nevertheless, you
7727*** may want to report the problem to your system manager and/or to
7728*** bug-libtool@gnu.org
7729
7730_LT_EOF
7731	  fi ;;
7732	esac
7733      fi
7734      break
7735    fi
7736  done
7737  IFS="$lt_save_ifs"
7738  MAGIC_CMD="$lt_save_MAGIC_CMD"
7739  ;;
7740esac
7741fi
7742
7743MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7744if test -n "$MAGIC_CMD"; then
7745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7746$as_echo "$MAGIC_CMD" >&6; }
7747else
7748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
7750fi
7751
7752
7753  else
7754    MAGIC_CMD=:
7755  fi
7756fi
7757
7758  fi
7759  ;;
7760esac
7761
7762# Use C for the default configuration in the libtool script
7763
7764lt_save_CC="$CC"
7765ac_ext=c
7766ac_cpp='$CPP $CPPFLAGS'
7767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
7771
7772# Source file extension for C test sources.
7773ac_ext=c
7774
7775# Object file extension for compiled C test sources.
7776objext=o
7777objext=$objext
7778
7779# Code to be used in simple compile tests
7780lt_simple_compile_test_code="int some_variable = 0;"
7781
7782# Code to be used in simple link tests
7783lt_simple_link_test_code='int main(){return(0);}'
7784
7785
7786
7787
7788
7789
7790
7791# If no C compiler was specified, use CC.
7792LTCC=${LTCC-"$CC"}
7793
7794# If no C compiler flags were specified, use CFLAGS.
7795LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7796
7797# Allow CC to be a program name with arguments.
7798compiler=$CC
7799
7800# Save the default compiler, since it gets overwritten when the other
7801# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7802compiler_DEFAULT=$CC
7803
7804# save warnings/boilerplate of simple test code
7805ac_outfile=conftest.$ac_objext
7806echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7807eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7808_lt_compiler_boilerplate=`cat conftest.err`
7809$RM conftest*
7810
7811ac_outfile=conftest.$ac_objext
7812echo "$lt_simple_link_test_code" >conftest.$ac_ext
7813eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7814_lt_linker_boilerplate=`cat conftest.err`
7815$RM -r conftest*
7816
7817
7818if test -n "$compiler"; then
7819
7820lt_prog_compiler_no_builtin_flag=
7821
7822if test "$GCC" = yes; then
7823  case $cc_basename in
7824  nvcc*)
7825    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7826  *)
7827    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7828  esac
7829
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7831$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7832if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  lt_cv_prog_compiler_rtti_exceptions=no
7836   ac_outfile=conftest.$ac_objext
7837   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7838   lt_compiler_flag="-fno-rtti -fno-exceptions"
7839   # Insert the option either (1) after the last *FLAGS variable, or
7840   # (2) before a word containing "conftest.", or (3) at the end.
7841   # Note that $ac_compile itself does not contain backslashes and begins
7842   # with a dollar sign (not a hyphen), so the echo should work correctly.
7843   # The option is referenced via a variable to avoid confusing sed.
7844   lt_compile=`echo "$ac_compile" | $SED \
7845   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847   -e 's:$: $lt_compiler_flag:'`
7848   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7849   (eval "$lt_compile" 2>conftest.err)
7850   ac_status=$?
7851   cat conftest.err >&5
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   if (exit $ac_status) && test -s "$ac_outfile"; then
7854     # The compiler can only warn and ignore the option if not recognized
7855     # So say no if there are warnings other than the usual output.
7856     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7857     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7859       lt_cv_prog_compiler_rtti_exceptions=yes
7860     fi
7861   fi
7862   $RM conftest*
7863
7864fi
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7866$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7867
7868if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7869    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7870else
7871    :
7872fi
7873
7874fi
7875
7876
7877
7878
7879
7880
7881  lt_prog_compiler_wl=
7882lt_prog_compiler_pic=
7883lt_prog_compiler_static=
7884
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7886$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7887
7888  if test "$GCC" = yes; then
7889    lt_prog_compiler_wl='-Wl,'
7890    lt_prog_compiler_static='-static'
7891
7892    case $host_os in
7893      aix*)
7894      # All AIX code is PIC.
7895      if test "$host_cpu" = ia64; then
7896	# AIX 5 now supports IA64 processor
7897	lt_prog_compiler_static='-Bstatic'
7898      fi
7899      ;;
7900
7901    amigaos*)
7902      case $host_cpu in
7903      powerpc)
7904            # see comment about AmigaOS4 .so support
7905            lt_prog_compiler_pic='-fPIC'
7906        ;;
7907      m68k)
7908            # FIXME: we need at least 68020 code to build shared libraries, but
7909            # adding the `-m68020' flag to GCC prevents building anything better,
7910            # like `-m68040'.
7911            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7912        ;;
7913      esac
7914      ;;
7915
7916    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7917      # PIC is the default for these OSes.
7918      ;;
7919
7920    mingw* | cygwin* | pw32* | os2* | cegcc*)
7921      # This hack is so that the source file can tell whether it is being
7922      # built for inclusion in a dll (and should export symbols for example).
7923      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7924      # (--disable-auto-import) libraries
7925      lt_prog_compiler_pic='-DDLL_EXPORT'
7926      ;;
7927
7928    darwin* | rhapsody*)
7929      # PIC is the default on this platform
7930      # Common symbols not allowed in MH_DYLIB files
7931      lt_prog_compiler_pic='-fno-common'
7932      ;;
7933
7934    haiku*)
7935      # PIC is the default for Haiku.
7936      # The "-static" flag exists, but is broken.
7937      lt_prog_compiler_static=
7938      ;;
7939
7940    hpux*)
7941      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7942      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7943      # sets the default TLS model and affects inlining.
7944      case $host_cpu in
7945      hppa*64*)
7946	# +Z the default
7947	;;
7948      *)
7949	lt_prog_compiler_pic='-fPIC'
7950	;;
7951      esac
7952      ;;
7953
7954    interix[3-9]*)
7955      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7956      # Instead, we relocate shared libraries at runtime.
7957      ;;
7958
7959    msdosdjgpp*)
7960      # Just because we use GCC doesn't mean we suddenly get shared libraries
7961      # on systems that don't support them.
7962      lt_prog_compiler_can_build_shared=no
7963      enable_shared=no
7964      ;;
7965
7966    *nto* | *qnx*)
7967      # QNX uses GNU C++, but need to define -shared option too, otherwise
7968      # it will coredump.
7969      lt_prog_compiler_pic='-fPIC -shared'
7970      ;;
7971
7972    sysv4*MP*)
7973      if test -d /usr/nec; then
7974	lt_prog_compiler_pic=-Kconform_pic
7975      fi
7976      ;;
7977
7978    *)
7979      lt_prog_compiler_pic='-fPIC'
7980      ;;
7981    esac
7982
7983    case $cc_basename in
7984    nvcc*) # Cuda Compiler Driver 2.2
7985      lt_prog_compiler_wl='-Xlinker '
7986      lt_prog_compiler_pic='-Xcompiler -fPIC'
7987      ;;
7988    esac
7989  else
7990    # PORTME Check for flag to pass linker flags through the system compiler.
7991    case $host_os in
7992    aix*)
7993      lt_prog_compiler_wl='-Wl,'
7994      if test "$host_cpu" = ia64; then
7995	# AIX 5 now supports IA64 processor
7996	lt_prog_compiler_static='-Bstatic'
7997      else
7998	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7999      fi
8000      ;;
8001
8002    mingw* | cygwin* | pw32* | os2* | cegcc*)
8003      # This hack is so that the source file can tell whether it is being
8004      # built for inclusion in a dll (and should export symbols for example).
8005      lt_prog_compiler_pic='-DDLL_EXPORT'
8006      ;;
8007
8008    hpux9* | hpux10* | hpux11*)
8009      lt_prog_compiler_wl='-Wl,'
8010      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8011      # not for PA HP-UX.
8012      case $host_cpu in
8013      hppa*64*|ia64*)
8014	# +Z the default
8015	;;
8016      *)
8017	lt_prog_compiler_pic='+Z'
8018	;;
8019      esac
8020      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8021      lt_prog_compiler_static='${wl}-a ${wl}archive'
8022      ;;
8023
8024    irix5* | irix6* | nonstopux*)
8025      lt_prog_compiler_wl='-Wl,'
8026      # PIC (with -KPIC) is the default.
8027      lt_prog_compiler_static='-non_shared'
8028      ;;
8029
8030    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8031      case $cc_basename in
8032      # old Intel for x86_64 which still supported -KPIC.
8033      ecc*)
8034	lt_prog_compiler_wl='-Wl,'
8035	lt_prog_compiler_pic='-KPIC'
8036	lt_prog_compiler_static='-static'
8037        ;;
8038      # icc used to be incompatible with GCC.
8039      # ICC 10 doesn't accept -KPIC any more.
8040      icc* | ifort*)
8041	lt_prog_compiler_wl='-Wl,'
8042	lt_prog_compiler_pic='-fPIC'
8043	lt_prog_compiler_static='-static'
8044        ;;
8045      # Lahey Fortran 8.1.
8046      lf95*)
8047	lt_prog_compiler_wl='-Wl,'
8048	lt_prog_compiler_pic='--shared'
8049	lt_prog_compiler_static='--static'
8050	;;
8051      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8052        # Portland Group compilers (*not* the Pentium gcc compiler,
8053	# which looks to be a dead project)
8054	lt_prog_compiler_wl='-Wl,'
8055	lt_prog_compiler_pic='-fpic'
8056	lt_prog_compiler_static='-Bstatic'
8057        ;;
8058      ccc*)
8059        lt_prog_compiler_wl='-Wl,'
8060        # All Alpha code is PIC.
8061        lt_prog_compiler_static='-non_shared'
8062        ;;
8063      xl* | bgxl* | bgf* | mpixl*)
8064	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8065	lt_prog_compiler_wl='-Wl,'
8066	lt_prog_compiler_pic='-qpic'
8067	lt_prog_compiler_static='-qstaticlink'
8068	;;
8069      *)
8070	case `$CC -V 2>&1 | sed 5q` in
8071	*Sun\ F* | *Sun*Fortran*)
8072	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8073	  lt_prog_compiler_pic='-KPIC'
8074	  lt_prog_compiler_static='-Bstatic'
8075	  lt_prog_compiler_wl=''
8076	  ;;
8077	*Sun\ C*)
8078	  # Sun C 5.9
8079	  lt_prog_compiler_pic='-KPIC'
8080	  lt_prog_compiler_static='-Bstatic'
8081	  lt_prog_compiler_wl='-Wl,'
8082	  ;;
8083	esac
8084	;;
8085      esac
8086      ;;
8087
8088    newsos6)
8089      lt_prog_compiler_pic='-KPIC'
8090      lt_prog_compiler_static='-Bstatic'
8091      ;;
8092
8093    *nto* | *qnx*)
8094      # QNX uses GNU C++, but need to define -shared option too, otherwise
8095      # it will coredump.
8096      lt_prog_compiler_pic='-fPIC -shared'
8097      ;;
8098
8099    osf3* | osf4* | osf5*)
8100      lt_prog_compiler_wl='-Wl,'
8101      # All OSF/1 code is PIC.
8102      lt_prog_compiler_static='-non_shared'
8103      ;;
8104
8105    rdos*)
8106      lt_prog_compiler_static='-non_shared'
8107      ;;
8108
8109    solaris*)
8110      lt_prog_compiler_pic='-KPIC'
8111      lt_prog_compiler_static='-Bstatic'
8112      case $cc_basename in
8113      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8114	lt_prog_compiler_wl='-Qoption ld ';;
8115      *)
8116	lt_prog_compiler_wl='-Wl,';;
8117      esac
8118      ;;
8119
8120    sunos4*)
8121      lt_prog_compiler_wl='-Qoption ld '
8122      lt_prog_compiler_pic='-PIC'
8123      lt_prog_compiler_static='-Bstatic'
8124      ;;
8125
8126    sysv4 | sysv4.2uw2* | sysv4.3*)
8127      lt_prog_compiler_wl='-Wl,'
8128      lt_prog_compiler_pic='-KPIC'
8129      lt_prog_compiler_static='-Bstatic'
8130      ;;
8131
8132    sysv4*MP*)
8133      if test -d /usr/nec ;then
8134	lt_prog_compiler_pic='-Kconform_pic'
8135	lt_prog_compiler_static='-Bstatic'
8136      fi
8137      ;;
8138
8139    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8140      lt_prog_compiler_wl='-Wl,'
8141      lt_prog_compiler_pic='-KPIC'
8142      lt_prog_compiler_static='-Bstatic'
8143      ;;
8144
8145    unicos*)
8146      lt_prog_compiler_wl='-Wl,'
8147      lt_prog_compiler_can_build_shared=no
8148      ;;
8149
8150    uts4*)
8151      lt_prog_compiler_pic='-pic'
8152      lt_prog_compiler_static='-Bstatic'
8153      ;;
8154
8155    *)
8156      lt_prog_compiler_can_build_shared=no
8157      ;;
8158    esac
8159  fi
8160
8161case $host_os in
8162  # For platforms which do not support PIC, -DPIC is meaningless:
8163  *djgpp*)
8164    lt_prog_compiler_pic=
8165    ;;
8166  *)
8167    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8168    ;;
8169esac
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8171$as_echo "$lt_prog_compiler_pic" >&6; }
8172
8173
8174
8175
8176
8177
8178#
8179# Check to make sure the PIC flag actually works.
8180#
8181if test -n "$lt_prog_compiler_pic"; then
8182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8183$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8184if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187  lt_cv_prog_compiler_pic_works=no
8188   ac_outfile=conftest.$ac_objext
8189   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8190   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8191   # Insert the option either (1) after the last *FLAGS variable, or
8192   # (2) before a word containing "conftest.", or (3) at the end.
8193   # Note that $ac_compile itself does not contain backslashes and begins
8194   # with a dollar sign (not a hyphen), so the echo should work correctly.
8195   # The option is referenced via a variable to avoid confusing sed.
8196   lt_compile=`echo "$ac_compile" | $SED \
8197   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8198   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8199   -e 's:$: $lt_compiler_flag:'`
8200   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8201   (eval "$lt_compile" 2>conftest.err)
8202   ac_status=$?
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   if (exit $ac_status) && test -s "$ac_outfile"; then
8206     # The compiler can only warn and ignore the option if not recognized
8207     # So say no if there are warnings other than the usual output.
8208     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8209     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8210     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8211       lt_cv_prog_compiler_pic_works=yes
8212     fi
8213   fi
8214   $RM conftest*
8215
8216fi
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8218$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8219
8220if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8221    case $lt_prog_compiler_pic in
8222     "" | " "*) ;;
8223     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8224     esac
8225else
8226    lt_prog_compiler_pic=
8227     lt_prog_compiler_can_build_shared=no
8228fi
8229
8230fi
8231
8232
8233
8234
8235
8236
8237#
8238# Check to make sure the static flag actually works.
8239#
8240wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8242$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8243if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  lt_cv_prog_compiler_static_works=no
8247   save_LDFLAGS="$LDFLAGS"
8248   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8249   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8250   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8251     # The linker can only warn and ignore the option if not recognized
8252     # So say no if there are warnings
8253     if test -s conftest.err; then
8254       # Append any errors to the config.log.
8255       cat conftest.err 1>&5
8256       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8257       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8258       if diff conftest.exp conftest.er2 >/dev/null; then
8259         lt_cv_prog_compiler_static_works=yes
8260       fi
8261     else
8262       lt_cv_prog_compiler_static_works=yes
8263     fi
8264   fi
8265   $RM -r conftest*
8266   LDFLAGS="$save_LDFLAGS"
8267
8268fi
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8270$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8271
8272if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8273    :
8274else
8275    lt_prog_compiler_static=
8276fi
8277
8278
8279
8280
8281
8282
8283
8284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8285$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8286if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  lt_cv_prog_compiler_c_o=no
8290   $RM -r conftest 2>/dev/null
8291   mkdir conftest
8292   cd conftest
8293   mkdir out
8294   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8295
8296   lt_compiler_flag="-o out/conftest2.$ac_objext"
8297   # Insert the option either (1) after the last *FLAGS variable, or
8298   # (2) before a word containing "conftest.", or (3) at the end.
8299   # Note that $ac_compile itself does not contain backslashes and begins
8300   # with a dollar sign (not a hyphen), so the echo should work correctly.
8301   lt_compile=`echo "$ac_compile" | $SED \
8302   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8303   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8304   -e 's:$: $lt_compiler_flag:'`
8305   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8306   (eval "$lt_compile" 2>out/conftest.err)
8307   ac_status=$?
8308   cat out/conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8311   then
8312     # The compiler can only warn and ignore the option if not recognized
8313     # So say no if there are warnings
8314     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8315     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8316     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8317       lt_cv_prog_compiler_c_o=yes
8318     fi
8319   fi
8320   chmod u+w . 2>&5
8321   $RM conftest*
8322   # SGI C++ compiler will create directory out/ii_files/ for
8323   # template instantiation
8324   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8325   $RM out/* && rmdir out
8326   cd ..
8327   $RM -r conftest
8328   $RM conftest*
8329
8330fi
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8332$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8333
8334
8335
8336
8337
8338
8339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8340$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8341if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  lt_cv_prog_compiler_c_o=no
8345   $RM -r conftest 2>/dev/null
8346   mkdir conftest
8347   cd conftest
8348   mkdir out
8349   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350
8351   lt_compiler_flag="-o out/conftest2.$ac_objext"
8352   # Insert the option either (1) after the last *FLAGS variable, or
8353   # (2) before a word containing "conftest.", or (3) at the end.
8354   # Note that $ac_compile itself does not contain backslashes and begins
8355   # with a dollar sign (not a hyphen), so the echo should work correctly.
8356   lt_compile=`echo "$ac_compile" | $SED \
8357   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359   -e 's:$: $lt_compiler_flag:'`
8360   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8361   (eval "$lt_compile" 2>out/conftest.err)
8362   ac_status=$?
8363   cat out/conftest.err >&5
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8366   then
8367     # The compiler can only warn and ignore the option if not recognized
8368     # So say no if there are warnings
8369     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8370     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8371     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8372       lt_cv_prog_compiler_c_o=yes
8373     fi
8374   fi
8375   chmod u+w . 2>&5
8376   $RM conftest*
8377   # SGI C++ compiler will create directory out/ii_files/ for
8378   # template instantiation
8379   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8380   $RM out/* && rmdir out
8381   cd ..
8382   $RM -r conftest
8383   $RM conftest*
8384
8385fi
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8387$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8388
8389
8390
8391
8392hard_links="nottested"
8393if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8394  # do not overwrite the value of need_locks provided by the user
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8396$as_echo_n "checking if we can lock with hard links... " >&6; }
8397  hard_links=yes
8398  $RM conftest*
8399  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400  touch conftest.a
8401  ln conftest.a conftest.b 2>&5 || hard_links=no
8402  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8404$as_echo "$hard_links" >&6; }
8405  if test "$hard_links" = no; then
8406    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8407$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8408    need_locks=warn
8409  fi
8410else
8411  need_locks=no
8412fi
8413
8414
8415
8416
8417
8418
8419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8420$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8421
8422  runpath_var=
8423  allow_undefined_flag=
8424  always_export_symbols=no
8425  archive_cmds=
8426  archive_expsym_cmds=
8427  compiler_needs_object=no
8428  enable_shared_with_static_runtimes=no
8429  export_dynamic_flag_spec=
8430  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8431  hardcode_automatic=no
8432  hardcode_direct=no
8433  hardcode_direct_absolute=no
8434  hardcode_libdir_flag_spec=
8435  hardcode_libdir_flag_spec_ld=
8436  hardcode_libdir_separator=
8437  hardcode_minus_L=no
8438  hardcode_shlibpath_var=unsupported
8439  inherit_rpath=no
8440  link_all_deplibs=unknown
8441  module_cmds=
8442  module_expsym_cmds=
8443  old_archive_from_new_cmds=
8444  old_archive_from_expsyms_cmds=
8445  thread_safe_flag_spec=
8446  whole_archive_flag_spec=
8447  # include_expsyms should be a list of space-separated symbols to be *always*
8448  # included in the symbol list
8449  include_expsyms=
8450  # exclude_expsyms can be an extended regexp of symbols to exclude
8451  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8452  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8453  # as well as any symbol that contains `d'.
8454  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8455  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8456  # platforms (ab)use it in PIC code, but their linkers get confused if
8457  # the symbol is explicitly referenced.  Since portable code cannot
8458  # rely on this symbol name, it's probably fine to never include it in
8459  # preloaded symbol tables.
8460  # Exclude shared library initialization/finalization symbols.
8461  extract_expsyms_cmds=
8462
8463  case $host_os in
8464  cygwin* | mingw* | pw32* | cegcc*)
8465    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8466    # When not using gcc, we currently assume that we are using
8467    # Microsoft Visual C++.
8468    if test "$GCC" != yes; then
8469      with_gnu_ld=no
8470    fi
8471    ;;
8472  interix*)
8473    # we just hope/assume this is gcc and not c89 (= MSVC++)
8474    with_gnu_ld=yes
8475    ;;
8476  openbsd*)
8477    with_gnu_ld=no
8478    ;;
8479  esac
8480
8481  ld_shlibs=yes
8482
8483  # On some targets, GNU ld is compatible enough with the native linker
8484  # that we're better off using the native interface for both.
8485  lt_use_gnu_ld_interface=no
8486  if test "$with_gnu_ld" = yes; then
8487    case $host_os in
8488      aix*)
8489	# The AIX port of GNU ld has always aspired to compatibility
8490	# with the native linker.  However, as the warning in the GNU ld
8491	# block says, versions before 2.19.5* couldn't really create working
8492	# shared libraries, regardless of the interface used.
8493	case `$LD -v 2>&1` in
8494	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8495	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8496	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8497	  *)
8498	    lt_use_gnu_ld_interface=yes
8499	    ;;
8500	esac
8501	;;
8502      *)
8503	lt_use_gnu_ld_interface=yes
8504	;;
8505    esac
8506  fi
8507
8508  if test "$lt_use_gnu_ld_interface" = yes; then
8509    # If archive_cmds runs LD, not CC, wlarc should be empty
8510    wlarc='${wl}'
8511
8512    # Set some defaults for GNU ld with shared library support. These
8513    # are reset later if shared libraries are not supported. Putting them
8514    # here allows them to be overridden if necessary.
8515    runpath_var=LD_RUN_PATH
8516    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8517    export_dynamic_flag_spec='${wl}--export-dynamic'
8518    # ancient GNU ld didn't support --whole-archive et. al.
8519    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8520      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8521    else
8522      whole_archive_flag_spec=
8523    fi
8524    supports_anon_versioning=no
8525    case `$LD -v 2>&1` in
8526      *GNU\ gold*) supports_anon_versioning=yes ;;
8527      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8528      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8529      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8530      *\ 2.11.*) ;; # other 2.11 versions
8531      *) supports_anon_versioning=yes ;;
8532    esac
8533
8534    # See if GNU ld supports shared libraries.
8535    case $host_os in
8536    aix[3-9]*)
8537      # On AIX/PPC, the GNU linker is very broken
8538      if test "$host_cpu" != ia64; then
8539	ld_shlibs=no
8540	cat <<_LT_EOF 1>&2
8541
8542*** Warning: the GNU linker, at least up to release 2.19, is reported
8543*** to be unable to reliably create shared libraries on AIX.
8544*** Therefore, libtool is disabling shared libraries support.  If you
8545*** really care for shared libraries, you may want to install binutils
8546*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8547*** You will then need to restart the configuration process.
8548
8549_LT_EOF
8550      fi
8551      ;;
8552
8553    amigaos*)
8554      case $host_cpu in
8555      powerpc)
8556            # see comment about AmigaOS4 .so support
8557            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558            archive_expsym_cmds=''
8559        ;;
8560      m68k)
8561            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)'
8562            hardcode_libdir_flag_spec='-L$libdir'
8563            hardcode_minus_L=yes
8564        ;;
8565      esac
8566      ;;
8567
8568    beos*)
8569      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8570	allow_undefined_flag=unsupported
8571	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8572	# support --undefined.  This deserves some investigation.  FIXME
8573	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574      else
8575	ld_shlibs=no
8576      fi
8577      ;;
8578
8579    cygwin* | mingw* | pw32* | cegcc*)
8580      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8581      # as there is no search path for DLLs.
8582      hardcode_libdir_flag_spec='-L$libdir'
8583      export_dynamic_flag_spec='${wl}--export-all-symbols'
8584      allow_undefined_flag=unsupported
8585      always_export_symbols=no
8586      enable_shared_with_static_runtimes=yes
8587      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8588
8589      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8590        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8591	# If the export-symbols file already is a .def file (1st line
8592	# is EXPORTS), use it as is; otherwise, prepend...
8593	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8594	  cp $export_symbols $output_objdir/$soname.def;
8595	else
8596	  echo EXPORTS > $output_objdir/$soname.def;
8597	  cat $export_symbols >> $output_objdir/$soname.def;
8598	fi~
8599	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8600      else
8601	ld_shlibs=no
8602      fi
8603      ;;
8604
8605    haiku*)
8606      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607      link_all_deplibs=yes
8608      ;;
8609
8610    interix[3-9]*)
8611      hardcode_direct=no
8612      hardcode_shlibpath_var=no
8613      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8614      export_dynamic_flag_spec='${wl}-E'
8615      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8616      # Instead, shared libraries are loaded at an image base (0x10000000 by
8617      # default) and relocated if they conflict, which is a slow very memory
8618      # consuming and fragmenting process.  To avoid this, we pick a random,
8619      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8620      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8621      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8622      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'
8623      ;;
8624
8625    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8626      tmp_diet=no
8627      if test "$host_os" = linux-dietlibc; then
8628	case $cc_basename in
8629	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8630	esac
8631      fi
8632      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8633	 && test "$tmp_diet" = no
8634      then
8635	tmp_addflag=
8636	tmp_sharedflag='-shared'
8637	case $cc_basename,$host_cpu in
8638        pgcc*)				# Portland Group C compiler
8639	  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'
8640	  tmp_addflag=' $pic_flag'
8641	  ;;
8642	pgf77* | pgf90* | pgf95* | pgfortran*)
8643					# Portland Group f77 and f90 compilers
8644	  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'
8645	  tmp_addflag=' $pic_flag -Mnomain' ;;
8646	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8647	  tmp_addflag=' -i_dynamic' ;;
8648	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8649	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8650	ifc* | ifort*)			# Intel Fortran compiler
8651	  tmp_addflag=' -nofor_main' ;;
8652	lf95*)				# Lahey Fortran 8.1
8653	  whole_archive_flag_spec=
8654	  tmp_sharedflag='--shared' ;;
8655	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8656	  tmp_sharedflag='-qmkshrobj'
8657	  tmp_addflag= ;;
8658	nvcc*)	# Cuda Compiler Driver 2.2
8659	  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'
8660	  compiler_needs_object=yes
8661	  ;;
8662	esac
8663	case `$CC -V 2>&1 | sed 5q` in
8664	*Sun\ C*)			# Sun C 5.9
8665	  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'
8666	  compiler_needs_object=yes
8667	  tmp_sharedflag='-G' ;;
8668	*Sun\ F*)			# Sun Fortran 8.3
8669	  tmp_sharedflag='-G' ;;
8670	esac
8671	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672
8673        if test "x$supports_anon_versioning" = xyes; then
8674          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8675	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8676	    echo "local: *; };" >> $output_objdir/$libname.ver~
8677	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8678        fi
8679
8680	case $cc_basename in
8681	xlf* | bgf* | bgxlf* | mpixlf*)
8682	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8683	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8684	  hardcode_libdir_flag_spec=
8685	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8686	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8687	  if test "x$supports_anon_versioning" = xyes; then
8688	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8689	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8690	      echo "local: *; };" >> $output_objdir/$libname.ver~
8691	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8692	  fi
8693	  ;;
8694	esac
8695      else
8696        ld_shlibs=no
8697      fi
8698      ;;
8699
8700    netbsd*)
8701      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8702	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8703	wlarc=
8704      else
8705	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8707      fi
8708      ;;
8709
8710    solaris*)
8711      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8712	ld_shlibs=no
8713	cat <<_LT_EOF 1>&2
8714
8715*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8716*** create shared libraries on Solaris systems.  Therefore, libtool
8717*** is disabling shared libraries support.  We urge you to upgrade GNU
8718*** binutils to release 2.9.1 or newer.  Another option is to modify
8719*** your PATH or compiler configuration so that the native linker is
8720*** used, and then restart.
8721
8722_LT_EOF
8723      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8724	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8726      else
8727	ld_shlibs=no
8728      fi
8729      ;;
8730
8731    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8732      case `$LD -v 2>&1` in
8733        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8734	ld_shlibs=no
8735	cat <<_LT_EOF 1>&2
8736
8737*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8738*** reliably create shared libraries on SCO systems.  Therefore, libtool
8739*** is disabling shared libraries support.  We urge you to upgrade GNU
8740*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8741*** your PATH or compiler configuration so that the native linker is
8742*** used, and then restart.
8743
8744_LT_EOF
8745	;;
8746	*)
8747	  # For security reasons, it is highly recommended that you always
8748	  # use absolute paths for naming shared libraries, and exclude the
8749	  # DT_RUNPATH tag from executables and libraries.  But doing so
8750	  # requires that you compile everything twice, which is a pain.
8751	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8752	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8753	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8754	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8755	  else
8756	    ld_shlibs=no
8757	  fi
8758	;;
8759      esac
8760      ;;
8761
8762    sunos4*)
8763      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8764      wlarc=
8765      hardcode_direct=yes
8766      hardcode_shlibpath_var=no
8767      ;;
8768
8769    *)
8770      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8771	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773      else
8774	ld_shlibs=no
8775      fi
8776      ;;
8777    esac
8778
8779    if test "$ld_shlibs" = no; then
8780      runpath_var=
8781      hardcode_libdir_flag_spec=
8782      export_dynamic_flag_spec=
8783      whole_archive_flag_spec=
8784    fi
8785  else
8786    # PORTME fill in a description of your system's linker (not GNU ld)
8787    case $host_os in
8788    aix3*)
8789      allow_undefined_flag=unsupported
8790      always_export_symbols=yes
8791      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'
8792      # Note: this linker hardcodes the directories in LIBPATH if there
8793      # are no directories specified by -L.
8794      hardcode_minus_L=yes
8795      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8796	# Neither direct hardcoding nor static linking is supported with a
8797	# broken collect2.
8798	hardcode_direct=unsupported
8799      fi
8800      ;;
8801
8802    aix[4-9]*)
8803      if test "$host_cpu" = ia64; then
8804	# On IA64, the linker does run time linking by default, so we don't
8805	# have to do anything special.
8806	aix_use_runtimelinking=no
8807	exp_sym_flag='-Bexport'
8808	no_entry_flag=""
8809      else
8810	# If we're using GNU nm, then we don't want the "-C" option.
8811	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8812	# Also, AIX nm treats weak defined symbols like other global
8813	# defined symbols, whereas GNU nm marks them as "W".
8814	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8815	  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'
8816	else
8817	  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'
8818	fi
8819	aix_use_runtimelinking=no
8820
8821	# Test if we are trying to use run time linking or normal
8822	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8823	# need to do runtime linking.
8824	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8825	  for ld_flag in $LDFLAGS; do
8826	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8827	    aix_use_runtimelinking=yes
8828	    break
8829	  fi
8830	  done
8831	  ;;
8832	esac
8833
8834	exp_sym_flag='-bexport'
8835	no_entry_flag='-bnoentry'
8836      fi
8837
8838      # When large executables or shared objects are built, AIX ld can
8839      # have problems creating the table of contents.  If linking a library
8840      # or program results in "error TOC overflow" add -mminimal-toc to
8841      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8842      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8843
8844      archive_cmds=''
8845      hardcode_direct=yes
8846      hardcode_direct_absolute=yes
8847      hardcode_libdir_separator=':'
8848      link_all_deplibs=yes
8849      file_list_spec='${wl}-f,'
8850
8851      if test "$GCC" = yes; then
8852	case $host_os in aix4.[012]|aix4.[012].*)
8853	# We only want to do this on AIX 4.2 and lower, the check
8854	# below for broken collect2 doesn't work under 4.3+
8855	  collect2name=`${CC} -print-prog-name=collect2`
8856	  if test -f "$collect2name" &&
8857	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8858	  then
8859	  # We have reworked collect2
8860	  :
8861	  else
8862	  # We have old collect2
8863	  hardcode_direct=unsupported
8864	  # It fails to find uninstalled libraries when the uninstalled
8865	  # path is not listed in the libpath.  Setting hardcode_minus_L
8866	  # to unsupported forces relinking
8867	  hardcode_minus_L=yes
8868	  hardcode_libdir_flag_spec='-L$libdir'
8869	  hardcode_libdir_separator=
8870	  fi
8871	  ;;
8872	esac
8873	shared_flag='-shared'
8874	if test "$aix_use_runtimelinking" = yes; then
8875	  shared_flag="$shared_flag "'${wl}-G'
8876	fi
8877      else
8878	# not using gcc
8879	if test "$host_cpu" = ia64; then
8880	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8881	# chokes on -Wl,-G. The following line is correct:
8882	  shared_flag='-G'
8883	else
8884	  if test "$aix_use_runtimelinking" = yes; then
8885	    shared_flag='${wl}-G'
8886	  else
8887	    shared_flag='${wl}-bM:SRE'
8888	  fi
8889	fi
8890      fi
8891
8892      export_dynamic_flag_spec='${wl}-bexpall'
8893      # It seems that -bexpall does not export symbols beginning with
8894      # underscore (_), so it is better to generate a list of symbols to export.
8895      always_export_symbols=yes
8896      if test "$aix_use_runtimelinking" = yes; then
8897	# Warning - without using the other runtime loading flags (-brtl),
8898	# -berok will link without error, but may produce a broken library.
8899	allow_undefined_flag='-berok'
8900        # Determine the default libpath from the value encoded in an
8901        # empty executable.
8902        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904
8905int
8906main ()
8907{
8908
8909  ;
8910  return 0;
8911}
8912_ACEOF
8913if ac_fn_c_try_link "$LINENO"; then :
8914
8915lt_aix_libpath_sed='
8916    /Import File Strings/,/^$/ {
8917	/^0/ {
8918	    s/^0  *\(.*\)$/\1/
8919	    p
8920	}
8921    }'
8922aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8923# Check for a 64-bit object if we didn't find anything.
8924if test -z "$aix_libpath"; then
8925  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8926fi
8927fi
8928rm -f core conftest.err conftest.$ac_objext \
8929    conftest$ac_exeext conftest.$ac_ext
8930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8931
8932        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8933        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"
8934      else
8935	if test "$host_cpu" = ia64; then
8936	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8937	  allow_undefined_flag="-z nodefs"
8938	  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"
8939	else
8940	 # Determine the default libpath from the value encoded in an
8941	 # empty executable.
8942	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h.  */
8944
8945int
8946main ()
8947{
8948
8949  ;
8950  return 0;
8951}
8952_ACEOF
8953if ac_fn_c_try_link "$LINENO"; then :
8954
8955lt_aix_libpath_sed='
8956    /Import File Strings/,/^$/ {
8957	/^0/ {
8958	    s/^0  *\(.*\)$/\1/
8959	    p
8960	}
8961    }'
8962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963# Check for a 64-bit object if we didn't find anything.
8964if test -z "$aix_libpath"; then
8965  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966fi
8967fi
8968rm -f core conftest.err conftest.$ac_objext \
8969    conftest$ac_exeext conftest.$ac_ext
8970if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8971
8972	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8973	  # Warning - without using the other run time loading flags,
8974	  # -berok will link without error, but may produce a broken library.
8975	  no_undefined_flag=' ${wl}-bernotok'
8976	  allow_undefined_flag=' ${wl}-berok'
8977	  if test "$with_gnu_ld" = yes; then
8978	    # We only use this code for GNU lds that support --whole-archive.
8979	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8980	  else
8981	    # Exported symbols can be pulled into shared objects from archives
8982	    whole_archive_flag_spec='$convenience'
8983	  fi
8984	  archive_cmds_need_lc=yes
8985	  # This is similar to how AIX traditionally builds its shared libraries.
8986	  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'
8987	fi
8988      fi
8989      ;;
8990
8991    amigaos*)
8992      case $host_cpu in
8993      powerpc)
8994            # see comment about AmigaOS4 .so support
8995            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996            archive_expsym_cmds=''
8997        ;;
8998      m68k)
8999            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)'
9000            hardcode_libdir_flag_spec='-L$libdir'
9001            hardcode_minus_L=yes
9002        ;;
9003      esac
9004      ;;
9005
9006    bsdi[45]*)
9007      export_dynamic_flag_spec=-rdynamic
9008      ;;
9009
9010    cygwin* | mingw* | pw32* | cegcc*)
9011      # When not using gcc, we currently assume that we are using
9012      # Microsoft Visual C++.
9013      # hardcode_libdir_flag_spec is actually meaningless, as there is
9014      # no search path for DLLs.
9015      hardcode_libdir_flag_spec=' '
9016      allow_undefined_flag=unsupported
9017      # Tell ltmain to make .lib files, not .a files.
9018      libext=lib
9019      # Tell ltmain to make .dll files, not .so files.
9020      shrext_cmds=".dll"
9021      # FIXME: Setting linknames here is a bad hack.
9022      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9023      # The linker will automatically build a .lib file if we build a DLL.
9024      old_archive_from_new_cmds='true'
9025      # FIXME: Should let the user specify the lib program.
9026      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9027      fix_srcfile_path='`cygpath -w "$srcfile"`'
9028      enable_shared_with_static_runtimes=yes
9029      ;;
9030
9031    darwin* | rhapsody*)
9032
9033
9034  archive_cmds_need_lc=no
9035  hardcode_direct=no
9036  hardcode_automatic=yes
9037  hardcode_shlibpath_var=unsupported
9038  if test "$lt_cv_ld_force_load" = "yes"; then
9039    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\"`'
9040  else
9041    whole_archive_flag_spec=''
9042  fi
9043  link_all_deplibs=yes
9044  allow_undefined_flag="$_lt_dar_allow_undefined"
9045  case $cc_basename in
9046     ifort*) _lt_dar_can_shared=yes ;;
9047     *) _lt_dar_can_shared=$GCC ;;
9048  esac
9049  if test "$_lt_dar_can_shared" = "yes"; then
9050    output_verbose_link_cmd=func_echo_all
9051    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9052    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9053    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}"
9054    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}"
9055
9056  else
9057  ld_shlibs=no
9058  fi
9059
9060      ;;
9061
9062    dgux*)
9063      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064      hardcode_libdir_flag_spec='-L$libdir'
9065      hardcode_shlibpath_var=no
9066      ;;
9067
9068    freebsd1*)
9069      ld_shlibs=no
9070      ;;
9071
9072    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9073    # support.  Future versions do this automatically, but an explicit c++rt0.o
9074    # does not break anything, and helps significantly (at the cost of a little
9075    # extra space).
9076    freebsd2.2*)
9077      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9078      hardcode_libdir_flag_spec='-R$libdir'
9079      hardcode_direct=yes
9080      hardcode_shlibpath_var=no
9081      ;;
9082
9083    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9084    freebsd2*)
9085      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9086      hardcode_direct=yes
9087      hardcode_minus_L=yes
9088      hardcode_shlibpath_var=no
9089      ;;
9090
9091    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9092    freebsd* | dragonfly*)
9093      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9094      hardcode_libdir_flag_spec='-R$libdir'
9095      hardcode_direct=yes
9096      hardcode_shlibpath_var=no
9097      ;;
9098
9099    hpux9*)
9100      if test "$GCC" = yes; then
9101	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9102      else
9103	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'
9104      fi
9105      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9106      hardcode_libdir_separator=:
9107      hardcode_direct=yes
9108
9109      # hardcode_minus_L: Not really in the search PATH,
9110      # but as the default location of the library.
9111      hardcode_minus_L=yes
9112      export_dynamic_flag_spec='${wl}-E'
9113      ;;
9114
9115    hpux10*)
9116      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9117	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9118      else
9119	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9120      fi
9121      if test "$with_gnu_ld" = no; then
9122	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9123	hardcode_libdir_flag_spec_ld='+b $libdir'
9124	hardcode_libdir_separator=:
9125	hardcode_direct=yes
9126	hardcode_direct_absolute=yes
9127	export_dynamic_flag_spec='${wl}-E'
9128	# hardcode_minus_L: Not really in the search PATH,
9129	# but as the default location of the library.
9130	hardcode_minus_L=yes
9131      fi
9132      ;;
9133
9134    hpux11*)
9135      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9136	case $host_cpu in
9137	hppa*64*)
9138	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9139	  ;;
9140	ia64*)
9141	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9142	  ;;
9143	*)
9144	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9145	  ;;
9146	esac
9147      else
9148	case $host_cpu in
9149	hppa*64*)
9150	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9151	  ;;
9152	ia64*)
9153	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9154	  ;;
9155	*)
9156
9157	  # Older versions of the 11.00 compiler do not understand -b yet
9158	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9159	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9160$as_echo_n "checking if $CC understands -b... " >&6; }
9161if test "${lt_cv_prog_compiler__b+set}" = set; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164  lt_cv_prog_compiler__b=no
9165   save_LDFLAGS="$LDFLAGS"
9166   LDFLAGS="$LDFLAGS -b"
9167   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9168   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9169     # The linker can only warn and ignore the option if not recognized
9170     # So say no if there are warnings
9171     if test -s conftest.err; then
9172       # Append any errors to the config.log.
9173       cat conftest.err 1>&5
9174       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9175       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9176       if diff conftest.exp conftest.er2 >/dev/null; then
9177         lt_cv_prog_compiler__b=yes
9178       fi
9179     else
9180       lt_cv_prog_compiler__b=yes
9181     fi
9182   fi
9183   $RM -r conftest*
9184   LDFLAGS="$save_LDFLAGS"
9185
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9188$as_echo "$lt_cv_prog_compiler__b" >&6; }
9189
9190if test x"$lt_cv_prog_compiler__b" = xyes; then
9191    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9192else
9193    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9194fi
9195
9196	  ;;
9197	esac
9198      fi
9199      if test "$with_gnu_ld" = no; then
9200	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9201	hardcode_libdir_separator=:
9202
9203	case $host_cpu in
9204	hppa*64*|ia64*)
9205	  hardcode_direct=no
9206	  hardcode_shlibpath_var=no
9207	  ;;
9208	*)
9209	  hardcode_direct=yes
9210	  hardcode_direct_absolute=yes
9211	  export_dynamic_flag_spec='${wl}-E'
9212
9213	  # hardcode_minus_L: Not really in the search PATH,
9214	  # but as the default location of the library.
9215	  hardcode_minus_L=yes
9216	  ;;
9217	esac
9218      fi
9219      ;;
9220
9221    irix5* | irix6* | nonstopux*)
9222      if test "$GCC" = yes; then
9223	archive_cmds='$CC -shared $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'
9224	# Try to use the -exported_symbol ld option, if it does not
9225	# work, assume that -exports_file does not work either and
9226	# implicitly export all symbols.
9227        save_LDFLAGS="$LDFLAGS"
9228        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9229        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230/* end confdefs.h.  */
9231int foo(void) {}
9232_ACEOF
9233if ac_fn_c_try_link "$LINENO"; then :
9234  archive_expsym_cmds='$CC -shared $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'
9235
9236fi
9237rm -f core conftest.err conftest.$ac_objext \
9238    conftest$ac_exeext conftest.$ac_ext
9239        LDFLAGS="$save_LDFLAGS"
9240      else
9241	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'
9242	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'
9243      fi
9244      archive_cmds_need_lc='no'
9245      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246      hardcode_libdir_separator=:
9247      inherit_rpath=yes
9248      link_all_deplibs=yes
9249      ;;
9250
9251    netbsd*)
9252      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9253	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9254      else
9255	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9256      fi
9257      hardcode_libdir_flag_spec='-R$libdir'
9258      hardcode_direct=yes
9259      hardcode_shlibpath_var=no
9260      ;;
9261
9262    newsos6)
9263      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264      hardcode_direct=yes
9265      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9266      hardcode_libdir_separator=:
9267      hardcode_shlibpath_var=no
9268      ;;
9269
9270    *nto* | *qnx*)
9271      ;;
9272
9273    openbsd*)
9274      if test -f /usr/libexec/ld.so; then
9275	hardcode_direct=yes
9276	hardcode_shlibpath_var=no
9277	hardcode_direct_absolute=yes
9278	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9279	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9280	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9281	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9282	  export_dynamic_flag_spec='${wl}-E'
9283	else
9284	  case $host_os in
9285	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9286	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9287	     hardcode_libdir_flag_spec='-R$libdir'
9288	     ;;
9289	   *)
9290	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9291	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9292	     ;;
9293	  esac
9294	fi
9295      else
9296	ld_shlibs=no
9297      fi
9298      ;;
9299
9300    os2*)
9301      hardcode_libdir_flag_spec='-L$libdir'
9302      hardcode_minus_L=yes
9303      allow_undefined_flag=unsupported
9304      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'
9305      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9306      ;;
9307
9308    osf3*)
9309      if test "$GCC" = yes; then
9310	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9311	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'
9312      else
9313	allow_undefined_flag=' -expect_unresolved \*'
9314	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'
9315      fi
9316      archive_cmds_need_lc='no'
9317      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318      hardcode_libdir_separator=:
9319      ;;
9320
9321    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9322      if test "$GCC" = yes; then
9323	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9324	archive_cmds='$CC -shared${allow_undefined_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'
9325	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9326      else
9327	allow_undefined_flag=' -expect_unresolved \*'
9328	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'
9329	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~
9330	$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'
9331
9332	# Both c and cxx compiler support -rpath directly
9333	hardcode_libdir_flag_spec='-rpath $libdir'
9334      fi
9335      archive_cmds_need_lc='no'
9336      hardcode_libdir_separator=:
9337      ;;
9338
9339    solaris*)
9340      no_undefined_flag=' -z defs'
9341      if test "$GCC" = yes; then
9342	wlarc='${wl}'
9343	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9344	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9345	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9346      else
9347	case `$CC -V 2>&1` in
9348	*"Compilers 5.0"*)
9349	  wlarc=''
9350	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9352	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9353	  ;;
9354	*)
9355	  wlarc='${wl}'
9356	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9357	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9358	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9359	  ;;
9360	esac
9361      fi
9362      hardcode_libdir_flag_spec='-R$libdir'
9363      hardcode_shlibpath_var=no
9364      case $host_os in
9365      solaris2.[0-5] | solaris2.[0-5].*) ;;
9366      *)
9367	# The compiler driver will combine and reorder linker options,
9368	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9369	# but is careful enough not to reorder.
9370	# Supported since Solaris 2.6 (maybe 2.5.1?)
9371	if test "$GCC" = yes; then
9372	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9373	else
9374	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9375	fi
9376	;;
9377      esac
9378      link_all_deplibs=yes
9379      ;;
9380
9381    sunos4*)
9382      if test "x$host_vendor" = xsequent; then
9383	# Use $CC to link under sequent, because it throws in some extra .o
9384	# files that make .init and .fini sections work.
9385	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9386      else
9387	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9388      fi
9389      hardcode_libdir_flag_spec='-L$libdir'
9390      hardcode_direct=yes
9391      hardcode_minus_L=yes
9392      hardcode_shlibpath_var=no
9393      ;;
9394
9395    sysv4)
9396      case $host_vendor in
9397	sni)
9398	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399	  hardcode_direct=yes # is this really true???
9400	;;
9401	siemens)
9402	  ## LD is ld it makes a PLAMLIB
9403	  ## CC just makes a GrossModule.
9404	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9405	  reload_cmds='$CC -r -o $output$reload_objs'
9406	  hardcode_direct=no
9407        ;;
9408	motorola)
9409	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9411	;;
9412      esac
9413      runpath_var='LD_RUN_PATH'
9414      hardcode_shlibpath_var=no
9415      ;;
9416
9417    sysv4.3*)
9418      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419      hardcode_shlibpath_var=no
9420      export_dynamic_flag_spec='-Bexport'
9421      ;;
9422
9423    sysv4*MP*)
9424      if test -d /usr/nec; then
9425	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426	hardcode_shlibpath_var=no
9427	runpath_var=LD_RUN_PATH
9428	hardcode_runpath_var=yes
9429	ld_shlibs=yes
9430      fi
9431      ;;
9432
9433    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9434      no_undefined_flag='${wl}-z,text'
9435      archive_cmds_need_lc=no
9436      hardcode_shlibpath_var=no
9437      runpath_var='LD_RUN_PATH'
9438
9439      if test "$GCC" = yes; then
9440	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442      else
9443	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445      fi
9446      ;;
9447
9448    sysv5* | sco3.2v5* | sco5v6*)
9449      # Note: We can NOT use -z defs as we might desire, because we do not
9450      # link with -lc, and that would cause any symbols used from libc to
9451      # always be unresolved, which means just about no library would
9452      # ever link correctly.  If we're not using GNU ld we use -z text
9453      # though, which does catch some bad symbols but isn't as heavy-handed
9454      # as -z defs.
9455      no_undefined_flag='${wl}-z,text'
9456      allow_undefined_flag='${wl}-z,nodefs'
9457      archive_cmds_need_lc=no
9458      hardcode_shlibpath_var=no
9459      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9460      hardcode_libdir_separator=':'
9461      link_all_deplibs=yes
9462      export_dynamic_flag_spec='${wl}-Bexport'
9463      runpath_var='LD_RUN_PATH'
9464
9465      if test "$GCC" = yes; then
9466	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468      else
9469	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471      fi
9472      ;;
9473
9474    uts4*)
9475      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476      hardcode_libdir_flag_spec='-L$libdir'
9477      hardcode_shlibpath_var=no
9478      ;;
9479
9480    *)
9481      ld_shlibs=no
9482      ;;
9483    esac
9484
9485    if test x$host_vendor = xsni; then
9486      case $host in
9487      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9488	export_dynamic_flag_spec='${wl}-Blargedynsym'
9489	;;
9490      esac
9491    fi
9492  fi
9493
9494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9495$as_echo "$ld_shlibs" >&6; }
9496test "$ld_shlibs" = no && can_build_shared=no
9497
9498with_gnu_ld=$with_gnu_ld
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514#
9515# Do we need to explicitly link libc?
9516#
9517case "x$archive_cmds_need_lc" in
9518x|xyes)
9519  # Assume -lc should be added
9520  archive_cmds_need_lc=yes
9521
9522  if test "$enable_shared" = yes && test "$GCC" = yes; then
9523    case $archive_cmds in
9524    *'~'*)
9525      # FIXME: we may have to deal with multi-command sequences.
9526      ;;
9527    '$CC '*)
9528      # Test whether the compiler implicitly links with -lc since on some
9529      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9530      # to ld, don't add -lc before -lgcc.
9531      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9532$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9533if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9534  $as_echo_n "(cached) " >&6
9535else
9536  $RM conftest*
9537	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9538
9539	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9540  (eval $ac_compile) 2>&5
9541  ac_status=$?
9542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9543  test $ac_status = 0; } 2>conftest.err; then
9544	  soname=conftest
9545	  lib=conftest
9546	  libobjs=conftest.$ac_objext
9547	  deplibs=
9548	  wl=$lt_prog_compiler_wl
9549	  pic_flag=$lt_prog_compiler_pic
9550	  compiler_flags=-v
9551	  linker_flags=-v
9552	  verstring=
9553	  output_objdir=.
9554	  libname=conftest
9555	  lt_save_allow_undefined_flag=$allow_undefined_flag
9556	  allow_undefined_flag=
9557	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9558  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9559  ac_status=$?
9560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9561  test $ac_status = 0; }
9562	  then
9563	    lt_cv_archive_cmds_need_lc=no
9564	  else
9565	    lt_cv_archive_cmds_need_lc=yes
9566	  fi
9567	  allow_undefined_flag=$lt_save_allow_undefined_flag
9568	else
9569	  cat conftest.err 1>&5
9570	fi
9571	$RM conftest*
9572
9573fi
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9575$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9576      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9577      ;;
9578    esac
9579  fi
9580  ;;
9581esac
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9740$as_echo_n "checking dynamic linker characteristics... " >&6; }
9741
9742if test "$GCC" = yes; then
9743  case $host_os in
9744    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9745    *) lt_awk_arg="/^libraries:/" ;;
9746  esac
9747  case $host_os in
9748    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9749    *) lt_sed_strip_eq="s,=/,/,g" ;;
9750  esac
9751  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9752  case $lt_search_path_spec in
9753  *\;*)
9754    # if the path contains ";" then we assume it to be the separator
9755    # otherwise default to the standard path separator (i.e. ":") - it is
9756    # assumed that no part of a normal pathname contains ";" but that should
9757    # okay in the real world where ";" in dirpaths is itself problematic.
9758    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9759    ;;
9760  *)
9761    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9762    ;;
9763  esac
9764  # Ok, now we have the path, separated by spaces, we can step through it
9765  # and add multilib dir if necessary.
9766  lt_tmp_lt_search_path_spec=
9767  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9768  for lt_sys_path in $lt_search_path_spec; do
9769    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9770      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9771    else
9772      test -d "$lt_sys_path" && \
9773	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9774    fi
9775  done
9776  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9777BEGIN {RS=" "; FS="/|\n";} {
9778  lt_foo="";
9779  lt_count=0;
9780  for (lt_i = NF; lt_i > 0; lt_i--) {
9781    if ($lt_i != "" && $lt_i != ".") {
9782      if ($lt_i == "..") {
9783        lt_count++;
9784      } else {
9785        if (lt_count == 0) {
9786          lt_foo="/" $lt_i lt_foo;
9787        } else {
9788          lt_count--;
9789        }
9790      }
9791    }
9792  }
9793  if (lt_foo != "") { lt_freq[lt_foo]++; }
9794  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9795}'`
9796  # AWK program above erroneously prepends '/' to C:/dos/paths
9797  # for these hosts.
9798  case $host_os in
9799    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9800      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9801  esac
9802  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9803else
9804  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9805fi
9806library_names_spec=
9807libname_spec='lib$name'
9808soname_spec=
9809shrext_cmds=".so"
9810postinstall_cmds=
9811postuninstall_cmds=
9812finish_cmds=
9813finish_eval=
9814shlibpath_var=
9815shlibpath_overrides_runpath=unknown
9816version_type=none
9817dynamic_linker="$host_os ld.so"
9818sys_lib_dlsearch_path_spec="/lib /usr/lib"
9819need_lib_prefix=unknown
9820hardcode_into_libs=no
9821
9822# when you set need_version to no, make sure it does not cause -set_version
9823# flags to be left without arguments
9824need_version=unknown
9825
9826case $host_os in
9827aix3*)
9828  version_type=linux
9829  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9830  shlibpath_var=LIBPATH
9831
9832  # AIX 3 has no versioning support, so we append a major version to the name.
9833  soname_spec='${libname}${release}${shared_ext}$major'
9834  ;;
9835
9836aix[4-9]*)
9837  version_type=linux
9838  need_lib_prefix=no
9839  need_version=no
9840  hardcode_into_libs=yes
9841  if test "$host_cpu" = ia64; then
9842    # AIX 5 supports IA64
9843    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9844    shlibpath_var=LD_LIBRARY_PATH
9845  else
9846    # With GCC up to 2.95.x, collect2 would create an import file
9847    # for dependence libraries.  The import file would start with
9848    # the line `#! .'.  This would cause the generated library to
9849    # depend on `.', always an invalid library.  This was fixed in
9850    # development snapshots of GCC prior to 3.0.
9851    case $host_os in
9852      aix4 | aix4.[01] | aix4.[01].*)
9853      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9854	   echo ' yes '
9855	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9856	:
9857      else
9858	can_build_shared=no
9859      fi
9860      ;;
9861    esac
9862    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9863    # soname into executable. Probably we can add versioning support to
9864    # collect2, so additional links can be useful in future.
9865    if test "$aix_use_runtimelinking" = yes; then
9866      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9867      # instead of lib<name>.a to let people know that these are not
9868      # typical AIX shared libraries.
9869      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870    else
9871      # We preserve .a as extension for shared libraries through AIX4.2
9872      # and later when we are not doing run time linking.
9873      library_names_spec='${libname}${release}.a $libname.a'
9874      soname_spec='${libname}${release}${shared_ext}$major'
9875    fi
9876    shlibpath_var=LIBPATH
9877  fi
9878  ;;
9879
9880amigaos*)
9881  case $host_cpu in
9882  powerpc)
9883    # Since July 2007 AmigaOS4 officially supports .so libraries.
9884    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9885    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886    ;;
9887  m68k)
9888    library_names_spec='$libname.ixlibrary $libname.a'
9889    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9890    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'
9891    ;;
9892  esac
9893  ;;
9894
9895beos*)
9896  library_names_spec='${libname}${shared_ext}'
9897  dynamic_linker="$host_os ld.so"
9898  shlibpath_var=LIBRARY_PATH
9899  ;;
9900
9901bsdi[45]*)
9902  version_type=linux
9903  need_version=no
9904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905  soname_spec='${libname}${release}${shared_ext}$major'
9906  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9907  shlibpath_var=LD_LIBRARY_PATH
9908  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9909  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9910  # the default ld.so.conf also contains /usr/contrib/lib and
9911  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9912  # libtool to hard-code these into programs
9913  ;;
9914
9915cygwin* | mingw* | pw32* | cegcc*)
9916  version_type=windows
9917  shrext_cmds=".dll"
9918  need_version=no
9919  need_lib_prefix=no
9920
9921  case $GCC,$host_os in
9922  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9923    library_names_spec='$libname.dll.a'
9924    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9925    postinstall_cmds='base_file=`basename \${file}`~
9926      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9927      dldir=$destdir/`dirname \$dlpath`~
9928      test -d \$dldir || mkdir -p \$dldir~
9929      $install_prog $dir/$dlname \$dldir/$dlname~
9930      chmod a+x \$dldir/$dlname~
9931      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9932        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9933      fi'
9934    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9935      dlpath=$dir/\$dldll~
9936       $RM \$dlpath'
9937    shlibpath_overrides_runpath=yes
9938
9939    case $host_os in
9940    cygwin*)
9941      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9942      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9943
9944      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9945      ;;
9946    mingw* | cegcc*)
9947      # MinGW DLLs use traditional 'lib' prefix
9948      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9949      ;;
9950    pw32*)
9951      # pw32 DLLs use 'pw' prefix rather than 'lib'
9952      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9953      ;;
9954    esac
9955    ;;
9956
9957  *)
9958    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9959    ;;
9960  esac
9961  dynamic_linker='Win32 ld.exe'
9962  # FIXME: first we should search . and the directory the executable is in
9963  shlibpath_var=PATH
9964  ;;
9965
9966darwin* | rhapsody*)
9967  dynamic_linker="$host_os dyld"
9968  version_type=darwin
9969  need_lib_prefix=no
9970  need_version=no
9971  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9972  soname_spec='${libname}${release}${major}$shared_ext'
9973  shlibpath_overrides_runpath=yes
9974  shlibpath_var=DYLD_LIBRARY_PATH
9975  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9976
9977  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9978  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9979  ;;
9980
9981dgux*)
9982  version_type=linux
9983  need_lib_prefix=no
9984  need_version=no
9985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9986  soname_spec='${libname}${release}${shared_ext}$major'
9987  shlibpath_var=LD_LIBRARY_PATH
9988  ;;
9989
9990freebsd1*)
9991  dynamic_linker=no
9992  ;;
9993
9994freebsd* | dragonfly*)
9995  # DragonFly does not have aout.  When/if they implement a new
9996  # versioning mechanism, adjust this.
9997  if test -x /usr/bin/objformat; then
9998    objformat=`/usr/bin/objformat`
9999  else
10000    case $host_os in
10001    freebsd[123]*) objformat=aout ;;
10002    *) objformat=elf ;;
10003    esac
10004  fi
10005  version_type=freebsd-$objformat
10006  case $version_type in
10007    freebsd-elf*)
10008      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10009      need_version=no
10010      need_lib_prefix=no
10011      ;;
10012    freebsd-*)
10013      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10014      need_version=yes
10015      ;;
10016  esac
10017  shlibpath_var=LD_LIBRARY_PATH
10018  case $host_os in
10019  freebsd2*)
10020    shlibpath_overrides_runpath=yes
10021    ;;
10022  freebsd3.[01]* | freebsdelf3.[01]*)
10023    shlibpath_overrides_runpath=yes
10024    hardcode_into_libs=yes
10025    ;;
10026  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10027  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10028    shlibpath_overrides_runpath=no
10029    hardcode_into_libs=yes
10030    ;;
10031  *) # from 4.6 on, and DragonFly
10032    shlibpath_overrides_runpath=yes
10033    hardcode_into_libs=yes
10034    ;;
10035  esac
10036  ;;
10037
10038gnu*)
10039  version_type=linux
10040  need_lib_prefix=no
10041  need_version=no
10042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10043  soname_spec='${libname}${release}${shared_ext}$major'
10044  shlibpath_var=LD_LIBRARY_PATH
10045  hardcode_into_libs=yes
10046  ;;
10047
10048haiku*)
10049  version_type=linux
10050  need_lib_prefix=no
10051  need_version=no
10052  dynamic_linker="$host_os runtime_loader"
10053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10054  soname_spec='${libname}${release}${shared_ext}$major'
10055  shlibpath_var=LIBRARY_PATH
10056  shlibpath_overrides_runpath=yes
10057  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10058  hardcode_into_libs=yes
10059  ;;
10060
10061hpux9* | hpux10* | hpux11*)
10062  # Give a soname corresponding to the major version so that dld.sl refuses to
10063  # link against other versions.
10064  version_type=sunos
10065  need_lib_prefix=no
10066  need_version=no
10067  case $host_cpu in
10068  ia64*)
10069    shrext_cmds='.so'
10070    hardcode_into_libs=yes
10071    dynamic_linker="$host_os dld.so"
10072    shlibpath_var=LD_LIBRARY_PATH
10073    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10074    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075    soname_spec='${libname}${release}${shared_ext}$major'
10076    if test "X$HPUX_IA64_MODE" = X32; then
10077      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10078    else
10079      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10080    fi
10081    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10082    ;;
10083  hppa*64*)
10084    shrext_cmds='.sl'
10085    hardcode_into_libs=yes
10086    dynamic_linker="$host_os dld.sl"
10087    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10088    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10089    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10090    soname_spec='${libname}${release}${shared_ext}$major'
10091    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10092    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10093    ;;
10094  *)
10095    shrext_cmds='.sl'
10096    dynamic_linker="$host_os dld.sl"
10097    shlibpath_var=SHLIB_PATH
10098    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10099    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100    soname_spec='${libname}${release}${shared_ext}$major'
10101    ;;
10102  esac
10103  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10104  postinstall_cmds='chmod 555 $lib'
10105  # or fails outright, so override atomically:
10106  install_override_mode=555
10107  ;;
10108
10109interix[3-9]*)
10110  version_type=linux
10111  need_lib_prefix=no
10112  need_version=no
10113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10114  soname_spec='${libname}${release}${shared_ext}$major'
10115  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10116  shlibpath_var=LD_LIBRARY_PATH
10117  shlibpath_overrides_runpath=no
10118  hardcode_into_libs=yes
10119  ;;
10120
10121irix5* | irix6* | nonstopux*)
10122  case $host_os in
10123    nonstopux*) version_type=nonstopux ;;
10124    *)
10125	if test "$lt_cv_prog_gnu_ld" = yes; then
10126		version_type=linux
10127	else
10128		version_type=irix
10129	fi ;;
10130  esac
10131  need_lib_prefix=no
10132  need_version=no
10133  soname_spec='${libname}${release}${shared_ext}$major'
10134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10135  case $host_os in
10136  irix5* | nonstopux*)
10137    libsuff= shlibsuff=
10138    ;;
10139  *)
10140    case $LD in # libtool.m4 will add one of these switches to LD
10141    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10142      libsuff= shlibsuff= libmagic=32-bit;;
10143    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10144      libsuff=32 shlibsuff=N32 libmagic=N32;;
10145    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10146      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10147    *) libsuff= shlibsuff= libmagic=never-match;;
10148    esac
10149    ;;
10150  esac
10151  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10152  shlibpath_overrides_runpath=no
10153  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10154  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10155  hardcode_into_libs=yes
10156  ;;
10157
10158# No shared lib support for Linux oldld, aout, or coff.
10159linux*oldld* | linux*aout* | linux*coff*)
10160  dynamic_linker=no
10161  ;;
10162
10163# This must be Linux ELF.
10164linux* | k*bsd*-gnu | kopensolaris*-gnu)
10165  version_type=linux
10166  need_lib_prefix=no
10167  need_version=no
10168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169  soname_spec='${libname}${release}${shared_ext}$major'
10170  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10171  shlibpath_var=LD_LIBRARY_PATH
10172  shlibpath_overrides_runpath=no
10173
10174  # Some binutils ld are patched to set DT_RUNPATH
10175  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178  lt_cv_shlibpath_overrides_runpath=no
10179    save_LDFLAGS=$LDFLAGS
10180    save_libdir=$libdir
10181    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10182	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185
10186int
10187main ()
10188{
10189
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"; then :
10195  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10196  lt_cv_shlibpath_overrides_runpath=yes
10197fi
10198fi
10199rm -f core conftest.err conftest.$ac_objext \
10200    conftest$ac_exeext conftest.$ac_ext
10201    LDFLAGS=$save_LDFLAGS
10202    libdir=$save_libdir
10203
10204fi
10205
10206  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10207
10208  # This implies no fast_install, which is unacceptable.
10209  # Some rework will be needed to allow for fast_install
10210  # before this can be enabled.
10211  hardcode_into_libs=yes
10212
10213  # Add ABI-specific directories to the system library path.
10214  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10215
10216  # Append ld.so.conf contents to the search path
10217  if test -f /etc/ld.so.conf; then
10218    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' ' '`
10219    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10220
10221  fi
10222
10223  # We used to test for /lib/ld.so.1 and disable shared libraries on
10224  # powerpc, because MkLinux only supported shared libraries with the
10225  # GNU dynamic linker.  Since this was broken with cross compilers,
10226  # most powerpc-linux boxes support dynamic linking these days and
10227  # people can always --disable-shared, the test was removed, and we
10228  # assume the GNU/Linux dynamic linker is in use.
10229  dynamic_linker='GNU/Linux ld.so'
10230  ;;
10231
10232netbsd*)
10233  version_type=sunos
10234  need_lib_prefix=no
10235  need_version=no
10236  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10237    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10238    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10239    dynamic_linker='NetBSD (a.out) ld.so'
10240  else
10241    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242    soname_spec='${libname}${release}${shared_ext}$major'
10243    dynamic_linker='NetBSD ld.elf_so'
10244  fi
10245  shlibpath_var=LD_LIBRARY_PATH
10246  shlibpath_overrides_runpath=yes
10247  hardcode_into_libs=yes
10248  ;;
10249
10250newsos6)
10251  version_type=linux
10252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253  shlibpath_var=LD_LIBRARY_PATH
10254  shlibpath_overrides_runpath=yes
10255  ;;
10256
10257*nto* | *qnx*)
10258  version_type=qnx
10259  need_lib_prefix=no
10260  need_version=no
10261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262  soname_spec='${libname}${release}${shared_ext}$major'
10263  shlibpath_var=LD_LIBRARY_PATH
10264  shlibpath_overrides_runpath=no
10265  hardcode_into_libs=yes
10266  dynamic_linker='ldqnx.so'
10267  ;;
10268
10269openbsd*)
10270  version_type=sunos
10271  sys_lib_dlsearch_path_spec="/usr/lib"
10272  need_lib_prefix=no
10273  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10274  case $host_os in
10275    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10276    *)				need_version=no  ;;
10277  esac
10278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10280  shlibpath_var=LD_LIBRARY_PATH
10281  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10282    case $host_os in
10283      openbsd2.[89] | openbsd2.[89].*)
10284	shlibpath_overrides_runpath=no
10285	;;
10286      *)
10287	shlibpath_overrides_runpath=yes
10288	;;
10289      esac
10290  else
10291    shlibpath_overrides_runpath=yes
10292  fi
10293  ;;
10294
10295os2*)
10296  libname_spec='$name'
10297  shrext_cmds=".dll"
10298  need_lib_prefix=no
10299  library_names_spec='$libname${shared_ext} $libname.a'
10300  dynamic_linker='OS/2 ld.exe'
10301  shlibpath_var=LIBPATH
10302  ;;
10303
10304osf3* | osf4* | osf5*)
10305  version_type=osf
10306  need_lib_prefix=no
10307  need_version=no
10308  soname_spec='${libname}${release}${shared_ext}$major'
10309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310  shlibpath_var=LD_LIBRARY_PATH
10311  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10312  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10313  ;;
10314
10315rdos*)
10316  dynamic_linker=no
10317  ;;
10318
10319solaris*)
10320  version_type=linux
10321  need_lib_prefix=no
10322  need_version=no
10323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324  soname_spec='${libname}${release}${shared_ext}$major'
10325  shlibpath_var=LD_LIBRARY_PATH
10326  shlibpath_overrides_runpath=yes
10327  hardcode_into_libs=yes
10328  # ldd complains unless libraries are executable
10329  postinstall_cmds='chmod +x $lib'
10330  ;;
10331
10332sunos4*)
10333  version_type=sunos
10334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10335  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10336  shlibpath_var=LD_LIBRARY_PATH
10337  shlibpath_overrides_runpath=yes
10338  if test "$with_gnu_ld" = yes; then
10339    need_lib_prefix=no
10340  fi
10341  need_version=yes
10342  ;;
10343
10344sysv4 | sysv4.3*)
10345  version_type=linux
10346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347  soname_spec='${libname}${release}${shared_ext}$major'
10348  shlibpath_var=LD_LIBRARY_PATH
10349  case $host_vendor in
10350    sni)
10351      shlibpath_overrides_runpath=no
10352      need_lib_prefix=no
10353      runpath_var=LD_RUN_PATH
10354      ;;
10355    siemens)
10356      need_lib_prefix=no
10357      ;;
10358    motorola)
10359      need_lib_prefix=no
10360      need_version=no
10361      shlibpath_overrides_runpath=no
10362      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10363      ;;
10364  esac
10365  ;;
10366
10367sysv4*MP*)
10368  if test -d /usr/nec ;then
10369    version_type=linux
10370    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10371    soname_spec='$libname${shared_ext}.$major'
10372    shlibpath_var=LD_LIBRARY_PATH
10373  fi
10374  ;;
10375
10376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10377  version_type=freebsd-elf
10378  need_lib_prefix=no
10379  need_version=no
10380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10381  soname_spec='${libname}${release}${shared_ext}$major'
10382  shlibpath_var=LD_LIBRARY_PATH
10383  shlibpath_overrides_runpath=yes
10384  hardcode_into_libs=yes
10385  if test "$with_gnu_ld" = yes; then
10386    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10387  else
10388    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10389    case $host_os in
10390      sco3.2v5*)
10391        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10392	;;
10393    esac
10394  fi
10395  sys_lib_dlsearch_path_spec='/usr/lib'
10396  ;;
10397
10398tpf*)
10399  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10400  version_type=linux
10401  need_lib_prefix=no
10402  need_version=no
10403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404  shlibpath_var=LD_LIBRARY_PATH
10405  shlibpath_overrides_runpath=no
10406  hardcode_into_libs=yes
10407  ;;
10408
10409uts4*)
10410  version_type=linux
10411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412  soname_spec='${libname}${release}${shared_ext}$major'
10413  shlibpath_var=LD_LIBRARY_PATH
10414  ;;
10415
10416*)
10417  dynamic_linker=no
10418  ;;
10419esac
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10421$as_echo "$dynamic_linker" >&6; }
10422test "$dynamic_linker" = no && can_build_shared=no
10423
10424variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10425if test "$GCC" = yes; then
10426  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10427fi
10428
10429if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10430  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10431fi
10432if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10433  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10434fi
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10528$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10529hardcode_action=
10530if test -n "$hardcode_libdir_flag_spec" ||
10531   test -n "$runpath_var" ||
10532   test "X$hardcode_automatic" = "Xyes" ; then
10533
10534  # We can hardcode non-existent directories.
10535  if test "$hardcode_direct" != no &&
10536     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10537     # have to relink, otherwise we might link with an installed library
10538     # when we should be linking with a yet-to-be-installed one
10539     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10540     test "$hardcode_minus_L" != no; then
10541    # Linking always hardcodes the temporary library directory.
10542    hardcode_action=relink
10543  else
10544    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10545    hardcode_action=immediate
10546  fi
10547else
10548  # We cannot hardcode anything, or else we can only hardcode existing
10549  # directories.
10550  hardcode_action=unsupported
10551fi
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10553$as_echo "$hardcode_action" >&6; }
10554
10555if test "$hardcode_action" = relink ||
10556   test "$inherit_rpath" = yes; then
10557  # Fast installation is not supported
10558  enable_fast_install=no
10559elif test "$shlibpath_overrides_runpath" = yes ||
10560     test "$enable_shared" = no; then
10561  # Fast installation is not necessary
10562  enable_fast_install=needless
10563fi
10564
10565
10566
10567
10568
10569
10570  if test "x$enable_dlopen" != xyes; then
10571  enable_dlopen=unknown
10572  enable_dlopen_self=unknown
10573  enable_dlopen_self_static=unknown
10574else
10575  lt_cv_dlopen=no
10576  lt_cv_dlopen_libs=
10577
10578  case $host_os in
10579  beos*)
10580    lt_cv_dlopen="load_add_on"
10581    lt_cv_dlopen_libs=
10582    lt_cv_dlopen_self=yes
10583    ;;
10584
10585  mingw* | pw32* | cegcc*)
10586    lt_cv_dlopen="LoadLibrary"
10587    lt_cv_dlopen_libs=
10588    ;;
10589
10590  cygwin*)
10591    lt_cv_dlopen="dlopen"
10592    lt_cv_dlopen_libs=
10593    ;;
10594
10595  darwin*)
10596  # if libdl is installed we need to link against it
10597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10598$as_echo_n "checking for dlopen in -ldl... " >&6; }
10599if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10600  $as_echo_n "(cached) " >&6
10601else
10602  ac_check_lib_save_LIBS=$LIBS
10603LIBS="-ldl  $LIBS"
10604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h.  */
10606
10607/* Override any GCC internal prototype to avoid an error.
10608   Use char because int might match the return type of a GCC
10609   builtin and then its argument prototype would still apply.  */
10610#ifdef __cplusplus
10611extern "C"
10612#endif
10613char dlopen ();
10614int
10615main ()
10616{
10617return dlopen ();
10618  ;
10619  return 0;
10620}
10621_ACEOF
10622if ac_fn_c_try_link "$LINENO"; then :
10623  ac_cv_lib_dl_dlopen=yes
10624else
10625  ac_cv_lib_dl_dlopen=no
10626fi
10627rm -f core conftest.err conftest.$ac_objext \
10628    conftest$ac_exeext conftest.$ac_ext
10629LIBS=$ac_check_lib_save_LIBS
10630fi
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10632$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10633if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10634  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10635else
10636
10637    lt_cv_dlopen="dyld"
10638    lt_cv_dlopen_libs=
10639    lt_cv_dlopen_self=yes
10640
10641fi
10642
10643    ;;
10644
10645  *)
10646    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10647if test "x$ac_cv_func_shl_load" = x""yes; then :
10648  lt_cv_dlopen="shl_load"
10649else
10650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10651$as_echo_n "checking for shl_load in -ldld... " >&6; }
10652if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10653  $as_echo_n "(cached) " >&6
10654else
10655  ac_check_lib_save_LIBS=$LIBS
10656LIBS="-ldld  $LIBS"
10657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658/* end confdefs.h.  */
10659
10660/* Override any GCC internal prototype to avoid an error.
10661   Use char because int might match the return type of a GCC
10662   builtin and then its argument prototype would still apply.  */
10663#ifdef __cplusplus
10664extern "C"
10665#endif
10666char shl_load ();
10667int
10668main ()
10669{
10670return shl_load ();
10671  ;
10672  return 0;
10673}
10674_ACEOF
10675if ac_fn_c_try_link "$LINENO"; then :
10676  ac_cv_lib_dld_shl_load=yes
10677else
10678  ac_cv_lib_dld_shl_load=no
10679fi
10680rm -f core conftest.err conftest.$ac_objext \
10681    conftest$ac_exeext conftest.$ac_ext
10682LIBS=$ac_check_lib_save_LIBS
10683fi
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10685$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10686if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10687  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10688else
10689  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10690if test "x$ac_cv_func_dlopen" = x""yes; then :
10691  lt_cv_dlopen="dlopen"
10692else
10693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10694$as_echo_n "checking for dlopen in -ldl... " >&6; }
10695if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10696  $as_echo_n "(cached) " >&6
10697else
10698  ac_check_lib_save_LIBS=$LIBS
10699LIBS="-ldl  $LIBS"
10700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h.  */
10702
10703/* Override any GCC internal prototype to avoid an error.
10704   Use char because int might match the return type of a GCC
10705   builtin and then its argument prototype would still apply.  */
10706#ifdef __cplusplus
10707extern "C"
10708#endif
10709char dlopen ();
10710int
10711main ()
10712{
10713return dlopen ();
10714  ;
10715  return 0;
10716}
10717_ACEOF
10718if ac_fn_c_try_link "$LINENO"; then :
10719  ac_cv_lib_dl_dlopen=yes
10720else
10721  ac_cv_lib_dl_dlopen=no
10722fi
10723rm -f core conftest.err conftest.$ac_objext \
10724    conftest$ac_exeext conftest.$ac_ext
10725LIBS=$ac_check_lib_save_LIBS
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10728$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10729if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10730  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10731else
10732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10733$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10734if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10735  $as_echo_n "(cached) " >&6
10736else
10737  ac_check_lib_save_LIBS=$LIBS
10738LIBS="-lsvld  $LIBS"
10739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h.  */
10741
10742/* Override any GCC internal prototype to avoid an error.
10743   Use char because int might match the return type of a GCC
10744   builtin and then its argument prototype would still apply.  */
10745#ifdef __cplusplus
10746extern "C"
10747#endif
10748char dlopen ();
10749int
10750main ()
10751{
10752return dlopen ();
10753  ;
10754  return 0;
10755}
10756_ACEOF
10757if ac_fn_c_try_link "$LINENO"; then :
10758  ac_cv_lib_svld_dlopen=yes
10759else
10760  ac_cv_lib_svld_dlopen=no
10761fi
10762rm -f core conftest.err conftest.$ac_objext \
10763    conftest$ac_exeext conftest.$ac_ext
10764LIBS=$ac_check_lib_save_LIBS
10765fi
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10767$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10768if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10769  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10770else
10771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10772$as_echo_n "checking for dld_link in -ldld... " >&6; }
10773if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10774  $as_echo_n "(cached) " >&6
10775else
10776  ac_check_lib_save_LIBS=$LIBS
10777LIBS="-ldld  $LIBS"
10778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779/* end confdefs.h.  */
10780
10781/* Override any GCC internal prototype to avoid an error.
10782   Use char because int might match the return type of a GCC
10783   builtin and then its argument prototype would still apply.  */
10784#ifdef __cplusplus
10785extern "C"
10786#endif
10787char dld_link ();
10788int
10789main ()
10790{
10791return dld_link ();
10792  ;
10793  return 0;
10794}
10795_ACEOF
10796if ac_fn_c_try_link "$LINENO"; then :
10797  ac_cv_lib_dld_dld_link=yes
10798else
10799  ac_cv_lib_dld_dld_link=no
10800fi
10801rm -f core conftest.err conftest.$ac_objext \
10802    conftest$ac_exeext conftest.$ac_ext
10803LIBS=$ac_check_lib_save_LIBS
10804fi
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10806$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10807if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10808  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10809fi
10810
10811
10812fi
10813
10814
10815fi
10816
10817
10818fi
10819
10820
10821fi
10822
10823
10824fi
10825
10826    ;;
10827  esac
10828
10829  if test "x$lt_cv_dlopen" != xno; then
10830    enable_dlopen=yes
10831  else
10832    enable_dlopen=no
10833  fi
10834
10835  case $lt_cv_dlopen in
10836  dlopen)
10837    save_CPPFLAGS="$CPPFLAGS"
10838    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10839
10840    save_LDFLAGS="$LDFLAGS"
10841    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10842
10843    save_LIBS="$LIBS"
10844    LIBS="$lt_cv_dlopen_libs $LIBS"
10845
10846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10847$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10848if test "${lt_cv_dlopen_self+set}" = set; then :
10849  $as_echo_n "(cached) " >&6
10850else
10851  	  if test "$cross_compiling" = yes; then :
10852  lt_cv_dlopen_self=cross
10853else
10854  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10855  lt_status=$lt_dlunknown
10856  cat > conftest.$ac_ext <<_LT_EOF
10857#line $LINENO "configure"
10858#include "confdefs.h"
10859
10860#if HAVE_DLFCN_H
10861#include <dlfcn.h>
10862#endif
10863
10864#include <stdio.h>
10865
10866#ifdef RTLD_GLOBAL
10867#  define LT_DLGLOBAL		RTLD_GLOBAL
10868#else
10869#  ifdef DL_GLOBAL
10870#    define LT_DLGLOBAL		DL_GLOBAL
10871#  else
10872#    define LT_DLGLOBAL		0
10873#  endif
10874#endif
10875
10876/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10877   find out it does not work in some platform. */
10878#ifndef LT_DLLAZY_OR_NOW
10879#  ifdef RTLD_LAZY
10880#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10881#  else
10882#    ifdef DL_LAZY
10883#      define LT_DLLAZY_OR_NOW		DL_LAZY
10884#    else
10885#      ifdef RTLD_NOW
10886#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10887#      else
10888#        ifdef DL_NOW
10889#          define LT_DLLAZY_OR_NOW	DL_NOW
10890#        else
10891#          define LT_DLLAZY_OR_NOW	0
10892#        endif
10893#      endif
10894#    endif
10895#  endif
10896#endif
10897
10898/* When -fvisbility=hidden is used, assume the code has been annotated
10899   correspondingly for the symbols needed.  */
10900#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10901void fnord () __attribute__((visibility("default")));
10902#endif
10903
10904void fnord () { int i=42; }
10905int main ()
10906{
10907  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10908  int status = $lt_dlunknown;
10909
10910  if (self)
10911    {
10912      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10913      else
10914        {
10915	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10916          else puts (dlerror ());
10917	}
10918      /* dlclose (self); */
10919    }
10920  else
10921    puts (dlerror ());
10922
10923  return status;
10924}
10925_LT_EOF
10926  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10927  (eval $ac_link) 2>&5
10928  ac_status=$?
10929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10930  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10931    (./conftest; exit; ) >&5 2>/dev/null
10932    lt_status=$?
10933    case x$lt_status in
10934      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10935      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10936      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10937    esac
10938  else :
10939    # compilation failed
10940    lt_cv_dlopen_self=no
10941  fi
10942fi
10943rm -fr conftest*
10944
10945
10946fi
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10948$as_echo "$lt_cv_dlopen_self" >&6; }
10949
10950    if test "x$lt_cv_dlopen_self" = xyes; then
10951      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10952      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10953$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10954if test "${lt_cv_dlopen_self_static+set}" = set; then :
10955  $as_echo_n "(cached) " >&6
10956else
10957  	  if test "$cross_compiling" = yes; then :
10958  lt_cv_dlopen_self_static=cross
10959else
10960  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10961  lt_status=$lt_dlunknown
10962  cat > conftest.$ac_ext <<_LT_EOF
10963#line $LINENO "configure"
10964#include "confdefs.h"
10965
10966#if HAVE_DLFCN_H
10967#include <dlfcn.h>
10968#endif
10969
10970#include <stdio.h>
10971
10972#ifdef RTLD_GLOBAL
10973#  define LT_DLGLOBAL		RTLD_GLOBAL
10974#else
10975#  ifdef DL_GLOBAL
10976#    define LT_DLGLOBAL		DL_GLOBAL
10977#  else
10978#    define LT_DLGLOBAL		0
10979#  endif
10980#endif
10981
10982/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10983   find out it does not work in some platform. */
10984#ifndef LT_DLLAZY_OR_NOW
10985#  ifdef RTLD_LAZY
10986#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10987#  else
10988#    ifdef DL_LAZY
10989#      define LT_DLLAZY_OR_NOW		DL_LAZY
10990#    else
10991#      ifdef RTLD_NOW
10992#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10993#      else
10994#        ifdef DL_NOW
10995#          define LT_DLLAZY_OR_NOW	DL_NOW
10996#        else
10997#          define LT_DLLAZY_OR_NOW	0
10998#        endif
10999#      endif
11000#    endif
11001#  endif
11002#endif
11003
11004/* When -fvisbility=hidden is used, assume the code has been annotated
11005   correspondingly for the symbols needed.  */
11006#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11007void fnord () __attribute__((visibility("default")));
11008#endif
11009
11010void fnord () { int i=42; }
11011int main ()
11012{
11013  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11014  int status = $lt_dlunknown;
11015
11016  if (self)
11017    {
11018      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11019      else
11020        {
11021	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11022          else puts (dlerror ());
11023	}
11024      /* dlclose (self); */
11025    }
11026  else
11027    puts (dlerror ());
11028
11029  return status;
11030}
11031_LT_EOF
11032  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11033  (eval $ac_link) 2>&5
11034  ac_status=$?
11035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11036  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11037    (./conftest; exit; ) >&5 2>/dev/null
11038    lt_status=$?
11039    case x$lt_status in
11040      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11041      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11042      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11043    esac
11044  else :
11045    # compilation failed
11046    lt_cv_dlopen_self_static=no
11047  fi
11048fi
11049rm -fr conftest*
11050
11051
11052fi
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11054$as_echo "$lt_cv_dlopen_self_static" >&6; }
11055    fi
11056
11057    CPPFLAGS="$save_CPPFLAGS"
11058    LDFLAGS="$save_LDFLAGS"
11059    LIBS="$save_LIBS"
11060    ;;
11061  esac
11062
11063  case $lt_cv_dlopen_self in
11064  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11065  *) enable_dlopen_self=unknown ;;
11066  esac
11067
11068  case $lt_cv_dlopen_self_static in
11069  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11070  *) enable_dlopen_self_static=unknown ;;
11071  esac
11072fi
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090striplib=
11091old_striplib=
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11093$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11094if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11095  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11096  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11098$as_echo "yes" >&6; }
11099else
11100# FIXME - insert some real tests, host_os isn't really good enough
11101  case $host_os in
11102  darwin*)
11103    if test -n "$STRIP" ; then
11104      striplib="$STRIP -x"
11105      old_striplib="$STRIP -S"
11106      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11107$as_echo "yes" >&6; }
11108    else
11109      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110$as_echo "no" >&6; }
11111    fi
11112    ;;
11113  *)
11114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115$as_echo "no" >&6; }
11116    ;;
11117  esac
11118fi
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131  # Report which library types will actually be built
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11133$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11135$as_echo "$can_build_shared" >&6; }
11136
11137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11138$as_echo_n "checking whether to build shared libraries... " >&6; }
11139  test "$can_build_shared" = "no" && enable_shared=no
11140
11141  # On AIX, shared libraries and static libraries use the same namespace, and
11142  # are all built from PIC.
11143  case $host_os in
11144  aix3*)
11145    test "$enable_shared" = yes && enable_static=no
11146    if test -n "$RANLIB"; then
11147      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11148      postinstall_cmds='$RANLIB $lib'
11149    fi
11150    ;;
11151
11152  aix[4-9]*)
11153    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11154      test "$enable_shared" = yes && enable_static=no
11155    fi
11156    ;;
11157  esac
11158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11159$as_echo "$enable_shared" >&6; }
11160
11161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11162$as_echo_n "checking whether to build static libraries... " >&6; }
11163  # Make sure either enable_shared or enable_static is yes.
11164  test "$enable_shared" = yes || enable_static=yes
11165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11166$as_echo "$enable_static" >&6; }
11167
11168
11169
11170
11171fi
11172ac_ext=c
11173ac_cpp='$CPP $CPPFLAGS'
11174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11176ac_compiler_gnu=$ac_cv_c_compiler_gnu
11177
11178CC="$lt_save_CC"
11179
11180      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11181    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11182    (test "X$CXX" != "Xg++"))) ; then
11183  ac_ext=cpp
11184ac_cpp='$CXXCPP $CPPFLAGS'
11185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11189$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11190if test -z "$CXXCPP"; then
11191  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11192  $as_echo_n "(cached) " >&6
11193else
11194      # Double quotes because CXXCPP needs to be expanded
11195    for CXXCPP in "$CXX -E" "/lib/cpp"
11196    do
11197      ac_preproc_ok=false
11198for ac_cxx_preproc_warn_flag in '' yes
11199do
11200  # Use a header file that comes with gcc, so configuring glibc
11201  # with a fresh cross-compiler works.
11202  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11203  # <limits.h> exists even on freestanding compilers.
11204  # On the NeXT, cc -E runs the code through the compiler's parser,
11205  # not just through cpp. "Syntax error" is here to catch this case.
11206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207/* end confdefs.h.  */
11208#ifdef __STDC__
11209# include <limits.h>
11210#else
11211# include <assert.h>
11212#endif
11213		     Syntax error
11214_ACEOF
11215if ac_fn_cxx_try_cpp "$LINENO"; then :
11216
11217else
11218  # Broken: fails on valid input.
11219continue
11220fi
11221rm -f conftest.err conftest.$ac_ext
11222
11223  # OK, works on sane cases.  Now check whether nonexistent headers
11224  # can be detected and how.
11225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226/* end confdefs.h.  */
11227#include <ac_nonexistent.h>
11228_ACEOF
11229if ac_fn_cxx_try_cpp "$LINENO"; then :
11230  # Broken: success on invalid input.
11231continue
11232else
11233  # Passes both tests.
11234ac_preproc_ok=:
11235break
11236fi
11237rm -f conftest.err conftest.$ac_ext
11238
11239done
11240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11241rm -f conftest.err conftest.$ac_ext
11242if $ac_preproc_ok; then :
11243  break
11244fi
11245
11246    done
11247    ac_cv_prog_CXXCPP=$CXXCPP
11248
11249fi
11250  CXXCPP=$ac_cv_prog_CXXCPP
11251else
11252  ac_cv_prog_CXXCPP=$CXXCPP
11253fi
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11255$as_echo "$CXXCPP" >&6; }
11256ac_preproc_ok=false
11257for ac_cxx_preproc_warn_flag in '' yes
11258do
11259  # Use a header file that comes with gcc, so configuring glibc
11260  # with a fresh cross-compiler works.
11261  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11262  # <limits.h> exists even on freestanding compilers.
11263  # On the NeXT, cc -E runs the code through the compiler's parser,
11264  # not just through cpp. "Syntax error" is here to catch this case.
11265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266/* end confdefs.h.  */
11267#ifdef __STDC__
11268# include <limits.h>
11269#else
11270# include <assert.h>
11271#endif
11272		     Syntax error
11273_ACEOF
11274if ac_fn_cxx_try_cpp "$LINENO"; then :
11275
11276else
11277  # Broken: fails on valid input.
11278continue
11279fi
11280rm -f conftest.err conftest.$ac_ext
11281
11282  # OK, works on sane cases.  Now check whether nonexistent headers
11283  # can be detected and how.
11284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285/* end confdefs.h.  */
11286#include <ac_nonexistent.h>
11287_ACEOF
11288if ac_fn_cxx_try_cpp "$LINENO"; then :
11289  # Broken: success on invalid input.
11290continue
11291else
11292  # Passes both tests.
11293ac_preproc_ok=:
11294break
11295fi
11296rm -f conftest.err conftest.$ac_ext
11297
11298done
11299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11300rm -f conftest.err conftest.$ac_ext
11301if $ac_preproc_ok; then :
11302
11303else
11304  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11306as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11307See \`config.log' for more details" "$LINENO" 5; }
11308fi
11309
11310ac_ext=c
11311ac_cpp='$CPP $CPPFLAGS'
11312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11314ac_compiler_gnu=$ac_cv_c_compiler_gnu
11315
11316else
11317  _lt_caught_CXX_error=yes
11318fi
11319
11320ac_ext=cpp
11321ac_cpp='$CXXCPP $CPPFLAGS'
11322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11325
11326archive_cmds_need_lc_CXX=no
11327allow_undefined_flag_CXX=
11328always_export_symbols_CXX=no
11329archive_expsym_cmds_CXX=
11330compiler_needs_object_CXX=no
11331export_dynamic_flag_spec_CXX=
11332hardcode_direct_CXX=no
11333hardcode_direct_absolute_CXX=no
11334hardcode_libdir_flag_spec_CXX=
11335hardcode_libdir_flag_spec_ld_CXX=
11336hardcode_libdir_separator_CXX=
11337hardcode_minus_L_CXX=no
11338hardcode_shlibpath_var_CXX=unsupported
11339hardcode_automatic_CXX=no
11340inherit_rpath_CXX=no
11341module_cmds_CXX=
11342module_expsym_cmds_CXX=
11343link_all_deplibs_CXX=unknown
11344old_archive_cmds_CXX=$old_archive_cmds
11345reload_flag_CXX=$reload_flag
11346reload_cmds_CXX=$reload_cmds
11347no_undefined_flag_CXX=
11348whole_archive_flag_spec_CXX=
11349enable_shared_with_static_runtimes_CXX=no
11350
11351# Source file extension for C++ test sources.
11352ac_ext=cpp
11353
11354# Object file extension for compiled C++ test sources.
11355objext=o
11356objext_CXX=$objext
11357
11358# No sense in running all these tests if we already determined that
11359# the CXX compiler isn't working.  Some variables (like enable_shared)
11360# are currently assumed to apply to all compilers on this platform,
11361# and will be corrupted by setting them based on a non-working compiler.
11362if test "$_lt_caught_CXX_error" != yes; then
11363  # Code to be used in simple compile tests
11364  lt_simple_compile_test_code="int some_variable = 0;"
11365
11366  # Code to be used in simple link tests
11367  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11368
11369  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11370
11371
11372
11373
11374
11375
11376# If no C compiler was specified, use CC.
11377LTCC=${LTCC-"$CC"}
11378
11379# If no C compiler flags were specified, use CFLAGS.
11380LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11381
11382# Allow CC to be a program name with arguments.
11383compiler=$CC
11384
11385
11386  # save warnings/boilerplate of simple test code
11387  ac_outfile=conftest.$ac_objext
11388echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11390_lt_compiler_boilerplate=`cat conftest.err`
11391$RM conftest*
11392
11393  ac_outfile=conftest.$ac_objext
11394echo "$lt_simple_link_test_code" >conftest.$ac_ext
11395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11396_lt_linker_boilerplate=`cat conftest.err`
11397$RM -r conftest*
11398
11399
11400  # Allow CC to be a program name with arguments.
11401  lt_save_CC=$CC
11402  lt_save_LD=$LD
11403  lt_save_GCC=$GCC
11404  GCC=$GXX
11405  lt_save_with_gnu_ld=$with_gnu_ld
11406  lt_save_path_LD=$lt_cv_path_LD
11407  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11408    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11409  else
11410    $as_unset lt_cv_prog_gnu_ld
11411  fi
11412  if test -n "${lt_cv_path_LDCXX+set}"; then
11413    lt_cv_path_LD=$lt_cv_path_LDCXX
11414  else
11415    $as_unset lt_cv_path_LD
11416  fi
11417  test -z "${LDCXX+set}" || LD=$LDCXX
11418  CC=${CXX-"c++"}
11419  compiler=$CC
11420  compiler_CXX=$CC
11421  for cc_temp in $compiler""; do
11422  case $cc_temp in
11423    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11424    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11425    \-*) ;;
11426    *) break;;
11427  esac
11428done
11429cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11430
11431
11432  if test -n "$compiler"; then
11433    # We don't want -fno-exception when compiling C++ code, so set the
11434    # no_builtin_flag separately
11435    if test "$GXX" = yes; then
11436      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11437    else
11438      lt_prog_compiler_no_builtin_flag_CXX=
11439    fi
11440
11441    if test "$GXX" = yes; then
11442      # Set up default GNU C++ configuration
11443
11444
11445
11446# Check whether --with-gnu-ld was given.
11447if test "${with_gnu_ld+set}" = set; then :
11448  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11449else
11450  with_gnu_ld=no
11451fi
11452
11453ac_prog=ld
11454if test "$GCC" = yes; then
11455  # Check if gcc -print-prog-name=ld gives a path.
11456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11457$as_echo_n "checking for ld used by $CC... " >&6; }
11458  case $host in
11459  *-*-mingw*)
11460    # gcc leaves a trailing carriage return which upsets mingw
11461    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11462  *)
11463    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11464  esac
11465  case $ac_prog in
11466    # Accept absolute paths.
11467    [\\/]* | ?:[\\/]*)
11468      re_direlt='/[^/][^/]*/\.\./'
11469      # Canonicalize the pathname of ld
11470      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11471      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11472	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11473      done
11474      test -z "$LD" && LD="$ac_prog"
11475      ;;
11476  "")
11477    # If it fails, then pretend we aren't using GCC.
11478    ac_prog=ld
11479    ;;
11480  *)
11481    # If it is relative, then search for the first ld in PATH.
11482    with_gnu_ld=unknown
11483    ;;
11484  esac
11485elif test "$with_gnu_ld" = yes; then
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11487$as_echo_n "checking for GNU ld... " >&6; }
11488else
11489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11490$as_echo_n "checking for non-GNU ld... " >&6; }
11491fi
11492if test "${lt_cv_path_LD+set}" = set; then :
11493  $as_echo_n "(cached) " >&6
11494else
11495  if test -z "$LD"; then
11496  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11497  for ac_dir in $PATH; do
11498    IFS="$lt_save_ifs"
11499    test -z "$ac_dir" && ac_dir=.
11500    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11501      lt_cv_path_LD="$ac_dir/$ac_prog"
11502      # Check to see if the program is GNU ld.  I'd rather use --version,
11503      # but apparently some variants of GNU ld only accept -v.
11504      # Break only if it was the GNU/non-GNU ld that we prefer.
11505      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11506      *GNU* | *'with BFD'*)
11507	test "$with_gnu_ld" != no && break
11508	;;
11509      *)
11510	test "$with_gnu_ld" != yes && break
11511	;;
11512      esac
11513    fi
11514  done
11515  IFS="$lt_save_ifs"
11516else
11517  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11518fi
11519fi
11520
11521LD="$lt_cv_path_LD"
11522if test -n "$LD"; then
11523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11524$as_echo "$LD" >&6; }
11525else
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
11528fi
11529test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11531$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11532if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11533  $as_echo_n "(cached) " >&6
11534else
11535  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11536case `$LD -v 2>&1 </dev/null` in
11537*GNU* | *'with BFD'*)
11538  lt_cv_prog_gnu_ld=yes
11539  ;;
11540*)
11541  lt_cv_prog_gnu_ld=no
11542  ;;
11543esac
11544fi
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11546$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11547with_gnu_ld=$lt_cv_prog_gnu_ld
11548
11549
11550
11551
11552
11553
11554
11555      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11556      # archiving commands below assume that GNU ld is being used.
11557      if test "$with_gnu_ld" = yes; then
11558        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11559        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11560
11561        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11562        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11563
11564        # If archive_cmds runs LD, not CC, wlarc should be empty
11565        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11566        #     investigate it a little bit more. (MM)
11567        wlarc='${wl}'
11568
11569        # ancient GNU ld didn't support --whole-archive et. al.
11570        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11571	  $GREP 'no-whole-archive' > /dev/null; then
11572          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11573        else
11574          whole_archive_flag_spec_CXX=
11575        fi
11576      else
11577        with_gnu_ld=no
11578        wlarc=
11579
11580        # A generic and very simple default shared library creation
11581        # command for GNU C++ for the case where it uses the native
11582        # linker, instead of GNU ld.  If possible, this setting should
11583        # overridden to take advantage of the native linker features on
11584        # the platform it is being used on.
11585        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11586      fi
11587
11588      # Commands to make compiler produce verbose output that lists
11589      # what "hidden" libraries, object files and flags are used when
11590      # linking a shared library.
11591      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11592
11593    else
11594      GXX=no
11595      with_gnu_ld=no
11596      wlarc=
11597    fi
11598
11599    # PORTME: fill in a description of your system's C++ link characteristics
11600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11601$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11602    ld_shlibs_CXX=yes
11603    case $host_os in
11604      aix3*)
11605        # FIXME: insert proper C++ library support
11606        ld_shlibs_CXX=no
11607        ;;
11608      aix[4-9]*)
11609        if test "$host_cpu" = ia64; then
11610          # On IA64, the linker does run time linking by default, so we don't
11611          # have to do anything special.
11612          aix_use_runtimelinking=no
11613          exp_sym_flag='-Bexport'
11614          no_entry_flag=""
11615        else
11616          aix_use_runtimelinking=no
11617
11618          # Test if we are trying to use run time linking or normal
11619          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11620          # need to do runtime linking.
11621          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11622	    for ld_flag in $LDFLAGS; do
11623	      case $ld_flag in
11624	      *-brtl*)
11625	        aix_use_runtimelinking=yes
11626	        break
11627	        ;;
11628	      esac
11629	    done
11630	    ;;
11631          esac
11632
11633          exp_sym_flag='-bexport'
11634          no_entry_flag='-bnoentry'
11635        fi
11636
11637        # When large executables or shared objects are built, AIX ld can
11638        # have problems creating the table of contents.  If linking a library
11639        # or program results in "error TOC overflow" add -mminimal-toc to
11640        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11641        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11642
11643        archive_cmds_CXX=''
11644        hardcode_direct_CXX=yes
11645        hardcode_direct_absolute_CXX=yes
11646        hardcode_libdir_separator_CXX=':'
11647        link_all_deplibs_CXX=yes
11648        file_list_spec_CXX='${wl}-f,'
11649
11650        if test "$GXX" = yes; then
11651          case $host_os in aix4.[012]|aix4.[012].*)
11652          # We only want to do this on AIX 4.2 and lower, the check
11653          # below for broken collect2 doesn't work under 4.3+
11654	  collect2name=`${CC} -print-prog-name=collect2`
11655	  if test -f "$collect2name" &&
11656	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11657	  then
11658	    # We have reworked collect2
11659	    :
11660	  else
11661	    # We have old collect2
11662	    hardcode_direct_CXX=unsupported
11663	    # It fails to find uninstalled libraries when the uninstalled
11664	    # path is not listed in the libpath.  Setting hardcode_minus_L
11665	    # to unsupported forces relinking
11666	    hardcode_minus_L_CXX=yes
11667	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11668	    hardcode_libdir_separator_CXX=
11669	  fi
11670          esac
11671          shared_flag='-shared'
11672	  if test "$aix_use_runtimelinking" = yes; then
11673	    shared_flag="$shared_flag "'${wl}-G'
11674	  fi
11675        else
11676          # not using gcc
11677          if test "$host_cpu" = ia64; then
11678	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11679	  # chokes on -Wl,-G. The following line is correct:
11680	  shared_flag='-G'
11681          else
11682	    if test "$aix_use_runtimelinking" = yes; then
11683	      shared_flag='${wl}-G'
11684	    else
11685	      shared_flag='${wl}-bM:SRE'
11686	    fi
11687          fi
11688        fi
11689
11690        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11691        # It seems that -bexpall does not export symbols beginning with
11692        # underscore (_), so it is better to generate a list of symbols to
11693	# export.
11694        always_export_symbols_CXX=yes
11695        if test "$aix_use_runtimelinking" = yes; then
11696          # Warning - without using the other runtime loading flags (-brtl),
11697          # -berok will link without error, but may produce a broken library.
11698          allow_undefined_flag_CXX='-berok'
11699          # Determine the default libpath from the value encoded in an empty
11700          # executable.
11701          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702/* end confdefs.h.  */
11703
11704int
11705main ()
11706{
11707
11708  ;
11709  return 0;
11710}
11711_ACEOF
11712if ac_fn_cxx_try_link "$LINENO"; then :
11713
11714lt_aix_libpath_sed='
11715    /Import File Strings/,/^$/ {
11716	/^0/ {
11717	    s/^0  *\(.*\)$/\1/
11718	    p
11719	}
11720    }'
11721aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11722# Check for a 64-bit object if we didn't find anything.
11723if test -z "$aix_libpath"; then
11724  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11725fi
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext conftest.$ac_ext
11729if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11730
11731          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11732
11733          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"
11734        else
11735          if test "$host_cpu" = ia64; then
11736	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11737	    allow_undefined_flag_CXX="-z nodefs"
11738	    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"
11739          else
11740	    # Determine the default libpath from the value encoded in an
11741	    # empty executable.
11742	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h.  */
11744
11745int
11746main ()
11747{
11748
11749  ;
11750  return 0;
11751}
11752_ACEOF
11753if ac_fn_cxx_try_link "$LINENO"; then :
11754
11755lt_aix_libpath_sed='
11756    /Import File Strings/,/^$/ {
11757	/^0/ {
11758	    s/^0  *\(.*\)$/\1/
11759	    p
11760	}
11761    }'
11762aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11763# Check for a 64-bit object if we didn't find anything.
11764if test -z "$aix_libpath"; then
11765  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11766fi
11767fi
11768rm -f core conftest.err conftest.$ac_objext \
11769    conftest$ac_exeext conftest.$ac_ext
11770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11771
11772	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11773	    # Warning - without using the other run time loading flags,
11774	    # -berok will link without error, but may produce a broken library.
11775	    no_undefined_flag_CXX=' ${wl}-bernotok'
11776	    allow_undefined_flag_CXX=' ${wl}-berok'
11777	    if test "$with_gnu_ld" = yes; then
11778	      # We only use this code for GNU lds that support --whole-archive.
11779	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11780	    else
11781	      # Exported symbols can be pulled into shared objects from archives
11782	      whole_archive_flag_spec_CXX='$convenience'
11783	    fi
11784	    archive_cmds_need_lc_CXX=yes
11785	    # This is similar to how AIX traditionally builds its shared
11786	    # libraries.
11787	    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'
11788          fi
11789        fi
11790        ;;
11791
11792      beos*)
11793	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11794	  allow_undefined_flag_CXX=unsupported
11795	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11796	  # support --undefined.  This deserves some investigation.  FIXME
11797	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11798	else
11799	  ld_shlibs_CXX=no
11800	fi
11801	;;
11802
11803      chorus*)
11804        case $cc_basename in
11805          *)
11806	  # FIXME: insert proper C++ library support
11807	  ld_shlibs_CXX=no
11808	  ;;
11809        esac
11810        ;;
11811
11812      cygwin* | mingw* | pw32* | cegcc*)
11813        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11814        # as there is no search path for DLLs.
11815        hardcode_libdir_flag_spec_CXX='-L$libdir'
11816        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11817        allow_undefined_flag_CXX=unsupported
11818        always_export_symbols_CXX=no
11819        enable_shared_with_static_runtimes_CXX=yes
11820
11821        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11822          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'
11823          # If the export-symbols file already is a .def file (1st line
11824          # is EXPORTS), use it as is; otherwise, prepend...
11825          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11826	    cp $export_symbols $output_objdir/$soname.def;
11827          else
11828	    echo EXPORTS > $output_objdir/$soname.def;
11829	    cat $export_symbols >> $output_objdir/$soname.def;
11830          fi~
11831          $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'
11832        else
11833          ld_shlibs_CXX=no
11834        fi
11835        ;;
11836      darwin* | rhapsody*)
11837
11838
11839  archive_cmds_need_lc_CXX=no
11840  hardcode_direct_CXX=no
11841  hardcode_automatic_CXX=yes
11842  hardcode_shlibpath_var_CXX=unsupported
11843  if test "$lt_cv_ld_force_load" = "yes"; then
11844    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\"`'
11845  else
11846    whole_archive_flag_spec_CXX=''
11847  fi
11848  link_all_deplibs_CXX=yes
11849  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11850  case $cc_basename in
11851     ifort*) _lt_dar_can_shared=yes ;;
11852     *) _lt_dar_can_shared=$GCC ;;
11853  esac
11854  if test "$_lt_dar_can_shared" = "yes"; then
11855    output_verbose_link_cmd=func_echo_all
11856    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}"
11857    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11858    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}"
11859    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}"
11860       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11861      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}"
11862      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}"
11863    fi
11864
11865  else
11866  ld_shlibs_CXX=no
11867  fi
11868
11869	;;
11870
11871      dgux*)
11872        case $cc_basename in
11873          ec++*)
11874	    # FIXME: insert proper C++ library support
11875	    ld_shlibs_CXX=no
11876	    ;;
11877          ghcx*)
11878	    # Green Hills C++ Compiler
11879	    # FIXME: insert proper C++ library support
11880	    ld_shlibs_CXX=no
11881	    ;;
11882          *)
11883	    # FIXME: insert proper C++ library support
11884	    ld_shlibs_CXX=no
11885	    ;;
11886        esac
11887        ;;
11888
11889      freebsd[12]*)
11890        # C++ shared libraries reported to be fairly broken before
11891	# switch to ELF
11892        ld_shlibs_CXX=no
11893        ;;
11894
11895      freebsd-elf*)
11896        archive_cmds_need_lc_CXX=no
11897        ;;
11898
11899      freebsd* | dragonfly*)
11900        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11901        # conventions
11902        ld_shlibs_CXX=yes
11903        ;;
11904
11905      gnu*)
11906        ;;
11907
11908      haiku*)
11909        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11910        link_all_deplibs_CXX=yes
11911        ;;
11912
11913      hpux9*)
11914        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11915        hardcode_libdir_separator_CXX=:
11916        export_dynamic_flag_spec_CXX='${wl}-E'
11917        hardcode_direct_CXX=yes
11918        hardcode_minus_L_CXX=yes # Not in the search PATH,
11919				             # but as the default
11920				             # location of the library.
11921
11922        case $cc_basename in
11923          CC*)
11924            # FIXME: insert proper C++ library support
11925            ld_shlibs_CXX=no
11926            ;;
11927          aCC*)
11928            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'
11929            # Commands to make compiler produce verbose output that lists
11930            # what "hidden" libraries, object files and flags are used when
11931            # linking a shared library.
11932            #
11933            # There doesn't appear to be a way to prevent this compiler from
11934            # explicitly linking system object files so we need to strip them
11935            # from the output so that they don't get included in the library
11936            # dependencies.
11937            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"'
11938            ;;
11939          *)
11940            if test "$GXX" = yes; then
11941              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
11942            else
11943              # FIXME: insert proper C++ library support
11944              ld_shlibs_CXX=no
11945            fi
11946            ;;
11947        esac
11948        ;;
11949
11950      hpux10*|hpux11*)
11951        if test $with_gnu_ld = no; then
11952	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11953	  hardcode_libdir_separator_CXX=:
11954
11955          case $host_cpu in
11956            hppa*64*|ia64*)
11957              ;;
11958            *)
11959	      export_dynamic_flag_spec_CXX='${wl}-E'
11960              ;;
11961          esac
11962        fi
11963        case $host_cpu in
11964          hppa*64*|ia64*)
11965            hardcode_direct_CXX=no
11966            hardcode_shlibpath_var_CXX=no
11967            ;;
11968          *)
11969            hardcode_direct_CXX=yes
11970            hardcode_direct_absolute_CXX=yes
11971            hardcode_minus_L_CXX=yes # Not in the search PATH,
11972					         # but as the default
11973					         # location of the library.
11974            ;;
11975        esac
11976
11977        case $cc_basename in
11978          CC*)
11979	    # FIXME: insert proper C++ library support
11980	    ld_shlibs_CXX=no
11981	    ;;
11982          aCC*)
11983	    case $host_cpu in
11984	      hppa*64*)
11985	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11986	        ;;
11987	      ia64*)
11988	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11989	        ;;
11990	      *)
11991	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11992	        ;;
11993	    esac
11994	    # Commands to make compiler produce verbose output that lists
11995	    # what "hidden" libraries, object files and flags are used when
11996	    # linking a shared library.
11997	    #
11998	    # There doesn't appear to be a way to prevent this compiler from
11999	    # explicitly linking system object files so we need to strip them
12000	    # from the output so that they don't get included in the library
12001	    # dependencies.
12002	    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"'
12003	    ;;
12004          *)
12005	    if test "$GXX" = yes; then
12006	      if test $with_gnu_ld = no; then
12007	        case $host_cpu in
12008	          hppa*64*)
12009	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12010	            ;;
12011	          ia64*)
12012	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12013	            ;;
12014	          *)
12015	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12016	            ;;
12017	        esac
12018	      fi
12019	    else
12020	      # FIXME: insert proper C++ library support
12021	      ld_shlibs_CXX=no
12022	    fi
12023	    ;;
12024        esac
12025        ;;
12026
12027      interix[3-9]*)
12028	hardcode_direct_CXX=no
12029	hardcode_shlibpath_var_CXX=no
12030	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12031	export_dynamic_flag_spec_CXX='${wl}-E'
12032	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12033	# Instead, shared libraries are loaded at an image base (0x10000000 by
12034	# default) and relocated if they conflict, which is a slow very memory
12035	# consuming and fragmenting process.  To avoid this, we pick a random,
12036	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12037	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12038	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'
12039	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'
12040	;;
12041      irix5* | irix6*)
12042        case $cc_basename in
12043          CC*)
12044	    # SGI C++
12045	    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'
12046
12047	    # Archives containing C++ object files must be created using
12048	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12049	    # necessary to make sure instantiated templates are included
12050	    # in the archive.
12051	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12052	    ;;
12053          *)
12054	    if test "$GXX" = yes; then
12055	      if test "$with_gnu_ld" = no; then
12056	        archive_cmds_CXX='$CC -shared -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'
12057	      else
12058	        archive_cmds_CXX='$CC -shared -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'
12059	      fi
12060	    fi
12061	    link_all_deplibs_CXX=yes
12062	    ;;
12063        esac
12064        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12065        hardcode_libdir_separator_CXX=:
12066        inherit_rpath_CXX=yes
12067        ;;
12068
12069      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12070        case $cc_basename in
12071          KCC*)
12072	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12073
12074	    # KCC will only create a shared library if the output file
12075	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12076	    # to its proper name (with version) after linking.
12077	    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'
12078	    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'
12079	    # Commands to make compiler produce verbose output that lists
12080	    # what "hidden" libraries, object files and flags are used when
12081	    # linking a shared library.
12082	    #
12083	    # There doesn't appear to be a way to prevent this compiler from
12084	    # explicitly linking system object files so we need to strip them
12085	    # from the output so that they don't get included in the library
12086	    # dependencies.
12087	    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"'
12088
12089	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12090	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12091
12092	    # Archives containing C++ object files must be created using
12093	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12094	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12095	    ;;
12096	  icpc* | ecpc* )
12097	    # Intel C++
12098	    with_gnu_ld=yes
12099	    # version 8.0 and above of icpc choke on multiply defined symbols
12100	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12101	    # earlier do not add the objects themselves.
12102	    case `$CC -V 2>&1` in
12103	      *"Version 7."*)
12104	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12105		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'
12106		;;
12107	      *)  # Version 8.0 or newer
12108	        tmp_idyn=
12109	        case $host_cpu in
12110		  ia64*) tmp_idyn=' -i_dynamic';;
12111		esac
12112	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12113		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'
12114		;;
12115	    esac
12116	    archive_cmds_need_lc_CXX=no
12117	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12118	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12119	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12120	    ;;
12121          pgCC* | pgcpp*)
12122            # Portland Group C++ compiler
12123	    case `$CC -V` in
12124	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12125	      prelink_cmds_CXX='tpldir=Template.dir~
12126		rm -rf $tpldir~
12127		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12128		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12129	      old_archive_cmds_CXX='tpldir=Template.dir~
12130		rm -rf $tpldir~
12131		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12132		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12133		$RANLIB $oldlib'
12134	      archive_cmds_CXX='tpldir=Template.dir~
12135		rm -rf $tpldir~
12136		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12137		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12138	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12139		rm -rf $tpldir~
12140		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12141		$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'
12142	      ;;
12143	    *) # Version 6 and above use weak symbols
12144	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12145	      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'
12146	      ;;
12147	    esac
12148
12149	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12150	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12151	    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'
12152            ;;
12153	  cxx*)
12154	    # Compaq C++
12155	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156	    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'
12157
12158	    runpath_var=LD_RUN_PATH
12159	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12160	    hardcode_libdir_separator_CXX=:
12161
12162	    # Commands to make compiler produce verbose output that lists
12163	    # what "hidden" libraries, object files and flags are used when
12164	    # linking a shared library.
12165	    #
12166	    # There doesn't appear to be a way to prevent this compiler from
12167	    # explicitly linking system object files so we need to strip them
12168	    # from the output so that they don't get included in the library
12169	    # dependencies.
12170	    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'
12171	    ;;
12172	  xl* | mpixl* | bgxl*)
12173	    # IBM XL 8.0 on PPC, with GNU ld
12174	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12175	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12176	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12177	    if test "x$supports_anon_versioning" = xyes; then
12178	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12179		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12180		echo "local: *; };" >> $output_objdir/$libname.ver~
12181		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12182	    fi
12183	    ;;
12184	  *)
12185	    case `$CC -V 2>&1 | sed 5q` in
12186	    *Sun\ C*)
12187	      # Sun C++ 5.9
12188	      no_undefined_flag_CXX=' -zdefs'
12189	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12190	      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'
12191	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12192	      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'
12193	      compiler_needs_object_CXX=yes
12194
12195	      # Not sure whether something based on
12196	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12197	      # would be better.
12198	      output_verbose_link_cmd='func_echo_all'
12199
12200	      # Archives containing C++ object files must be created using
12201	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12202	      # necessary to make sure instantiated templates are included
12203	      # in the archive.
12204	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12205	      ;;
12206	    esac
12207	    ;;
12208	esac
12209	;;
12210
12211      lynxos*)
12212        # FIXME: insert proper C++ library support
12213	ld_shlibs_CXX=no
12214	;;
12215
12216      m88k*)
12217        # FIXME: insert proper C++ library support
12218        ld_shlibs_CXX=no
12219	;;
12220
12221      mvs*)
12222        case $cc_basename in
12223          cxx*)
12224	    # FIXME: insert proper C++ library support
12225	    ld_shlibs_CXX=no
12226	    ;;
12227	  *)
12228	    # FIXME: insert proper C++ library support
12229	    ld_shlibs_CXX=no
12230	    ;;
12231	esac
12232	;;
12233
12234      netbsd*)
12235        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12236	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12237	  wlarc=
12238	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12239	  hardcode_direct_CXX=yes
12240	  hardcode_shlibpath_var_CXX=no
12241	fi
12242	# Workaround some broken pre-1.5 toolchains
12243	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12244	;;
12245
12246      *nto* | *qnx*)
12247        ld_shlibs_CXX=yes
12248	;;
12249
12250      openbsd2*)
12251        # C++ shared libraries are fairly broken
12252	ld_shlibs_CXX=no
12253	;;
12254
12255      openbsd*)
12256	if test -f /usr/libexec/ld.so; then
12257	  hardcode_direct_CXX=yes
12258	  hardcode_shlibpath_var_CXX=no
12259	  hardcode_direct_absolute_CXX=yes
12260	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12261	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12262	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12263	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12264	    export_dynamic_flag_spec_CXX='${wl}-E'
12265	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12266	  fi
12267	  output_verbose_link_cmd=func_echo_all
12268	else
12269	  ld_shlibs_CXX=no
12270	fi
12271	;;
12272
12273      osf3* | osf4* | osf5*)
12274        case $cc_basename in
12275          KCC*)
12276	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12277
12278	    # KCC will only create a shared library if the output file
12279	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12280	    # to its proper name (with version) after linking.
12281	    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'
12282
12283	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12284	    hardcode_libdir_separator_CXX=:
12285
12286	    # Archives containing C++ object files must be created using
12287	    # the KAI C++ compiler.
12288	    case $host in
12289	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12290	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12291	    esac
12292	    ;;
12293          RCC*)
12294	    # Rational C++ 2.4.1
12295	    # FIXME: insert proper C++ library support
12296	    ld_shlibs_CXX=no
12297	    ;;
12298          cxx*)
12299	    case $host in
12300	      osf3*)
12301	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12302	        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'
12303	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12304		;;
12305	      *)
12306	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12307	        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'
12308	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12309	          echo "-hidden">> $lib.exp~
12310	          $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~
12311	          $RM $lib.exp'
12312	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12313		;;
12314	    esac
12315
12316	    hardcode_libdir_separator_CXX=:
12317
12318	    # Commands to make compiler produce verbose output that lists
12319	    # what "hidden" libraries, object files and flags are used when
12320	    # linking a shared library.
12321	    #
12322	    # There doesn't appear to be a way to prevent this compiler from
12323	    # explicitly linking system object files so we need to strip them
12324	    # from the output so that they don't get included in the library
12325	    # dependencies.
12326	    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"'
12327	    ;;
12328	  *)
12329	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12330	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12331	      case $host in
12332	        osf3*)
12333	          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'
12334		  ;;
12335	        *)
12336	          archive_cmds_CXX='$CC -shared -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'
12337		  ;;
12338	      esac
12339
12340	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12341	      hardcode_libdir_separator_CXX=:
12342
12343	      # Commands to make compiler produce verbose output that lists
12344	      # what "hidden" libraries, object files and flags are used when
12345	      # linking a shared library.
12346	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12347
12348	    else
12349	      # FIXME: insert proper C++ library support
12350	      ld_shlibs_CXX=no
12351	    fi
12352	    ;;
12353        esac
12354        ;;
12355
12356      psos*)
12357        # FIXME: insert proper C++ library support
12358        ld_shlibs_CXX=no
12359        ;;
12360
12361      sunos4*)
12362        case $cc_basename in
12363          CC*)
12364	    # Sun C++ 4.x
12365	    # FIXME: insert proper C++ library support
12366	    ld_shlibs_CXX=no
12367	    ;;
12368          lcc*)
12369	    # Lucid
12370	    # FIXME: insert proper C++ library support
12371	    ld_shlibs_CXX=no
12372	    ;;
12373          *)
12374	    # FIXME: insert proper C++ library support
12375	    ld_shlibs_CXX=no
12376	    ;;
12377        esac
12378        ;;
12379
12380      solaris*)
12381        case $cc_basename in
12382          CC* | sunCC*)
12383	    # Sun C++ 4.2, 5.x and Centerline C++
12384            archive_cmds_need_lc_CXX=yes
12385	    no_undefined_flag_CXX=' -zdefs'
12386	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12387	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12388	      $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'
12389
12390	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12391	    hardcode_shlibpath_var_CXX=no
12392	    case $host_os in
12393	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12394	      *)
12395		# The compiler driver will combine and reorder linker options,
12396		# but understands `-z linker_flag'.
12397	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12398		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12399	        ;;
12400	    esac
12401	    link_all_deplibs_CXX=yes
12402
12403	    output_verbose_link_cmd='func_echo_all'
12404
12405	    # Archives containing C++ object files must be created using
12406	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12407	    # necessary to make sure instantiated templates are included
12408	    # in the archive.
12409	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12410	    ;;
12411          gcx*)
12412	    # Green Hills C++ Compiler
12413	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12414
12415	    # The C++ compiler must be used to create the archive.
12416	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12417	    ;;
12418          *)
12419	    # GNU C++ compiler with Solaris linker
12420	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12421	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12422	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12423	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12424	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12425		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12426
12427	        # Commands to make compiler produce verbose output that lists
12428	        # what "hidden" libraries, object files and flags are used when
12429	        # linking a shared library.
12430	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12431	      else
12432	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12433	        # platform.
12434	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12435	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12436		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12437
12438	        # Commands to make compiler produce verbose output that lists
12439	        # what "hidden" libraries, object files and flags are used when
12440	        # linking a shared library.
12441	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12442	      fi
12443
12444	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12445	      case $host_os in
12446		solaris2.[0-5] | solaris2.[0-5].*) ;;
12447		*)
12448		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12449		  ;;
12450	      esac
12451	    fi
12452	    ;;
12453        esac
12454        ;;
12455
12456    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12457      no_undefined_flag_CXX='${wl}-z,text'
12458      archive_cmds_need_lc_CXX=no
12459      hardcode_shlibpath_var_CXX=no
12460      runpath_var='LD_RUN_PATH'
12461
12462      case $cc_basename in
12463        CC*)
12464	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12465	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12466	  ;;
12467	*)
12468	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12469	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12470	  ;;
12471      esac
12472      ;;
12473
12474      sysv5* | sco3.2v5* | sco5v6*)
12475	# Note: We can NOT use -z defs as we might desire, because we do not
12476	# link with -lc, and that would cause any symbols used from libc to
12477	# always be unresolved, which means just about no library would
12478	# ever link correctly.  If we're not using GNU ld we use -z text
12479	# though, which does catch some bad symbols but isn't as heavy-handed
12480	# as -z defs.
12481	no_undefined_flag_CXX='${wl}-z,text'
12482	allow_undefined_flag_CXX='${wl}-z,nodefs'
12483	archive_cmds_need_lc_CXX=no
12484	hardcode_shlibpath_var_CXX=no
12485	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12486	hardcode_libdir_separator_CXX=':'
12487	link_all_deplibs_CXX=yes
12488	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12489	runpath_var='LD_RUN_PATH'
12490
12491	case $cc_basename in
12492          CC*)
12493	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12494	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12495	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12496	      '"$old_archive_cmds_CXX"
12497	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12498	      '"$reload_cmds_CXX"
12499	    ;;
12500	  *)
12501	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12502	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503	    ;;
12504	esac
12505      ;;
12506
12507      tandem*)
12508        case $cc_basename in
12509          NCC*)
12510	    # NonStop-UX NCC 3.20
12511	    # FIXME: insert proper C++ library support
12512	    ld_shlibs_CXX=no
12513	    ;;
12514          *)
12515	    # FIXME: insert proper C++ library support
12516	    ld_shlibs_CXX=no
12517	    ;;
12518        esac
12519        ;;
12520
12521      vxworks*)
12522        # FIXME: insert proper C++ library support
12523        ld_shlibs_CXX=no
12524        ;;
12525
12526      *)
12527        # FIXME: insert proper C++ library support
12528        ld_shlibs_CXX=no
12529        ;;
12530    esac
12531
12532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12533$as_echo "$ld_shlibs_CXX" >&6; }
12534    test "$ld_shlibs_CXX" = no && can_build_shared=no
12535
12536    GCC_CXX="$GXX"
12537    LD_CXX="$LD"
12538
12539    ## CAVEAT EMPTOR:
12540    ## There is no encapsulation within the following macros, do not change
12541    ## the running order or otherwise move them around unless you know exactly
12542    ## what you are doing...
12543    # Dependencies to place before and after the object being linked:
12544predep_objects_CXX=
12545postdep_objects_CXX=
12546predeps_CXX=
12547postdeps_CXX=
12548compiler_lib_search_path_CXX=
12549
12550cat > conftest.$ac_ext <<_LT_EOF
12551class Foo
12552{
12553public:
12554  Foo (void) { a = 0; }
12555private:
12556  int a;
12557};
12558_LT_EOF
12559
12560if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12561  (eval $ac_compile) 2>&5
12562  ac_status=$?
12563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12564  test $ac_status = 0; }; then
12565  # Parse the compiler output and extract the necessary
12566  # objects, libraries and library flags.
12567
12568  # Sentinel used to keep track of whether or not we are before
12569  # the conftest object file.
12570  pre_test_object_deps_done=no
12571
12572  for p in `eval "$output_verbose_link_cmd"`; do
12573    case $p in
12574
12575    -L* | -R* | -l*)
12576       # Some compilers place space between "-{L,R}" and the path.
12577       # Remove the space.
12578       if test $p = "-L" ||
12579          test $p = "-R"; then
12580	 prev=$p
12581	 continue
12582       else
12583	 prev=
12584       fi
12585
12586       if test "$pre_test_object_deps_done" = no; then
12587	 case $p in
12588	 -L* | -R*)
12589	   # Internal compiler library paths should come after those
12590	   # provided the user.  The postdeps already come after the
12591	   # user supplied libs so there is no need to process them.
12592	   if test -z "$compiler_lib_search_path_CXX"; then
12593	     compiler_lib_search_path_CXX="${prev}${p}"
12594	   else
12595	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12596	   fi
12597	   ;;
12598	 # The "-l" case would never come before the object being
12599	 # linked, so don't bother handling this case.
12600	 esac
12601       else
12602	 if test -z "$postdeps_CXX"; then
12603	   postdeps_CXX="${prev}${p}"
12604	 else
12605	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12606	 fi
12607       fi
12608       ;;
12609
12610    *.$objext)
12611       # This assumes that the test object file only shows up
12612       # once in the compiler output.
12613       if test "$p" = "conftest.$objext"; then
12614	 pre_test_object_deps_done=yes
12615	 continue
12616       fi
12617
12618       if test "$pre_test_object_deps_done" = no; then
12619	 if test -z "$predep_objects_CXX"; then
12620	   predep_objects_CXX="$p"
12621	 else
12622	   predep_objects_CXX="$predep_objects_CXX $p"
12623	 fi
12624       else
12625	 if test -z "$postdep_objects_CXX"; then
12626	   postdep_objects_CXX="$p"
12627	 else
12628	   postdep_objects_CXX="$postdep_objects_CXX $p"
12629	 fi
12630       fi
12631       ;;
12632
12633    *) ;; # Ignore the rest.
12634
12635    esac
12636  done
12637
12638  # Clean up.
12639  rm -f a.out a.exe
12640else
12641  echo "libtool.m4: error: problem compiling CXX test program"
12642fi
12643
12644$RM -f confest.$objext
12645
12646# PORTME: override above test on systems where it is broken
12647case $host_os in
12648interix[3-9]*)
12649  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12650  # hack all around it, let's just trust "g++" to DTRT.
12651  predep_objects_CXX=
12652  postdep_objects_CXX=
12653  postdeps_CXX=
12654  ;;
12655
12656linux*)
12657  case `$CC -V 2>&1 | sed 5q` in
12658  *Sun\ C*)
12659    # Sun C++ 5.9
12660
12661    # The more standards-conforming stlport4 library is
12662    # incompatible with the Cstd library. Avoid specifying
12663    # it if it's in CXXFLAGS. Ignore libCrun as
12664    # -library=stlport4 depends on it.
12665    case " $CXX $CXXFLAGS " in
12666    *" -library=stlport4 "*)
12667      solaris_use_stlport4=yes
12668      ;;
12669    esac
12670
12671    if test "$solaris_use_stlport4" != yes; then
12672      postdeps_CXX='-library=Cstd -library=Crun'
12673    fi
12674    ;;
12675  esac
12676  ;;
12677
12678solaris*)
12679  case $cc_basename in
12680  CC* | sunCC*)
12681    # The more standards-conforming stlport4 library is
12682    # incompatible with the Cstd library. Avoid specifying
12683    # it if it's in CXXFLAGS. Ignore libCrun as
12684    # -library=stlport4 depends on it.
12685    case " $CXX $CXXFLAGS " in
12686    *" -library=stlport4 "*)
12687      solaris_use_stlport4=yes
12688      ;;
12689    esac
12690
12691    # Adding this requires a known-good setup of shared libraries for
12692    # Sun compiler versions before 5.6, else PIC objects from an old
12693    # archive will be linked into the output, leading to subtle bugs.
12694    if test "$solaris_use_stlport4" != yes; then
12695      postdeps_CXX='-library=Cstd -library=Crun'
12696    fi
12697    ;;
12698  esac
12699  ;;
12700esac
12701
12702
12703case " $postdeps_CXX " in
12704*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12705esac
12706 compiler_lib_search_dirs_CXX=
12707if test -n "${compiler_lib_search_path_CXX}"; then
12708 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12709fi
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741    lt_prog_compiler_wl_CXX=
12742lt_prog_compiler_pic_CXX=
12743lt_prog_compiler_static_CXX=
12744
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12746$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12747
12748  # C++ specific cases for pic, static, wl, etc.
12749  if test "$GXX" = yes; then
12750    lt_prog_compiler_wl_CXX='-Wl,'
12751    lt_prog_compiler_static_CXX='-static'
12752
12753    case $host_os in
12754    aix*)
12755      # All AIX code is PIC.
12756      if test "$host_cpu" = ia64; then
12757	# AIX 5 now supports IA64 processor
12758	lt_prog_compiler_static_CXX='-Bstatic'
12759      fi
12760      ;;
12761
12762    amigaos*)
12763      case $host_cpu in
12764      powerpc)
12765            # see comment about AmigaOS4 .so support
12766            lt_prog_compiler_pic_CXX='-fPIC'
12767        ;;
12768      m68k)
12769            # FIXME: we need at least 68020 code to build shared libraries, but
12770            # adding the `-m68020' flag to GCC prevents building anything better,
12771            # like `-m68040'.
12772            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12773        ;;
12774      esac
12775      ;;
12776
12777    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12778      # PIC is the default for these OSes.
12779      ;;
12780    mingw* | cygwin* | os2* | pw32* | cegcc*)
12781      # This hack is so that the source file can tell whether it is being
12782      # built for inclusion in a dll (and should export symbols for example).
12783      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12784      # (--disable-auto-import) libraries
12785      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12786      ;;
12787    darwin* | rhapsody*)
12788      # PIC is the default on this platform
12789      # Common symbols not allowed in MH_DYLIB files
12790      lt_prog_compiler_pic_CXX='-fno-common'
12791      ;;
12792    *djgpp*)
12793      # DJGPP does not support shared libraries at all
12794      lt_prog_compiler_pic_CXX=
12795      ;;
12796    haiku*)
12797      # PIC is the default for Haiku.
12798      # The "-static" flag exists, but is broken.
12799      lt_prog_compiler_static_CXX=
12800      ;;
12801    interix[3-9]*)
12802      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12803      # Instead, we relocate shared libraries at runtime.
12804      ;;
12805    sysv4*MP*)
12806      if test -d /usr/nec; then
12807	lt_prog_compiler_pic_CXX=-Kconform_pic
12808      fi
12809      ;;
12810    hpux*)
12811      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12812      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12813      # sets the default TLS model and affects inlining.
12814      case $host_cpu in
12815      hppa*64*)
12816	;;
12817      *)
12818	lt_prog_compiler_pic_CXX='-fPIC'
12819	;;
12820      esac
12821      ;;
12822    *qnx* | *nto*)
12823      # QNX uses GNU C++, but need to define -shared option too, otherwise
12824      # it will coredump.
12825      lt_prog_compiler_pic_CXX='-fPIC -shared'
12826      ;;
12827    *)
12828      lt_prog_compiler_pic_CXX='-fPIC'
12829      ;;
12830    esac
12831  else
12832    case $host_os in
12833      aix[4-9]*)
12834	# All AIX code is PIC.
12835	if test "$host_cpu" = ia64; then
12836	  # AIX 5 now supports IA64 processor
12837	  lt_prog_compiler_static_CXX='-Bstatic'
12838	else
12839	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12840	fi
12841	;;
12842      chorus*)
12843	case $cc_basename in
12844	cxch68*)
12845	  # Green Hills C++ Compiler
12846	  # _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"
12847	  ;;
12848	esac
12849	;;
12850      dgux*)
12851	case $cc_basename in
12852	  ec++*)
12853	    lt_prog_compiler_pic_CXX='-KPIC'
12854	    ;;
12855	  ghcx*)
12856	    # Green Hills C++ Compiler
12857	    lt_prog_compiler_pic_CXX='-pic'
12858	    ;;
12859	  *)
12860	    ;;
12861	esac
12862	;;
12863      freebsd* | dragonfly*)
12864	# FreeBSD uses GNU C++
12865	;;
12866      hpux9* | hpux10* | hpux11*)
12867	case $cc_basename in
12868	  CC*)
12869	    lt_prog_compiler_wl_CXX='-Wl,'
12870	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12871	    if test "$host_cpu" != ia64; then
12872	      lt_prog_compiler_pic_CXX='+Z'
12873	    fi
12874	    ;;
12875	  aCC*)
12876	    lt_prog_compiler_wl_CXX='-Wl,'
12877	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12878	    case $host_cpu in
12879	    hppa*64*|ia64*)
12880	      # +Z the default
12881	      ;;
12882	    *)
12883	      lt_prog_compiler_pic_CXX='+Z'
12884	      ;;
12885	    esac
12886	    ;;
12887	  *)
12888	    ;;
12889	esac
12890	;;
12891      interix*)
12892	# This is c89, which is MS Visual C++ (no shared libs)
12893	# Anyone wants to do a port?
12894	;;
12895      irix5* | irix6* | nonstopux*)
12896	case $cc_basename in
12897	  CC*)
12898	    lt_prog_compiler_wl_CXX='-Wl,'
12899	    lt_prog_compiler_static_CXX='-non_shared'
12900	    # CC pic flag -KPIC is the default.
12901	    ;;
12902	  *)
12903	    ;;
12904	esac
12905	;;
12906      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12907	case $cc_basename in
12908	  KCC*)
12909	    # KAI C++ Compiler
12910	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12911	    lt_prog_compiler_pic_CXX='-fPIC'
12912	    ;;
12913	  ecpc* )
12914	    # old Intel C++ for x86_64 which still supported -KPIC.
12915	    lt_prog_compiler_wl_CXX='-Wl,'
12916	    lt_prog_compiler_pic_CXX='-KPIC'
12917	    lt_prog_compiler_static_CXX='-static'
12918	    ;;
12919	  icpc* )
12920	    # Intel C++, used to be incompatible with GCC.
12921	    # ICC 10 doesn't accept -KPIC any more.
12922	    lt_prog_compiler_wl_CXX='-Wl,'
12923	    lt_prog_compiler_pic_CXX='-fPIC'
12924	    lt_prog_compiler_static_CXX='-static'
12925	    ;;
12926	  pgCC* | pgcpp*)
12927	    # Portland Group C++ compiler
12928	    lt_prog_compiler_wl_CXX='-Wl,'
12929	    lt_prog_compiler_pic_CXX='-fpic'
12930	    lt_prog_compiler_static_CXX='-Bstatic'
12931	    ;;
12932	  cxx*)
12933	    # Compaq C++
12934	    # Make sure the PIC flag is empty.  It appears that all Alpha
12935	    # Linux and Compaq Tru64 Unix objects are PIC.
12936	    lt_prog_compiler_pic_CXX=
12937	    lt_prog_compiler_static_CXX='-non_shared'
12938	    ;;
12939	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12940	    # IBM XL 8.0, 9.0 on PPC and BlueGene
12941	    lt_prog_compiler_wl_CXX='-Wl,'
12942	    lt_prog_compiler_pic_CXX='-qpic'
12943	    lt_prog_compiler_static_CXX='-qstaticlink'
12944	    ;;
12945	  *)
12946	    case `$CC -V 2>&1 | sed 5q` in
12947	    *Sun\ C*)
12948	      # Sun C++ 5.9
12949	      lt_prog_compiler_pic_CXX='-KPIC'
12950	      lt_prog_compiler_static_CXX='-Bstatic'
12951	      lt_prog_compiler_wl_CXX='-Qoption ld '
12952	      ;;
12953	    esac
12954	    ;;
12955	esac
12956	;;
12957      lynxos*)
12958	;;
12959      m88k*)
12960	;;
12961      mvs*)
12962	case $cc_basename in
12963	  cxx*)
12964	    lt_prog_compiler_pic_CXX='-W c,exportall'
12965	    ;;
12966	  *)
12967	    ;;
12968	esac
12969	;;
12970      netbsd*)
12971	;;
12972      *qnx* | *nto*)
12973        # QNX uses GNU C++, but need to define -shared option too, otherwise
12974        # it will coredump.
12975        lt_prog_compiler_pic_CXX='-fPIC -shared'
12976        ;;
12977      osf3* | osf4* | osf5*)
12978	case $cc_basename in
12979	  KCC*)
12980	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12981	    ;;
12982	  RCC*)
12983	    # Rational C++ 2.4.1
12984	    lt_prog_compiler_pic_CXX='-pic'
12985	    ;;
12986	  cxx*)
12987	    # Digital/Compaq C++
12988	    lt_prog_compiler_wl_CXX='-Wl,'
12989	    # Make sure the PIC flag is empty.  It appears that all Alpha
12990	    # Linux and Compaq Tru64 Unix objects are PIC.
12991	    lt_prog_compiler_pic_CXX=
12992	    lt_prog_compiler_static_CXX='-non_shared'
12993	    ;;
12994	  *)
12995	    ;;
12996	esac
12997	;;
12998      psos*)
12999	;;
13000      solaris*)
13001	case $cc_basename in
13002	  CC* | sunCC*)
13003	    # Sun C++ 4.2, 5.x and Centerline C++
13004	    lt_prog_compiler_pic_CXX='-KPIC'
13005	    lt_prog_compiler_static_CXX='-Bstatic'
13006	    lt_prog_compiler_wl_CXX='-Qoption ld '
13007	    ;;
13008	  gcx*)
13009	    # Green Hills C++ Compiler
13010	    lt_prog_compiler_pic_CXX='-PIC'
13011	    ;;
13012	  *)
13013	    ;;
13014	esac
13015	;;
13016      sunos4*)
13017	case $cc_basename in
13018	  CC*)
13019	    # Sun C++ 4.x
13020	    lt_prog_compiler_pic_CXX='-pic'
13021	    lt_prog_compiler_static_CXX='-Bstatic'
13022	    ;;
13023	  lcc*)
13024	    # Lucid
13025	    lt_prog_compiler_pic_CXX='-pic'
13026	    ;;
13027	  *)
13028	    ;;
13029	esac
13030	;;
13031      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13032	case $cc_basename in
13033	  CC*)
13034	    lt_prog_compiler_wl_CXX='-Wl,'
13035	    lt_prog_compiler_pic_CXX='-KPIC'
13036	    lt_prog_compiler_static_CXX='-Bstatic'
13037	    ;;
13038	esac
13039	;;
13040      tandem*)
13041	case $cc_basename in
13042	  NCC*)
13043	    # NonStop-UX NCC 3.20
13044	    lt_prog_compiler_pic_CXX='-KPIC'
13045	    ;;
13046	  *)
13047	    ;;
13048	esac
13049	;;
13050      vxworks*)
13051	;;
13052      *)
13053	lt_prog_compiler_can_build_shared_CXX=no
13054	;;
13055    esac
13056  fi
13057
13058case $host_os in
13059  # For platforms which do not support PIC, -DPIC is meaningless:
13060  *djgpp*)
13061    lt_prog_compiler_pic_CXX=
13062    ;;
13063  *)
13064    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13065    ;;
13066esac
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13068$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13069
13070
13071
13072#
13073# Check to make sure the PIC flag actually works.
13074#
13075if test -n "$lt_prog_compiler_pic_CXX"; then
13076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13077$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13078if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081  lt_cv_prog_compiler_pic_works_CXX=no
13082   ac_outfile=conftest.$ac_objext
13083   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13084   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13085   # Insert the option either (1) after the last *FLAGS variable, or
13086   # (2) before a word containing "conftest.", or (3) at the end.
13087   # Note that $ac_compile itself does not contain backslashes and begins
13088   # with a dollar sign (not a hyphen), so the echo should work correctly.
13089   # The option is referenced via a variable to avoid confusing sed.
13090   lt_compile=`echo "$ac_compile" | $SED \
13091   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13092   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13093   -e 's:$: $lt_compiler_flag:'`
13094   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13095   (eval "$lt_compile" 2>conftest.err)
13096   ac_status=$?
13097   cat conftest.err >&5
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   if (exit $ac_status) && test -s "$ac_outfile"; then
13100     # The compiler can only warn and ignore the option if not recognized
13101     # So say no if there are warnings other than the usual output.
13102     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13103     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13104     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13105       lt_cv_prog_compiler_pic_works_CXX=yes
13106     fi
13107   fi
13108   $RM conftest*
13109
13110fi
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13112$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13113
13114if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13115    case $lt_prog_compiler_pic_CXX in
13116     "" | " "*) ;;
13117     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13118     esac
13119else
13120    lt_prog_compiler_pic_CXX=
13121     lt_prog_compiler_can_build_shared_CXX=no
13122fi
13123
13124fi
13125
13126
13127
13128#
13129# Check to make sure the static flag actually works.
13130#
13131wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13133$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13134if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13135  $as_echo_n "(cached) " >&6
13136else
13137  lt_cv_prog_compiler_static_works_CXX=no
13138   save_LDFLAGS="$LDFLAGS"
13139   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13140   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13141   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13142     # The linker can only warn and ignore the option if not recognized
13143     # So say no if there are warnings
13144     if test -s conftest.err; then
13145       # Append any errors to the config.log.
13146       cat conftest.err 1>&5
13147       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13148       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13149       if diff conftest.exp conftest.er2 >/dev/null; then
13150         lt_cv_prog_compiler_static_works_CXX=yes
13151       fi
13152     else
13153       lt_cv_prog_compiler_static_works_CXX=yes
13154     fi
13155   fi
13156   $RM -r conftest*
13157   LDFLAGS="$save_LDFLAGS"
13158
13159fi
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13161$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13162
13163if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13164    :
13165else
13166    lt_prog_compiler_static_CXX=
13167fi
13168
13169
13170
13171
13172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13173$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13174if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13175  $as_echo_n "(cached) " >&6
13176else
13177  lt_cv_prog_compiler_c_o_CXX=no
13178   $RM -r conftest 2>/dev/null
13179   mkdir conftest
13180   cd conftest
13181   mkdir out
13182   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13183
13184   lt_compiler_flag="-o out/conftest2.$ac_objext"
13185   # Insert the option either (1) after the last *FLAGS variable, or
13186   # (2) before a word containing "conftest.", or (3) at the end.
13187   # Note that $ac_compile itself does not contain backslashes and begins
13188   # with a dollar sign (not a hyphen), so the echo should work correctly.
13189   lt_compile=`echo "$ac_compile" | $SED \
13190   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13191   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13192   -e 's:$: $lt_compiler_flag:'`
13193   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13194   (eval "$lt_compile" 2>out/conftest.err)
13195   ac_status=$?
13196   cat out/conftest.err >&5
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13199   then
13200     # The compiler can only warn and ignore the option if not recognized
13201     # So say no if there are warnings
13202     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13203     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13204     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13205       lt_cv_prog_compiler_c_o_CXX=yes
13206     fi
13207   fi
13208   chmod u+w . 2>&5
13209   $RM conftest*
13210   # SGI C++ compiler will create directory out/ii_files/ for
13211   # template instantiation
13212   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13213   $RM out/* && rmdir out
13214   cd ..
13215   $RM -r conftest
13216   $RM conftest*
13217
13218fi
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13220$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13221
13222
13223
13224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13225$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13226if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13227  $as_echo_n "(cached) " >&6
13228else
13229  lt_cv_prog_compiler_c_o_CXX=no
13230   $RM -r conftest 2>/dev/null
13231   mkdir conftest
13232   cd conftest
13233   mkdir out
13234   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13235
13236   lt_compiler_flag="-o out/conftest2.$ac_objext"
13237   # Insert the option either (1) after the last *FLAGS variable, or
13238   # (2) before a word containing "conftest.", or (3) at the end.
13239   # Note that $ac_compile itself does not contain backslashes and begins
13240   # with a dollar sign (not a hyphen), so the echo should work correctly.
13241   lt_compile=`echo "$ac_compile" | $SED \
13242   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13243   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13244   -e 's:$: $lt_compiler_flag:'`
13245   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13246   (eval "$lt_compile" 2>out/conftest.err)
13247   ac_status=$?
13248   cat out/conftest.err >&5
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13251   then
13252     # The compiler can only warn and ignore the option if not recognized
13253     # So say no if there are warnings
13254     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13255     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13256     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13257       lt_cv_prog_compiler_c_o_CXX=yes
13258     fi
13259   fi
13260   chmod u+w . 2>&5
13261   $RM conftest*
13262   # SGI C++ compiler will create directory out/ii_files/ for
13263   # template instantiation
13264   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13265   $RM out/* && rmdir out
13266   cd ..
13267   $RM -r conftest
13268   $RM conftest*
13269
13270fi
13271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13272$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13273
13274
13275
13276
13277hard_links="nottested"
13278if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13279  # do not overwrite the value of need_locks provided by the user
13280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13281$as_echo_n "checking if we can lock with hard links... " >&6; }
13282  hard_links=yes
13283  $RM conftest*
13284  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13285  touch conftest.a
13286  ln conftest.a conftest.b 2>&5 || hard_links=no
13287  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13289$as_echo "$hard_links" >&6; }
13290  if test "$hard_links" = no; then
13291    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13292$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13293    need_locks=warn
13294  fi
13295else
13296  need_locks=no
13297fi
13298
13299
13300
13301    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13302$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13303
13304  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13305  case $host_os in
13306  aix[4-9]*)
13307    # If we're using GNU nm, then we don't want the "-C" option.
13308    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13309    # Also, AIX nm treats weak defined symbols like other global defined
13310    # symbols, whereas GNU nm marks them as "W".
13311    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13312      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'
13313    else
13314      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'
13315    fi
13316    ;;
13317  pw32*)
13318    export_symbols_cmds_CXX="$ltdll_cmds"
13319  ;;
13320  cygwin* | mingw* | cegcc*)
13321    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13322  ;;
13323  *)
13324    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13325  ;;
13326  esac
13327  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13328
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13330$as_echo "$ld_shlibs_CXX" >&6; }
13331test "$ld_shlibs_CXX" = no && can_build_shared=no
13332
13333with_gnu_ld_CXX=$with_gnu_ld
13334
13335
13336
13337
13338
13339
13340#
13341# Do we need to explicitly link libc?
13342#
13343case "x$archive_cmds_need_lc_CXX" in
13344x|xyes)
13345  # Assume -lc should be added
13346  archive_cmds_need_lc_CXX=yes
13347
13348  if test "$enable_shared" = yes && test "$GCC" = yes; then
13349    case $archive_cmds_CXX in
13350    *'~'*)
13351      # FIXME: we may have to deal with multi-command sequences.
13352      ;;
13353    '$CC '*)
13354      # Test whether the compiler implicitly links with -lc since on some
13355      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13356      # to ld, don't add -lc before -lgcc.
13357      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13358$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13359if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13360  $as_echo_n "(cached) " >&6
13361else
13362  $RM conftest*
13363	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13364
13365	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13366  (eval $ac_compile) 2>&5
13367  ac_status=$?
13368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13369  test $ac_status = 0; } 2>conftest.err; then
13370	  soname=conftest
13371	  lib=conftest
13372	  libobjs=conftest.$ac_objext
13373	  deplibs=
13374	  wl=$lt_prog_compiler_wl_CXX
13375	  pic_flag=$lt_prog_compiler_pic_CXX
13376	  compiler_flags=-v
13377	  linker_flags=-v
13378	  verstring=
13379	  output_objdir=.
13380	  libname=conftest
13381	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13382	  allow_undefined_flag_CXX=
13383	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13384  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13385  ac_status=$?
13386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13387  test $ac_status = 0; }
13388	  then
13389	    lt_cv_archive_cmds_need_lc_CXX=no
13390	  else
13391	    lt_cv_archive_cmds_need_lc_CXX=yes
13392	  fi
13393	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13394	else
13395	  cat conftest.err 1>&5
13396	fi
13397	$RM conftest*
13398
13399fi
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13401$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13402      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13403      ;;
13404    esac
13405  fi
13406  ;;
13407esac
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13473$as_echo_n "checking dynamic linker characteristics... " >&6; }
13474
13475library_names_spec=
13476libname_spec='lib$name'
13477soname_spec=
13478shrext_cmds=".so"
13479postinstall_cmds=
13480postuninstall_cmds=
13481finish_cmds=
13482finish_eval=
13483shlibpath_var=
13484shlibpath_overrides_runpath=unknown
13485version_type=none
13486dynamic_linker="$host_os ld.so"
13487sys_lib_dlsearch_path_spec="/lib /usr/lib"
13488need_lib_prefix=unknown
13489hardcode_into_libs=no
13490
13491# when you set need_version to no, make sure it does not cause -set_version
13492# flags to be left without arguments
13493need_version=unknown
13494
13495case $host_os in
13496aix3*)
13497  version_type=linux
13498  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13499  shlibpath_var=LIBPATH
13500
13501  # AIX 3 has no versioning support, so we append a major version to the name.
13502  soname_spec='${libname}${release}${shared_ext}$major'
13503  ;;
13504
13505aix[4-9]*)
13506  version_type=linux
13507  need_lib_prefix=no
13508  need_version=no
13509  hardcode_into_libs=yes
13510  if test "$host_cpu" = ia64; then
13511    # AIX 5 supports IA64
13512    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13513    shlibpath_var=LD_LIBRARY_PATH
13514  else
13515    # With GCC up to 2.95.x, collect2 would create an import file
13516    # for dependence libraries.  The import file would start with
13517    # the line `#! .'.  This would cause the generated library to
13518    # depend on `.', always an invalid library.  This was fixed in
13519    # development snapshots of GCC prior to 3.0.
13520    case $host_os in
13521      aix4 | aix4.[01] | aix4.[01].*)
13522      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13523	   echo ' yes '
13524	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13525	:
13526      else
13527	can_build_shared=no
13528      fi
13529      ;;
13530    esac
13531    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13532    # soname into executable. Probably we can add versioning support to
13533    # collect2, so additional links can be useful in future.
13534    if test "$aix_use_runtimelinking" = yes; then
13535      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13536      # instead of lib<name>.a to let people know that these are not
13537      # typical AIX shared libraries.
13538      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13539    else
13540      # We preserve .a as extension for shared libraries through AIX4.2
13541      # and later when we are not doing run time linking.
13542      library_names_spec='${libname}${release}.a $libname.a'
13543      soname_spec='${libname}${release}${shared_ext}$major'
13544    fi
13545    shlibpath_var=LIBPATH
13546  fi
13547  ;;
13548
13549amigaos*)
13550  case $host_cpu in
13551  powerpc)
13552    # Since July 2007 AmigaOS4 officially supports .so libraries.
13553    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13554    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555    ;;
13556  m68k)
13557    library_names_spec='$libname.ixlibrary $libname.a'
13558    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13559    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'
13560    ;;
13561  esac
13562  ;;
13563
13564beos*)
13565  library_names_spec='${libname}${shared_ext}'
13566  dynamic_linker="$host_os ld.so"
13567  shlibpath_var=LIBRARY_PATH
13568  ;;
13569
13570bsdi[45]*)
13571  version_type=linux
13572  need_version=no
13573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574  soname_spec='${libname}${release}${shared_ext}$major'
13575  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13576  shlibpath_var=LD_LIBRARY_PATH
13577  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13578  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13579  # the default ld.so.conf also contains /usr/contrib/lib and
13580  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13581  # libtool to hard-code these into programs
13582  ;;
13583
13584cygwin* | mingw* | pw32* | cegcc*)
13585  version_type=windows
13586  shrext_cmds=".dll"
13587  need_version=no
13588  need_lib_prefix=no
13589
13590  case $GCC,$host_os in
13591  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13592    library_names_spec='$libname.dll.a'
13593    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13594    postinstall_cmds='base_file=`basename \${file}`~
13595      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13596      dldir=$destdir/`dirname \$dlpath`~
13597      test -d \$dldir || mkdir -p \$dldir~
13598      $install_prog $dir/$dlname \$dldir/$dlname~
13599      chmod a+x \$dldir/$dlname~
13600      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13601        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13602      fi'
13603    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13604      dlpath=$dir/\$dldll~
13605       $RM \$dlpath'
13606    shlibpath_overrides_runpath=yes
13607
13608    case $host_os in
13609    cygwin*)
13610      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13611      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13612
13613      ;;
13614    mingw* | cegcc*)
13615      # MinGW DLLs use traditional 'lib' prefix
13616      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13617      ;;
13618    pw32*)
13619      # pw32 DLLs use 'pw' prefix rather than 'lib'
13620      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13621      ;;
13622    esac
13623    ;;
13624
13625  *)
13626    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13627    ;;
13628  esac
13629  dynamic_linker='Win32 ld.exe'
13630  # FIXME: first we should search . and the directory the executable is in
13631  shlibpath_var=PATH
13632  ;;
13633
13634darwin* | rhapsody*)
13635  dynamic_linker="$host_os dyld"
13636  version_type=darwin
13637  need_lib_prefix=no
13638  need_version=no
13639  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13640  soname_spec='${libname}${release}${major}$shared_ext'
13641  shlibpath_overrides_runpath=yes
13642  shlibpath_var=DYLD_LIBRARY_PATH
13643  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13644
13645  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13646  ;;
13647
13648dgux*)
13649  version_type=linux
13650  need_lib_prefix=no
13651  need_version=no
13652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13653  soname_spec='${libname}${release}${shared_ext}$major'
13654  shlibpath_var=LD_LIBRARY_PATH
13655  ;;
13656
13657freebsd1*)
13658  dynamic_linker=no
13659  ;;
13660
13661freebsd* | dragonfly*)
13662  # DragonFly does not have aout.  When/if they implement a new
13663  # versioning mechanism, adjust this.
13664  if test -x /usr/bin/objformat; then
13665    objformat=`/usr/bin/objformat`
13666  else
13667    case $host_os in
13668    freebsd[123]*) objformat=aout ;;
13669    *) objformat=elf ;;
13670    esac
13671  fi
13672  version_type=freebsd-$objformat
13673  case $version_type in
13674    freebsd-elf*)
13675      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13676      need_version=no
13677      need_lib_prefix=no
13678      ;;
13679    freebsd-*)
13680      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13681      need_version=yes
13682      ;;
13683  esac
13684  shlibpath_var=LD_LIBRARY_PATH
13685  case $host_os in
13686  freebsd2*)
13687    shlibpath_overrides_runpath=yes
13688    ;;
13689  freebsd3.[01]* | freebsdelf3.[01]*)
13690    shlibpath_overrides_runpath=yes
13691    hardcode_into_libs=yes
13692    ;;
13693  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13694  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13695    shlibpath_overrides_runpath=no
13696    hardcode_into_libs=yes
13697    ;;
13698  *) # from 4.6 on, and DragonFly
13699    shlibpath_overrides_runpath=yes
13700    hardcode_into_libs=yes
13701    ;;
13702  esac
13703  ;;
13704
13705gnu*)
13706  version_type=linux
13707  need_lib_prefix=no
13708  need_version=no
13709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13710  soname_spec='${libname}${release}${shared_ext}$major'
13711  shlibpath_var=LD_LIBRARY_PATH
13712  hardcode_into_libs=yes
13713  ;;
13714
13715haiku*)
13716  version_type=linux
13717  need_lib_prefix=no
13718  need_version=no
13719  dynamic_linker="$host_os runtime_loader"
13720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13721  soname_spec='${libname}${release}${shared_ext}$major'
13722  shlibpath_var=LIBRARY_PATH
13723  shlibpath_overrides_runpath=yes
13724  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13725  hardcode_into_libs=yes
13726  ;;
13727
13728hpux9* | hpux10* | hpux11*)
13729  # Give a soname corresponding to the major version so that dld.sl refuses to
13730  # link against other versions.
13731  version_type=sunos
13732  need_lib_prefix=no
13733  need_version=no
13734  case $host_cpu in
13735  ia64*)
13736    shrext_cmds='.so'
13737    hardcode_into_libs=yes
13738    dynamic_linker="$host_os dld.so"
13739    shlibpath_var=LD_LIBRARY_PATH
13740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13742    soname_spec='${libname}${release}${shared_ext}$major'
13743    if test "X$HPUX_IA64_MODE" = X32; then
13744      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13745    else
13746      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13747    fi
13748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13749    ;;
13750  hppa*64*)
13751    shrext_cmds='.sl'
13752    hardcode_into_libs=yes
13753    dynamic_linker="$host_os dld.sl"
13754    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13755    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13756    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13757    soname_spec='${libname}${release}${shared_ext}$major'
13758    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13759    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13760    ;;
13761  *)
13762    shrext_cmds='.sl'
13763    dynamic_linker="$host_os dld.sl"
13764    shlibpath_var=SHLIB_PATH
13765    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13767    soname_spec='${libname}${release}${shared_ext}$major'
13768    ;;
13769  esac
13770  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13771  postinstall_cmds='chmod 555 $lib'
13772  # or fails outright, so override atomically:
13773  install_override_mode=555
13774  ;;
13775
13776interix[3-9]*)
13777  version_type=linux
13778  need_lib_prefix=no
13779  need_version=no
13780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13781  soname_spec='${libname}${release}${shared_ext}$major'
13782  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13783  shlibpath_var=LD_LIBRARY_PATH
13784  shlibpath_overrides_runpath=no
13785  hardcode_into_libs=yes
13786  ;;
13787
13788irix5* | irix6* | nonstopux*)
13789  case $host_os in
13790    nonstopux*) version_type=nonstopux ;;
13791    *)
13792	if test "$lt_cv_prog_gnu_ld" = yes; then
13793		version_type=linux
13794	else
13795		version_type=irix
13796	fi ;;
13797  esac
13798  need_lib_prefix=no
13799  need_version=no
13800  soname_spec='${libname}${release}${shared_ext}$major'
13801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13802  case $host_os in
13803  irix5* | nonstopux*)
13804    libsuff= shlibsuff=
13805    ;;
13806  *)
13807    case $LD in # libtool.m4 will add one of these switches to LD
13808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13809      libsuff= shlibsuff= libmagic=32-bit;;
13810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13811      libsuff=32 shlibsuff=N32 libmagic=N32;;
13812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13814    *) libsuff= shlibsuff= libmagic=never-match;;
13815    esac
13816    ;;
13817  esac
13818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13819  shlibpath_overrides_runpath=no
13820  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13821  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13822  hardcode_into_libs=yes
13823  ;;
13824
13825# No shared lib support for Linux oldld, aout, or coff.
13826linux*oldld* | linux*aout* | linux*coff*)
13827  dynamic_linker=no
13828  ;;
13829
13830# This must be Linux ELF.
13831linux* | k*bsd*-gnu | kopensolaris*-gnu)
13832  version_type=linux
13833  need_lib_prefix=no
13834  need_version=no
13835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13836  soname_spec='${libname}${release}${shared_ext}$major'
13837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13838  shlibpath_var=LD_LIBRARY_PATH
13839  shlibpath_overrides_runpath=no
13840
13841  # Some binutils ld are patched to set DT_RUNPATH
13842  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13843  $as_echo_n "(cached) " >&6
13844else
13845  lt_cv_shlibpath_overrides_runpath=no
13846    save_LDFLAGS=$LDFLAGS
13847    save_libdir=$libdir
13848    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13849	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851/* end confdefs.h.  */
13852
13853int
13854main ()
13855{
13856
13857  ;
13858  return 0;
13859}
13860_ACEOF
13861if ac_fn_cxx_try_link "$LINENO"; then :
13862  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13863  lt_cv_shlibpath_overrides_runpath=yes
13864fi
13865fi
13866rm -f core conftest.err conftest.$ac_objext \
13867    conftest$ac_exeext conftest.$ac_ext
13868    LDFLAGS=$save_LDFLAGS
13869    libdir=$save_libdir
13870
13871fi
13872
13873  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13874
13875  # This implies no fast_install, which is unacceptable.
13876  # Some rework will be needed to allow for fast_install
13877  # before this can be enabled.
13878  hardcode_into_libs=yes
13879
13880  # Add ABI-specific directories to the system library path.
13881  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13882
13883  # Append ld.so.conf contents to the search path
13884  if test -f /etc/ld.so.conf; then
13885    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' ' '`
13886    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13887
13888  fi
13889
13890  # We used to test for /lib/ld.so.1 and disable shared libraries on
13891  # powerpc, because MkLinux only supported shared libraries with the
13892  # GNU dynamic linker.  Since this was broken with cross compilers,
13893  # most powerpc-linux boxes support dynamic linking these days and
13894  # people can always --disable-shared, the test was removed, and we
13895  # assume the GNU/Linux dynamic linker is in use.
13896  dynamic_linker='GNU/Linux ld.so'
13897  ;;
13898
13899netbsd*)
13900  version_type=sunos
13901  need_lib_prefix=no
13902  need_version=no
13903  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13904    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13905    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13906    dynamic_linker='NetBSD (a.out) ld.so'
13907  else
13908    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13909    soname_spec='${libname}${release}${shared_ext}$major'
13910    dynamic_linker='NetBSD ld.elf_so'
13911  fi
13912  shlibpath_var=LD_LIBRARY_PATH
13913  shlibpath_overrides_runpath=yes
13914  hardcode_into_libs=yes
13915  ;;
13916
13917newsos6)
13918  version_type=linux
13919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920  shlibpath_var=LD_LIBRARY_PATH
13921  shlibpath_overrides_runpath=yes
13922  ;;
13923
13924*nto* | *qnx*)
13925  version_type=qnx
13926  need_lib_prefix=no
13927  need_version=no
13928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13929  soname_spec='${libname}${release}${shared_ext}$major'
13930  shlibpath_var=LD_LIBRARY_PATH
13931  shlibpath_overrides_runpath=no
13932  hardcode_into_libs=yes
13933  dynamic_linker='ldqnx.so'
13934  ;;
13935
13936openbsd*)
13937  version_type=sunos
13938  sys_lib_dlsearch_path_spec="/usr/lib"
13939  need_lib_prefix=no
13940  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13941  case $host_os in
13942    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13943    *)				need_version=no  ;;
13944  esac
13945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13946  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13947  shlibpath_var=LD_LIBRARY_PATH
13948  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13949    case $host_os in
13950      openbsd2.[89] | openbsd2.[89].*)
13951	shlibpath_overrides_runpath=no
13952	;;
13953      *)
13954	shlibpath_overrides_runpath=yes
13955	;;
13956      esac
13957  else
13958    shlibpath_overrides_runpath=yes
13959  fi
13960  ;;
13961
13962os2*)
13963  libname_spec='$name'
13964  shrext_cmds=".dll"
13965  need_lib_prefix=no
13966  library_names_spec='$libname${shared_ext} $libname.a'
13967  dynamic_linker='OS/2 ld.exe'
13968  shlibpath_var=LIBPATH
13969  ;;
13970
13971osf3* | osf4* | osf5*)
13972  version_type=osf
13973  need_lib_prefix=no
13974  need_version=no
13975  soname_spec='${libname}${release}${shared_ext}$major'
13976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977  shlibpath_var=LD_LIBRARY_PATH
13978  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13979  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13980  ;;
13981
13982rdos*)
13983  dynamic_linker=no
13984  ;;
13985
13986solaris*)
13987  version_type=linux
13988  need_lib_prefix=no
13989  need_version=no
13990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13991  soname_spec='${libname}${release}${shared_ext}$major'
13992  shlibpath_var=LD_LIBRARY_PATH
13993  shlibpath_overrides_runpath=yes
13994  hardcode_into_libs=yes
13995  # ldd complains unless libraries are executable
13996  postinstall_cmds='chmod +x $lib'
13997  ;;
13998
13999sunos4*)
14000  version_type=sunos
14001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14002  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14003  shlibpath_var=LD_LIBRARY_PATH
14004  shlibpath_overrides_runpath=yes
14005  if test "$with_gnu_ld" = yes; then
14006    need_lib_prefix=no
14007  fi
14008  need_version=yes
14009  ;;
14010
14011sysv4 | sysv4.3*)
14012  version_type=linux
14013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014  soname_spec='${libname}${release}${shared_ext}$major'
14015  shlibpath_var=LD_LIBRARY_PATH
14016  case $host_vendor in
14017    sni)
14018      shlibpath_overrides_runpath=no
14019      need_lib_prefix=no
14020      runpath_var=LD_RUN_PATH
14021      ;;
14022    siemens)
14023      need_lib_prefix=no
14024      ;;
14025    motorola)
14026      need_lib_prefix=no
14027      need_version=no
14028      shlibpath_overrides_runpath=no
14029      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14030      ;;
14031  esac
14032  ;;
14033
14034sysv4*MP*)
14035  if test -d /usr/nec ;then
14036    version_type=linux
14037    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14038    soname_spec='$libname${shared_ext}.$major'
14039    shlibpath_var=LD_LIBRARY_PATH
14040  fi
14041  ;;
14042
14043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14044  version_type=freebsd-elf
14045  need_lib_prefix=no
14046  need_version=no
14047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14048  soname_spec='${libname}${release}${shared_ext}$major'
14049  shlibpath_var=LD_LIBRARY_PATH
14050  shlibpath_overrides_runpath=yes
14051  hardcode_into_libs=yes
14052  if test "$with_gnu_ld" = yes; then
14053    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14054  else
14055    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14056    case $host_os in
14057      sco3.2v5*)
14058        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14059	;;
14060    esac
14061  fi
14062  sys_lib_dlsearch_path_spec='/usr/lib'
14063  ;;
14064
14065tpf*)
14066  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14067  version_type=linux
14068  need_lib_prefix=no
14069  need_version=no
14070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071  shlibpath_var=LD_LIBRARY_PATH
14072  shlibpath_overrides_runpath=no
14073  hardcode_into_libs=yes
14074  ;;
14075
14076uts4*)
14077  version_type=linux
14078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079  soname_spec='${libname}${release}${shared_ext}$major'
14080  shlibpath_var=LD_LIBRARY_PATH
14081  ;;
14082
14083*)
14084  dynamic_linker=no
14085  ;;
14086esac
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14088$as_echo "$dynamic_linker" >&6; }
14089test "$dynamic_linker" = no && can_build_shared=no
14090
14091variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14092if test "$GCC" = yes; then
14093  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14094fi
14095
14096if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14097  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14098fi
14099if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14100  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14101fi
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14141$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14142hardcode_action_CXX=
14143if test -n "$hardcode_libdir_flag_spec_CXX" ||
14144   test -n "$runpath_var_CXX" ||
14145   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14146
14147  # We can hardcode non-existent directories.
14148  if test "$hardcode_direct_CXX" != no &&
14149     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14150     # have to relink, otherwise we might link with an installed library
14151     # when we should be linking with a yet-to-be-installed one
14152     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14153     test "$hardcode_minus_L_CXX" != no; then
14154    # Linking always hardcodes the temporary library directory.
14155    hardcode_action_CXX=relink
14156  else
14157    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14158    hardcode_action_CXX=immediate
14159  fi
14160else
14161  # We cannot hardcode anything, or else we can only hardcode existing
14162  # directories.
14163  hardcode_action_CXX=unsupported
14164fi
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14166$as_echo "$hardcode_action_CXX" >&6; }
14167
14168if test "$hardcode_action_CXX" = relink ||
14169   test "$inherit_rpath_CXX" = yes; then
14170  # Fast installation is not supported
14171  enable_fast_install=no
14172elif test "$shlibpath_overrides_runpath" = yes ||
14173     test "$enable_shared" = no; then
14174  # Fast installation is not necessary
14175  enable_fast_install=needless
14176fi
14177
14178
14179
14180
14181
14182
14183
14184  fi # test -n "$compiler"
14185
14186  CC=$lt_save_CC
14187  LDCXX=$LD
14188  LD=$lt_save_LD
14189  GCC=$lt_save_GCC
14190  with_gnu_ld=$lt_save_with_gnu_ld
14191  lt_cv_path_LDCXX=$lt_cv_path_LD
14192  lt_cv_path_LD=$lt_save_path_LD
14193  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14194  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14195fi # test "$_lt_caught_CXX_error" != yes
14196
14197ac_ext=c
14198ac_cpp='$CPP $CPPFLAGS'
14199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14201ac_compiler_gnu=$ac_cv_c_compiler_gnu
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215        ac_config_commands="$ac_config_commands libtool"
14216
14217
14218
14219
14220# Only expand once:
14221
14222
14223
14224for ac_prog in courierauthconfig
14225do
14226  # Extract the first word of "$ac_prog", so it can be a program name with args.
14227set dummy $ac_prog; ac_word=$2
14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14229$as_echo_n "checking for $ac_word... " >&6; }
14230if test "${ac_cv_path_COURIERAUTHCONFIG+set}" = set; then :
14231  $as_echo_n "(cached) " >&6
14232else
14233  case $COURIERAUTHCONFIG in
14234  [\\/]* | ?:[\\/]*)
14235  ac_cv_path_COURIERAUTHCONFIG="$COURIERAUTHCONFIG" # Let the user override the test with a path.
14236  ;;
14237  *)
14238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239for as_dir in $PATH
14240do
14241  IFS=$as_save_IFS
14242  test -z "$as_dir" && as_dir=.
14243    for ac_exec_ext in '' $ac_executable_extensions; do
14244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14245    ac_cv_path_COURIERAUTHCONFIG="$as_dir/$ac_word$ac_exec_ext"
14246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14247    break 2
14248  fi
14249done
14250  done
14251IFS=$as_save_IFS
14252
14253  ;;
14254esac
14255fi
14256COURIERAUTHCONFIG=$ac_cv_path_COURIERAUTHCONFIG
14257if test -n "$COURIERAUTHCONFIG"; then
14258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERAUTHCONFIG" >&5
14259$as_echo "$COURIERAUTHCONFIG" >&6; }
14260else
14261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262$as_echo "no" >&6; }
14263fi
14264
14265
14266  test -n "$COURIERAUTHCONFIG" && break
14267done
14268
14269
14270if test "$COURIERAUTHCONFIG" = ""
14271then
14272	as_fn_error $? "courierauthconfig not found" "$LINENO" 5
14273fi
14274
14275
14276
14277for ac_header in fcntl.h sys/file.h sys/stat.h sys/time.h sys/wait.h sysexits.h unistd.h syslog.h
14278do :
14279  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14280ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14282  cat >>confdefs.h <<_ACEOF
14283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14284_ACEOF
14285
14286fi
14287
14288done
14289
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14291$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14292if test "${ac_cv_header_time+set}" = set; then :
14293  $as_echo_n "(cached) " >&6
14294else
14295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296/* end confdefs.h.  */
14297#include <sys/types.h>
14298#include <sys/time.h>
14299#include <time.h>
14300
14301int
14302main ()
14303{
14304if ((struct tm *) 0)
14305return 0;
14306  ;
14307  return 0;
14308}
14309_ACEOF
14310if ac_fn_c_try_compile "$LINENO"; then :
14311  ac_cv_header_time=yes
14312else
14313  ac_cv_header_time=no
14314fi
14315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316fi
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14318$as_echo "$ac_cv_header_time" >&6; }
14319if test $ac_cv_header_time = yes; then
14320
14321$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14322
14323fi
14324
14325
14326
14327ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14328if test "x$ac_cv_type_size_t" = x""yes; then :
14329
14330else
14331
14332cat >>confdefs.h <<_ACEOF
14333#define size_t unsigned int
14334_ACEOF
14335
14336fi
14337
14338ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14339if test "x$ac_cv_type_off_t" = x""yes; then :
14340
14341else
14342
14343cat >>confdefs.h <<_ACEOF
14344#define off_t long int
14345_ACEOF
14346
14347fi
14348
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14350$as_echo_n "checking return type of signal handlers... " >&6; }
14351if test "${ac_cv_type_signal+set}" = set; then :
14352  $as_echo_n "(cached) " >&6
14353else
14354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355/* end confdefs.h.  */
14356#include <sys/types.h>
14357#include <signal.h>
14358
14359int
14360main ()
14361{
14362return *(signal (0, 0)) (0) == 1;
14363  ;
14364  return 0;
14365}
14366_ACEOF
14367if ac_fn_c_try_compile "$LINENO"; then :
14368  ac_cv_type_signal=int
14369else
14370  ac_cv_type_signal=void
14371fi
14372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373fi
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14375$as_echo "$ac_cv_type_signal" >&6; }
14376
14377cat >>confdefs.h <<_ACEOF
14378#define RETSIGTYPE $ac_cv_type_signal
14379_ACEOF
14380
14381
14382
14383
14384for ac_func in ftruncate strerror strcasecmp strncasecmp setpgrp
14385do :
14386  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14387ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14389  cat >>confdefs.h <<_ACEOF
14390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14391_ACEOF
14392
14393fi
14394done
14395
14396ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
14397if test "x$ac_cv_func_setpgrp" = x""yes; then :
14398
14399		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14400$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14401if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14402  $as_echo_n "(cached) " >&6
14403else
14404  if test "$cross_compiling" = yes; then :
14405  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
14406else
14407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408/* end confdefs.h.  */
14409$ac_includes_default
14410int
14411main ()
14412{
14413/* If this system has a BSD-style setpgrp which takes arguments,
14414  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14415  exit successfully. */
14416  return setpgrp (1,1) != -1;
14417  ;
14418  return 0;
14419}
14420_ACEOF
14421if ac_fn_c_try_run "$LINENO"; then :
14422  ac_cv_func_setpgrp_void=no
14423else
14424  ac_cv_func_setpgrp_void=yes
14425fi
14426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14427  conftest.$ac_objext conftest.beam conftest.$ac_ext
14428fi
14429
14430fi
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14432$as_echo "$ac_cv_func_setpgrp_void" >&6; }
14433if test $ac_cv_func_setpgrp_void = yes; then
14434
14435$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14436
14437fi
14438
14439
14440
14441fi
14442
14443
14444
14445
14446if test x$GCC = xyes
14447then
14448	CFLAGS="-Wall $CFLAGS"
14449fi
14450
14451CFLAGS="-I$srcdir/../.. -I../.. -I$srcdir/../../courier -I../../courier -I$srcdir/../../rfc822 -I$srcdir/../../afx -I$srcdir/../../courier/libs -I$srcdir/../../liblock -I../../liblock -I$srcdir/../../authlib $CFLAGS"
14452CXXFLAGS="-I$srcdir/../.. -I../.. -I$srcdir/../../courier -I../../courier -I$srcdir/../../rfc822 -I$srcdir/../../afx -I$srcdir/../../courier/libs -I$srcdir/../../liblock -I../../liblock -I$srcdir/../../authlib $CXXFLAGS"
14453
14454
14455# Check whether --with-mailuser was given.
14456if test "${with_mailuser+set}" = set; then :
14457  withval=$with_mailuser; mailuser="$withval"
14458else
14459  mailuser=mail
14460
14461fi
14462
14463
14464# Check whether --with-mailgroup was given.
14465if test "${with_mailgroup+set}" = set; then :
14466  withval=$with_mailgroup; mailgroup="$withval"
14467else
14468  mailgroup=mail
14469
14470fi
14471
14472
14473
14474
14475# Check whether --enable-local-extensions was given.
14476if test "${enable_local_extensions+set}" = set; then :
14477  enableval=$enable_local_extensions; extensions="$enableval"
14478else
14479  extensions="Y"
14480fi
14481
14482
14483case "$extensions" in
14484y*|Y*|1)
14485	extensions=1
14486	;;
14487*)
14488	extensions=0
14489	;;
14490esac
14491
14492cat >>confdefs.h <<_ACEOF
14493#define LOCAL_EXTENSIONS $extensions
14494_ACEOF
14495
14496
14497
14498# Check whether --with-alias was given.
14499if test "${with_alias+set}" = set; then :
14500  withval=$with_alias; alias="$withval"
14501else
14502  alias="Y"
14503fi
14504
14505
14506case "$alias" in
14507y*|Y*|1)
14508	alias=1
14509	;;
14510*)
14511	alias=0
14512	;;
14513esac
14514
14515
14516cat >>confdefs.h <<_ACEOF
14517#define ALIAS $alias
14518_ACEOF
14519
14520
14521# Check whether --enable-root was given.
14522if test "${enable_root+set}" = set; then :
14523  enableval=$enable_root;
14524	case "$enableval" in
14525	y*|Y*|1)
14526
14527cat >>confdefs.h <<_ACEOF
14528#define ALLOW_ROOT 1
14529_ACEOF
14530
14531		;;
14532	esac
14533
14534fi
14535
14536
14537
14538# Check whether --with-testmode was given.
14539if test "${with_testmode+set}" = set; then :
14540  withval=$with_testmode; testmode="$withval"
14541else
14542  testmode="N"
14543fi
14544
14545
14546case "$testmode" in
14547y*|y*|1)
14548	testmode=1
14549	CFLAGS=`echo "$CFLAGS" | sed 's/-O2//'`
14550	;;
14551*)
14552	testmode=0
14553	;;
14554esac
14555
14556
14557# Check whether --with-explicitsync was given.
14558if test "${with_explicitsync+set}" = set; then :
14559  withval=$with_explicitsync; explicitsync="$withval"
14560fi
14561
14562
14563case "$explicitsync" in
14564y*|Y*|1*)
14565
14566cat >>confdefs.h <<_ACEOF
14567#define EXPLICITSYNC 1
14568_ACEOF
14569
14570	;;
14571esac
14572
14573
14574# Check whether --with-dirsync was given.
14575if test "${with_dirsync+set}" = set; then :
14576  withval=$with_dirsync; dirsync="$withval"
14577else
14578  dirsync="N"
14579fi
14580
14581
14582case "$dirsync" in
14583y*|Y*|1*)
14584
14585cat >>confdefs.h <<_ACEOF
14586#define EXPLICITDIRSYNC 1
14587_ACEOF
14588
14589	;;
14590esac
14591
14592
14593cat >>confdefs.h <<_ACEOF
14594#define testmode $testmode
14595_ACEOF
14596
14597
14598echo "$CFLAGS" >cflags
14599ac_config_files="$ac_config_files Makefile"
14600
14601cat >confcache <<\_ACEOF
14602# This file is a shell script that caches the results of configure
14603# tests run on this system so they can be shared between configure
14604# scripts and configure runs, see configure's option --config-cache.
14605# It is not useful on other systems.  If it contains results you don't
14606# want to keep, you may remove or edit it.
14607#
14608# config.status only pays attention to the cache file if you give it
14609# the --recheck option to rerun configure.
14610#
14611# `ac_cv_env_foo' variables (set or unset) will be overridden when
14612# loading this file, other *unset* `ac_cv_foo' will be assigned the
14613# following values.
14614
14615_ACEOF
14616
14617# The following way of writing the cache mishandles newlines in values,
14618# but we know of no workaround that is simple, portable, and efficient.
14619# So, we kill variables containing newlines.
14620# Ultrix sh set writes to stderr and can't be redirected directly,
14621# and sets the high bit in the cache file unless we assign to the vars.
14622(
14623  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14624    eval ac_val=\$$ac_var
14625    case $ac_val in #(
14626    *${as_nl}*)
14627      case $ac_var in #(
14628      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14629$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14630      esac
14631      case $ac_var in #(
14632      _ | IFS | as_nl) ;; #(
14633      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14634      *) { eval $ac_var=; unset $ac_var;} ;;
14635      esac ;;
14636    esac
14637  done
14638
14639  (set) 2>&1 |
14640    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14641    *${as_nl}ac_space=\ *)
14642      # `set' does not quote correctly, so add quotes: double-quote
14643      # substitution turns \\\\ into \\, and sed turns \\ into \.
14644      sed -n \
14645	"s/'/'\\\\''/g;
14646	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14647      ;; #(
14648    *)
14649      # `set' quotes correctly as required by POSIX, so do not add quotes.
14650      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14651      ;;
14652    esac |
14653    sort
14654) |
14655  sed '
14656     /^ac_cv_env_/b end
14657     t clear
14658     :clear
14659     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14660     t end
14661     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14662     :end' >>confcache
14663if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14664  if test -w "$cache_file"; then
14665    test "x$cache_file" != "x/dev/null" &&
14666      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14667$as_echo "$as_me: updating cache $cache_file" >&6;}
14668    cat confcache >$cache_file
14669  else
14670    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14671$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14672  fi
14673fi
14674rm -f confcache
14675
14676test "x$prefix" = xNONE && prefix=$ac_default_prefix
14677# Let make expand exec_prefix.
14678test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14679
14680DEFS=-DHAVE_CONFIG_H
14681
14682ac_libobjs=
14683ac_ltlibobjs=
14684U=
14685for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14686  # 1. Remove the extension, and $U if already installed.
14687  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14688  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14689  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14690  #    will be set to the directory where LIBOBJS objects are built.
14691  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14692  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14693done
14694LIBOBJS=$ac_libobjs
14695
14696LTLIBOBJS=$ac_ltlibobjs
14697
14698
14699 if test -n "$EXEEXT"; then
14700  am__EXEEXT_TRUE=
14701  am__EXEEXT_FALSE='#'
14702else
14703  am__EXEEXT_TRUE='#'
14704  am__EXEEXT_FALSE=
14705fi
14706
14707if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14708  as_fn_error $? "conditional \"AMDEP\" was never defined.
14709Usually this means the macro was only invoked conditionally." "$LINENO" 5
14710fi
14711if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14712  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
14713Usually this means the macro was only invoked conditionally." "$LINENO" 5
14714fi
14715if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14716  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14717Usually this means the macro was only invoked conditionally." "$LINENO" 5
14718fi
14719
14720: ${CONFIG_STATUS=./config.status}
14721ac_write_fail=0
14722ac_clean_files_save=$ac_clean_files
14723ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14724{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14725$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14726as_write_fail=0
14727cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14728#! $SHELL
14729# Generated by $as_me.
14730# Run this file to recreate the current configuration.
14731# Compiler output produced by configure, useful for debugging
14732# configure, is in config.log if it exists.
14733
14734debug=false
14735ac_cs_recheck=false
14736ac_cs_silent=false
14737
14738SHELL=\${CONFIG_SHELL-$SHELL}
14739export SHELL
14740_ASEOF
14741cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14742## -------------------- ##
14743## M4sh Initialization. ##
14744## -------------------- ##
14745
14746# Be more Bourne compatible
14747DUALCASE=1; export DUALCASE # for MKS sh
14748if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14749  emulate sh
14750  NULLCMD=:
14751  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14752  # is contrary to our usage.  Disable this feature.
14753  alias -g '${1+"$@"}'='"$@"'
14754  setopt NO_GLOB_SUBST
14755else
14756  case `(set -o) 2>/dev/null` in #(
14757  *posix*) :
14758    set -o posix ;; #(
14759  *) :
14760     ;;
14761esac
14762fi
14763
14764
14765as_nl='
14766'
14767export as_nl
14768# Printing a long string crashes Solaris 7 /usr/bin/printf.
14769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14772# Prefer a ksh shell builtin over an external printf program on Solaris,
14773# but without wasting forks for bash or zsh.
14774if test -z "$BASH_VERSION$ZSH_VERSION" \
14775    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14776  as_echo='print -r --'
14777  as_echo_n='print -rn --'
14778elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14779  as_echo='printf %s\n'
14780  as_echo_n='printf %s'
14781else
14782  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14783    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14784    as_echo_n='/usr/ucb/echo -n'
14785  else
14786    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14787    as_echo_n_body='eval
14788      arg=$1;
14789      case $arg in #(
14790      *"$as_nl"*)
14791	expr "X$arg" : "X\\(.*\\)$as_nl";
14792	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14793      esac;
14794      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14795    '
14796    export as_echo_n_body
14797    as_echo_n='sh -c $as_echo_n_body as_echo'
14798  fi
14799  export as_echo_body
14800  as_echo='sh -c $as_echo_body as_echo'
14801fi
14802
14803# The user is always right.
14804if test "${PATH_SEPARATOR+set}" != set; then
14805  PATH_SEPARATOR=:
14806  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14807    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14808      PATH_SEPARATOR=';'
14809  }
14810fi
14811
14812
14813# IFS
14814# We need space, tab and new line, in precisely that order.  Quoting is
14815# there to prevent editors from complaining about space-tab.
14816# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14817# splitting by setting IFS to empty value.)
14818IFS=" ""	$as_nl"
14819
14820# Find who we are.  Look in the path if we contain no directory separator.
14821case $0 in #((
14822  *[\\/]* ) as_myself=$0 ;;
14823  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14824for as_dir in $PATH
14825do
14826  IFS=$as_save_IFS
14827  test -z "$as_dir" && as_dir=.
14828    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14829  done
14830IFS=$as_save_IFS
14831
14832     ;;
14833esac
14834# We did not find ourselves, most probably we were run as `sh COMMAND'
14835# in which case we are not to be found in the path.
14836if test "x$as_myself" = x; then
14837  as_myself=$0
14838fi
14839if test ! -f "$as_myself"; then
14840  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14841  exit 1
14842fi
14843
14844# Unset variables that we do not need and which cause bugs (e.g. in
14845# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14846# suppresses any "Segmentation fault" message there.  '((' could
14847# trigger a bug in pdksh 5.2.14.
14848for as_var in BASH_ENV ENV MAIL MAILPATH
14849do eval test x\${$as_var+set} = xset \
14850  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14851done
14852PS1='$ '
14853PS2='> '
14854PS4='+ '
14855
14856# NLS nuisances.
14857LC_ALL=C
14858export LC_ALL
14859LANGUAGE=C
14860export LANGUAGE
14861
14862# CDPATH.
14863(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14864
14865
14866# as_fn_error STATUS ERROR [LINENO LOG_FD]
14867# ----------------------------------------
14868# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14869# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14870# script with STATUS, using 1 if that was 0.
14871as_fn_error ()
14872{
14873  as_status=$1; test $as_status -eq 0 && as_status=1
14874  if test "$4"; then
14875    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14876    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14877  fi
14878  $as_echo "$as_me: error: $2" >&2
14879  as_fn_exit $as_status
14880} # as_fn_error
14881
14882
14883# as_fn_set_status STATUS
14884# -----------------------
14885# Set $? to STATUS, without forking.
14886as_fn_set_status ()
14887{
14888  return $1
14889} # as_fn_set_status
14890
14891# as_fn_exit STATUS
14892# -----------------
14893# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14894as_fn_exit ()
14895{
14896  set +e
14897  as_fn_set_status $1
14898  exit $1
14899} # as_fn_exit
14900
14901# as_fn_unset VAR
14902# ---------------
14903# Portably unset VAR.
14904as_fn_unset ()
14905{
14906  { eval $1=; unset $1;}
14907}
14908as_unset=as_fn_unset
14909# as_fn_append VAR VALUE
14910# ----------------------
14911# Append the text in VALUE to the end of the definition contained in VAR. Take
14912# advantage of any shell optimizations that allow amortized linear growth over
14913# repeated appends, instead of the typical quadratic growth present in naive
14914# implementations.
14915if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14916  eval 'as_fn_append ()
14917  {
14918    eval $1+=\$2
14919  }'
14920else
14921  as_fn_append ()
14922  {
14923    eval $1=\$$1\$2
14924  }
14925fi # as_fn_append
14926
14927# as_fn_arith ARG...
14928# ------------------
14929# Perform arithmetic evaluation on the ARGs, and store the result in the
14930# global $as_val. Take advantage of shells that can avoid forks. The arguments
14931# must be portable across $(()) and expr.
14932if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14933  eval 'as_fn_arith ()
14934  {
14935    as_val=$(( $* ))
14936  }'
14937else
14938  as_fn_arith ()
14939  {
14940    as_val=`expr "$@" || test $? -eq 1`
14941  }
14942fi # as_fn_arith
14943
14944
14945if expr a : '\(a\)' >/dev/null 2>&1 &&
14946   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14947  as_expr=expr
14948else
14949  as_expr=false
14950fi
14951
14952if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14953  as_basename=basename
14954else
14955  as_basename=false
14956fi
14957
14958if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14959  as_dirname=dirname
14960else
14961  as_dirname=false
14962fi
14963
14964as_me=`$as_basename -- "$0" ||
14965$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14966	 X"$0" : 'X\(//\)$' \| \
14967	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14968$as_echo X/"$0" |
14969    sed '/^.*\/\([^/][^/]*\)\/*$/{
14970	    s//\1/
14971	    q
14972	  }
14973	  /^X\/\(\/\/\)$/{
14974	    s//\1/
14975	    q
14976	  }
14977	  /^X\/\(\/\).*/{
14978	    s//\1/
14979	    q
14980	  }
14981	  s/.*/./; q'`
14982
14983# Avoid depending upon Character Ranges.
14984as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14985as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14986as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14987as_cr_digits='0123456789'
14988as_cr_alnum=$as_cr_Letters$as_cr_digits
14989
14990ECHO_C= ECHO_N= ECHO_T=
14991case `echo -n x` in #(((((
14992-n*)
14993  case `echo 'xy\c'` in
14994  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14995  xy)  ECHO_C='\c';;
14996  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14997       ECHO_T='	';;
14998  esac;;
14999*)
15000  ECHO_N='-n';;
15001esac
15002
15003rm -f conf$$ conf$$.exe conf$$.file
15004if test -d conf$$.dir; then
15005  rm -f conf$$.dir/conf$$.file
15006else
15007  rm -f conf$$.dir
15008  mkdir conf$$.dir 2>/dev/null
15009fi
15010if (echo >conf$$.file) 2>/dev/null; then
15011  if ln -s conf$$.file conf$$ 2>/dev/null; then
15012    as_ln_s='ln -s'
15013    # ... but there are two gotchas:
15014    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15015    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15016    # In both cases, we have to default to `cp -p'.
15017    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15018      as_ln_s='cp -p'
15019  elif ln conf$$.file conf$$ 2>/dev/null; then
15020    as_ln_s=ln
15021  else
15022    as_ln_s='cp -p'
15023  fi
15024else
15025  as_ln_s='cp -p'
15026fi
15027rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15028rmdir conf$$.dir 2>/dev/null
15029
15030
15031# as_fn_mkdir_p
15032# -------------
15033# Create "$as_dir" as a directory, including parents if necessary.
15034as_fn_mkdir_p ()
15035{
15036
15037  case $as_dir in #(
15038  -*) as_dir=./$as_dir;;
15039  esac
15040  test -d "$as_dir" || eval $as_mkdir_p || {
15041    as_dirs=
15042    while :; do
15043      case $as_dir in #(
15044      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15045      *) as_qdir=$as_dir;;
15046      esac
15047      as_dirs="'$as_qdir' $as_dirs"
15048      as_dir=`$as_dirname -- "$as_dir" ||
15049$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15050	 X"$as_dir" : 'X\(//\)[^/]' \| \
15051	 X"$as_dir" : 'X\(//\)$' \| \
15052	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15053$as_echo X"$as_dir" |
15054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15055	    s//\1/
15056	    q
15057	  }
15058	  /^X\(\/\/\)[^/].*/{
15059	    s//\1/
15060	    q
15061	  }
15062	  /^X\(\/\/\)$/{
15063	    s//\1/
15064	    q
15065	  }
15066	  /^X\(\/\).*/{
15067	    s//\1/
15068	    q
15069	  }
15070	  s/.*/./; q'`
15071      test -d "$as_dir" && break
15072    done
15073    test -z "$as_dirs" || eval "mkdir $as_dirs"
15074  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15075
15076
15077} # as_fn_mkdir_p
15078if mkdir -p . 2>/dev/null; then
15079  as_mkdir_p='mkdir -p "$as_dir"'
15080else
15081  test -d ./-p && rmdir ./-p
15082  as_mkdir_p=false
15083fi
15084
15085if test -x / >/dev/null 2>&1; then
15086  as_test_x='test -x'
15087else
15088  if ls -dL / >/dev/null 2>&1; then
15089    as_ls_L_option=L
15090  else
15091    as_ls_L_option=
15092  fi
15093  as_test_x='
15094    eval sh -c '\''
15095      if test -d "$1"; then
15096	test -d "$1/.";
15097      else
15098	case $1 in #(
15099	-*)set "./$1";;
15100	esac;
15101	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15102	???[sx]*):;;*)false;;esac;fi
15103    '\'' sh
15104  '
15105fi
15106as_executable_p=$as_test_x
15107
15108# Sed expression to map a string onto a valid CPP name.
15109as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15110
15111# Sed expression to map a string onto a valid variable name.
15112as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15113
15114
15115exec 6>&1
15116## ----------------------------------- ##
15117## Main body of $CONFIG_STATUS script. ##
15118## ----------------------------------- ##
15119_ASEOF
15120test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15121
15122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15123# Save the log message, to keep $0 and so on meaningful, and to
15124# report actual input values of CONFIG_FILES etc. instead of their
15125# values after options handling.
15126ac_log="
15127This file was extended by courier $as_me 0.10, which was
15128generated by GNU Autoconf 2.66.  Invocation command line was
15129
15130  CONFIG_FILES    = $CONFIG_FILES
15131  CONFIG_HEADERS  = $CONFIG_HEADERS
15132  CONFIG_LINKS    = $CONFIG_LINKS
15133  CONFIG_COMMANDS = $CONFIG_COMMANDS
15134  $ $0 $@
15135
15136on `(hostname || uname -n) 2>/dev/null | sed 1q`
15137"
15138
15139_ACEOF
15140
15141case $ac_config_files in *"
15142"*) set x $ac_config_files; shift; ac_config_files=$*;;
15143esac
15144
15145case $ac_config_headers in *"
15146"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15147esac
15148
15149
15150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15151# Files that config.status was made for.
15152config_files="$ac_config_files"
15153config_headers="$ac_config_headers"
15154config_commands="$ac_config_commands"
15155
15156_ACEOF
15157
15158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15159ac_cs_usage="\
15160\`$as_me' instantiates files and other configuration actions
15161from templates according to the current configuration.  Unless the files
15162and actions are specified as TAGs, all are instantiated by default.
15163
15164Usage: $0 [OPTION]... [TAG]...
15165
15166  -h, --help       print this help, then exit
15167  -V, --version    print version number and configuration settings, then exit
15168      --config     print configuration, then exit
15169  -q, --quiet, --silent
15170                   do not print progress messages
15171  -d, --debug      don't remove temporary files
15172      --recheck    update $as_me by reconfiguring in the same conditions
15173      --file=FILE[:TEMPLATE]
15174                   instantiate the configuration file FILE
15175      --header=FILE[:TEMPLATE]
15176                   instantiate the configuration header FILE
15177
15178Configuration files:
15179$config_files
15180
15181Configuration headers:
15182$config_headers
15183
15184Configuration commands:
15185$config_commands
15186
15187Report bugs to <courier-users@lists.sourceforge.net>."
15188
15189_ACEOF
15190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15192ac_cs_version="\\
15193courier config.status 0.10
15194configured by $0, generated by GNU Autoconf 2.66,
15195  with options \\"\$ac_cs_config\\"
15196
15197Copyright (C) 2010 Free Software Foundation, Inc.
15198This config.status script is free software; the Free Software Foundation
15199gives unlimited permission to copy, distribute and modify it."
15200
15201ac_pwd='$ac_pwd'
15202srcdir='$srcdir'
15203INSTALL='$INSTALL'
15204MKDIR_P='$MKDIR_P'
15205AWK='$AWK'
15206test -n "\$AWK" || AWK=awk
15207_ACEOF
15208
15209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210# The default lists apply if the user does not specify any file.
15211ac_need_defaults=:
15212while test $# != 0
15213do
15214  case $1 in
15215  --*=*)
15216    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15217    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15218    ac_shift=:
15219    ;;
15220  *)
15221    ac_option=$1
15222    ac_optarg=$2
15223    ac_shift=shift
15224    ;;
15225  esac
15226
15227  case $ac_option in
15228  # Handling of the options.
15229  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15230    ac_cs_recheck=: ;;
15231  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15232    $as_echo "$ac_cs_version"; exit ;;
15233  --config | --confi | --conf | --con | --co | --c )
15234    $as_echo "$ac_cs_config"; exit ;;
15235  --debug | --debu | --deb | --de | --d | -d )
15236    debug=: ;;
15237  --file | --fil | --fi | --f )
15238    $ac_shift
15239    case $ac_optarg in
15240    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15241    esac
15242    as_fn_append CONFIG_FILES " '$ac_optarg'"
15243    ac_need_defaults=false;;
15244  --header | --heade | --head | --hea )
15245    $ac_shift
15246    case $ac_optarg in
15247    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15248    esac
15249    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15250    ac_need_defaults=false;;
15251  --he | --h)
15252    # Conflict between --help and --header
15253    as_fn_error $? "ambiguous option: \`$1'
15254Try \`$0 --help' for more information.";;
15255  --help | --hel | -h )
15256    $as_echo "$ac_cs_usage"; exit ;;
15257  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15258  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15259    ac_cs_silent=: ;;
15260
15261  # This is an error.
15262  -*) as_fn_error $? "unrecognized option: \`$1'
15263Try \`$0 --help' for more information." ;;
15264
15265  *) as_fn_append ac_config_targets " $1"
15266     ac_need_defaults=false ;;
15267
15268  esac
15269  shift
15270done
15271
15272ac_configure_extra_args=
15273
15274if $ac_cs_silent; then
15275  exec 6>/dev/null
15276  ac_configure_extra_args="$ac_configure_extra_args --silent"
15277fi
15278
15279_ACEOF
15280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15281if \$ac_cs_recheck; then
15282  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15283  shift
15284  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15285  CONFIG_SHELL='$SHELL'
15286  export CONFIG_SHELL
15287  exec "\$@"
15288fi
15289
15290_ACEOF
15291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15292exec 5>>config.log
15293{
15294  echo
15295  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15296## Running $as_me. ##
15297_ASBOX
15298  $as_echo "$ac_log"
15299} >&5
15300
15301_ACEOF
15302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15303#
15304# INIT-COMMANDS
15305#
15306AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15307
15308
15309# The HP-UX ksh and POSIX shell print the target directory to stdout
15310# if CDPATH is set.
15311(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15312
15313sed_quote_subst='$sed_quote_subst'
15314double_quote_subst='$double_quote_subst'
15315delay_variable_subst='$delay_variable_subst'
15316macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15317macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15318enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15319enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15320pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15321enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15322SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15323ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15324host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15325host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15326host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15327build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15328build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15329build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15330SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15331Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15332GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15333EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15334FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15335LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15336NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15337LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15338max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15339ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15340exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15341lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15342lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15343lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15344reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15345reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15346OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15347deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15348file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15349AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15350AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15351STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15352RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15353old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15354old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15355old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15356lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15357CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15358CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15359compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15360GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15361lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15362lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15363lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15364lt_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"`'
15365objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15366MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15367lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15368lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15369lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15370lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15371lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15372need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15373DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15374NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15375LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15376OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15377OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15378libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15379shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15380extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15381archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15382enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15383export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15384whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15385compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15386old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15387old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15388archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15389archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15390module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15391module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15392with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15393allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15394no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15395hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15396hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15397hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15398hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15399hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15400hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15401hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15402hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15403inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15404link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15405fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15406always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15407export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15408exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15409include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15410prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15411file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15412variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15413need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15414need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15415version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15416runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15417shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15418shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15419libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15420library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15421soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15422install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15423postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15424postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15425finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15426finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15427hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15428sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15429sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15430hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15431enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15432enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15433enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15434old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15435striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15436compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15437predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15438postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15439predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15440postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15441compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15442LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15443reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15444reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15445old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15446compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15447GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15448lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15449lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15450lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15451lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15452lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15453archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15454enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15455export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15456whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15457compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15458old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15459old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15460archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15461archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15462module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15463module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15464with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15465allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15466no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15467hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15468hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15469hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15470hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15471hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15472hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15473hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15474hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15475inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15476link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15477fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15478always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15479export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15480exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15481include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15482prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15483file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15484hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15485compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15486predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15487postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15488predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15489postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15490compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15491
15492LTCC='$LTCC'
15493LTCFLAGS='$LTCFLAGS'
15494compiler='$compiler_DEFAULT'
15495
15496# A function that is used when there is no print builtin or printf.
15497func_fallback_echo ()
15498{
15499  eval 'cat <<_LTECHO_EOF
15500\$1
15501_LTECHO_EOF'
15502}
15503
15504# Quote evaled strings.
15505for var in SHELL \
15506ECHO \
15507SED \
15508GREP \
15509EGREP \
15510FGREP \
15511LD \
15512NM \
15513LN_S \
15514lt_SP2NL \
15515lt_NL2SP \
15516reload_flag \
15517OBJDUMP \
15518deplibs_check_method \
15519file_magic_cmd \
15520AR \
15521AR_FLAGS \
15522STRIP \
15523RANLIB \
15524CC \
15525CFLAGS \
15526compiler \
15527lt_cv_sys_global_symbol_pipe \
15528lt_cv_sys_global_symbol_to_cdecl \
15529lt_cv_sys_global_symbol_to_c_name_address \
15530lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15531lt_prog_compiler_no_builtin_flag \
15532lt_prog_compiler_wl \
15533lt_prog_compiler_pic \
15534lt_prog_compiler_static \
15535lt_cv_prog_compiler_c_o \
15536need_locks \
15537DSYMUTIL \
15538NMEDIT \
15539LIPO \
15540OTOOL \
15541OTOOL64 \
15542shrext_cmds \
15543export_dynamic_flag_spec \
15544whole_archive_flag_spec \
15545compiler_needs_object \
15546with_gnu_ld \
15547allow_undefined_flag \
15548no_undefined_flag \
15549hardcode_libdir_flag_spec \
15550hardcode_libdir_flag_spec_ld \
15551hardcode_libdir_separator \
15552fix_srcfile_path \
15553exclude_expsyms \
15554include_expsyms \
15555file_list_spec \
15556variables_saved_for_relink \
15557libname_spec \
15558library_names_spec \
15559soname_spec \
15560install_override_mode \
15561finish_eval \
15562old_striplib \
15563striplib \
15564compiler_lib_search_dirs \
15565predep_objects \
15566postdep_objects \
15567predeps \
15568postdeps \
15569compiler_lib_search_path \
15570LD_CXX \
15571reload_flag_CXX \
15572compiler_CXX \
15573lt_prog_compiler_no_builtin_flag_CXX \
15574lt_prog_compiler_wl_CXX \
15575lt_prog_compiler_pic_CXX \
15576lt_prog_compiler_static_CXX \
15577lt_cv_prog_compiler_c_o_CXX \
15578export_dynamic_flag_spec_CXX \
15579whole_archive_flag_spec_CXX \
15580compiler_needs_object_CXX \
15581with_gnu_ld_CXX \
15582allow_undefined_flag_CXX \
15583no_undefined_flag_CXX \
15584hardcode_libdir_flag_spec_CXX \
15585hardcode_libdir_flag_spec_ld_CXX \
15586hardcode_libdir_separator_CXX \
15587fix_srcfile_path_CXX \
15588exclude_expsyms_CXX \
15589include_expsyms_CXX \
15590file_list_spec_CXX \
15591compiler_lib_search_dirs_CXX \
15592predep_objects_CXX \
15593postdep_objects_CXX \
15594predeps_CXX \
15595postdeps_CXX \
15596compiler_lib_search_path_CXX; do
15597    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15598    *[\\\\\\\`\\"\\\$]*)
15599      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15600      ;;
15601    *)
15602      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15603      ;;
15604    esac
15605done
15606
15607# Double-quote double-evaled strings.
15608for var in reload_cmds \
15609old_postinstall_cmds \
15610old_postuninstall_cmds \
15611old_archive_cmds \
15612extract_expsyms_cmds \
15613old_archive_from_new_cmds \
15614old_archive_from_expsyms_cmds \
15615archive_cmds \
15616archive_expsym_cmds \
15617module_cmds \
15618module_expsym_cmds \
15619export_symbols_cmds \
15620prelink_cmds \
15621postinstall_cmds \
15622postuninstall_cmds \
15623finish_cmds \
15624sys_lib_search_path_spec \
15625sys_lib_dlsearch_path_spec \
15626reload_cmds_CXX \
15627old_archive_cmds_CXX \
15628old_archive_from_new_cmds_CXX \
15629old_archive_from_expsyms_cmds_CXX \
15630archive_cmds_CXX \
15631archive_expsym_cmds_CXX \
15632module_cmds_CXX \
15633module_expsym_cmds_CXX \
15634export_symbols_cmds_CXX \
15635prelink_cmds_CXX; do
15636    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15637    *[\\\\\\\`\\"\\\$]*)
15638      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15639      ;;
15640    *)
15641      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15642      ;;
15643    esac
15644done
15645
15646ac_aux_dir='$ac_aux_dir'
15647xsi_shell='$xsi_shell'
15648lt_shell_append='$lt_shell_append'
15649
15650# See if we are running on zsh, and set the options which allow our
15651# commands through without removal of \ escapes INIT.
15652if test -n "\${ZSH_VERSION+set}" ; then
15653   setopt NO_GLOB_SUBST
15654fi
15655
15656
15657    PACKAGE='$PACKAGE'
15658    VERSION='$VERSION'
15659    TIMESTAMP='$TIMESTAMP'
15660    RM='$RM'
15661    ofile='$ofile'
15662
15663
15664
15665
15666
15667
15668_ACEOF
15669
15670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671
15672# Handling of arguments.
15673for ac_config_target in $ac_config_targets
15674do
15675  case $ac_config_target in
15676    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15677    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15678    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15679    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15680
15681  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15682  esac
15683done
15684
15685
15686# If the user did not use the arguments to specify the items to instantiate,
15687# then the envvar interface is used.  Set only those that are not.
15688# We use the long form for the default assignment because of an extremely
15689# bizarre bug on SunOS 4.1.3.
15690if $ac_need_defaults; then
15691  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15692  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15693  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15694fi
15695
15696# Have a temporary directory for convenience.  Make it in the build tree
15697# simply because there is no reason against having it here, and in addition,
15698# creating and moving files from /tmp can sometimes cause problems.
15699# Hook for its removal unless debugging.
15700# Note that there is a small window in which the directory will not be cleaned:
15701# after its creation but before its name has been assigned to `$tmp'.
15702$debug ||
15703{
15704  tmp=
15705  trap 'exit_status=$?
15706  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15707' 0
15708  trap 'as_fn_exit 1' 1 2 13 15
15709}
15710# Create a (secure) tmp directory for tmp files.
15711
15712{
15713  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15714  test -n "$tmp" && test -d "$tmp"
15715}  ||
15716{
15717  tmp=./conf$$-$RANDOM
15718  (umask 077 && mkdir "$tmp")
15719} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15720
15721# Set up the scripts for CONFIG_FILES section.
15722# No need to generate them if there are no CONFIG_FILES.
15723# This happens for instance with `./config.status config.h'.
15724if test -n "$CONFIG_FILES"; then
15725
15726
15727ac_cr=`echo X | tr X '\015'`
15728# On cygwin, bash can eat \r inside `` if the user requested igncr.
15729# But we know of no other shell where ac_cr would be empty at this
15730# point, so we can use a bashism as a fallback.
15731if test "x$ac_cr" = x; then
15732  eval ac_cr=\$\'\\r\'
15733fi
15734ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15735if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15736  ac_cs_awk_cr='\\r'
15737else
15738  ac_cs_awk_cr=$ac_cr
15739fi
15740
15741echo 'BEGIN {' >"$tmp/subs1.awk" &&
15742_ACEOF
15743
15744
15745{
15746  echo "cat >conf$$subs.awk <<_ACEOF" &&
15747  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15748  echo "_ACEOF"
15749} >conf$$subs.sh ||
15750  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15751ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15752ac_delim='%!_!# '
15753for ac_last_try in false false false false false :; do
15754  . ./conf$$subs.sh ||
15755    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15756
15757  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15758  if test $ac_delim_n = $ac_delim_num; then
15759    break
15760  elif $ac_last_try; then
15761    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15762  else
15763    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15764  fi
15765done
15766rm -f conf$$subs.sh
15767
15768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15769cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15770_ACEOF
15771sed -n '
15772h
15773s/^/S["/; s/!.*/"]=/
15774p
15775g
15776s/^[^!]*!//
15777:repl
15778t repl
15779s/'"$ac_delim"'$//
15780t delim
15781:nl
15782h
15783s/\(.\{148\}\)..*/\1/
15784t more1
15785s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15786p
15787n
15788b repl
15789:more1
15790s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15791p
15792g
15793s/.\{148\}//
15794t nl
15795:delim
15796h
15797s/\(.\{148\}\)..*/\1/
15798t more2
15799s/["\\]/\\&/g; s/^/"/; s/$/"/
15800p
15801b
15802:more2
15803s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15804p
15805g
15806s/.\{148\}//
15807t delim
15808' <conf$$subs.awk | sed '
15809/^[^""]/{
15810  N
15811  s/\n//
15812}
15813' >>$CONFIG_STATUS || ac_write_fail=1
15814rm -f conf$$subs.awk
15815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15816_ACAWK
15817cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15818  for (key in S) S_is_set[key] = 1
15819  FS = ""
15820
15821}
15822{
15823  line = $ 0
15824  nfields = split(line, field, "@")
15825  substed = 0
15826  len = length(field[1])
15827  for (i = 2; i < nfields; i++) {
15828    key = field[i]
15829    keylen = length(key)
15830    if (S_is_set[key]) {
15831      value = S[key]
15832      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15833      len += length(value) + length(field[++i])
15834      substed = 1
15835    } else
15836      len += 1 + keylen
15837  }
15838
15839  print line
15840}
15841
15842_ACAWK
15843_ACEOF
15844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15846  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15847else
15848  cat
15849fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15850  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15851_ACEOF
15852
15853# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15854# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15855# trailing colons and then remove the whole line if VPATH becomes empty
15856# (actually we leave an empty line to preserve line numbers).
15857if test "x$srcdir" = x.; then
15858  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15859h
15860s///
15861s/^/:/
15862s/[	 ]*$/:/
15863s/:\$(srcdir):/:/g
15864s/:\${srcdir}:/:/g
15865s/:@srcdir@:/:/g
15866s/^:*//
15867s/:*$//
15868x
15869s/\(=[	 ]*\).*/\1/
15870G
15871s/\n//
15872s/^[^=]*=[	 ]*$//
15873}'
15874fi
15875
15876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15877fi # test -n "$CONFIG_FILES"
15878
15879# Set up the scripts for CONFIG_HEADERS section.
15880# No need to generate them if there are no CONFIG_HEADERS.
15881# This happens for instance with `./config.status Makefile'.
15882if test -n "$CONFIG_HEADERS"; then
15883cat >"$tmp/defines.awk" <<\_ACAWK ||
15884BEGIN {
15885_ACEOF
15886
15887# Transform confdefs.h into an awk script `defines.awk', embedded as
15888# here-document in config.status, that substitutes the proper values into
15889# config.h.in to produce config.h.
15890
15891# Create a delimiter string that does not exist in confdefs.h, to ease
15892# handling of long lines.
15893ac_delim='%!_!# '
15894for ac_last_try in false false :; do
15895  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15896  if test -z "$ac_t"; then
15897    break
15898  elif $ac_last_try; then
15899    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15900  else
15901    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15902  fi
15903done
15904
15905# For the awk script, D is an array of macro values keyed by name,
15906# likewise P contains macro parameters if any.  Preserve backslash
15907# newline sequences.
15908
15909ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15910sed -n '
15911s/.\{148\}/&'"$ac_delim"'/g
15912t rset
15913:rset
15914s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15915t def
15916d
15917:def
15918s/\\$//
15919t bsnl
15920s/["\\]/\\&/g
15921s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15922D["\1"]=" \3"/p
15923s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15924d
15925:bsnl
15926s/["\\]/\\&/g
15927s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15928D["\1"]=" \3\\\\\\n"\\/p
15929t cont
15930s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15931t cont
15932d
15933:cont
15934n
15935s/.\{148\}/&'"$ac_delim"'/g
15936t clear
15937:clear
15938s/\\$//
15939t bsnlc
15940s/["\\]/\\&/g; s/^/"/; s/$/"/p
15941d
15942:bsnlc
15943s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15944b cont
15945' <confdefs.h | sed '
15946s/'"$ac_delim"'/"\\\
15947"/g' >>$CONFIG_STATUS || ac_write_fail=1
15948
15949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15950  for (key in D) D_is_set[key] = 1
15951  FS = ""
15952}
15953/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15954  line = \$ 0
15955  split(line, arg, " ")
15956  if (arg[1] == "#") {
15957    defundef = arg[2]
15958    mac1 = arg[3]
15959  } else {
15960    defundef = substr(arg[1], 2)
15961    mac1 = arg[2]
15962  }
15963  split(mac1, mac2, "(") #)
15964  macro = mac2[1]
15965  prefix = substr(line, 1, index(line, defundef) - 1)
15966  if (D_is_set[macro]) {
15967    # Preserve the white space surrounding the "#".
15968    print prefix "define", macro P[macro] D[macro]
15969    next
15970  } else {
15971    # Replace #undef with comments.  This is necessary, for example,
15972    # in the case of _POSIX_SOURCE, which is predefined and required
15973    # on some systems where configure will not decide to define it.
15974    if (defundef == "undef") {
15975      print "/*", prefix defundef, macro, "*/"
15976      next
15977    }
15978  }
15979}
15980{ print }
15981_ACAWK
15982_ACEOF
15983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15984  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15985fi # test -n "$CONFIG_HEADERS"
15986
15987
15988eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15989shift
15990for ac_tag
15991do
15992  case $ac_tag in
15993  :[FHLC]) ac_mode=$ac_tag; continue;;
15994  esac
15995  case $ac_mode$ac_tag in
15996  :[FHL]*:*);;
15997  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15998  :[FH]-) ac_tag=-:-;;
15999  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16000  esac
16001  ac_save_IFS=$IFS
16002  IFS=:
16003  set x $ac_tag
16004  IFS=$ac_save_IFS
16005  shift
16006  ac_file=$1
16007  shift
16008
16009  case $ac_mode in
16010  :L) ac_source=$1;;
16011  :[FH])
16012    ac_file_inputs=
16013    for ac_f
16014    do
16015      case $ac_f in
16016      -) ac_f="$tmp/stdin";;
16017      *) # Look for the file first in the build tree, then in the source tree
16018	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16019	 # because $ac_f cannot contain `:'.
16020	 test -f "$ac_f" ||
16021	   case $ac_f in
16022	   [\\/$]*) false;;
16023	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16024	   esac ||
16025	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16026      esac
16027      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16028      as_fn_append ac_file_inputs " '$ac_f'"
16029    done
16030
16031    # Let's still pretend it is `configure' which instantiates (i.e., don't
16032    # use $as_me), people would be surprised to read:
16033    #    /* config.h.  Generated by config.status.  */
16034    configure_input='Generated from '`
16035	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16036	`' by configure.'
16037    if test x"$ac_file" != x-; then
16038      configure_input="$ac_file.  $configure_input"
16039      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16040$as_echo "$as_me: creating $ac_file" >&6;}
16041    fi
16042    # Neutralize special characters interpreted by sed in replacement strings.
16043    case $configure_input in #(
16044    *\&* | *\|* | *\\* )
16045       ac_sed_conf_input=`$as_echo "$configure_input" |
16046       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16047    *) ac_sed_conf_input=$configure_input;;
16048    esac
16049
16050    case $ac_tag in
16051    *:-:* | *:-) cat >"$tmp/stdin" \
16052      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16053    esac
16054    ;;
16055  esac
16056
16057  ac_dir=`$as_dirname -- "$ac_file" ||
16058$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16059	 X"$ac_file" : 'X\(//\)[^/]' \| \
16060	 X"$ac_file" : 'X\(//\)$' \| \
16061	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16062$as_echo X"$ac_file" |
16063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16064	    s//\1/
16065	    q
16066	  }
16067	  /^X\(\/\/\)[^/].*/{
16068	    s//\1/
16069	    q
16070	  }
16071	  /^X\(\/\/\)$/{
16072	    s//\1/
16073	    q
16074	  }
16075	  /^X\(\/\).*/{
16076	    s//\1/
16077	    q
16078	  }
16079	  s/.*/./; q'`
16080  as_dir="$ac_dir"; as_fn_mkdir_p
16081  ac_builddir=.
16082
16083case "$ac_dir" in
16084.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16085*)
16086  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16087  # A ".." for each directory in $ac_dir_suffix.
16088  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16089  case $ac_top_builddir_sub in
16090  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16091  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16092  esac ;;
16093esac
16094ac_abs_top_builddir=$ac_pwd
16095ac_abs_builddir=$ac_pwd$ac_dir_suffix
16096# for backward compatibility:
16097ac_top_builddir=$ac_top_build_prefix
16098
16099case $srcdir in
16100  .)  # We are building in place.
16101    ac_srcdir=.
16102    ac_top_srcdir=$ac_top_builddir_sub
16103    ac_abs_top_srcdir=$ac_pwd ;;
16104  [\\/]* | ?:[\\/]* )  # Absolute name.
16105    ac_srcdir=$srcdir$ac_dir_suffix;
16106    ac_top_srcdir=$srcdir
16107    ac_abs_top_srcdir=$srcdir ;;
16108  *) # Relative name.
16109    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16110    ac_top_srcdir=$ac_top_build_prefix$srcdir
16111    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16112esac
16113ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16114
16115
16116  case $ac_mode in
16117  :F)
16118  #
16119  # CONFIG_FILE
16120  #
16121
16122  case $INSTALL in
16123  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16124  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16125  esac
16126  ac_MKDIR_P=$MKDIR_P
16127  case $MKDIR_P in
16128  [\\/$]* | ?:[\\/]* ) ;;
16129  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16130  esac
16131_ACEOF
16132
16133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134# If the template does not know about datarootdir, expand it.
16135# FIXME: This hack should be removed a few years after 2.60.
16136ac_datarootdir_hack=; ac_datarootdir_seen=
16137ac_sed_dataroot='
16138/datarootdir/ {
16139  p
16140  q
16141}
16142/@datadir@/p
16143/@docdir@/p
16144/@infodir@/p
16145/@localedir@/p
16146/@mandir@/p'
16147case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16148*datarootdir*) ac_datarootdir_seen=yes;;
16149*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16150  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16151$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16152_ACEOF
16153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16154  ac_datarootdir_hack='
16155  s&@datadir@&$datadir&g
16156  s&@docdir@&$docdir&g
16157  s&@infodir@&$infodir&g
16158  s&@localedir@&$localedir&g
16159  s&@mandir@&$mandir&g
16160  s&\\\${datarootdir}&$datarootdir&g' ;;
16161esac
16162_ACEOF
16163
16164# Neutralize VPATH when `$srcdir' = `.'.
16165# Shell code in configure.ac might set extrasub.
16166# FIXME: do we really want to maintain this feature?
16167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16168ac_sed_extra="$ac_vpsub
16169$extrasub
16170_ACEOF
16171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16172:t
16173/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16174s|@configure_input@|$ac_sed_conf_input|;t t
16175s&@top_builddir@&$ac_top_builddir_sub&;t t
16176s&@top_build_prefix@&$ac_top_build_prefix&;t t
16177s&@srcdir@&$ac_srcdir&;t t
16178s&@abs_srcdir@&$ac_abs_srcdir&;t t
16179s&@top_srcdir@&$ac_top_srcdir&;t t
16180s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16181s&@builddir@&$ac_builddir&;t t
16182s&@abs_builddir@&$ac_abs_builddir&;t t
16183s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16184s&@INSTALL@&$ac_INSTALL&;t t
16185s&@MKDIR_P@&$ac_MKDIR_P&;t t
16186$ac_datarootdir_hack
16187"
16188eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16189  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16190
16191test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16192  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16193  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16194  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16195which seems to be undefined.  Please make sure it is defined" >&5
16196$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16197which seems to be undefined.  Please make sure it is defined" >&2;}
16198
16199  rm -f "$tmp/stdin"
16200  case $ac_file in
16201  -) cat "$tmp/out" && rm -f "$tmp/out";;
16202  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16203  esac \
16204  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16205 ;;
16206  :H)
16207  #
16208  # CONFIG_HEADER
16209  #
16210  if test x"$ac_file" != x-; then
16211    {
16212      $as_echo "/* $configure_input  */" \
16213      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16214    } >"$tmp/config.h" \
16215      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16216    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16217      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16218$as_echo "$as_me: $ac_file is unchanged" >&6;}
16219    else
16220      rm -f "$ac_file"
16221      mv "$tmp/config.h" "$ac_file" \
16222	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16223    fi
16224  else
16225    $as_echo "/* $configure_input  */" \
16226      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16227      || as_fn_error $? "could not create -" "$LINENO" 5
16228  fi
16229# Compute "$ac_file"'s index in $config_headers.
16230_am_arg="$ac_file"
16231_am_stamp_count=1
16232for _am_header in $config_headers :; do
16233  case $_am_header in
16234    $_am_arg | $_am_arg:* )
16235      break ;;
16236    * )
16237      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16238  esac
16239done
16240echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16241$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16242	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16243	 X"$_am_arg" : 'X\(//\)$' \| \
16244	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16245$as_echo X"$_am_arg" |
16246    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16247	    s//\1/
16248	    q
16249	  }
16250	  /^X\(\/\/\)[^/].*/{
16251	    s//\1/
16252	    q
16253	  }
16254	  /^X\(\/\/\)$/{
16255	    s//\1/
16256	    q
16257	  }
16258	  /^X\(\/\).*/{
16259	    s//\1/
16260	    q
16261	  }
16262	  s/.*/./; q'`/stamp-h$_am_stamp_count
16263 ;;
16264
16265  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16266$as_echo "$as_me: executing $ac_file commands" >&6;}
16267 ;;
16268  esac
16269
16270
16271  case $ac_file$ac_mode in
16272    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16273  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16274  # are listed without --file.  Let's play safe and only enable the eval
16275  # if we detect the quoting.
16276  case $CONFIG_FILES in
16277  *\'*) eval set x "$CONFIG_FILES" ;;
16278  *)   set x $CONFIG_FILES ;;
16279  esac
16280  shift
16281  for mf
16282  do
16283    # Strip MF so we end up with the name of the file.
16284    mf=`echo "$mf" | sed -e 's/:.*$//'`
16285    # Check whether this is an Automake generated Makefile or not.
16286    # We used to match only the files named `Makefile.in', but
16287    # some people rename them; so instead we look at the file content.
16288    # Grep'ing the first line is not enough: some people post-process
16289    # each Makefile.in and add a new line on top of each file to say so.
16290    # Grep'ing the whole file is not good either: AIX grep has a line
16291    # limit of 2048, but all sed's we know have understand at least 4000.
16292    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16293      dirpart=`$as_dirname -- "$mf" ||
16294$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16295	 X"$mf" : 'X\(//\)[^/]' \| \
16296	 X"$mf" : 'X\(//\)$' \| \
16297	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16298$as_echo X"$mf" |
16299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16300	    s//\1/
16301	    q
16302	  }
16303	  /^X\(\/\/\)[^/].*/{
16304	    s//\1/
16305	    q
16306	  }
16307	  /^X\(\/\/\)$/{
16308	    s//\1/
16309	    q
16310	  }
16311	  /^X\(\/\).*/{
16312	    s//\1/
16313	    q
16314	  }
16315	  s/.*/./; q'`
16316    else
16317      continue
16318    fi
16319    # Extract the definition of DEPDIR, am__include, and am__quote
16320    # from the Makefile without running `make'.
16321    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16322    test -z "$DEPDIR" && continue
16323    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16324    test -z "am__include" && continue
16325    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16326    # When using ansi2knr, U may be empty or an underscore; expand it
16327    U=`sed -n 's/^U = //p' < "$mf"`
16328    # Find all dependency output files, they are included files with
16329    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16330    # simplest approach to changing $(DEPDIR) to its actual value in the
16331    # expansion.
16332    for file in `sed -n "
16333      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16334	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16335      # Make sure the directory exists.
16336      test -f "$dirpart/$file" && continue
16337      fdir=`$as_dirname -- "$file" ||
16338$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16339	 X"$file" : 'X\(//\)[^/]' \| \
16340	 X"$file" : 'X\(//\)$' \| \
16341	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16342$as_echo X"$file" |
16343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16344	    s//\1/
16345	    q
16346	  }
16347	  /^X\(\/\/\)[^/].*/{
16348	    s//\1/
16349	    q
16350	  }
16351	  /^X\(\/\/\)$/{
16352	    s//\1/
16353	    q
16354	  }
16355	  /^X\(\/\).*/{
16356	    s//\1/
16357	    q
16358	  }
16359	  s/.*/./; q'`
16360      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16361      # echo "creating $dirpart/$file"
16362      echo '# dummy' > "$dirpart/$file"
16363    done
16364  done
16365}
16366 ;;
16367    "libtool":C)
16368
16369    # See if we are running on zsh, and set the options which allow our
16370    # commands through without removal of \ escapes.
16371    if test -n "${ZSH_VERSION+set}" ; then
16372      setopt NO_GLOB_SUBST
16373    fi
16374
16375    cfgfile="${ofile}T"
16376    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16377    $RM "$cfgfile"
16378
16379    cat <<_LT_EOF >> "$cfgfile"
16380#! $SHELL
16381
16382# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16383# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16384# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16385# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16386#
16387#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16388#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16389#                 Inc.
16390#   Written by Gordon Matzigkeit, 1996
16391#
16392#   This file is part of GNU Libtool.
16393#
16394# GNU Libtool is free software; you can redistribute it and/or
16395# modify it under the terms of the GNU General Public License as
16396# published by the Free Software Foundation; either version 2 of
16397# the License, or (at your option) any later version.
16398#
16399# As a special exception to the GNU General Public License,
16400# if you distribute this file as part of a program or library that
16401# is built using GNU Libtool, you may include this file under the
16402# same distribution terms that you use for the rest of that program.
16403#
16404# GNU Libtool is distributed in the hope that it will be useful,
16405# but WITHOUT ANY WARRANTY; without even the implied warranty of
16406# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16407# GNU General Public License for more details.
16408#
16409# You should have received a copy of the GNU General Public License
16410# along with GNU Libtool; see the file COPYING.  If not, a copy
16411# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16412# obtained by writing to the Free Software Foundation, Inc.,
16413# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16414
16415
16416# The names of the tagged configurations supported by this script.
16417available_tags="CXX "
16418
16419# ### BEGIN LIBTOOL CONFIG
16420
16421# Which release of libtool.m4 was used?
16422macro_version=$macro_version
16423macro_revision=$macro_revision
16424
16425# Whether or not to build shared libraries.
16426build_libtool_libs=$enable_shared
16427
16428# Whether or not to build static libraries.
16429build_old_libs=$enable_static
16430
16431# What type of objects to build.
16432pic_mode=$pic_mode
16433
16434# Whether or not to optimize for fast installation.
16435fast_install=$enable_fast_install
16436
16437# Shell to use when invoking shell scripts.
16438SHELL=$lt_SHELL
16439
16440# An echo program that protects backslashes.
16441ECHO=$lt_ECHO
16442
16443# The host system.
16444host_alias=$host_alias
16445host=$host
16446host_os=$host_os
16447
16448# The build system.
16449build_alias=$build_alias
16450build=$build
16451build_os=$build_os
16452
16453# A sed program that does not truncate output.
16454SED=$lt_SED
16455
16456# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16457Xsed="\$SED -e 1s/^X//"
16458
16459# A grep program that handles long lines.
16460GREP=$lt_GREP
16461
16462# An ERE matcher.
16463EGREP=$lt_EGREP
16464
16465# A literal string matcher.
16466FGREP=$lt_FGREP
16467
16468# A BSD- or MS-compatible name lister.
16469NM=$lt_NM
16470
16471# Whether we need soft or hard links.
16472LN_S=$lt_LN_S
16473
16474# What is the maximum length of a command?
16475max_cmd_len=$max_cmd_len
16476
16477# Object file suffix (normally "o").
16478objext=$ac_objext
16479
16480# Executable file suffix (normally "").
16481exeext=$exeext
16482
16483# whether the shell understands "unset".
16484lt_unset=$lt_unset
16485
16486# turn spaces into newlines.
16487SP2NL=$lt_lt_SP2NL
16488
16489# turn newlines into spaces.
16490NL2SP=$lt_lt_NL2SP
16491
16492# An object symbol dumper.
16493OBJDUMP=$lt_OBJDUMP
16494
16495# Method to check whether dependent libraries are shared objects.
16496deplibs_check_method=$lt_deplibs_check_method
16497
16498# Command to use when deplibs_check_method == "file_magic".
16499file_magic_cmd=$lt_file_magic_cmd
16500
16501# The archiver.
16502AR=$lt_AR
16503AR_FLAGS=$lt_AR_FLAGS
16504
16505# A symbol stripping program.
16506STRIP=$lt_STRIP
16507
16508# Commands used to install an old-style archive.
16509RANLIB=$lt_RANLIB
16510old_postinstall_cmds=$lt_old_postinstall_cmds
16511old_postuninstall_cmds=$lt_old_postuninstall_cmds
16512
16513# Whether to use a lock for old archive extraction.
16514lock_old_archive_extraction=$lock_old_archive_extraction
16515
16516# A C compiler.
16517LTCC=$lt_CC
16518
16519# LTCC compiler flags.
16520LTCFLAGS=$lt_CFLAGS
16521
16522# Take the output of nm and produce a listing of raw symbols and C names.
16523global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16524
16525# Transform the output of nm in a proper C declaration.
16526global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16527
16528# Transform the output of nm in a C name address pair.
16529global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16530
16531# Transform the output of nm in a C name address pair when lib prefix is needed.
16532global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16533
16534# The name of the directory that contains temporary libtool files.
16535objdir=$objdir
16536
16537# Used to examine libraries when file_magic_cmd begins with "file".
16538MAGIC_CMD=$MAGIC_CMD
16539
16540# Must we lock files when doing compilation?
16541need_locks=$lt_need_locks
16542
16543# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16544DSYMUTIL=$lt_DSYMUTIL
16545
16546# Tool to change global to local symbols on Mac OS X.
16547NMEDIT=$lt_NMEDIT
16548
16549# Tool to manipulate fat objects and archives on Mac OS X.
16550LIPO=$lt_LIPO
16551
16552# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16553OTOOL=$lt_OTOOL
16554
16555# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16556OTOOL64=$lt_OTOOL64
16557
16558# Old archive suffix (normally "a").
16559libext=$libext
16560
16561# Shared library suffix (normally ".so").
16562shrext_cmds=$lt_shrext_cmds
16563
16564# The commands to extract the exported symbol list from a shared archive.
16565extract_expsyms_cmds=$lt_extract_expsyms_cmds
16566
16567# Variables whose values should be saved in libtool wrapper scripts and
16568# restored at link time.
16569variables_saved_for_relink=$lt_variables_saved_for_relink
16570
16571# Do we need the "lib" prefix for modules?
16572need_lib_prefix=$need_lib_prefix
16573
16574# Do we need a version for libraries?
16575need_version=$need_version
16576
16577# Library versioning type.
16578version_type=$version_type
16579
16580# Shared library runtime path variable.
16581runpath_var=$runpath_var
16582
16583# Shared library path variable.
16584shlibpath_var=$shlibpath_var
16585
16586# Is shlibpath searched before the hard-coded library search path?
16587shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16588
16589# Format of library name prefix.
16590libname_spec=$lt_libname_spec
16591
16592# List of archive names.  First name is the real one, the rest are links.
16593# The last name is the one that the linker finds with -lNAME
16594library_names_spec=$lt_library_names_spec
16595
16596# The coded name of the library, if different from the real name.
16597soname_spec=$lt_soname_spec
16598
16599# Permission mode override for installation of shared libraries.
16600install_override_mode=$lt_install_override_mode
16601
16602# Command to use after installation of a shared archive.
16603postinstall_cmds=$lt_postinstall_cmds
16604
16605# Command to use after uninstallation of a shared archive.
16606postuninstall_cmds=$lt_postuninstall_cmds
16607
16608# Commands used to finish a libtool library installation in a directory.
16609finish_cmds=$lt_finish_cmds
16610
16611# As "finish_cmds", except a single script fragment to be evaled but
16612# not shown.
16613finish_eval=$lt_finish_eval
16614
16615# Whether we should hardcode library paths into libraries.
16616hardcode_into_libs=$hardcode_into_libs
16617
16618# Compile-time system search path for libraries.
16619sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16620
16621# Run-time system search path for libraries.
16622sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16623
16624# Whether dlopen is supported.
16625dlopen_support=$enable_dlopen
16626
16627# Whether dlopen of programs is supported.
16628dlopen_self=$enable_dlopen_self
16629
16630# Whether dlopen of statically linked programs is supported.
16631dlopen_self_static=$enable_dlopen_self_static
16632
16633# Commands to strip libraries.
16634old_striplib=$lt_old_striplib
16635striplib=$lt_striplib
16636
16637
16638# The linker used to build libraries.
16639LD=$lt_LD
16640
16641# How to create reloadable object files.
16642reload_flag=$lt_reload_flag
16643reload_cmds=$lt_reload_cmds
16644
16645# Commands used to build an old-style archive.
16646old_archive_cmds=$lt_old_archive_cmds
16647
16648# A language specific compiler.
16649CC=$lt_compiler
16650
16651# Is the compiler the GNU compiler?
16652with_gcc=$GCC
16653
16654# Compiler flag to turn off builtin functions.
16655no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16656
16657# How to pass a linker flag through the compiler.
16658wl=$lt_lt_prog_compiler_wl
16659
16660# Additional compiler flags for building library objects.
16661pic_flag=$lt_lt_prog_compiler_pic
16662
16663# Compiler flag to prevent dynamic linking.
16664link_static_flag=$lt_lt_prog_compiler_static
16665
16666# Does compiler simultaneously support -c and -o options?
16667compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16668
16669# Whether or not to add -lc for building shared libraries.
16670build_libtool_need_lc=$archive_cmds_need_lc
16671
16672# Whether or not to disallow shared libs when runtime libs are static.
16673allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16674
16675# Compiler flag to allow reflexive dlopens.
16676export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16677
16678# Compiler flag to generate shared objects directly from archives.
16679whole_archive_flag_spec=$lt_whole_archive_flag_spec
16680
16681# Whether the compiler copes with passing no objects directly.
16682compiler_needs_object=$lt_compiler_needs_object
16683
16684# Create an old-style archive from a shared archive.
16685old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16686
16687# Create a temporary old-style archive to link instead of a shared archive.
16688old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16689
16690# Commands used to build a shared archive.
16691archive_cmds=$lt_archive_cmds
16692archive_expsym_cmds=$lt_archive_expsym_cmds
16693
16694# Commands used to build a loadable module if different from building
16695# a shared archive.
16696module_cmds=$lt_module_cmds
16697module_expsym_cmds=$lt_module_expsym_cmds
16698
16699# Whether we are building with GNU ld or not.
16700with_gnu_ld=$lt_with_gnu_ld
16701
16702# Flag that allows shared libraries with undefined symbols to be built.
16703allow_undefined_flag=$lt_allow_undefined_flag
16704
16705# Flag that enforces no undefined symbols.
16706no_undefined_flag=$lt_no_undefined_flag
16707
16708# Flag to hardcode \$libdir into a binary during linking.
16709# This must work even if \$libdir does not exist
16710hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16711
16712# If ld is used when linking, flag to hardcode \$libdir into a binary
16713# during linking.  This must work even if \$libdir does not exist.
16714hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16715
16716# Whether we need a single "-rpath" flag with a separated argument.
16717hardcode_libdir_separator=$lt_hardcode_libdir_separator
16718
16719# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16720# DIR into the resulting binary.
16721hardcode_direct=$hardcode_direct
16722
16723# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16724# DIR into the resulting binary and the resulting library dependency is
16725# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16726# library is relocated.
16727hardcode_direct_absolute=$hardcode_direct_absolute
16728
16729# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16730# into the resulting binary.
16731hardcode_minus_L=$hardcode_minus_L
16732
16733# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16734# into the resulting binary.
16735hardcode_shlibpath_var=$hardcode_shlibpath_var
16736
16737# Set to "yes" if building a shared library automatically hardcodes DIR
16738# into the library and all subsequent libraries and executables linked
16739# against it.
16740hardcode_automatic=$hardcode_automatic
16741
16742# Set to yes if linker adds runtime paths of dependent libraries
16743# to runtime path list.
16744inherit_rpath=$inherit_rpath
16745
16746# Whether libtool must link a program against all its dependency libraries.
16747link_all_deplibs=$link_all_deplibs
16748
16749# Fix the shell variable \$srcfile for the compiler.
16750fix_srcfile_path=$lt_fix_srcfile_path
16751
16752# Set to "yes" if exported symbols are required.
16753always_export_symbols=$always_export_symbols
16754
16755# The commands to list exported symbols.
16756export_symbols_cmds=$lt_export_symbols_cmds
16757
16758# Symbols that should not be listed in the preloaded symbols.
16759exclude_expsyms=$lt_exclude_expsyms
16760
16761# Symbols that must always be exported.
16762include_expsyms=$lt_include_expsyms
16763
16764# Commands necessary for linking programs (against libraries) with templates.
16765prelink_cmds=$lt_prelink_cmds
16766
16767# Specify filename containing input files.
16768file_list_spec=$lt_file_list_spec
16769
16770# How to hardcode a shared library path into an executable.
16771hardcode_action=$hardcode_action
16772
16773# The directories searched by this compiler when creating a shared library.
16774compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16775
16776# Dependencies to place before and after the objects being linked to
16777# create a shared library.
16778predep_objects=$lt_predep_objects
16779postdep_objects=$lt_postdep_objects
16780predeps=$lt_predeps
16781postdeps=$lt_postdeps
16782
16783# The library search path used internally by the compiler when linking
16784# a shared library.
16785compiler_lib_search_path=$lt_compiler_lib_search_path
16786
16787# ### END LIBTOOL CONFIG
16788
16789_LT_EOF
16790
16791  case $host_os in
16792  aix3*)
16793    cat <<\_LT_EOF >> "$cfgfile"
16794# AIX sometimes has problems with the GCC collect2 program.  For some
16795# reason, if we set the COLLECT_NAMES environment variable, the problems
16796# vanish in a puff of smoke.
16797if test "X${COLLECT_NAMES+set}" != Xset; then
16798  COLLECT_NAMES=
16799  export COLLECT_NAMES
16800fi
16801_LT_EOF
16802    ;;
16803  esac
16804
16805
16806ltmain="$ac_aux_dir/ltmain.sh"
16807
16808
16809  # We use sed instead of cat because bash on DJGPP gets confused if
16810  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16811  # text mode, it properly converts lines to CR/LF.  This bash problem
16812  # is reportedly fixed, but why not run on old versions too?
16813  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16814    || (rm -f "$cfgfile"; exit 1)
16815
16816  case $xsi_shell in
16817  yes)
16818    cat << \_LT_EOF >> "$cfgfile"
16819
16820# func_dirname file append nondir_replacement
16821# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16822# otherwise set result to NONDIR_REPLACEMENT.
16823func_dirname ()
16824{
16825  case ${1} in
16826    */*) func_dirname_result="${1%/*}${2}" ;;
16827    *  ) func_dirname_result="${3}" ;;
16828  esac
16829}
16830
16831# func_basename file
16832func_basename ()
16833{
16834  func_basename_result="${1##*/}"
16835}
16836
16837# func_dirname_and_basename file append nondir_replacement
16838# perform func_basename and func_dirname in a single function
16839# call:
16840#   dirname:  Compute the dirname of FILE.  If nonempty,
16841#             add APPEND to the result, otherwise set result
16842#             to NONDIR_REPLACEMENT.
16843#             value returned in "$func_dirname_result"
16844#   basename: Compute filename of FILE.
16845#             value retuned in "$func_basename_result"
16846# Implementation must be kept synchronized with func_dirname
16847# and func_basename. For efficiency, we do not delegate to
16848# those functions but instead duplicate the functionality here.
16849func_dirname_and_basename ()
16850{
16851  case ${1} in
16852    */*) func_dirname_result="${1%/*}${2}" ;;
16853    *  ) func_dirname_result="${3}" ;;
16854  esac
16855  func_basename_result="${1##*/}"
16856}
16857
16858# func_stripname prefix suffix name
16859# strip PREFIX and SUFFIX off of NAME.
16860# PREFIX and SUFFIX must not contain globbing or regex special
16861# characters, hashes, percent signs, but SUFFIX may contain a leading
16862# dot (in which case that matches only a dot).
16863func_stripname ()
16864{
16865  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16866  # positional parameters, so assign one to ordinary parameter first.
16867  func_stripname_result=${3}
16868  func_stripname_result=${func_stripname_result#"${1}"}
16869  func_stripname_result=${func_stripname_result%"${2}"}
16870}
16871
16872# func_opt_split
16873func_opt_split ()
16874{
16875  func_opt_split_opt=${1%%=*}
16876  func_opt_split_arg=${1#*=}
16877}
16878
16879# func_lo2o object
16880func_lo2o ()
16881{
16882  case ${1} in
16883    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16884    *)    func_lo2o_result=${1} ;;
16885  esac
16886}
16887
16888# func_xform libobj-or-source
16889func_xform ()
16890{
16891  func_xform_result=${1%.*}.lo
16892}
16893
16894# func_arith arithmetic-term...
16895func_arith ()
16896{
16897  func_arith_result=$(( $* ))
16898}
16899
16900# func_len string
16901# STRING may not start with a hyphen.
16902func_len ()
16903{
16904  func_len_result=${#1}
16905}
16906
16907_LT_EOF
16908    ;;
16909  *) # Bourne compatible functions.
16910    cat << \_LT_EOF >> "$cfgfile"
16911
16912# func_dirname file append nondir_replacement
16913# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16914# otherwise set result to NONDIR_REPLACEMENT.
16915func_dirname ()
16916{
16917  # Extract subdirectory from the argument.
16918  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16919  if test "X$func_dirname_result" = "X${1}"; then
16920    func_dirname_result="${3}"
16921  else
16922    func_dirname_result="$func_dirname_result${2}"
16923  fi
16924}
16925
16926# func_basename file
16927func_basename ()
16928{
16929  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16930}
16931
16932
16933# func_stripname prefix suffix name
16934# strip PREFIX and SUFFIX off of NAME.
16935# PREFIX and SUFFIX must not contain globbing or regex special
16936# characters, hashes, percent signs, but SUFFIX may contain a leading
16937# dot (in which case that matches only a dot).
16938# func_strip_suffix prefix name
16939func_stripname ()
16940{
16941  case ${2} in
16942    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16943    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16944  esac
16945}
16946
16947# sed scripts:
16948my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16949my_sed_long_arg='1s/^-[^=]*=//'
16950
16951# func_opt_split
16952func_opt_split ()
16953{
16954  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16955  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16956}
16957
16958# func_lo2o object
16959func_lo2o ()
16960{
16961  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16962}
16963
16964# func_xform libobj-or-source
16965func_xform ()
16966{
16967  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16968}
16969
16970# func_arith arithmetic-term...
16971func_arith ()
16972{
16973  func_arith_result=`expr "$@"`
16974}
16975
16976# func_len string
16977# STRING may not start with a hyphen.
16978func_len ()
16979{
16980  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16981}
16982
16983_LT_EOF
16984esac
16985
16986case $lt_shell_append in
16987  yes)
16988    cat << \_LT_EOF >> "$cfgfile"
16989
16990# func_append var value
16991# Append VALUE to the end of shell variable VAR.
16992func_append ()
16993{
16994  eval "$1+=\$2"
16995}
16996_LT_EOF
16997    ;;
16998  *)
16999    cat << \_LT_EOF >> "$cfgfile"
17000
17001# func_append var value
17002# Append VALUE to the end of shell variable VAR.
17003func_append ()
17004{
17005  eval "$1=\$$1\$2"
17006}
17007
17008_LT_EOF
17009    ;;
17010  esac
17011
17012
17013  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17014    || (rm -f "$cfgfile"; exit 1)
17015
17016  mv -f "$cfgfile" "$ofile" ||
17017    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17018  chmod +x "$ofile"
17019
17020
17021    cat <<_LT_EOF >> "$ofile"
17022
17023# ### BEGIN LIBTOOL TAG CONFIG: CXX
17024
17025# The linker used to build libraries.
17026LD=$lt_LD_CXX
17027
17028# How to create reloadable object files.
17029reload_flag=$lt_reload_flag_CXX
17030reload_cmds=$lt_reload_cmds_CXX
17031
17032# Commands used to build an old-style archive.
17033old_archive_cmds=$lt_old_archive_cmds_CXX
17034
17035# A language specific compiler.
17036CC=$lt_compiler_CXX
17037
17038# Is the compiler the GNU compiler?
17039with_gcc=$GCC_CXX
17040
17041# Compiler flag to turn off builtin functions.
17042no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17043
17044# How to pass a linker flag through the compiler.
17045wl=$lt_lt_prog_compiler_wl_CXX
17046
17047# Additional compiler flags for building library objects.
17048pic_flag=$lt_lt_prog_compiler_pic_CXX
17049
17050# Compiler flag to prevent dynamic linking.
17051link_static_flag=$lt_lt_prog_compiler_static_CXX
17052
17053# Does compiler simultaneously support -c and -o options?
17054compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17055
17056# Whether or not to add -lc for building shared libraries.
17057build_libtool_need_lc=$archive_cmds_need_lc_CXX
17058
17059# Whether or not to disallow shared libs when runtime libs are static.
17060allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17061
17062# Compiler flag to allow reflexive dlopens.
17063export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17064
17065# Compiler flag to generate shared objects directly from archives.
17066whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17067
17068# Whether the compiler copes with passing no objects directly.
17069compiler_needs_object=$lt_compiler_needs_object_CXX
17070
17071# Create an old-style archive from a shared archive.
17072old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17073
17074# Create a temporary old-style archive to link instead of a shared archive.
17075old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17076
17077# Commands used to build a shared archive.
17078archive_cmds=$lt_archive_cmds_CXX
17079archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17080
17081# Commands used to build a loadable module if different from building
17082# a shared archive.
17083module_cmds=$lt_module_cmds_CXX
17084module_expsym_cmds=$lt_module_expsym_cmds_CXX
17085
17086# Whether we are building with GNU ld or not.
17087with_gnu_ld=$lt_with_gnu_ld_CXX
17088
17089# Flag that allows shared libraries with undefined symbols to be built.
17090allow_undefined_flag=$lt_allow_undefined_flag_CXX
17091
17092# Flag that enforces no undefined symbols.
17093no_undefined_flag=$lt_no_undefined_flag_CXX
17094
17095# Flag to hardcode \$libdir into a binary during linking.
17096# This must work even if \$libdir does not exist
17097hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17098
17099# If ld is used when linking, flag to hardcode \$libdir into a binary
17100# during linking.  This must work even if \$libdir does not exist.
17101hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17102
17103# Whether we need a single "-rpath" flag with a separated argument.
17104hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17105
17106# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17107# DIR into the resulting binary.
17108hardcode_direct=$hardcode_direct_CXX
17109
17110# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17111# DIR into the resulting binary and the resulting library dependency is
17112# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17113# library is relocated.
17114hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17115
17116# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17117# into the resulting binary.
17118hardcode_minus_L=$hardcode_minus_L_CXX
17119
17120# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17121# into the resulting binary.
17122hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17123
17124# Set to "yes" if building a shared library automatically hardcodes DIR
17125# into the library and all subsequent libraries and executables linked
17126# against it.
17127hardcode_automatic=$hardcode_automatic_CXX
17128
17129# Set to yes if linker adds runtime paths of dependent libraries
17130# to runtime path list.
17131inherit_rpath=$inherit_rpath_CXX
17132
17133# Whether libtool must link a program against all its dependency libraries.
17134link_all_deplibs=$link_all_deplibs_CXX
17135
17136# Fix the shell variable \$srcfile for the compiler.
17137fix_srcfile_path=$lt_fix_srcfile_path_CXX
17138
17139# Set to "yes" if exported symbols are required.
17140always_export_symbols=$always_export_symbols_CXX
17141
17142# The commands to list exported symbols.
17143export_symbols_cmds=$lt_export_symbols_cmds_CXX
17144
17145# Symbols that should not be listed in the preloaded symbols.
17146exclude_expsyms=$lt_exclude_expsyms_CXX
17147
17148# Symbols that must always be exported.
17149include_expsyms=$lt_include_expsyms_CXX
17150
17151# Commands necessary for linking programs (against libraries) with templates.
17152prelink_cmds=$lt_prelink_cmds_CXX
17153
17154# Specify filename containing input files.
17155file_list_spec=$lt_file_list_spec_CXX
17156
17157# How to hardcode a shared library path into an executable.
17158hardcode_action=$hardcode_action_CXX
17159
17160# The directories searched by this compiler when creating a shared library.
17161compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17162
17163# Dependencies to place before and after the objects being linked to
17164# create a shared library.
17165predep_objects=$lt_predep_objects_CXX
17166postdep_objects=$lt_postdep_objects_CXX
17167predeps=$lt_predeps_CXX
17168postdeps=$lt_postdeps_CXX
17169
17170# The library search path used internally by the compiler when linking
17171# a shared library.
17172compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17173
17174# ### END LIBTOOL TAG CONFIG: CXX
17175_LT_EOF
17176
17177 ;;
17178
17179  esac
17180done # for ac_tag
17181
17182
17183as_fn_exit 0
17184_ACEOF
17185ac_clean_files=$ac_clean_files_save
17186
17187test $ac_write_fail = 0 ||
17188  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17189
17190
17191# configure is writing to config.log, and then calls config.status.
17192# config.status does its own redirection, appending to config.log.
17193# Unfortunately, on DOS this fails, as config.log is still kept open
17194# by configure, so config.status won't be able to write to it; its
17195# output is simply discarded.  So we exec the FD to /dev/null,
17196# effectively closing config.log, so it can be properly (re)opened and
17197# appended to by config.status.  When coming back to configure, we
17198# need to make the FD available again.
17199if test "$no_create" != yes; then
17200  ac_cs_success=:
17201  ac_config_status_args=
17202  test "$silent" = yes &&
17203    ac_config_status_args="$ac_config_status_args --quiet"
17204  exec 5>/dev/null
17205  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17206  exec 5>>config.log
17207  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17208  # would make configure fail if this is the last instruction.
17209  $ac_cs_success || as_fn_exit 1
17210fi
17211if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17212  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17213$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17214fi
17215
17216