source: trunk/Clp/configure @ 776

Last change on this file since 776 was 776, checked in by andreasw, 13 years ago

made setting of libtool flag -no-undefined platform dependent

  • Property svn:executable set to *
File size: 700.8 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp 0.1.
5#
6# Report bugs to <coin-clp@list.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='0.1'
434PACKAGE_STRING='Clp 0.1'
435PACKAGE_BUGREPORT='coin-clp@list.coin-or.org'
436
437ac_unique_file="src/ClpCholeskyBase.cpp"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE COIN_DEBUG_TRUE COIN_DEBUG_FALSE CDEFS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXXDEFS CXX CXXFLAGS ac_ct_CXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake BUILDTOOLSDIR AUX_DIR HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE MAINTAINER_SMALL_TRUE MAINTAINER_SMALL_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LT_LDFLAGS pkg_lib_dir pkg_include_dir pkg_bin_dir COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBOBJS LTLIBOBJS'
477ac_subst_files=''
478
479# Initialize some variables set by options.
480ac_init_help=
481ac_init_version=false
482# The variables have the same names as the options, with
483# dashes changed to underlines.
484cache_file=/dev/null
485exec_prefix=NONE
486no_create=
487no_recursion=
488prefix=NONE
489program_prefix=NONE
490program_suffix=NONE
491program_transform_name=s,x,x,
492silent=
493site=
494srcdir=
495verbose=
496x_includes=NONE
497x_libraries=NONE
498
499# Installation directory options.
500# These are left unexpanded so users can "make install exec_prefix=/foo"
501# and all the variables that are supposed to be based on exec_prefix
502# by default will actually change.
503# Use braces instead of parens because sh, perl, etc. also accept them.
504bindir='${exec_prefix}/bin'
505sbindir='${exec_prefix}/sbin'
506libexecdir='${exec_prefix}/libexec'
507datadir='${prefix}/share'
508sysconfdir='${prefix}/etc'
509sharedstatedir='${prefix}/com'
510localstatedir='${prefix}/var'
511libdir='${exec_prefix}/lib'
512includedir='${prefix}/include'
513oldincludedir='/usr/include'
514infodir='${prefix}/info'
515mandir='${prefix}/man'
516
517ac_prev=
518for ac_option
519do
520  # If the previous option needs an argument, assign it.
521  if test -n "$ac_prev"; then
522    eval "$ac_prev=\$ac_option"
523    ac_prev=
524    continue
525  fi
526
527  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529  # Accept the important Cygnus configure options, so we can diagnose typos.
530
531  case $ac_option in
532
533  -bindir | --bindir | --bindi | --bind | --bin | --bi)
534    ac_prev=bindir ;;
535  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536    bindir=$ac_optarg ;;
537
538  -build | --build | --buil | --bui | --bu)
539    ac_prev=build_alias ;;
540  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541    build_alias=$ac_optarg ;;
542
543  -cache-file | --cache-file | --cache-fil | --cache-fi \
544  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545    ac_prev=cache_file ;;
546  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548    cache_file=$ac_optarg ;;
549
550  --config-cache | -C)
551    cache_file=config.cache ;;
552
553  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554    ac_prev=datadir ;;
555  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556  | --da=*)
557    datadir=$ac_optarg ;;
558
559  -disable-* | --disable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    eval "enable_$ac_feature=no" ;;
567
568  -enable-* | --enable-*)
569    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570    # Reject names that are not valid shell variable names.
571    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573   { (exit 1); exit 1; }; }
574    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575    case $ac_option in
576      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577      *) ac_optarg=yes ;;
578    esac
579    eval "enable_$ac_feature='$ac_optarg'" ;;
580
581  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583  | --exec | --exe | --ex)
584    ac_prev=exec_prefix ;;
585  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587  | --exec=* | --exe=* | --ex=*)
588    exec_prefix=$ac_optarg ;;
589
590  -gas | --gas | --ga | --g)
591    # Obsolete; use --with-gas.
592    with_gas=yes ;;
593
594  -help | --help | --hel | --he | -h)
595    ac_init_help=long ;;
596  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597    ac_init_help=recursive ;;
598  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599    ac_init_help=short ;;
600
601  -host | --host | --hos | --ho)
602    ac_prev=host_alias ;;
603  -host=* | --host=* | --hos=* | --ho=*)
604    host_alias=$ac_optarg ;;
605
606  -includedir | --includedir | --includedi | --included | --include \
607  | --includ | --inclu | --incl | --inc)
608    ac_prev=includedir ;;
609  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610  | --includ=* | --inclu=* | --incl=* | --inc=*)
611    includedir=$ac_optarg ;;
612
613  -infodir | --infodir | --infodi | --infod | --info | --inf)
614    ac_prev=infodir ;;
615  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616    infodir=$ac_optarg ;;
617
618  -libdir | --libdir | --libdi | --libd)
619    ac_prev=libdir ;;
620  -libdir=* | --libdir=* | --libdi=* | --libd=*)
621    libdir=$ac_optarg ;;
622
623  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624  | --libexe | --libex | --libe)
625    ac_prev=libexecdir ;;
626  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627  | --libexe=* | --libex=* | --libe=*)
628    libexecdir=$ac_optarg ;;
629
630  -localstatedir | --localstatedir | --localstatedi | --localstated \
631  | --localstate | --localstat | --localsta | --localst \
632  | --locals | --local | --loca | --loc | --lo)
633    ac_prev=localstatedir ;;
634  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637    localstatedir=$ac_optarg ;;
638
639  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640    ac_prev=mandir ;;
641  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642    mandir=$ac_optarg ;;
643
644  -nfp | --nfp | --nf)
645    # Obsolete; use --without-fp.
646    with_fp=no ;;
647
648  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649  | --no-cr | --no-c | -n)
650    no_create=yes ;;
651
652  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654    no_recursion=yes ;;
655
656  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658  | --oldin | --oldi | --old | --ol | --o)
659    ac_prev=oldincludedir ;;
660  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663    oldincludedir=$ac_optarg ;;
664
665  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666    ac_prev=prefix ;;
667  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668    prefix=$ac_optarg ;;
669
670  -program-prefix | --program-prefix | --program-prefi | --program-pref \
671  | --program-pre | --program-pr | --program-p)
672    ac_prev=program_prefix ;;
673  -program-prefix=* | --program-prefix=* | --program-prefi=* \
674  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675    program_prefix=$ac_optarg ;;
676
677  -program-suffix | --program-suffix | --program-suffi | --program-suff \
678  | --program-suf | --program-su | --program-s)
679    ac_prev=program_suffix ;;
680  -program-suffix=* | --program-suffix=* | --program-suffi=* \
681  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682    program_suffix=$ac_optarg ;;
683
684  -program-transform-name | --program-transform-name \
685  | --program-transform-nam | --program-transform-na \
686  | --program-transform-n | --program-transform- \
687  | --program-transform | --program-transfor \
688  | --program-transfo | --program-transf \
689  | --program-trans | --program-tran \
690  | --progr-tra | --program-tr | --program-t)
691    ac_prev=program_transform_name ;;
692  -program-transform-name=* | --program-transform-name=* \
693  | --program-transform-nam=* | --program-transform-na=* \
694  | --program-transform-n=* | --program-transform-=* \
695  | --program-transform=* | --program-transfor=* \
696  | --program-transfo=* | --program-transf=* \
697  | --program-trans=* | --program-tran=* \
698  | --progr-tra=* | --program-tr=* | --program-t=*)
699    program_transform_name=$ac_optarg ;;
700
701  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702  | -silent | --silent | --silen | --sile | --sil)
703    silent=yes ;;
704
705  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706    ac_prev=sbindir ;;
707  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708  | --sbi=* | --sb=*)
709    sbindir=$ac_optarg ;;
710
711  -sharedstatedir | --sharedstatedir | --sharedstatedi \
712  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713  | --sharedst | --shareds | --shared | --share | --shar \
714  | --sha | --sh)
715    ac_prev=sharedstatedir ;;
716  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719  | --sha=* | --sh=*)
720    sharedstatedir=$ac_optarg ;;
721
722  -site | --site | --sit)
723    ac_prev=site ;;
724  -site=* | --site=* | --sit=*)
725    site=$ac_optarg ;;
726
727  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728    ac_prev=srcdir ;;
729  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730    srcdir=$ac_optarg ;;
731
732  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733  | --syscon | --sysco | --sysc | --sys | --sy)
734    ac_prev=sysconfdir ;;
735  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737    sysconfdir=$ac_optarg ;;
738
739  -target | --target | --targe | --targ | --tar | --ta | --t)
740    ac_prev=target_alias ;;
741  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742    target_alias=$ac_optarg ;;
743
744  -v | -verbose | --verbose | --verbos | --verbo | --verb)
745    verbose=yes ;;
746
747  -version | --version | --versio | --versi | --vers | -V)
748    ac_init_version=: ;;
749
750  -with-* | --with-*)
751    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752    # Reject names that are not valid shell variable names.
753    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754      { echo "$as_me: error: invalid package name: $ac_package" >&2
755   { (exit 1); exit 1; }; }
756    ac_package=`echo $ac_package| sed 's/-/_/g'`
757    case $ac_option in
758      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759      *) ac_optarg=yes ;;
760    esac
761    eval "with_$ac_package='$ac_optarg'" ;;
762
763  -without-* | --without-*)
764    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765    # Reject names that are not valid shell variable names.
766    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767      { echo "$as_me: error: invalid package name: $ac_package" >&2
768   { (exit 1); exit 1; }; }
769    ac_package=`echo $ac_package | sed 's/-/_/g'`
770    eval "with_$ac_package=no" ;;
771
772  --x)
773    # Obsolete; use --with-x.
774    with_x=yes ;;
775
776  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777  | --x-incl | --x-inc | --x-in | --x-i)
778    ac_prev=x_includes ;;
779  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781    x_includes=$ac_optarg ;;
782
783  -x-libraries | --x-libraries | --x-librarie | --x-librari \
784  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785    ac_prev=x_libraries ;;
786  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788    x_libraries=$ac_optarg ;;
789
790  -*) { echo "$as_me: error: unrecognized option: $ac_option
791Try \`$0 --help' for more information." >&2
792   { (exit 1); exit 1; }; }
793    ;;
794
795  *=*)
796    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797    # Reject names that are not valid shell variable names.
798    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800   { (exit 1); exit 1; }; }
801    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802    eval "$ac_envvar='$ac_optarg'"
803    export $ac_envvar ;;
804
805  *)
806    # FIXME: should be removed in autoconf 3.0.
807    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811    ;;
812
813  esac
814done
815
816if test -n "$ac_prev"; then
817  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818  { echo "$as_me: error: missing argument to $ac_option" >&2
819   { (exit 1); exit 1; }; }
820fi
821
822# Be sure to have absolute paths.
823for ac_var in exec_prefix prefix
824do
825  eval ac_val=$`echo $ac_var`
826  case $ac_val in
827    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829   { (exit 1); exit 1; }; };;
830  esac
831done
832
833# Be sure to have absolute paths.
834for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835              localstatedir libdir includedir oldincludedir infodir mandir
836do
837  eval ac_val=$`echo $ac_var`
838  case $ac_val in
839    [\\/$]* | ?:[\\/]* ) ;;
840    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841   { (exit 1); exit 1; }; };;
842  esac
843done
844
845# There might be people who depend on the old broken behavior: `$host'
846# used to hold the argument of --host etc.
847# FIXME: To remove some day.
848build=$build_alias
849host=$host_alias
850target=$target_alias
851
852# FIXME: To remove some day.
853if test "x$host_alias" != x; then
854  if test "x$build_alias" = x; then
855    cross_compiling=maybe
856    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857    If a cross compiler is detected then cross compile mode will be used." >&2
858  elif test "x$build_alias" != "x$host_alias"; then
859    cross_compiling=yes
860  fi
861fi
862
863ac_tool_prefix=
864test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866test "$silent" = yes && exec 6>/dev/null
867
868
869# Find the source files, if location was not specified.
870if test -z "$srcdir"; then
871  ac_srcdir_defaulted=yes
872  # Try the directory containing this script, then its parent.
873  ac_confdir=`(dirname "$0") 2>/dev/null ||
874$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875         X"$0" : 'X\(//\)[^/]' \| \
876         X"$0" : 'X\(//\)$' \| \
877         X"$0" : 'X\(/\)' \| \
878         .     : '\(.\)' 2>/dev/null ||
879echo X"$0" |
880    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882          /^X\(\/\/\)$/{ s//\1/; q; }
883          /^X\(\/\).*/{ s//\1/; q; }
884          s/.*/./; q'`
885  srcdir=$ac_confdir
886  if test ! -r $srcdir/$ac_unique_file; then
887    srcdir=..
888  fi
889else
890  ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893  if test "$ac_srcdir_defaulted" = yes; then
894    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895   { (exit 1); exit 1; }; }
896  else
897    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898   { (exit 1); exit 1; }; }
899  fi
900fi
901(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903   { (exit 1); exit 1; }; }
904srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905ac_env_build_alias_set=${build_alias+set}
906ac_env_build_alias_value=$build_alias
907ac_cv_env_build_alias_set=${build_alias+set}
908ac_cv_env_build_alias_value=$build_alias
909ac_env_host_alias_set=${host_alias+set}
910ac_env_host_alias_value=$host_alias
911ac_cv_env_host_alias_set=${host_alias+set}
912ac_cv_env_host_alias_value=$host_alias
913ac_env_target_alias_set=${target_alias+set}
914ac_env_target_alias_value=$target_alias
915ac_cv_env_target_alias_set=${target_alias+set}
916ac_cv_env_target_alias_value=$target_alias
917ac_env_CDEFS_set=${CDEFS+set}
918ac_env_CDEFS_value=$CDEFS
919ac_cv_env_CDEFS_set=${CDEFS+set}
920ac_cv_env_CDEFS_value=$CDEFS
921ac_env_CC_set=${CC+set}
922ac_env_CC_value=$CC
923ac_cv_env_CC_set=${CC+set}
924ac_cv_env_CC_value=$CC
925ac_env_CFLAGS_set=${CFLAGS+set}
926ac_env_CFLAGS_value=$CFLAGS
927ac_cv_env_CFLAGS_set=${CFLAGS+set}
928ac_cv_env_CFLAGS_value=$CFLAGS
929ac_env_LDFLAGS_set=${LDFLAGS+set}
930ac_env_LDFLAGS_value=$LDFLAGS
931ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932ac_cv_env_LDFLAGS_value=$LDFLAGS
933ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_env_CPPFLAGS_value=$CPPFLAGS
935ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937ac_env_CXXDEFS_set=${CXXDEFS+set}
938ac_env_CXXDEFS_value=$CXXDEFS
939ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
940ac_cv_env_CXXDEFS_value=$CXXDEFS
941ac_env_CXX_set=${CXX+set}
942ac_env_CXX_value=$CXX
943ac_cv_env_CXX_set=${CXX+set}
944ac_cv_env_CXX_value=$CXX
945ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_env_CXXFLAGS_value=$CXXFLAGS
947ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949ac_env_CPP_set=${CPP+set}
950ac_env_CPP_value=$CPP
951ac_cv_env_CPP_set=${CPP+set}
952ac_cv_env_CPP_value=$CPP
953ac_env_CXXCPP_set=${CXXCPP+set}
954ac_env_CXXCPP_value=$CXXCPP
955ac_cv_env_CXXCPP_set=${CXXCPP+set}
956ac_cv_env_CXXCPP_value=$CXXCPP
957ac_env_F77_set=${F77+set}
958ac_env_F77_value=$F77
959ac_cv_env_F77_set=${F77+set}
960ac_cv_env_F77_value=$F77
961ac_env_FFLAGS_set=${FFLAGS+set}
962ac_env_FFLAGS_value=$FFLAGS
963ac_cv_env_FFLAGS_set=${FFLAGS+set}
964ac_cv_env_FFLAGS_value=$FFLAGS
965
966#
967# Report the --help message.
968#
969if test "$ac_init_help" = "long"; then
970  # Omit some internal or obsolete options to make the list less imposing.
971  # This message is too long to be a string in the A/UX 3.1 sh.
972  cat <<_ACEOF
973\`configure' configures Clp 0.1 to adapt to many kinds of systems.
974
975Usage: $0 [OPTION]... [VAR=VALUE]...
976
977To assign environment variables (e.g., CC, CFLAGS...), specify them as
978VAR=VALUE.  See below for descriptions of some of the useful variables.
979
980Defaults for the options are specified in brackets.
981
982Configuration:
983  -h, --help              display this help and exit
984      --help=short        display options specific to this package
985      --help=recursive    display the short help of all the included packages
986  -V, --version           display version information and exit
987  -q, --quiet, --silent   do not print \`checking...' messages
988      --cache-file=FILE   cache test results in FILE [disabled]
989  -C, --config-cache      alias for \`--cache-file=config.cache'
990  -n, --no-create         do not create output files
991      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
992
993_ACEOF
994
995  cat <<_ACEOF
996Installation directories:
997  --prefix=PREFIX         install architecture-independent files in PREFIX
998                          [$ac_default_prefix]
999  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1000                          [PREFIX]
1001
1002By default, \`make install' will install all the files in
1003\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1004an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1005for instance \`--prefix=\$HOME'.
1006
1007For better control, use the options below.
1008
1009Fine tuning of the installation directories:
1010  --bindir=DIR           user executables [EPREFIX/bin]
1011  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1012  --libexecdir=DIR       program executables [EPREFIX/libexec]
1013  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1014  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1015  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1016  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1017  --libdir=DIR           object code libraries [EPREFIX/lib]
1018  --includedir=DIR       C header files [PREFIX/include]
1019  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1020  --infodir=DIR          info documentation [PREFIX/info]
1021  --mandir=DIR           man documentation [PREFIX/man]
1022_ACEOF
1023
1024  cat <<\_ACEOF
1025
1026Program names:
1027  --program-prefix=PREFIX            prepend PREFIX to installed program names
1028  --program-suffix=SUFFIX            append SUFFIX to installed program names
1029  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1030
1031System types:
1032  --build=BUILD     configure for building on BUILD [guessed]
1033  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1034_ACEOF
1035fi
1036
1037if test -n "$ac_init_help"; then
1038  case $ac_init_help in
1039     short | recursive ) echo "Configuration of Clp 0.1:";;
1040   esac
1041  cat <<\_ACEOF
1042
1043Optional Features:
1044  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1045  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1046  --enable-debug          compile with debug options and runtime tests
1047  --enable-static[=PKGS]
1048                          build static libraries [default=no]
1049  --disable-dependency-tracking  speeds up one-time build
1050  --enable-dependency-tracking   do not reject slow dependency extractors
1051  --enable-maintainer-mode  enable make rules and dependencies not useful
1052                          (and sometimes confusing) to the casual installer
1053  --enable-shared[=PKGS]
1054                          build shared libraries [default=yes]
1055  --enable-fast-install[=PKGS]
1056                          optimize for fast installation [default=yes]
1057  --disable-libtool-lock  avoid locking (might break parallel builds)
1058  --enable-gnu-packages   compile with GNU packages (disabled by default)
1059
1060Optional Packages:
1061  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1064  --with-pic              try to use only PIC/non-PIC objects [default=use
1065                          both]
1066  --with-tags[=TAGS]
1067                          include additional configurations [automatic]
1068
1069Some influential environment variables:
1070  CDEFS       Additional -D flags to be used when compiling C code.
1071  CC          C compiler command
1072  CFLAGS      C compiler flags
1073  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1074              nonstandard directory <lib dir>
1075  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1076              headers in a nonstandard directory <include dir>
1077  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1078  CXX         C++ compiler command
1079  CXXFLAGS    C++ compiler flags
1080  CPP         C preprocessor
1081  CXXCPP      C++ preprocessor
1082  F77         Fortran 77 compiler command
1083  FFLAGS      Fortran 77 compiler flags
1084
1085Use these variables to override the choices made by `configure' or to help
1086it to find libraries and programs with nonstandard names/locations.
1087
1088Report bugs to <coin-clp@list.coin-or.org>.
1089_ACEOF
1090fi
1091
1092if test "$ac_init_help" = "recursive"; then
1093  # If there are subdirs, report their specific --help.
1094  ac_popdir=`pwd`
1095  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096    test -d $ac_dir || continue
1097    ac_builddir=.
1098
1099if test "$ac_dir" != .; then
1100  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101  # A "../" for each directory in $ac_dir_suffix.
1102  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103else
1104  ac_dir_suffix= ac_top_builddir=
1105fi
1106
1107case $srcdir in
1108  .)  # No --srcdir option.  We are building in place.
1109    ac_srcdir=.
1110    if test -z "$ac_top_builddir"; then
1111       ac_top_srcdir=.
1112    else
1113       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114    fi ;;
1115  [\\/]* | ?:[\\/]* )  # Absolute path.
1116    ac_srcdir=$srcdir$ac_dir_suffix;
1117    ac_top_srcdir=$srcdir ;;
1118  *) # Relative path.
1119    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121esac
1122
1123# Do not use `cd foo && pwd` to compute absolute paths, because
1124# the directories may not exist.
1125case `pwd` in
1126.) ac_abs_builddir="$ac_dir";;
1127*)
1128  case "$ac_dir" in
1129  .) ac_abs_builddir=`pwd`;;
1130  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132  esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_builddir=${ac_top_builddir}.;;
1136*)
1137  case ${ac_top_builddir}. in
1138  .) ac_abs_top_builddir=$ac_abs_builddir;;
1139  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141  esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_srcdir=$ac_srcdir;;
1145*)
1146  case $ac_srcdir in
1147  .) ac_abs_srcdir=$ac_abs_builddir;;
1148  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150  esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_srcdir=$ac_top_srcdir;;
1154*)
1155  case $ac_top_srcdir in
1156  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159  esac;;
1160esac
1161
1162    cd $ac_dir
1163    # Check for guested configure; otherwise get Cygnus style configure.
1164    if test -f $ac_srcdir/configure.gnu; then
1165      echo
1166      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1167    elif test -f $ac_srcdir/configure; then
1168      echo
1169      $SHELL $ac_srcdir/configure  --help=recursive
1170    elif test -f $ac_srcdir/configure.ac ||
1171           test -f $ac_srcdir/configure.in; then
1172      echo
1173      $ac_configure --help
1174    else
1175      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176    fi
1177    cd $ac_popdir
1178  done
1179fi
1180
1181test -n "$ac_init_help" && exit 0
1182if $ac_init_version; then
1183  cat <<\_ACEOF
1184Clp configure 0.1
1185generated by GNU Autoconf 2.59
1186
1187Copyright (C) 2003 Free Software Foundation, Inc.
1188This configure script is free software; the Free Software Foundation
1189gives unlimited permission to copy, distribute and modify it.
1190
1191
1192Copyright 2006 International Business Machines and others.
1193All Rights Reserved.
1194This file is part of the open source package Coin which is distributed
1195under the Common Public License.
1196_ACEOF
1197  exit 0
1198fi
1199exec 5>config.log
1200cat >&5 <<_ACEOF
1201This file contains any messages produced by compilers while
1202running configure, to aid debugging if configure makes a mistake.
1203
1204It was created by Clp $as_me 0.1, which was
1205generated by GNU Autoconf 2.59.  Invocation command line was
1206
1207  $ $0 $@
1208
1209_ACEOF
1210{
1211cat <<_ASUNAME
1212## --------- ##
1213## Platform. ##
1214## --------- ##
1215
1216hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1217uname -m = `(uname -m) 2>/dev/null || echo unknown`
1218uname -r = `(uname -r) 2>/dev/null || echo unknown`
1219uname -s = `(uname -s) 2>/dev/null || echo unknown`
1220uname -v = `(uname -v) 2>/dev/null || echo unknown`
1221
1222/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1223/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1224
1225/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1226/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1227/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1228hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1229/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1230/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1231/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1232
1233_ASUNAME
1234
1235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1236for as_dir in $PATH
1237do
1238  IFS=$as_save_IFS
1239  test -z "$as_dir" && as_dir=.
1240  echo "PATH: $as_dir"
1241done
1242
1243} >&5
1244
1245cat >&5 <<_ACEOF
1246
1247
1248## ----------- ##
1249## Core tests. ##
1250## ----------- ##
1251
1252_ACEOF
1253
1254
1255# Keep a trace of the command line.
1256# Strip out --no-create and --no-recursion so they do not pile up.
1257# Strip out --silent because we don't want to record it for future runs.
1258# Also quote any args containing shell meta-characters.
1259# Make two passes to allow for proper duplicate-argument suppression.
1260ac_configure_args=
1261ac_configure_args0=
1262ac_configure_args1=
1263ac_sep=
1264ac_must_keep_next=false
1265for ac_pass in 1 2
1266do
1267  for ac_arg
1268  do
1269    case $ac_arg in
1270    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1271    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272    | -silent | --silent | --silen | --sile | --sil)
1273      continue ;;
1274    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1276    esac
1277    case $ac_pass in
1278    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1279    2)
1280      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1281      if test $ac_must_keep_next = true; then
1282        ac_must_keep_next=false # Got value, back to normal.
1283      else
1284        case $ac_arg in
1285          *=* | --config-cache | -C | -disable-* | --disable-* \
1286          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1287          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1288          | -with-* | --with-* | -without-* | --without-* | --x)
1289            case "$ac_configure_args0 " in
1290              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1291            esac
1292            ;;
1293          -* ) ac_must_keep_next=true ;;
1294        esac
1295      fi
1296      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1297      # Get rid of the leading space.
1298      ac_sep=" "
1299      ;;
1300    esac
1301  done
1302done
1303$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1304$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1305
1306# When interrupted or exit'd, cleanup temporary files, and complete
1307# config.log.  We remove comments because anyway the quotes in there
1308# would cause problems or look ugly.
1309# WARNING: Be sure not to use single quotes in there, as some shells,
1310# such as our DU 5.0 friend, will then `close' the trap.
1311trap 'exit_status=$?
1312  # Save into config.log some information that might help in debugging.
1313  {
1314    echo
1315
1316    cat <<\_ASBOX
1317## ---------------- ##
1318## Cache variables. ##
1319## ---------------- ##
1320_ASBOX
1321    echo
1322    # The following way of writing the cache mishandles newlines in values,
1323{
1324  (set) 2>&1 |
1325    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1326    *ac_space=\ *)
1327      sed -n \
1328        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1329          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1330      ;;
1331    *)
1332      sed -n \
1333        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1334      ;;
1335    esac;
1336}
1337    echo
1338
1339    cat <<\_ASBOX
1340## ----------------- ##
1341## Output variables. ##
1342## ----------------- ##
1343_ASBOX
1344    echo
1345    for ac_var in $ac_subst_vars
1346    do
1347      eval ac_val=$`echo $ac_var`
1348      echo "$ac_var='"'"'$ac_val'"'"'"
1349    done | sort
1350    echo
1351
1352    if test -n "$ac_subst_files"; then
1353      cat <<\_ASBOX
1354## ------------- ##
1355## Output files. ##
1356## ------------- ##
1357_ASBOX
1358      echo
1359      for ac_var in $ac_subst_files
1360      do
1361        eval ac_val=$`echo $ac_var`
1362        echo "$ac_var='"'"'$ac_val'"'"'"
1363      done | sort
1364      echo
1365    fi
1366
1367    if test -s confdefs.h; then
1368      cat <<\_ASBOX
1369## ----------- ##
1370## confdefs.h. ##
1371## ----------- ##
1372_ASBOX
1373      echo
1374      sed "/^$/d" confdefs.h | sort
1375      echo
1376    fi
1377    test "$ac_signal" != 0 &&
1378      echo "$as_me: caught signal $ac_signal"
1379    echo "$as_me: exit $exit_status"
1380  } >&5
1381  rm -f core *.core &&
1382  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1383    exit $exit_status
1384     ' 0
1385for ac_signal in 1 2 13 15; do
1386  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1387done
1388ac_signal=0
1389
1390# confdefs.h avoids OS command line length limits that DEFS can exceed.
1391rm -rf conftest* confdefs.h
1392# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1393echo >confdefs.h
1394
1395# Predefined preprocessor variables.
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_NAME "$PACKAGE_NAME"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_VERSION "$PACKAGE_VERSION"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_STRING "$PACKAGE_STRING"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1419_ACEOF
1420
1421
1422# Let the site file select an alternate cache file if it wants to.
1423# Prefer explicitly selected file to automatically selected ones.
1424if test -z "$CONFIG_SITE"; then
1425  if test "x$prefix" != xNONE; then
1426    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1427  else
1428    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1429  fi
1430fi
1431for ac_site_file in $CONFIG_SITE; do
1432  if test -r "$ac_site_file"; then
1433    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1434echo "$as_me: loading site script $ac_site_file" >&6;}
1435    sed 's/^/| /' "$ac_site_file" >&5
1436    . "$ac_site_file"
1437  fi
1438done
1439
1440if test -r "$cache_file"; then
1441  # Some versions of bash will fail to source /dev/null (special
1442  # files actually), so we avoid doing that.
1443  if test -f "$cache_file"; then
1444    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1445echo "$as_me: loading cache $cache_file" >&6;}
1446    case $cache_file in
1447      [\\/]* | ?:[\\/]* ) . $cache_file;;
1448      *)                      . ./$cache_file;;
1449    esac
1450  fi
1451else
1452  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1453echo "$as_me: creating cache $cache_file" >&6;}
1454  >$cache_file
1455fi
1456
1457# Check that the precious variables saved in the cache have kept the same
1458# value.
1459ac_cache_corrupted=false
1460for ac_var in `(set) 2>&1 |
1461               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463  eval ac_new_set=\$ac_env_${ac_var}_set
1464  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465  eval ac_new_val="\$ac_env_${ac_var}_value"
1466  case $ac_old_set,$ac_new_set in
1467    set,)
1468      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470      ac_cache_corrupted=: ;;
1471    ,set)
1472      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474      ac_cache_corrupted=: ;;
1475    ,);;
1476    *)
1477      if test "x$ac_old_val" != "x$ac_new_val"; then
1478        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1481echo "$as_me:   former value:  $ac_old_val" >&2;}
1482        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1483echo "$as_me:   current value: $ac_new_val" >&2;}
1484        ac_cache_corrupted=:
1485      fi;;
1486  esac
1487  # Pass precious variables to config.status.
1488  if test "$ac_new_set" = set; then
1489    case $ac_new_val in
1490    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492    *) ac_arg=$ac_var=$ac_new_val ;;
1493    esac
1494    case " $ac_configure_args " in
1495      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1496      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497    esac
1498  fi
1499done
1500if $ac_cache_corrupted; then
1501  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505   { (exit 1); exit 1; }; }
1506fi
1507
1508ac_ext=c
1509ac_cpp='$CPP $CPPFLAGS'
1510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545# List one file in the package so that the configure script can test
1546# whether the package is actually there
1547
1548
1549#############################################################################
1550#                         Standard build tool stuff                         #
1551#############################################################################
1552
1553# Get the system type
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556  if test -f $ac_dir/install-sh; then
1557    ac_aux_dir=$ac_dir
1558    ac_install_sh="$ac_aux_dir/install-sh -c"
1559    break
1560  elif test -f $ac_dir/install.sh; then
1561    ac_aux_dir=$ac_dir
1562    ac_install_sh="$ac_aux_dir/install.sh -c"
1563    break
1564  elif test -f $ac_dir/shtool; then
1565    ac_aux_dir=$ac_dir
1566    ac_install_sh="$ac_aux_dir/shtool install -c"
1567    break
1568  fi
1569done
1570if test -z "$ac_aux_dir"; then
1571  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573   { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583   { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588  echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590  ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592  ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596   { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600   { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611
1612# Where should everything be installed by default?  Here, we want it
1613# to be installed directly in 'bin', 'lib', 'include' subdirectories
1614# of the directory where configure is run.  The default would be
1615# /usr/local.
1616
1617
1618# If this project depends on external projects, the Externals file in
1619# the source root directory contains definition of where to find those
1620# externals.  The following macro ensures that those externals are
1621# retrieved by svn if they are not there yet.
1622# Initialize the ADDLIBS variable
1623ADDLIBS=
1624
1625
1626# A useful makefile conditional that is always false
1627
1628
1629if false; then
1630  ALWAYS_FALSE_TRUE=
1631  ALWAYS_FALSE_FALSE='#'
1632else
1633  ALWAYS_FALSE_TRUE='#'
1634  ALWAYS_FALSE_FALSE=
1635fi
1636
1637
1638
1639# Check if user wants to produce debugging code
1640
1641echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1642echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1643
1644# Check whether --enable-debug or --disable-debug was given.
1645if test "${enable_debug+set}" = set; then
1646  enableval="$enable_debug"
1647  case "${enableval}" in
1648                   yes) coin_debug_compile=true
1649
1650cat >>confdefs.h <<\_ACEOF
1651#define COIN_DEBUG 1
1652_ACEOF
1653
1654                     ;;
1655                   no)  coin_debug_compile=false
1656                     ;;
1657                    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1658echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1659   { (exit 1); exit 1; }; }
1660                     ;;
1661                 esac
1662else
1663  coin_debug_compile=false
1664fi;
1665
1666if test $coin_debug_compile = true; then
1667  echo "$as_me:$LINENO: result: yes" >&5
1668echo "${ECHO_T}yes" >&6
1669else
1670  echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
1672fi
1673
1674
1675
1676if test "$coin_debug_compile" = true; then
1677  COIN_DEBUG_TRUE=
1678  COIN_DEBUG_FALSE='#'
1679else
1680  COIN_DEBUG_TRUE='#'
1681  COIN_DEBUG_FALSE=
1682fi
1683
1684
1685
1686# Get the name of the C++ compiler and appropriate compiler options
1687
1688ac_ext=c
1689ac_cpp='$CPP $CPPFLAGS'
1690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1692ac_compiler_gnu=$ac_cv_c_compiler_gnu
1693
1694
1695# For consistency, we set the C compiler to the same value of the C++
1696# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1697if test x"$CXX" != x; then
1698  case $CXX in
1699    cl*)
1700      if test x"$CC" = x; then
1701        CC="$CXX"
1702        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1703echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1704      fi
1705      ;;
1706  esac
1707fi
1708
1709
1710
1711coin_has_cc=yes
1712
1713save_cflags="$CFLAGS"
1714case $build in
1715  *-cygwin* | *-mingw*)
1716             comps="gcc cl" ;;
1717  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1718  *)         comps="xlc cc gcc pgcc icc" ;;
1719esac
1720ac_ext=c
1721ac_cpp='$CPP $CPPFLAGS'
1722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724ac_compiler_gnu=$ac_cv_c_compiler_gnu
1725if test -n "$ac_tool_prefix"; then
1726  for ac_prog in $comps
1727  do
1728    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1730echo "$as_me:$LINENO: checking for $ac_word" >&5
1731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732if test "${ac_cv_prog_CC+set}" = set; then
1733  echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735  if test -n "$CC"; then
1736  ac_cv_prog_CC="$CC" # Let the user override the test.
1737else
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741  IFS=$as_save_IFS
1742  test -z "$as_dir" && as_dir=.
1743  for ac_exec_ext in '' $ac_executable_extensions; do
1744  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747    break 2
1748  fi
1749done
1750done
1751
1752fi
1753fi
1754CC=$ac_cv_prog_CC
1755if test -n "$CC"; then
1756  echo "$as_me:$LINENO: result: $CC" >&5
1757echo "${ECHO_T}$CC" >&6
1758else
1759  echo "$as_me:$LINENO: result: no" >&5
1760echo "${ECHO_T}no" >&6
1761fi
1762
1763    test -n "$CC" && break
1764  done
1765fi
1766if test -z "$CC"; then
1767  ac_ct_CC=$CC
1768  for ac_prog in $comps
1769do
1770  # Extract the first word of "$ac_prog", so it can be a program name with args.
1771set dummy $ac_prog; ac_word=$2
1772echo "$as_me:$LINENO: checking for $ac_word" >&5
1773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1775  echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777  if test -n "$ac_ct_CC"; then
1778  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1779else
1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781for as_dir in $PATH
1782do
1783  IFS=$as_save_IFS
1784  test -z "$as_dir" && as_dir=.
1785  for ac_exec_ext in '' $ac_executable_extensions; do
1786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787    ac_cv_prog_ac_ct_CC="$ac_prog"
1788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789    break 2
1790  fi
1791done
1792done
1793
1794fi
1795fi
1796ac_ct_CC=$ac_cv_prog_ac_ct_CC
1797if test -n "$ac_ct_CC"; then
1798  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1799echo "${ECHO_T}$ac_ct_CC" >&6
1800else
1801  echo "$as_me:$LINENO: result: no" >&5
1802echo "${ECHO_T}no" >&6
1803fi
1804
1805  test -n "$ac_ct_CC" && break
1806done
1807
1808  CC=$ac_ct_CC
1809fi
1810
1811
1812test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1813See \`config.log' for more details." >&5
1814echo "$as_me: error: no acceptable C compiler found in \$PATH
1815See \`config.log' for more details." >&2;}
1816   { (exit 1); exit 1; }; }
1817
1818# Provide some information about the compiler.
1819echo "$as_me:$LINENO:" \
1820     "checking for C compiler version" >&5
1821ac_compiler=`set X $ac_compile; echo $2`
1822{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1823  (eval $ac_compiler --version </dev/null >&5) 2>&5
1824  ac_status=$?
1825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826  (exit $ac_status); }
1827{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1828  (eval $ac_compiler -v </dev/null >&5) 2>&5
1829  ac_status=$?
1830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831  (exit $ac_status); }
1832{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1833  (eval $ac_compiler -V </dev/null >&5) 2>&5
1834  ac_status=$?
1835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836  (exit $ac_status); }
1837
1838cat >conftest.$ac_ext <<_ACEOF
1839/* confdefs.h.  */
1840_ACEOF
1841cat confdefs.h >>conftest.$ac_ext
1842cat >>conftest.$ac_ext <<_ACEOF
1843/* end confdefs.h.  */
1844
1845int
1846main ()
1847{
1848
1849  ;
1850  return 0;
1851}
1852_ACEOF
1853ac_clean_files_save=$ac_clean_files
1854ac_clean_files="$ac_clean_files a.out a.exe b.out"
1855# Try to create an executable without -o first, disregard a.out.
1856# It will help us diagnose broken compilers, and finding out an intuition
1857# of exeext.
1858echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1859echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1860ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1861if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1862  (eval $ac_link_default) 2>&5
1863  ac_status=$?
1864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865  (exit $ac_status); }; then
1866  # Find the output, starting from the most likely.  This scheme is
1867# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1868# resort.
1869
1870# Be careful to initialize this variable, since it used to be cached.
1871# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1872ac_cv_exeext=
1873# b.out is created by i960 compilers.
1874for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1875do
1876  test -f "$ac_file" || continue
1877  case $ac_file in
1878    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1879        ;;
1880    conftest.$ac_ext )
1881        # This is the source file.
1882        ;;
1883    [ab].out )
1884        # We found the default executable, but exeext='' is most
1885        # certainly right.
1886        break;;
1887    *.* )
1888        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1889        # FIXME: I believe we export ac_cv_exeext for Libtool,
1890        # but it would be cool to find out if it's true.  Does anybody
1891        # maintain Libtool? --akim.
1892        export ac_cv_exeext
1893        break;;
1894    * )
1895        break;;
1896  esac
1897done
1898else
1899  echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
1901
1902{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: C compiler cannot create executables
1905See \`config.log' for more details." >&2;}
1906   { (exit 77); exit 77; }; }
1907fi
1908
1909ac_exeext=$ac_cv_exeext
1910echo "$as_me:$LINENO: result: $ac_file" >&5
1911echo "${ECHO_T}$ac_file" >&6
1912
1913# Check the compiler produces executables we can run.  If not, either
1914# the compiler is broken, or we cross compile.
1915echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1916echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1917# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1918# If not cross compiling, check that we can run a simple program.
1919if test "$cross_compiling" != yes; then
1920  if { ac_try='./$ac_file'
1921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922  (eval $ac_try) 2>&5
1923  ac_status=$?
1924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925  (exit $ac_status); }; }; then
1926    cross_compiling=no
1927  else
1928    if test "$cross_compiling" = maybe; then
1929        cross_compiling=yes
1930    else
1931        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1932If you meant to cross compile, use \`--host'.
1933See \`config.log' for more details." >&5
1934echo "$as_me: error: cannot run C compiled programs.
1935If you meant to cross compile, use \`--host'.
1936See \`config.log' for more details." >&2;}
1937   { (exit 1); exit 1; }; }
1938    fi
1939  fi
1940fi
1941echo "$as_me:$LINENO: result: yes" >&5
1942echo "${ECHO_T}yes" >&6
1943
1944rm -f a.out a.exe conftest$ac_cv_exeext b.out
1945ac_clean_files=$ac_clean_files_save
1946# Check the compiler produces executables we can run.  If not, either
1947# the compiler is broken, or we cross compile.
1948echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1949echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1950echo "$as_me:$LINENO: result: $cross_compiling" >&5
1951echo "${ECHO_T}$cross_compiling" >&6
1952
1953echo "$as_me:$LINENO: checking for suffix of executables" >&5
1954echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1956  (eval $ac_link) 2>&5
1957  ac_status=$?
1958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959  (exit $ac_status); }; then
1960  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1961# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1962# work properly (i.e., refer to `conftest.exe'), while it won't with
1963# `rm'.
1964for ac_file in conftest.exe conftest conftest.*; do
1965  test -f "$ac_file" || continue
1966  case $ac_file in
1967    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1968    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1969          export ac_cv_exeext
1970          break;;
1971    * ) break;;
1972  esac
1973done
1974else
1975  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1976See \`config.log' for more details." >&5
1977echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1978See \`config.log' for more details." >&2;}
1979   { (exit 1); exit 1; }; }
1980fi
1981
1982rm -f conftest$ac_cv_exeext
1983echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1984echo "${ECHO_T}$ac_cv_exeext" >&6
1985
1986rm -f conftest.$ac_ext
1987EXEEXT=$ac_cv_exeext
1988ac_exeext=$EXEEXT
1989echo "$as_me:$LINENO: checking for suffix of object files" >&5
1990echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1991if test "${ac_cv_objext+set}" = set; then
1992  echo $ECHO_N "(cached) $ECHO_C" >&6
1993else
1994  cat >conftest.$ac_ext <<_ACEOF
1995/* confdefs.h.  */
1996_ACEOF
1997cat confdefs.h >>conftest.$ac_ext
1998cat >>conftest.$ac_ext <<_ACEOF
1999/* end confdefs.h.  */
2000
2001int
2002main ()
2003{
2004
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009rm -f conftest.o conftest.obj
2010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011  (eval $ac_compile) 2>&5
2012  ac_status=$?
2013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014  (exit $ac_status); }; then
2015  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2016  case $ac_file in
2017    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2018    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2019       break;;
2020  esac
2021done
2022else
2023  echo "$as_me: failed program was:" >&5
2024sed 's/^/| /' conftest.$ac_ext >&5
2025
2026{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2027See \`config.log' for more details." >&5
2028echo "$as_me: error: cannot compute suffix of object files: cannot compile
2029See \`config.log' for more details." >&2;}
2030   { (exit 1); exit 1; }; }
2031fi
2032
2033rm -f conftest.$ac_cv_objext conftest.$ac_ext
2034fi
2035echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2036echo "${ECHO_T}$ac_cv_objext" >&6
2037OBJEXT=$ac_cv_objext
2038ac_objext=$OBJEXT
2039echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2040echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2041if test "${ac_cv_c_compiler_gnu+set}" = set; then
2042  echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044  cat >conftest.$ac_ext <<_ACEOF
2045/* confdefs.h.  */
2046_ACEOF
2047cat confdefs.h >>conftest.$ac_ext
2048cat >>conftest.$ac_ext <<_ACEOF
2049/* end confdefs.h.  */
2050
2051int
2052main ()
2053{
2054#ifndef __GNUC__
2055       choke me
2056#endif
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062rm -f conftest.$ac_objext
2063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064  (eval $ac_compile) 2>conftest.er1
2065  ac_status=$?
2066  grep -v '^ *+' conftest.er1 >conftest.err
2067  rm -f conftest.er1
2068  cat conftest.err >&5
2069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070  (exit $ac_status); } &&
2071         { ac_try='test -z "$ac_c_werror_flag"
2072                         || test ! -s conftest.err'
2073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074  (eval $ac_try) 2>&5
2075  ac_status=$?
2076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077  (exit $ac_status); }; } &&
2078         { ac_try='test -s conftest.$ac_objext'
2079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080  (eval $ac_try) 2>&5
2081  ac_status=$?
2082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083  (exit $ac_status); }; }; then
2084  ac_compiler_gnu=yes
2085else
2086  echo "$as_me: failed program was:" >&5
2087sed 's/^/| /' conftest.$ac_ext >&5
2088
2089ac_compiler_gnu=no
2090fi
2091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2092ac_cv_c_compiler_gnu=$ac_compiler_gnu
2093
2094fi
2095echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2096echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2097GCC=`test $ac_compiler_gnu = yes && echo yes`
2098ac_test_CFLAGS=${CFLAGS+set}
2099ac_save_CFLAGS=$CFLAGS
2100CFLAGS="-g"
2101echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2102echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2103if test "${ac_cv_prog_cc_g+set}" = set; then
2104  echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
2106  cat >conftest.$ac_ext <<_ACEOF
2107/* confdefs.h.  */
2108_ACEOF
2109cat confdefs.h >>conftest.$ac_ext
2110cat >>conftest.$ac_ext <<_ACEOF
2111/* end confdefs.h.  */
2112
2113int
2114main ()
2115{
2116
2117  ;
2118  return 0;
2119}
2120_ACEOF
2121rm -f conftest.$ac_objext
2122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2123  (eval $ac_compile) 2>conftest.er1
2124  ac_status=$?
2125  grep -v '^ *+' conftest.er1 >conftest.err
2126  rm -f conftest.er1
2127  cat conftest.err >&5
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); } &&
2130         { ac_try='test -z "$ac_c_werror_flag"
2131                         || test ! -s conftest.err'
2132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133  (eval $ac_try) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }; } &&
2137         { ac_try='test -s conftest.$ac_objext'
2138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139  (eval $ac_try) 2>&5
2140  ac_status=$?
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); }; }; then
2143  ac_cv_prog_cc_g=yes
2144else
2145  echo "$as_me: failed program was:" >&5
2146sed 's/^/| /' conftest.$ac_ext >&5
2147
2148ac_cv_prog_cc_g=no
2149fi
2150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2151fi
2152echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2153echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2154if test "$ac_test_CFLAGS" = set; then
2155  CFLAGS=$ac_save_CFLAGS
2156elif test $ac_cv_prog_cc_g = yes; then
2157  if test "$GCC" = yes; then
2158    CFLAGS="-g -O2"
2159  else
2160    CFLAGS="-g"
2161  fi
2162else
2163  if test "$GCC" = yes; then
2164    CFLAGS="-O2"
2165  else
2166    CFLAGS=
2167  fi
2168fi
2169echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2170echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2171if test "${ac_cv_prog_cc_stdc+set}" = set; then
2172  echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174  ac_cv_prog_cc_stdc=no
2175ac_save_CC=$CC
2176cat >conftest.$ac_ext <<_ACEOF
2177/* confdefs.h.  */
2178_ACEOF
2179cat confdefs.h >>conftest.$ac_ext
2180cat >>conftest.$ac_ext <<_ACEOF
2181/* end confdefs.h.  */
2182#include <stdarg.h>
2183#include <stdio.h>
2184#include <sys/types.h>
2185#include <sys/stat.h>
2186/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2187struct buf { int x; };
2188FILE * (*rcsopen) (struct buf *, struct stat *, int);
2189static char *e (p, i)
2190     char **p;
2191     int i;
2192{
2193  return p[i];
2194}
2195static char *f (char * (*g) (char **, int), char **p, ...)
2196{
2197  char *s;
2198  va_list v;
2199  va_start (v,p);
2200  s = g (p, va_arg (v,int));
2201  va_end (v);
2202  return s;
2203}
2204
2205/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2206   function prototypes and stuff, but not '\xHH' hex character constants.
2207   These don't provoke an error unfortunately, instead are silently treated
2208   as 'x'.  The following induces an error, until -std1 is added to get
2209   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2210   array size at least.  It's necessary to write '\x00'==0 to get something
2211   that's true only with -std1.  */
2212int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2213
2214int test (int i, double x);
2215struct s1 {int (*f) (int a);};
2216struct s2 {int (*f) (double a);};
2217int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2218int argc;
2219char **argv;
2220int
2221main ()
2222{
2223return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2224  ;
2225  return 0;
2226}
2227_ACEOF
2228# Don't try gcc -ansi; that turns off useful extensions and
2229# breaks some systems' header files.
2230# AIX                   -qlanglvl=ansi
2231# Ultrix and OSF/1      -std1
2232# HP-UX 10.20 and later -Ae
2233# HP-UX older versions  -Aa -D_HPUX_SOURCE
2234# SVR4                  -Xc -D__EXTENSIONS__
2235for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2236do
2237  CC="$ac_save_CC $ac_arg"
2238  rm -f conftest.$ac_objext
2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240  (eval $ac_compile) 2>conftest.er1
2241  ac_status=$?
2242  grep -v '^ *+' conftest.er1 >conftest.err
2243  rm -f conftest.er1
2244  cat conftest.err >&5
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); } &&
2247         { ac_try='test -z "$ac_c_werror_flag"
2248                         || test ! -s conftest.err'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; } &&
2254         { ac_try='test -s conftest.$ac_objext'
2255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256  (eval $ac_try) 2>&5
2257  ac_status=$?
2258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259  (exit $ac_status); }; }; then
2260  ac_cv_prog_cc_stdc=$ac_arg
2261break
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266fi
2267rm -f conftest.err conftest.$ac_objext
2268done
2269rm -f conftest.$ac_ext conftest.$ac_objext
2270CC=$ac_save_CC
2271
2272fi
2273
2274case "x$ac_cv_prog_cc_stdc" in
2275  x|xno)
2276    echo "$as_me:$LINENO: result: none needed" >&5
2277echo "${ECHO_T}none needed" >&6 ;;
2278  *)
2279    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2280echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2281    CC="$CC $ac_cv_prog_cc_stdc" ;;
2282esac
2283
2284# Some people use a C++ compiler to compile C.  Since we use `exit',
2285# in C++ we need to declare it.  In case someone uses the same compiler
2286# for both compiling C and C++ we need to have the C++ compiler decide
2287# the declaration of exit, since it's the most demanding environment.
2288cat >conftest.$ac_ext <<_ACEOF
2289#ifndef __cplusplus
2290  choke me
2291#endif
2292_ACEOF
2293rm -f conftest.$ac_objext
2294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295  (eval $ac_compile) 2>conftest.er1
2296  ac_status=$?
2297  grep -v '^ *+' conftest.er1 >conftest.err
2298  rm -f conftest.er1
2299  cat conftest.err >&5
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); } &&
2302         { ac_try='test -z "$ac_c_werror_flag"
2303                         || test ! -s conftest.err'
2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305  (eval $ac_try) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; } &&
2309         { ac_try='test -s conftest.$ac_objext'
2310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311  (eval $ac_try) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; }; then
2315  for ac_declaration in \
2316   '' \
2317   'extern "C" void std::exit (int) throw (); using std::exit;' \
2318   'extern "C" void std::exit (int); using std::exit;' \
2319   'extern "C" void exit (int) throw ();' \
2320   'extern "C" void exit (int);' \
2321   'void exit (int);'
2322do
2323  cat >conftest.$ac_ext <<_ACEOF
2324/* confdefs.h.  */
2325_ACEOF
2326cat confdefs.h >>conftest.$ac_ext
2327cat >>conftest.$ac_ext <<_ACEOF
2328/* end confdefs.h.  */
2329$ac_declaration
2330#include <stdlib.h>
2331int
2332main ()
2333{
2334exit (42);
2335  ;
2336  return 0;
2337}
2338_ACEOF
2339rm -f conftest.$ac_objext
2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341  (eval $ac_compile) 2>conftest.er1
2342  ac_status=$?
2343  grep -v '^ *+' conftest.er1 >conftest.err
2344  rm -f conftest.er1
2345  cat conftest.err >&5
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); } &&
2348         { ac_try='test -z "$ac_c_werror_flag"
2349                         || test ! -s conftest.err'
2350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351  (eval $ac_try) 2>&5
2352  ac_status=$?
2353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354  (exit $ac_status); }; } &&
2355         { ac_try='test -s conftest.$ac_objext'
2356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357  (eval $ac_try) 2>&5
2358  ac_status=$?
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); }; }; then
2361  :
2362else
2363  echo "$as_me: failed program was:" >&5
2364sed 's/^/| /' conftest.$ac_ext >&5
2365
2366continue
2367fi
2368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369  cat >conftest.$ac_ext <<_ACEOF
2370/* confdefs.h.  */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h.  */
2375$ac_declaration
2376int
2377main ()
2378{
2379exit (42);
2380  ;
2381  return 0;
2382}
2383_ACEOF
2384rm -f conftest.$ac_objext
2385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386  (eval $ac_compile) 2>conftest.er1
2387  ac_status=$?
2388  grep -v '^ *+' conftest.er1 >conftest.err
2389  rm -f conftest.er1
2390  cat conftest.err >&5
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); } &&
2393         { ac_try='test -z "$ac_c_werror_flag"
2394                         || test ! -s conftest.err'
2395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396  (eval $ac_try) 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }; } &&
2400         { ac_try='test -s conftest.$ac_objext'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; }; then
2406  break
2407else
2408  echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411fi
2412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413done
2414rm -f conftest*
2415if test -n "$ac_declaration"; then
2416  echo '#ifdef __cplusplus' >>confdefs.h
2417  echo $ac_declaration      >>confdefs.h
2418  echo '#endif'             >>confdefs.h
2419fi
2420
2421else
2422  echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425fi
2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432
2433CFLAGS="$save_cflags"
2434
2435echo "$as_me:$LINENO: checking for C compiler options" >&5
2436echo $ECHO_N "checking for C compiler options... $ECHO_C" >&6
2437if test "${coin_cv_cflags+set}" = set; then
2438  echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440  if test x"$CFLAGS" = x; then
2441
2442  coin_add_cflags=
2443  coin_opt_cflags=
2444  coin_dbg_cflags=
2445  coin_warn_cflags=
2446
2447  if test "$GCC" = "yes"; then
2448    case "$CC" in
2449      icc | */icc)
2450        ;;
2451      *)
2452        coin_opt_cflags="-O3 -fomit-frame-pointer"
2453        coin_add_cflags="-pipe"
2454        coin_dbg_cflags="-g"
2455        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2456
2457        case $build in
2458          *-cygwin*)
2459            CFLAGS="-mno-cygwin"
2460            cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h.  */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h.  */
2466
2467int
2468main ()
2469{
2470int i=0; i++;
2471  ;
2472  return 0;
2473}
2474_ACEOF
2475rm -f conftest.$ac_objext conftest$ac_exeext
2476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477  (eval $ac_link) 2>conftest.er1
2478  ac_status=$?
2479  grep -v '^ *+' conftest.er1 >conftest.err
2480  rm -f conftest.er1
2481  cat conftest.err >&5
2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483  (exit $ac_status); } &&
2484         { ac_try='test -z "$ac_c_werror_flag"
2485                         || test ! -s conftest.err'
2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487  (eval $ac_try) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; } &&
2491         { ac_try='test -s conftest$ac_exeext'
2492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493  (eval $ac_try) 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }; }; then
2497  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2498else
2499  echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502fi
2503rm -f conftest.err conftest.$ac_objext \
2504      conftest$ac_exeext conftest.$ac_ext
2505            CFLAGS=
2506          ;;
2507        esac
2508        ;;
2509    esac
2510  fi
2511  if test -z "$coin_opt_cflags"; then
2512    case $build in
2513      *-cygwin* | *-mingw*)
2514        case "$CC" in
2515          cl | */cl)
2516            coin_opt_cflags='-O2'
2517            coin_add_cflags='-nologo'
2518            coin_dbg_cflags='-Yd'
2519            ;;
2520        esac
2521        ;;
2522      *-linux-*)
2523        case "$CC" in
2524          icc | */icc)
2525            coin_opt_cflags="-O3 -ip"
2526            coin_add_cflags=""
2527            coin_dbg_cflags="-g"
2528            # Check if -i_dynamic is necessary (for new glibc library)
2529            CFLAGS=
2530            cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h.  */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h.  */
2536
2537int
2538main ()
2539{
2540int i=0; i++;
2541  ;
2542  return 0;
2543}
2544_ACEOF
2545rm -f conftest.$ac_objext conftest$ac_exeext
2546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547  (eval $ac_link) 2>conftest.er1
2548  ac_status=$?
2549  grep -v '^ *+' conftest.er1 >conftest.err
2550  rm -f conftest.er1
2551  cat conftest.err >&5
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); } &&
2554         { ac_try='test -z "$ac_c_werror_flag"
2555                         || test ! -s conftest.err'
2556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557  (eval $ac_try) 2>&5
2558  ac_status=$?
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); }; } &&
2561         { ac_try='test -s conftest$ac_exeext'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; }; then
2567  :
2568else
2569  echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572coin_add_cflags="-i_dynamic $coin_add_cflags"
2573fi
2574rm -f conftest.err conftest.$ac_objext \
2575      conftest$ac_exeext conftest.$ac_ext
2576            ;;
2577          pgcc | */pgcc)
2578            coin_opt_cflags="-fast"
2579            coin_add_cflags="-Kieee -pc 64"
2580            coin_dbg_cflags="-g"
2581            ;;
2582        esac
2583        ;;
2584      *-ibm-*)
2585        case "$CC" in
2586          xlc* | */xlc* | mpxlc* | */mpxlc*)
2587            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
2588            coin_add_cflags="-bmaxdata:0x80000000"
2589            coin_dbg_cflags="-g"
2590          ;;
2591        esac
2592        ;;
2593      *-hp-*)
2594        coin_opt_cflags="-O"
2595        coin_add_cflags="-Ae"
2596        coin_dbg_cflags="-g"
2597        ;;
2598      *-sun-*)
2599        coin_opt_cflags="-xO4 -xtarget=native"
2600        coin_dbg_cflags="-g"
2601        ;;
2602      *-sgi-*)
2603        coin_opt_cflags="-O -OPT:Olimit=0"
2604        coin_dbg_cflags="-g"
2605        ;;
2606    esac
2607  fi
2608
2609  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2610    coin_dbg_cflags="-g"
2611  fi
2612
2613  if test "$coin_debug_compile" = "true"; then
2614    CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2615  else
2616    if test -z "$coin_opt_cflags"; then
2617      # Try if -O option works if nothing else is set
2618      CFLAGS="-O"
2619      cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h.  */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h.  */
2625
2626int
2627main ()
2628{
2629int i=0; i++;
2630  ;
2631  return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext conftest$ac_exeext
2635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636  (eval $ac_link) 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } &&
2643         { ac_try='test -z "$ac_c_werror_flag"
2644                         || test ! -s conftest.err'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; } &&
2650         { ac_try='test -s conftest$ac_exeext'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; }; then
2656  coin_opt_cflags="-O"
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext \
2663      conftest$ac_exeext conftest.$ac_ext
2664    fi
2665    CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $CDEFS $coin_warn_cflags"
2666  fi
2667fi
2668
2669# Try if CFLAGS works
2670cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h.  */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h.  */
2676
2677int
2678main ()
2679{
2680int i=0; i++;
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685rm -f conftest.$ac_objext conftest$ac_exeext
2686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2687  (eval $ac_link) 2>conftest.er1
2688  ac_status=$?
2689  grep -v '^ *+' conftest.er1 >conftest.err
2690  rm -f conftest.er1
2691  cat conftest.err >&5
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); } &&
2694         { ac_try='test -z "$ac_c_werror_flag"
2695                         || test ! -s conftest.err'
2696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697  (eval $ac_try) 2>&5
2698  ac_status=$?
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); }; } &&
2701         { ac_try='test -s conftest$ac_exeext'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; }; then
2707  :
2708else
2709  echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712CFLAGS=
2713fi
2714rm -f conftest.err conftest.$ac_objext \
2715      conftest$ac_exeext conftest.$ac_ext
2716if test -z "$CFLAGS"; then
2717  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
2718echo "$as_me: WARNING: The value CFLAGS=\"$CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
2719  CFLAGS='-O'
2720  cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726
2727int
2728main ()
2729{
2730int i=0; i++;
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext conftest$ac_exeext
2736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2737  (eval $ac_link) 2>conftest.er1
2738  ac_status=$?
2739  grep -v '^ *+' conftest.er1 >conftest.err
2740  rm -f conftest.er1
2741  cat conftest.err >&5
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); } &&
2744         { ac_try='test -z "$ac_c_werror_flag"
2745                         || test ! -s conftest.err'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; } &&
2751         { ac_try='test -s conftest$ac_exeext'
2752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753  (eval $ac_try) 2>&5
2754  ac_status=$?
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); }; }; then
2757  :
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762CFLAGS=
2763fi
2764rm -f conftest.err conftest.$ac_objext \
2765      conftest$ac_exeext conftest.$ac_ext
2766  if test -z "$CFLAGS"; then
2767    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
2768echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
2769  fi
2770fi
2771coin_cv_cflags="$CFLAGS"
2772
2773fi
2774echo "$as_me:$LINENO: result: $coin_cv_cflags" >&5
2775echo "${ECHO_T}$coin_cv_cflags" >&6 # AC_CACHE_CHECK([for C compiler options CXXFLAGS]
2776CFLAGS="$coin_cv_cflags"
2777
2778ac_ext=c
2779ac_cpp='$CPP $CPPFLAGS'
2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783
2784
2785
2786 #Let's try if that overcomes configuration problem with VC++ 6.0
2787ac_ext=cc
2788ac_cpp='$CXXCPP $CPPFLAGS'
2789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2792
2793
2794
2795
2796coin_has_cxx=yes
2797
2798save_cxxflags="$CXXFLAGS"
2799case $build in
2800  *-cygwin* | *-mingw*)
2801             comps="g++ cl" ;;
2802  *-darwin*) comps="g++ c++ CC" ;;
2803          *) comps="xlC aCC CC g++ c++ pgCC icpc" ;;
2804esac
2805ac_ext=cc
2806ac_cpp='$CXXCPP $CPPFLAGS'
2807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2810if test -n "$ac_tool_prefix"; then
2811  for ac_prog in $CCC $comps
2812  do
2813    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815echo "$as_me:$LINENO: checking for $ac_word" >&5
2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817if test "${ac_cv_prog_CXX+set}" = set; then
2818  echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820  if test -n "$CXX"; then
2821  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826  IFS=$as_save_IFS
2827  test -z "$as_dir" && as_dir=.
2828  for ac_exec_ext in '' $ac_executable_extensions; do
2829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832    break 2
2833  fi
2834done
2835done
2836
2837fi
2838fi
2839CXX=$ac_cv_prog_CXX
2840if test -n "$CXX"; then
2841  echo "$as_me:$LINENO: result: $CXX" >&5
2842echo "${ECHO_T}$CXX" >&6
2843else
2844  echo "$as_me:$LINENO: result: no" >&5
2845echo "${ECHO_T}no" >&6
2846fi
2847
2848    test -n "$CXX" && break
2849  done
2850fi
2851if test -z "$CXX"; then
2852  ac_ct_CXX=$CXX
2853  for ac_prog in $CCC $comps
2854do
2855  # Extract the first word of "$ac_prog", so it can be a program name with args.
2856set dummy $ac_prog; ac_word=$2
2857echo "$as_me:$LINENO: checking for $ac_word" >&5
2858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860  echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
2862  if test -n "$ac_ct_CXX"; then
2863  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870  for ac_exec_ext in '' $ac_executable_extensions; do
2871  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872    ac_cv_prog_ac_ct_CXX="$ac_prog"
2873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874    break 2
2875  fi
2876done
2877done
2878
2879fi
2880fi
2881ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2882if test -n "$ac_ct_CXX"; then
2883  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2884echo "${ECHO_T}$ac_ct_CXX" >&6
2885else
2886  echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6
2888fi
2889
2890  test -n "$ac_ct_CXX" && break
2891done
2892test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2893
2894  CXX=$ac_ct_CXX
2895fi
2896
2897
2898# Provide some information about the compiler.
2899echo "$as_me:$LINENO:" \
2900     "checking for C++ compiler version" >&5
2901ac_compiler=`set X $ac_compile; echo $2`
2902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2903  (eval $ac_compiler --version </dev/null >&5) 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }
2907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2908  (eval $ac_compiler -v </dev/null >&5) 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }
2912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2913  (eval $ac_compiler -V </dev/null >&5) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }
2917
2918echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2919echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2920if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2921  echo $ECHO_N "(cached) $ECHO_C" >&6
2922else
2923  cat >conftest.$ac_ext <<_ACEOF
2924/* confdefs.h.  */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h.  */
2929
2930int
2931main ()
2932{
2933#ifndef __GNUC__
2934       choke me
2935#endif
2936
2937  ;
2938  return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext
2942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943  (eval $ac_compile) 2>conftest.er1
2944  ac_status=$?
2945  grep -v '^ *+' conftest.er1 >conftest.err
2946  rm -f conftest.er1
2947  cat conftest.err >&5
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); } &&
2950         { ac_try='test -z "$ac_cxx_werror_flag"
2951                         || test ! -s conftest.err'
2952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953  (eval $ac_try) 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }; } &&
2957         { ac_try='test -s conftest.$ac_objext'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; }; then
2963  ac_compiler_gnu=yes
2964else
2965  echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968ac_compiler_gnu=no
2969fi
2970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2971ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2972
2973fi
2974echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2975echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2976GXX=`test $ac_compiler_gnu = yes && echo yes`
2977ac_test_CXXFLAGS=${CXXFLAGS+set}
2978ac_save_CXXFLAGS=$CXXFLAGS
2979CXXFLAGS="-g"
2980echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2981echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2982if test "${ac_cv_prog_cxx_g+set}" = set; then
2983  echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985  cat >conftest.$ac_ext <<_ACEOF
2986/* confdefs.h.  */
2987_ACEOF
2988cat confdefs.h >>conftest.$ac_ext
2989cat >>conftest.$ac_ext <<_ACEOF
2990/* end confdefs.h.  */
2991
2992int
2993main ()
2994{
2995
2996  ;
2997  return 0;
2998}
2999_ACEOF
3000rm -f conftest.$ac_objext
3001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002  (eval $ac_compile) 2>conftest.er1
3003  ac_status=$?
3004  grep -v '^ *+' conftest.er1 >conftest.err
3005  rm -f conftest.er1
3006  cat conftest.err >&5
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); } &&
3009         { ac_try='test -z "$ac_cxx_werror_flag"
3010                         || test ! -s conftest.err'
3011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012  (eval $ac_try) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }; } &&
3016         { ac_try='test -s conftest.$ac_objext'
3017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018  (eval $ac_try) 2>&5
3019  ac_status=$?
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; }; then
3022  ac_cv_prog_cxx_g=yes
3023else
3024  echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027ac_cv_prog_cxx_g=no
3028fi
3029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030fi
3031echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3032echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3033if test "$ac_test_CXXFLAGS" = set; then
3034  CXXFLAGS=$ac_save_CXXFLAGS
3035elif test $ac_cv_prog_cxx_g = yes; then
3036  if test "$GXX" = yes; then
3037    CXXFLAGS="-g -O2"
3038  else
3039    CXXFLAGS="-g"
3040  fi
3041else
3042  if test "$GXX" = yes; then
3043    CXXFLAGS="-O2"
3044  else
3045    CXXFLAGS=
3046  fi
3047fi
3048for ac_declaration in \
3049   '' \
3050   'extern "C" void std::exit (int) throw (); using std::exit;' \
3051   'extern "C" void std::exit (int); using std::exit;' \
3052   'extern "C" void exit (int) throw ();' \
3053   'extern "C" void exit (int);' \
3054   'void exit (int);'
3055do
3056  cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h.  */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h.  */
3062$ac_declaration
3063#include <stdlib.h>
3064int
3065main ()
3066{
3067exit (42);
3068  ;
3069  return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext
3073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074  (eval $ac_compile) 2>conftest.er1
3075  ac_status=$?
3076  grep -v '^ *+' conftest.er1 >conftest.err
3077  rm -f conftest.er1
3078  cat conftest.err >&5
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); } &&
3081         { ac_try='test -z "$ac_cxx_werror_flag"
3082                         || test ! -s conftest.err'
3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084  (eval $ac_try) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }; } &&
3088         { ac_try='test -s conftest.$ac_objext'
3089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090  (eval $ac_try) 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; }; then
3094  :
3095else
3096  echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099continue
3100fi
3101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102  cat >conftest.$ac_ext <<_ACEOF
3103/* confdefs.h.  */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h.  */
3108$ac_declaration
3109int
3110main ()
3111{
3112exit (42);
3113  ;
3114  return 0;
3115}
3116_ACEOF
3117rm -f conftest.$ac_objext
3118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119  (eval $ac_compile) 2>conftest.er1
3120  ac_status=$?
3121  grep -v '^ *+' conftest.er1 >conftest.err
3122  rm -f conftest.er1
3123  cat conftest.err >&5
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); } &&
3126         { ac_try='test -z "$ac_cxx_werror_flag"
3127                         || test ! -s conftest.err'
3128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129  (eval $ac_try) 2>&5
3130  ac_status=$?
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); }; } &&
3133         { ac_try='test -s conftest.$ac_objext'
3134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135  (eval $ac_try) 2>&5
3136  ac_status=$?
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); }; }; then
3139  break
3140else
3141  echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144fi
3145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146done
3147rm -f conftest*
3148if test -n "$ac_declaration"; then
3149  echo '#ifdef __cplusplus' >>confdefs.h
3150  echo $ac_declaration      >>confdefs.h
3151  echo '#endif'             >>confdefs.h
3152fi
3153
3154ac_ext=cc
3155ac_cpp='$CXXCPP $CPPFLAGS'
3156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3159
3160CXXFLAGS="$save_cxxflags"
3161
3162echo "$as_me:$LINENO: checking for C++ compiler options" >&5
3163echo $ECHO_N "checking for C++ compiler options... $ECHO_C" >&6
3164if test "${coin_cv_cxxflags+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  if test x"$CXXFLAGS" = x; then
3168
3169# ToDo decide whether we want -DNDEBUG for optimization
3170  coin_add_cxxflags=
3171  coin_opt_cxxflags=
3172  coin_dbg_cxxflags=
3173  coin_warn_cxxflags=
3174
3175  if test "$GXX" = "yes"; then
3176    case "$CXX" in
3177      icpc | */icpc)
3178        ;;
3179      *)
3180# ToDo decide about unroll-loops
3181        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3182        coin_add_cxxflags="-pipe"
3183        coin_dbg_cxxflags="-g"
3184        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3185
3186        case $build in
3187          *-cygwin*)
3188            CXXFLAGS="-mno-cygwin"
3189            cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h.  */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h.  */
3195
3196int
3197main ()
3198{
3199int i=0; i++;
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204rm -f conftest.$ac_objext conftest$ac_exeext
3205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3206  (eval $ac_link) 2>conftest.er1
3207  ac_status=$?
3208  grep -v '^ *+' conftest.er1 >conftest.err
3209  rm -f conftest.er1
3210  cat conftest.err >&5
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); } &&
3213         { ac_try='test -z "$ac_cxx_werror_flag"
3214                         || test ! -s conftest.err'
3215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216  (eval $ac_try) 2>&5
3217  ac_status=$?
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); }; } &&
3220         { ac_try='test -s conftest$ac_exeext'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; }; then
3226  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3227else
3228  echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231fi
3232rm -f conftest.err conftest.$ac_objext \
3233      conftest$ac_exeext conftest.$ac_ext
3234            CXXFLAGS=
3235            ;;
3236        esac
3237        ;;
3238    esac
3239  fi
3240  if test -z "$coin_opt_cxxflags"; then
3241    case $build in
3242      *-cygwin* | *-mingw*)
3243        case "$CXX" in
3244          cl | */cl)
3245            coin_opt_cxxflags='-O2'
3246            coin_add_cxxflags='-nologo -EHsc -GR -MT'
3247            coin_dbg_cxxflags='-Yd'
3248            ;;
3249        esac
3250        ;;
3251      *-linux-*)
3252        case "$CXX" in
3253          icpc | */icpc)
3254            coin_opt_cxxflags="-O3 -ip"
3255            coin_add_cxxflags=""
3256            coin_dbg_cxxflags="-g"
3257            # Check if -i_dynamic is necessary (for new glibc library)
3258            CXXFLAGS=
3259            cat >conftest.$ac_ext <<_ACEOF
3260/* confdefs.h.  */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h.  */
3265
3266int
3267main ()
3268{
3269int i=0; i++;
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274rm -f conftest.$ac_objext conftest$ac_exeext
3275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3276  (eval $ac_link) 2>conftest.er1
3277  ac_status=$?
3278  grep -v '^ *+' conftest.er1 >conftest.err
3279  rm -f conftest.er1
3280  cat conftest.err >&5
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); } &&
3283         { ac_try='test -z "$ac_cxx_werror_flag"
3284                         || test ! -s conftest.err'
3285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286  (eval $ac_try) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }; } &&
3290         { ac_try='test -s conftest$ac_exeext'
3291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292  (eval $ac_try) 2>&5
3293  ac_status=$?
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); }; }; then
3296  :
3297else
3298  echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3302fi
3303rm -f conftest.err conftest.$ac_objext \
3304      conftest$ac_exeext conftest.$ac_ext
3305            ;;
3306          pgCC | */pgCC)
3307            coin_opt_cxxflags="-fast"
3308            coin_add_cxxflags="-Kieee -pc 64"
3309            coin_dbg_cxxflags="-g"
3310            ;;
3311        esac
3312        ;;
3313      *-ibm-*)
3314        case "$CXX" in
3315          xlC* | */xlC* | mpxlC* | */mpxlC*)
3316            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
3317            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3318            coin_dbg_cxxflags="-g"
3319            ;;
3320        esac
3321        ;;
3322      *-hp-*)
3323        case "$CXX" in
3324          aCC | */aCC )
3325            coin_opt_cxxflags="-O"
3326            coin_add_cxxflags="-AA"
3327            coin_dbg_cxxflags="-g"
3328            ;;
3329        esac
3330        ;;
3331      *-sun-*)
3332          coin_opt_cxxflags="-O4 -xtarget=native"
3333          coin_dbg_cxxflags="-g"
3334        ;;
3335    esac
3336  fi
3337
3338  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3339    coin_dbg_cxxflags="-g"
3340  fi
3341
3342  if test "$coin_debug_compile" = "true"; then
3343    CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3344  else
3345    if test -z "$coin_opt_cxxflags"; then
3346      # Try if -O option works if nothing else is set
3347      CXXFLAGS="-O"
3348      cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h.  */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h.  */
3354
3355int
3356main ()
3357{
3358int i=0; i++;
3359  ;
3360  return 0;
3361}
3362_ACEOF
3363rm -f conftest.$ac_objext conftest$ac_exeext
3364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365  (eval $ac_link) 2>conftest.er1
3366  ac_status=$?
3367  grep -v '^ *+' conftest.er1 >conftest.err
3368  rm -f conftest.er1
3369  cat conftest.err >&5
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); } &&
3372         { ac_try='test -z "$ac_cxx_werror_flag"
3373                         || test ! -s conftest.err'
3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375  (eval $ac_try) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; } &&
3379         { ac_try='test -s conftest$ac_exeext'
3380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381  (eval $ac_try) 2>&5
3382  ac_status=$?
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); }; }; then
3385  coin_opt_cxxflags="-O"
3386else
3387  echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390fi
3391rm -f conftest.err conftest.$ac_objext \
3392      conftest$ac_exeext conftest.$ac_ext
3393    fi
3394    CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $CXXDEFS $coin_warn_cxxflags"
3395  fi
3396fi
3397
3398# Try if CXXFLAGS works
3399cat >conftest.$ac_ext <<_ACEOF
3400/* confdefs.h.  */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409int i=0; i++;
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414rm -f conftest.$ac_objext conftest$ac_exeext
3415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3416  (eval $ac_link) 2>conftest.er1
3417  ac_status=$?
3418  grep -v '^ *+' conftest.er1 >conftest.err
3419  rm -f conftest.er1
3420  cat conftest.err >&5
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); } &&
3423         { ac_try='test -z "$ac_cxx_werror_flag"
3424                         || test ! -s conftest.err'
3425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426  (eval $ac_try) 2>&5
3427  ac_status=$?
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); }; } &&
3430         { ac_try='test -s conftest$ac_exeext'
3431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432  (eval $ac_try) 2>&5
3433  ac_status=$?
3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435  (exit $ac_status); }; }; then
3436  :
3437else
3438  echo "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441CXXFLAGS=
3442fi
3443rm -f conftest.err conftest.$ac_objext \
3444      conftest$ac_exeext conftest.$ac_ext
3445if test -z "$CXXFLAGS"; then
3446  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
3447echo "$as_me: WARNING: The flags CXXFLAGS=\"$CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
3448  CXXFLAGS='-O'
3449  cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459int i=0; i++;
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext conftest$ac_exeext
3465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3466  (eval $ac_link) 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } &&
3473         { ac_try='test -z "$ac_cxx_werror_flag"
3474                         || test ! -s conftest.err'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; } &&
3480         { ac_try='test -s conftest$ac_exeext'
3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482  (eval $ac_try) 2>&5
3483  ac_status=$?
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); }; }; then
3486  :
3487else
3488  echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491CXXFLAGS=
3492fi
3493rm -f conftest.err conftest.$ac_objext \
3494      conftest$ac_exeext conftest.$ac_ext
3495  if test -z "$CXXFLAGS"; then
3496    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
3497echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
3498  fi
3499fi
3500coin_cv_cxxflags="$CXXFLAGS"
3501
3502fi
3503echo "$as_me:$LINENO: result: $coin_cv_cxxflags" >&5
3504echo "${ECHO_T}$coin_cv_cxxflags" >&6 # AC_CACHE_CHECK([for C++ compiler options CXXFLAGS]
3505CXXFLAGS="$coin_cv_cxxflags"
3506
3507ac_ext=c
3508ac_cpp='$CPP $CPPFLAGS'
3509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512
3513
3514
3515# Initialize automake and libtool
3516
3517# On Cygwin, building DLLs doesn't work
3518case $build in
3519  *-cygwin*)
3520    coin_disable_shared=yes
3521    platform=Cygwin
3522  ;;
3523  *-mingw*)
3524    case $CXX in
3525      cl)
3526        coin_disable_shared=yes
3527        platform="Msys with cl"
3528    ;;
3529    esac
3530  ;;
3531esac
3532if test x"$coin_disable_shared" = xyes; then
3533  if test x"$enable_shared" = xyes; then
3534    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3535echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3536  fi
3537#  enable_shared=no
3538fi
3539# By default, we only want the shared objects to be compiled
3540# Check whether --enable-static or --disable-static was given.
3541if test "${enable_static+set}" = set; then
3542  enableval="$enable_static"
3543  p=${PACKAGE-default}
3544    case $enableval in
3545    yes) enable_static=yes ;;
3546    no) enable_static=no ;;
3547    *)
3548     enable_static=no
3549      # Look at the argument we got.  We use all the common list separators.
3550      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3551      for pkg in $enableval; do
3552        IFS="$lt_save_ifs"
3553        if test "X$pkg" = "X$p"; then
3554          enable_static=yes
3555        fi
3556      done
3557      IFS="$lt_save_ifs"
3558      ;;
3559    esac
3560else
3561  enable_static=no
3562fi;
3563
3564
3565
3566echo "$as_me:$LINENO: checking for egrep" >&5
3567echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3568if test "${ac_cv_prog_egrep+set}" = set; then
3569  echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3572    then ac_cv_prog_egrep='grep -E'
3573    else ac_cv_prog_egrep='egrep'
3574    fi
3575fi
3576echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3577echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3578 EGREP=$ac_cv_prog_egrep
3579
3580
3581am__api_version="1.9"
3582# Find a good install program.  We prefer a C program (faster),
3583# so one script is as good as another.  But avoid the broken or
3584# incompatible versions:
3585# SysV /etc/install, /usr/sbin/install
3586# SunOS /usr/etc/install
3587# IRIX /sbin/install
3588# AIX /bin/install
3589# AmigaOS /C/install, which installs bootblocks on floppy discs
3590# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3591# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3592# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3593# OS/2's system install, which has a completely different semantic
3594# ./install, which can be erroneously created by make from ./install.sh.
3595echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3596echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3597if test -z "$INSTALL"; then
3598if test "${ac_cv_path_install+set}" = set; then
3599  echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606  # Account for people who put trailing slashes in PATH elements.
3607case $as_dir/ in
3608  ./ | .// | /cC/* | \
3609  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3610  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3611  /usr/ucb/* ) ;;
3612  *)
3613    # OSF1 and SCO ODT 3.0 have their own names for install.
3614    # Don't use installbsd from OSF since it installs stuff as root
3615    # by default.
3616    for ac_prog in ginstall scoinst install; do
3617      for ac_exec_ext in '' $ac_executable_extensions; do
3618        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3619          if test $ac_prog = install &&
3620            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3621            # AIX install.  It has an incompatible calling convention.
3622            :
3623          elif test $ac_prog = install &&
3624            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3625            # program-specific install script used by HP pwplus--don't use.
3626            :
3627          else
3628            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3629            break 3
3630          fi
3631        fi
3632      done
3633    done
3634    ;;
3635esac
3636done
3637
3638
3639fi
3640  if test "${ac_cv_path_install+set}" = set; then
3641    INSTALL=$ac_cv_path_install
3642  else
3643    # As a last resort, use the slow shell script.  We don't cache a
3644    # path for INSTALL within a source directory, because that will
3645    # break other packages using the cache if that directory is
3646    # removed, or if the path is relative.
3647    INSTALL=$ac_install_sh
3648  fi
3649fi
3650echo "$as_me:$LINENO: result: $INSTALL" >&5
3651echo "${ECHO_T}$INSTALL" >&6
3652
3653# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3654# It thinks the first close brace ends the variable substitution.
3655test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3656
3657test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3658
3659test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3660
3661echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3662echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3663# Just in case
3664sleep 1
3665echo timestamp > conftest.file
3666# Do `set' in a subshell so we don't clobber the current shell's
3667# arguments.  Must try -L first in case configure is actually a
3668# symlink; some systems play weird games with the mod time of symlinks
3669# (eg FreeBSD returns the mod time of the symlink's containing
3670# directory).
3671if (
3672   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3673   if test "$*" = "X"; then
3674      # -L didn't work.
3675      set X `ls -t $srcdir/configure conftest.file`
3676   fi
3677   rm -f conftest.file
3678   if test "$*" != "X $srcdir/configure conftest.file" \
3679      && test "$*" != "X conftest.file $srcdir/configure"; then
3680
3681      # If neither matched, then we have a broken ls.  This can happen
3682      # if, for instance, CONFIG_SHELL is bash and it inherits a
3683      # broken ls alias from the environment.  This has actually
3684      # happened.  Such a system could not be considered "sane".
3685      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3686alias in your environment" >&5
3687echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3688alias in your environment" >&2;}
3689   { (exit 1); exit 1; }; }
3690   fi
3691
3692   test "$2" = conftest.file
3693   )
3694then
3695   # Ok.
3696   :
3697else
3698   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3699Check your system clock" >&5
3700echo "$as_me: error: newly created file is older than distributed files!
3701Check your system clock" >&2;}
3702   { (exit 1); exit 1; }; }
3703fi
3704echo "$as_me:$LINENO: result: yes" >&5
3705echo "${ECHO_T}yes" >&6
3706test "$program_prefix" != NONE &&
3707  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3708# Use a double $ so make ignores it.
3709test "$program_suffix" != NONE &&
3710  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3711# Double any \ or $.  echo might interpret backslashes.
3712# By default was `s,x,x', remove it if useless.
3713cat <<\_ACEOF >conftest.sed
3714s/[\\$]/&&/g;s/;s,x,x,$//
3715_ACEOF
3716program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3717rm conftest.sed
3718
3719# expand $ac_aux_dir to an absolute path
3720am_aux_dir=`cd $ac_aux_dir && pwd`
3721
3722test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3723# Use eval to expand $SHELL
3724if eval "$MISSING --run true"; then
3725  am_missing_run="$MISSING --run "
3726else
3727  am_missing_run=
3728  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3729echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3730fi
3731
3732if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3733  # We used to keeping the `.' as first argument, in order to
3734  # allow $(mkdir_p) to be used without argument.  As in
3735  #   $(mkdir_p) $(somedir)
3736  # where $(somedir) is conditionally defined.  However this is wrong
3737  # for two reasons:
3738  #  1. if the package is installed by a user who cannot write `.'
3739  #     make install will fail,
3740  #  2. the above comment should most certainly read
3741  #     $(mkdir_p) $(DESTDIR)$(somedir)
3742  #     so it does not work when $(somedir) is undefined and
3743  #     $(DESTDIR) is not.
3744  #  To support the latter case, we have to write
3745  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3746  #  so the `.' trick is pointless.
3747  mkdir_p='mkdir -p --'
3748else
3749  # On NextStep and OpenStep, the `mkdir' command does not
3750  # recognize any option.  It will interpret all options as
3751  # directories to create, and then abort because `.' already
3752  # exists.
3753  for d in ./-p ./--version;
3754  do
3755    test -d $d && rmdir $d
3756  done
3757  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3758  if test -f "$ac_aux_dir/mkinstalldirs"; then
3759    mkdir_p='$(mkinstalldirs)'
3760  else
3761    mkdir_p='$(install_sh) -d'
3762  fi
3763fi
3764
3765for ac_prog in gawk mawk nawk awk
3766do
3767  # Extract the first word of "$ac_prog", so it can be a program name with args.
3768set dummy $ac_prog; ac_word=$2
3769echo "$as_me:$LINENO: checking for $ac_word" >&5
3770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771if test "${ac_cv_prog_AWK+set}" = set; then
3772  echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774  if test -n "$AWK"; then
3775  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3776else
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780  IFS=$as_save_IFS
3781  test -z "$as_dir" && as_dir=.
3782  for ac_exec_ext in '' $ac_executable_extensions; do
3783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784    ac_cv_prog_AWK="$ac_prog"
3785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786    break 2
3787  fi
3788done
3789done
3790
3791fi
3792fi
3793AWK=$ac_cv_prog_AWK
3794if test -n "$AWK"; then
3795  echo "$as_me:$LINENO: result: $AWK" >&5
3796echo "${ECHO_T}$AWK" >&6
3797else
3798  echo "$as_me:$LINENO: result: no" >&5
3799echo "${ECHO_T}no" >&6
3800fi
3801
3802  test -n "$AWK" && break
3803done
3804
3805echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3806echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3807set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3808if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3809  echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811  cat >conftest.make <<\_ACEOF
3812all:
3813        @echo 'ac_maketemp="$(MAKE)"'
3814_ACEOF
3815# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3816eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3817if test -n "$ac_maketemp"; then
3818  eval ac_cv_prog_make_${ac_make}_set=yes
3819else
3820  eval ac_cv_prog_make_${ac_make}_set=no
3821fi
3822rm -f conftest.make
3823fi
3824if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3825  echo "$as_me:$LINENO: result: yes" >&5
3826echo "${ECHO_T}yes" >&6
3827  SET_MAKE=
3828else
3829  echo "$as_me:$LINENO: result: no" >&5
3830echo "${ECHO_T}no" >&6
3831  SET_MAKE="MAKE=${MAKE-make}"
3832fi
3833
3834rm -rf .tst 2>/dev/null
3835mkdir .tst 2>/dev/null
3836if test -d .tst; then
3837  am__leading_dot=.
3838else
3839  am__leading_dot=_
3840fi
3841rmdir .tst 2>/dev/null
3842
3843DEPDIR="${am__leading_dot}deps"
3844
3845          ac_config_commands="$ac_config_commands depfiles"
3846
3847
3848am_make=${MAKE-make}
3849cat > confinc << 'END'
3850am__doit:
3851        @echo done
3852.PHONY: am__doit
3853END
3854# If we don't find an include directive, just comment out the code.
3855echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3856echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3857am__include="#"
3858am__quote=
3859_am_result=none
3860# First try GNU make style include.
3861echo "include confinc" > confmf
3862# We grep out `Entering directory' and `Leaving directory'
3863# messages which can occur if `w' ends up in MAKEFLAGS.
3864# In particular we don't look at `^make:' because GNU make might
3865# be invoked under some other name (usually "gmake"), in which
3866# case it prints its new name instead of `make'.
3867if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3868   am__include=include
3869   am__quote=
3870   _am_result=GNU
3871fi
3872# Now try BSD make style include.
3873if test "$am__include" = "#"; then
3874   echo '.include "confinc"' > confmf
3875   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3876      am__include=.include
3877      am__quote="\""
3878      _am_result=BSD
3879   fi
3880fi
3881
3882
3883echo "$as_me:$LINENO: result: $_am_result" >&5
3884echo "${ECHO_T}$_am_result" >&6
3885rm -f confinc confmf
3886
3887# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3888if test "${enable_dependency_tracking+set}" = set; then
3889  enableval="$enable_dependency_tracking"
3890
3891fi;
3892if test "x$enable_dependency_tracking" != xno; then
3893  am_depcomp="$ac_aux_dir/depcomp"
3894  AMDEPBACKSLASH='\'
3895fi
3896
3897
3898if test "x$enable_dependency_tracking" != xno; then
3899  AMDEP_TRUE=
3900  AMDEP_FALSE='#'
3901else
3902  AMDEP_TRUE='#'
3903  AMDEP_FALSE=
3904fi
3905
3906
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914if test x"" = x; then
3915  hdr="#include <dlfcn.h>"
3916else
3917  hdr=""
3918fi
3919
3920for ac_header in dlfcn.h
3921do
3922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3923echo "$as_me:$LINENO: checking for $ac_header" >&5
3924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3925if eval "test \"\${$as_ac_Header+set}\" = set"; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h.  */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h.  */
3934$hdr
3935
3936#include <$ac_header>
3937_ACEOF
3938rm -f conftest.$ac_objext
3939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940  (eval $ac_compile) 2>conftest.er1
3941  ac_status=$?
3942  grep -v '^ *+' conftest.er1 >conftest.err
3943  rm -f conftest.er1
3944  cat conftest.err >&5
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); } &&
3947         { ac_try='test -z "$ac_c_werror_flag"
3948                         || test ! -s conftest.err'
3949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950  (eval $ac_try) 2>&5
3951  ac_status=$?
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); }; } &&
3954         { ac_try='test -s conftest.$ac_objext'
3955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956  (eval $ac_try) 2>&5
3957  ac_status=$?
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); }; }; then
3960  eval "$as_ac_Header=yes"
3961else
3962  echo "$as_me: failed program was:" >&5
3963sed 's/^/| /' conftest.$ac_ext >&5
3964
3965eval "$as_ac_Header=no"
3966fi
3967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3968fi
3969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971if test `eval echo '${'$as_ac_Header'}'` = yes; then
3972  cat >>confdefs.h <<_ACEOF
3973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3974_ACEOF
3975
3976fi
3977
3978done
3979
3980
3981ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987
3988# Check whether --enable-shared or --disable-shared was given.
3989if test "${enable_shared+set}" = set; then
3990  enableval="$enable_shared"
3991  p=${PACKAGE-default}
3992    case $enableval in
3993    yes) enable_shared=yes ;;
3994    no) enable_shared=no ;;
3995    *)
3996      enable_shared=no
3997      # Look at the argument we got.  We use all the common list separators.
3998      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3999      for pkg in $enableval; do
4000        IFS="$lt_save_ifs"
4001        if test "X$pkg" = "X$p"; then
4002          enable_shared=yes
4003        fi
4004      done
4005      IFS="$lt_save_ifs"
4006      ;;
4007    esac
4008else
4009  enable_shared=yes
4010fi;
4011
4012# Check whether --enable-fast-install or --disable-fast-install was given.
4013if test "${enable_fast_install+set}" = set; then
4014  enableval="$enable_fast_install"
4015  p=${PACKAGE-default}
4016    case $enableval in
4017    yes) enable_fast_install=yes ;;
4018    no) enable_fast_install=no ;;
4019    *)
4020      enable_fast_install=no
4021      # Look at the argument we got.  We use all the common list separators.
4022      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4023      for pkg in $enableval; do
4024        IFS="$lt_save_ifs"
4025        if test "X$pkg" = "X$p"; then
4026          enable_fast_install=yes
4027        fi
4028      done
4029      IFS="$lt_save_ifs"
4030      ;;
4031    esac
4032else
4033  enable_fast_install=yes
4034fi;
4035
4036echo "$as_me:$LINENO: checking host system type" >&5
4037echo $ECHO_N "checking host system type... $ECHO_C" >&6
4038if test "${ac_cv_host+set}" = set; then
4039  echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041  ac_cv_host_alias=$host_alias
4042test -z "$ac_cv_host_alias" &&
4043  ac_cv_host_alias=$ac_cv_build_alias
4044ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4045  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4046echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4047   { (exit 1); exit 1; }; }
4048
4049fi
4050echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4051echo "${ECHO_T}$ac_cv_host" >&6
4052host=$ac_cv_host
4053host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4054host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4055host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4056
4057
4058echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4059echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4060if test "${lt_cv_path_SED+set}" = set; then
4061  echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063  # Loop through the user's path and test for sed and gsed.
4064# Then use that list of sed's as ones to test for truncation.
4065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066for as_dir in $PATH
4067do
4068  IFS=$as_save_IFS
4069  test -z "$as_dir" && as_dir=.
4070  for lt_ac_prog in sed gsed; do
4071    for ac_exec_ext in '' $ac_executable_extensions; do
4072      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4073        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4074      fi
4075    done
4076  done
4077done
4078lt_ac_max=0
4079lt_ac_count=0
4080# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4081# along with /bin/sed that truncates output.
4082for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4083  test ! -f $lt_ac_sed && continue
4084  cat /dev/null > conftest.in
4085  lt_ac_count=0
4086  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4087  # Check for GNU sed and select it if it is found.
4088  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4089    lt_cv_path_SED=$lt_ac_sed
4090    break
4091  fi
4092  while true; do
4093    cat conftest.in conftest.in >conftest.tmp
4094    mv conftest.tmp conftest.in
4095    cp conftest.in conftest.nl
4096    echo >>conftest.nl
4097    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4098    cmp -s conftest.out conftest.nl || break
4099    # 10000 chars as input seems more than enough
4100    test $lt_ac_count -gt 10 && break
4101    lt_ac_count=`expr $lt_ac_count + 1`
4102    if test $lt_ac_count -gt $lt_ac_max; then
4103      lt_ac_max=$lt_ac_count
4104      lt_cv_path_SED=$lt_ac_sed
4105    fi
4106  done
4107done
4108
4109fi
4110
4111SED=$lt_cv_path_SED
4112echo "$as_me:$LINENO: result: $SED" >&5
4113echo "${ECHO_T}$SED" >&6
4114
4115
4116# Check whether --with-gnu-ld or --without-gnu-ld was given.
4117if test "${with_gnu_ld+set}" = set; then
4118  withval="$with_gnu_ld"
4119  test "$withval" = no || with_gnu_ld=yes
4120else
4121  with_gnu_ld=no
4122fi;
4123ac_prog=ld
4124if test "$GCC" = yes; then
4125  # Check if gcc -print-prog-name=ld gives a path.
4126  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4127echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4128  case $host in
4129  *-*-mingw*)
4130    # gcc leaves a trailing carriage return which upsets mingw
4131    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4132  *)
4133    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4134  esac
4135  case $ac_prog in
4136    # Accept absolute paths.
4137    [\\/]* | ?:[\\/]*)
4138      re_direlt='/[^/][^/]*/\.\./'
4139      # Canonicalize the pathname of ld
4140      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4141      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4142        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4143      done
4144      test -z "$LD" && LD="$ac_prog"
4145      ;;
4146  "")
4147    # If it fails, then pretend we aren't using GCC.
4148    ac_prog=ld
4149    ;;
4150  *)
4151    # If it is relative, then search for the first ld in PATH.
4152    with_gnu_ld=unknown
4153    ;;
4154  esac
4155elif test "$with_gnu_ld" = yes; then
4156  echo "$as_me:$LINENO: checking for GNU ld" >&5
4157echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4158else
4159  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4160echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4161fi
4162if test "${lt_cv_path_LD+set}" = set; then
4163  echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165  if test -z "$LD"; then
4166  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4167  for ac_dir in $PATH; do
4168    IFS="$lt_save_ifs"
4169    test -z "$ac_dir" && ac_dir=.
4170    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4171      lt_cv_path_LD="$ac_dir/$ac_prog"
4172      # Check to see if the program is GNU ld.  I'd rather use --version,
4173      # but apparently some variants of GNU ld only accept -v.
4174      # Break only if it was the GNU/non-GNU ld that we prefer.
4175      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4176      *GNU* | *'with BFD'*)
4177        test "$with_gnu_ld" != no && break
4178        ;;
4179      *)
4180        test "$with_gnu_ld" != yes && break
4181        ;;
4182      esac
4183    fi
4184  done
4185  IFS="$lt_save_ifs"
4186else
4187  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4188fi
4189fi
4190
4191LD="$lt_cv_path_LD"
4192if test -n "$LD"; then
4193  echo "$as_me:$LINENO: result: $LD" >&5
4194echo "${ECHO_T}$LD" >&6
4195else
4196  echo "$as_me:$LINENO: result: no" >&5
4197echo "${ECHO_T}no" >&6
4198fi
4199test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4200echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4201   { (exit 1); exit 1; }; }
4202echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4203echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4204if test "${lt_cv_prog_gnu_ld+set}" = set; then
4205  echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4208case `$LD -v 2>&1 </dev/null` in
4209*GNU* | *'with BFD'*)
4210  lt_cv_prog_gnu_ld=yes
4211  ;;
4212*)
4213  lt_cv_prog_gnu_ld=no
4214  ;;
4215esac
4216fi
4217echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4218echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4219with_gnu_ld=$lt_cv_prog_gnu_ld
4220
4221
4222echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4223echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4224if test "${lt_cv_ld_reload_flag+set}" = set; then
4225  echo $ECHO_N "(cached) $ECHO_C" >&6
4226else
4227  lt_cv_ld_reload_flag='-r'
4228fi
4229echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4230echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4231reload_flag=$lt_cv_ld_reload_flag
4232case $reload_flag in
4233"" | " "*) ;;
4234*) reload_flag=" $reload_flag" ;;
4235esac
4236reload_cmds='$LD$reload_flag -o $output$reload_objs'
4237case $host_os in
4238  darwin*)
4239    if test "$GCC" = yes; then
4240      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4241    else
4242      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4243    fi
4244    ;;
4245esac
4246
4247echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4248echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4249if test "${lt_cv_path_NM+set}" = set; then
4250  echo $ECHO_N "(cached) $ECHO_C" >&6
4251else
4252  if test -n "$NM"; then
4253  # Let the user override the test.
4254  lt_cv_path_NM="$NM"
4255else
4256  lt_nm_to_check="${ac_tool_prefix}nm"
4257  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4258    lt_nm_to_check="$lt_nm_to_check nm"
4259  fi
4260  for lt_tmp_nm in $lt_nm_to_check; do
4261    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4262    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4263      IFS="$lt_save_ifs"
4264      test -z "$ac_dir" && ac_dir=.
4265      tmp_nm="$ac_dir/$lt_tmp_nm"
4266      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4267        # Check to see if the nm accepts a BSD-compat flag.
4268        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4269        #   nm: unknown option "B" ignored
4270        # Tru64's nm complains that /dev/null is an invalid object file
4271        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4272        */dev/null* | *'Invalid file or object type'*)
4273          lt_cv_path_NM="$tmp_nm -B"
4274          break
4275          ;;
4276        *)
4277          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4278          */dev/null*)
4279            lt_cv_path_NM="$tmp_nm -p"
4280            break
4281            ;;
4282          *)
4283            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4284            continue # so that we can try to find one that supports BSD flags
4285            ;;
4286          esac
4287          ;;
4288        esac
4289      fi
4290    done
4291    IFS="$lt_save_ifs"
4292  done
4293  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4294fi
4295fi
4296echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4297echo "${ECHO_T}$lt_cv_path_NM" >&6
4298NM="$lt_cv_path_NM"
4299
4300echo "$as_me:$LINENO: checking whether ln -s works" >&5
4301echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4302LN_S=$as_ln_s
4303if test "$LN_S" = "ln -s"; then
4304  echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6
4306else
4307  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4308echo "${ECHO_T}no, using $LN_S" >&6
4309fi
4310
4311echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4312echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4313if test "${lt_cv_deplibs_check_method+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  lt_cv_file_magic_cmd='$MAGIC_CMD'
4317lt_cv_file_magic_test_file=
4318lt_cv_deplibs_check_method='unknown'
4319# Need to set the preceding variable on all platforms that support
4320# interlibrary dependencies.
4321# 'none' -- dependencies not supported.
4322# `unknown' -- same as none, but documents that we really don't know.
4323# 'pass_all' -- all dependencies passed with no checks.
4324# 'test_compile' -- check by making test program.
4325# 'file_magic [[regex]]' -- check by looking for files in library path
4326# which responds to the $file_magic_cmd with a given extended regex.
4327# If you have `file' or equivalent on your system and you're not sure
4328# whether `pass_all' will *always* work, you probably want this one.
4329
4330case $host_os in
4331aix4* | aix5*)
4332  lt_cv_deplibs_check_method=pass_all
4333  ;;
4334
4335beos*)
4336  lt_cv_deplibs_check_method=pass_all
4337  ;;
4338
4339bsdi[45]*)
4340  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4341  lt_cv_file_magic_cmd='/usr/bin/file -L'
4342  lt_cv_file_magic_test_file=/shlib/libc.so
4343  ;;
4344
4345cygwin*)
4346  # func_win32_libid is a shell function defined in ltmain.sh
4347  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4348  lt_cv_file_magic_cmd='func_win32_libid'
4349  ;;
4350
4351mingw* | pw32*)
4352  # Base MSYS/MinGW do not provide the 'file' command needed by
4353  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4354  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4355  lt_cv_file_magic_cmd='$OBJDUMP -f'
4356  ;;
4357
4358darwin* | rhapsody*)
4359  lt_cv_deplibs_check_method=pass_all
4360  ;;
4361
4362freebsd* | kfreebsd*-gnu | dragonfly*)
4363  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4364    case $host_cpu in
4365    i*86 )
4366      # Not sure whether the presence of OpenBSD here was a mistake.
4367      # Let's accept both of them until this is cleared up.
4368      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4369      lt_cv_file_magic_cmd=/usr/bin/file
4370      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4371      ;;
4372    esac
4373  else
4374    lt_cv_deplibs_check_method=pass_all
4375  fi
4376  ;;
4377
4378gnu*)
4379  lt_cv_deplibs_check_method=pass_all
4380  ;;
4381
4382hpux10.20* | hpux11*)
4383  lt_cv_file_magic_cmd=/usr/bin/file
4384  case $host_cpu in
4385  ia64*)
4386    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4387    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4388    ;;
4389  hppa*64*)
4390    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4391    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4392    ;;
4393  *)
4394    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4395    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4396    ;;
4397  esac
4398  ;;
4399
4400interix3*)
4401  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4402  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4403  ;;
4404
4405irix5* | irix6* | nonstopux*)
4406  case $LD in
4407  *-32|*"-32 ") libmagic=32-bit;;
4408  *-n32|*"-n32 ") libmagic=N32;;
4409  *-64|*"-64 ") libmagic=64-bit;;
4410  *) libmagic=never-match;;
4411  esac
4412  lt_cv_deplibs_check_method=pass_all
4413  ;;
4414
4415# This must be Linux ELF.
4416linux*)
4417  lt_cv_deplibs_check_method=pass_all
4418  ;;
4419
4420netbsd*)
4421  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4422    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4423  else
4424    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4425  fi
4426  ;;
4427
4428newos6*)
4429  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4430  lt_cv_file_magic_cmd=/usr/bin/file
4431  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4432  ;;
4433
4434nto-qnx*)
4435  lt_cv_deplibs_check_method=unknown
4436  ;;
4437
4438openbsd*)
4439  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4440    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4441  else
4442    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4443  fi
4444  ;;
4445
4446osf3* | osf4* | osf5*)
4447  lt_cv_deplibs_check_method=pass_all
4448  ;;
4449
4450solaris*)
4451  lt_cv_deplibs_check_method=pass_all
4452  ;;
4453
4454sysv4 | sysv4.3*)
4455  case $host_vendor in
4456  motorola)
4457    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]'
4458    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4459    ;;
4460  ncr)
4461    lt_cv_deplibs_check_method=pass_all
4462    ;;
4463  sequent)
4464    lt_cv_file_magic_cmd='/bin/file'
4465    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4466    ;;
4467  sni)
4468    lt_cv_file_magic_cmd='/bin/file'
4469    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4470    lt_cv_file_magic_test_file=/lib/libc.so
4471    ;;
4472  siemens)
4473    lt_cv_deplibs_check_method=pass_all
4474    ;;
4475  pc)
4476    lt_cv_deplibs_check_method=pass_all
4477    ;;
4478  esac
4479  ;;
4480
4481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4482  lt_cv_deplibs_check_method=pass_all
4483  ;;
4484esac
4485
4486fi
4487echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4488echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4489file_magic_cmd=$lt_cv_file_magic_cmd
4490deplibs_check_method=$lt_cv_deplibs_check_method
4491test -z "$deplibs_check_method" && deplibs_check_method=unknown
4492
4493
4494
4495
4496# If no C compiler was specified, use CC.
4497LTCC=${LTCC-"$CC"}
4498
4499# If no C compiler flags were specified, use CFLAGS.
4500LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4501
4502# Allow CC to be a program name with arguments.
4503compiler=$CC
4504
4505# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4506if test "${enable_libtool_lock+set}" = set; then
4507  enableval="$enable_libtool_lock"
4508
4509fi;
4510test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4511
4512# Some flags need to be propagated to the compiler or linker for good
4513# libtool support.
4514case $host in
4515ia64-*-hpux*)
4516  # Find out which ABI we are using.
4517  echo 'int i;' > conftest.$ac_ext
4518  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519  (eval $ac_compile) 2>&5
4520  ac_status=$?
4521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522  (exit $ac_status); }; then
4523    case `/usr/bin/file conftest.$ac_objext` in
4524    *ELF-32*)
4525      HPUX_IA64_MODE="32"
4526      ;;
4527    *ELF-64*)
4528      HPUX_IA64_MODE="64"
4529      ;;
4530    esac
4531  fi
4532  rm -rf conftest*
4533  ;;
4534*-*-irix6*)
4535  # Find out which ABI we are using.
4536  echo '#line 4536 "configure"' > conftest.$ac_ext
4537  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538  (eval $ac_compile) 2>&5
4539  ac_status=$?
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); }; then
4542   if test "$lt_cv_prog_gnu_ld" = yes; then
4543    case `/usr/bin/file conftest.$ac_objext` in
4544    *32-bit*)
4545      LD="${LD-ld} -melf32bsmip"
4546      ;;
4547    *N32*)
4548      LD="${LD-ld} -melf32bmipn32"
4549      ;;
4550    *64-bit*)
4551      LD="${LD-ld} -melf64bmip"
4552      ;;
4553    esac
4554   else
4555    case `/usr/bin/file conftest.$ac_objext` in
4556    *32-bit*)
4557      LD="${LD-ld} -32"
4558      ;;
4559    *N32*)
4560      LD="${LD-ld} -n32"
4561      ;;
4562    *64-bit*)
4563      LD="${LD-ld} -64"
4564      ;;
4565    esac
4566   fi
4567  fi
4568  rm -rf conftest*
4569  ;;
4570
4571x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4572  # Find out which ABI we are using.
4573  echo 'int i;' > conftest.$ac_ext
4574  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575  (eval $ac_compile) 2>&5
4576  ac_status=$?
4577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578  (exit $ac_status); }; then
4579    case `/usr/bin/file conftest.o` in
4580    *32-bit*)
4581      case $host in
4582        x86_64-*linux*)
4583          LD="${LD-ld} -m elf_i386"
4584          ;;
4585        ppc64-*linux*|powerpc64-*linux*)
4586          LD="${LD-ld} -m elf32ppclinux"
4587          ;;
4588        s390x-*linux*)
4589          LD="${LD-ld} -m elf_s390"
4590          ;;
4591        sparc64-*linux*)
4592          LD="${LD-ld} -m elf32_sparc"
4593          ;;
4594      esac
4595      ;;
4596    *64-bit*)
4597      case $host in
4598        x86_64-*linux*)
4599          LD="${LD-ld} -m elf_x86_64"
4600          ;;
4601        ppc*-*linux*|powerpc*-*linux*)
4602          LD="${LD-ld} -m elf64ppc"
4603          ;;
4604        s390*-*linux*)
4605          LD="${LD-ld} -m elf64_s390"
4606          ;;
4607        sparc*-*linux*)
4608          LD="${LD-ld} -m elf64_sparc"
4609          ;;
4610      esac
4611      ;;
4612    esac
4613  fi
4614  rm -rf conftest*
4615  ;;
4616
4617*-*-sco3.2v5*)
4618  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4619  SAVE_CFLAGS="$CFLAGS"
4620  CFLAGS="$CFLAGS -belf"
4621  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4622echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4623if test "${lt_cv_cc_needs_belf+set}" = set; then
4624  echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626  ac_ext=c
4627ac_cpp='$CPP $CPPFLAGS'
4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631
4632     cat >conftest.$ac_ext <<_ACEOF
4633/* confdefs.h.  */
4634_ACEOF
4635cat confdefs.h >>conftest.$ac_ext
4636cat >>conftest.$ac_ext <<_ACEOF
4637/* end confdefs.h.  */
4638
4639int
4640main ()
4641{
4642
4643  ;
4644  return 0;
4645}
4646_ACEOF
4647rm -f conftest.$ac_objext conftest$ac_exeext
4648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649  (eval $ac_link) 2>conftest.er1
4650  ac_status=$?
4651  grep -v '^ *+' conftest.er1 >conftest.err
4652  rm -f conftest.er1
4653  cat conftest.err >&5
4654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655  (exit $ac_status); } &&
4656         { ac_try='test -z "$ac_c_werror_flag"
4657                         || test ! -s conftest.err'
4658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659  (eval $ac_try) 2>&5
4660  ac_status=$?
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); }; } &&
4663         { ac_try='test -s conftest$ac_exeext'
4664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665  (eval $ac_try) 2>&5
4666  ac_status=$?
4667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668  (exit $ac_status); }; }; then
4669  lt_cv_cc_needs_belf=yes
4670else
4671  echo "$as_me: failed program was:" >&5
4672sed 's/^/| /' conftest.$ac_ext >&5
4673
4674lt_cv_cc_needs_belf=no
4675fi
4676rm -f conftest.err conftest.$ac_objext \
4677      conftest$ac_exeext conftest.$ac_ext
4678     ac_ext=c
4679ac_cpp='$CPP $CPPFLAGS'
4680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683
4684fi
4685echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4686echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4687  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4688    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4689    CFLAGS="$SAVE_CFLAGS"
4690  fi
4691  ;;
4692sparc*-*solaris*)
4693  # Find out which ABI we are using.
4694  echo 'int i;' > conftest.$ac_ext
4695  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696  (eval $ac_compile) 2>&5
4697  ac_status=$?
4698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699  (exit $ac_status); }; then
4700    case `/usr/bin/file conftest.o` in
4701    *64-bit*)
4702      case $lt_cv_prog_gnu_ld in
4703      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4704      *)    LD="${LD-ld} -64" ;;
4705      esac
4706      ;;
4707    esac
4708  fi
4709  rm -rf conftest*
4710  ;;
4711
4712
4713esac
4714
4715need_locks="$enable_libtool_lock"
4716
4717
4718ac_ext=c
4719ac_cpp='$CPP $CPPFLAGS'
4720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4724echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4725# On Suns, sometimes $CPP names a directory.
4726if test -n "$CPP" && test -d "$CPP"; then
4727  CPP=
4728fi
4729if test -z "$CPP"; then
4730  if test "${ac_cv_prog_CPP+set}" = set; then
4731  echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733      # Double quotes because CPP needs to be expanded
4734    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4735    do
4736      ac_preproc_ok=false
4737for ac_c_preproc_warn_flag in '' yes
4738do
4739  # Use a header file that comes with gcc, so configuring glibc
4740  # with a fresh cross-compiler works.
4741  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742  # <limits.h> exists even on freestanding compilers.
4743  # On the NeXT, cc -E runs the code through the compiler's parser,
4744  # not just through cpp. "Syntax error" is here to catch this case.
4745  cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h.  */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h.  */
4751#ifdef __STDC__
4752# include <limits.h>
4753#else
4754# include <assert.h>
4755#endif
4756                     Syntax error
4757_ACEOF
4758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4759  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4760  ac_status=$?
4761  grep -v '^ *+' conftest.er1 >conftest.err
4762  rm -f conftest.er1
4763  cat conftest.err >&5
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); } >/dev/null; then
4766  if test -s conftest.err; then
4767    ac_cpp_err=$ac_c_preproc_warn_flag
4768    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4769  else
4770    ac_cpp_err=
4771  fi
4772else
4773  ac_cpp_err=yes
4774fi
4775if test -z "$ac_cpp_err"; then
4776  :
4777else
4778  echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781  # Broken: fails on valid input.
4782continue
4783fi
4784rm -f conftest.err conftest.$ac_ext
4785
4786  # OK, works on sane cases.  Now check whether non-existent headers
4787  # can be detected and how.
4788  cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h.  */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h.  */
4794#include <ac_nonexistent.h>
4795_ACEOF
4796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4797  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4798  ac_status=$?
4799  grep -v '^ *+' conftest.er1 >conftest.err
4800  rm -f conftest.er1
4801  cat conftest.err >&5
4802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); } >/dev/null; then
4804  if test -s conftest.err; then
4805    ac_cpp_err=$ac_c_preproc_warn_flag
4806    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4807  else
4808    ac_cpp_err=
4809  fi
4810else
4811  ac_cpp_err=yes
4812fi
4813if test -z "$ac_cpp_err"; then
4814  # Broken: success on invalid input.
4815continue
4816else
4817  echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
4820  # Passes both tests.
4821ac_preproc_ok=:
4822break
4823fi
4824rm -f conftest.err conftest.$ac_ext
4825
4826done
4827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4828rm -f conftest.err conftest.$ac_ext
4829if $ac_preproc_ok; then
4830  break
4831fi
4832
4833    done
4834    ac_cv_prog_CPP=$CPP
4835
4836fi
4837  CPP=$ac_cv_prog_CPP
4838else
4839  ac_cv_prog_CPP=$CPP
4840fi
4841echo "$as_me:$LINENO: result: $CPP" >&5
4842echo "${ECHO_T}$CPP" >&6
4843ac_preproc_ok=false
4844for ac_c_preproc_warn_flag in '' yes
4845do
4846  # Use a header file that comes with gcc, so configuring glibc
4847  # with a fresh cross-compiler works.
4848  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849  # <limits.h> exists even on freestanding compilers.
4850  # On the NeXT, cc -E runs the code through the compiler's parser,
4851  # not just through cpp. "Syntax error" is here to catch this case.
4852  cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858#ifdef __STDC__
4859# include <limits.h>
4860#else
4861# include <assert.h>
4862#endif
4863                     Syntax error
4864_ACEOF
4865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4866  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4867  ac_status=$?
4868  grep -v '^ *+' conftest.er1 >conftest.err
4869  rm -f conftest.er1
4870  cat conftest.err >&5
4871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872  (exit $ac_status); } >/dev/null; then
4873  if test -s conftest.err; then
4874    ac_cpp_err=$ac_c_preproc_warn_flag
4875    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4876  else
4877    ac_cpp_err=
4878  fi
4879else
4880  ac_cpp_err=yes
4881fi
4882if test -z "$ac_cpp_err"; then
4883  :
4884else
4885  echo "$as_me: failed program was:" >&5
4886sed 's/^/| /' conftest.$ac_ext >&5
4887
4888  # Broken: fails on valid input.
4889continue
4890fi
4891rm -f conftest.err conftest.$ac_ext
4892
4893  # OK, works on sane cases.  Now check whether non-existent headers
4894  # can be detected and how.
4895  cat >conftest.$ac_ext <<_ACEOF
4896/* confdefs.h.  */
4897_ACEOF
4898cat confdefs.h >>conftest.$ac_ext
4899cat >>conftest.$ac_ext <<_ACEOF
4900/* end confdefs.h.  */
4901#include <ac_nonexistent.h>
4902_ACEOF
4903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4904  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4905  ac_status=$?
4906  grep -v '^ *+' conftest.er1 >conftest.err
4907  rm -f conftest.er1
4908  cat conftest.err >&5
4909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); } >/dev/null; then
4911  if test -s conftest.err; then
4912    ac_cpp_err=$ac_c_preproc_warn_flag
4913    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4914  else
4915    ac_cpp_err=
4916  fi
4917else
4918  ac_cpp_err=yes
4919fi
4920if test -z "$ac_cpp_err"; then
4921  # Broken: success on invalid input.
4922continue
4923else
4924  echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927  # Passes both tests.
4928ac_preproc_ok=:
4929break
4930fi
4931rm -f conftest.err conftest.$ac_ext
4932
4933done
4934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4935rm -f conftest.err conftest.$ac_ext
4936if $ac_preproc_ok; then
4937  :
4938else
4939  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4940See \`config.log' for more details." >&5
4941echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4942See \`config.log' for more details." >&2;}
4943   { (exit 1); exit 1; }; }
4944fi
4945
4946ac_ext=c
4947ac_cpp='$CPP $CPPFLAGS'
4948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951
4952
4953echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4954echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4955if test "${ac_cv_header_stdc+set}" = set; then
4956  echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958  cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h.  */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h.  */
4964#include <stdlib.h>
4965#include <stdarg.h>
4966#include <string.h>
4967#include <float.h>
4968
4969int
4970main ()
4971{
4972
4973  ;
4974  return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979  (eval $ac_compile) 2>conftest.er1
4980  ac_status=$?
4981  grep -v '^ *+' conftest.er1 >conftest.err
4982  rm -f conftest.er1
4983  cat conftest.err >&5
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } &&
4986         { ac_try='test -z "$ac_c_werror_flag"
4987                         || test ! -s conftest.err'
4988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989  (eval $ac_try) 2>&5
4990  ac_status=$?
4991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992  (exit $ac_status); }; } &&
4993         { ac_try='test -s conftest.$ac_objext'
4994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995  (eval $ac_try) 2>&5
4996  ac_status=$?
4997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998  (exit $ac_status); }; }; then
4999  ac_cv_header_stdc=yes
5000else
5001  echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004ac_cv_header_stdc=no
5005fi
5006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007
5008if test $ac_cv_header_stdc = yes; then
5009  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5010  cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h.  */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h.  */
5016#include <string.h>
5017
5018_ACEOF
5019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020  $EGREP "memchr" >/dev/null 2>&1; then
5021  :
5022else
5023  ac_cv_header_stdc=no
5024fi
5025rm -f conftest*
5026
5027fi
5028
5029if test $ac_cv_header_stdc = yes; then
5030  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031  cat >conftest.$ac_ext <<_ACEOF
5032/* confdefs.h.  */
5033_ACEOF
5034cat confdefs.h >>conftest.$ac_ext
5035cat >>conftest.$ac_ext <<_ACEOF
5036/* end confdefs.h.  */
5037#include <stdlib.h>
5038
5039_ACEOF
5040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5041  $EGREP "free" >/dev/null 2>&1; then
5042  :
5043else
5044  ac_cv_header_stdc=no
5045fi
5046rm -f conftest*
5047
5048fi
5049
5050if test $ac_cv_header_stdc = yes; then
5051  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5052  if test "$cross_compiling" = yes; then
5053  :
5054else
5055  cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h.  */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h.  */
5061#include <ctype.h>
5062#if ((' ' & 0x0FF) == 0x020)
5063# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5064# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5065#else
5066# define ISLOWER(c) \
5067                   (('a' <= (c) && (c) <= 'i') \
5068                     || ('j' <= (c) && (c) <= 'r') \
5069                     || ('s' <= (c) && (c) <= 'z'))
5070# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5071#endif
5072
5073#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5074int
5075main ()
5076{
5077  int i;
5078  for (i = 0; i < 256; i++)
5079    if (XOR (islower (i), ISLOWER (i))
5080        || toupper (i) != TOUPPER (i))
5081      exit(2);
5082  exit (0);
5083}
5084_ACEOF
5085rm -f conftest$ac_exeext
5086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5087  (eval $ac_link) 2>&5
5088  ac_status=$?
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092  (eval $ac_try) 2>&5
5093  ac_status=$?
5094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095  (exit $ac_status); }; }; then
5096  :
5097else
5098  echo "$as_me: program exited with status $ac_status" >&5
5099echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102( exit $ac_status )
5103ac_cv_header_stdc=no
5104fi
5105rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5106fi
5107fi
5108fi
5109echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5110echo "${ECHO_T}$ac_cv_header_stdc" >&6
5111if test $ac_cv_header_stdc = yes; then
5112
5113cat >>confdefs.h <<\_ACEOF
5114#define STDC_HEADERS 1
5115_ACEOF
5116
5117fi
5118
5119# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5130                  inttypes.h stdint.h unistd.h
5131do
5132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5133echo "$as_me:$LINENO: checking for $ac_header" >&5
5134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136  echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138  cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h.  */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h.  */
5144$ac_includes_default
5145
5146#include <$ac_header>
5147_ACEOF
5148rm -f conftest.$ac_objext
5149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150  (eval $ac_compile) 2>conftest.er1
5151  ac_status=$?
5152  grep -v '^ *+' conftest.er1 >conftest.err
5153  rm -f conftest.er1
5154  cat conftest.err >&5
5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156  (exit $ac_status); } &&
5157         { ac_try='test -z "$ac_c_werror_flag"
5158                         || test ! -s conftest.err'
5159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160  (eval $ac_try) 2>&5
5161  ac_status=$?
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); }; } &&
5164         { ac_try='test -s conftest.$ac_objext'
5165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166  (eval $ac_try) 2>&5
5167  ac_status=$?
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); }; }; then
5170  eval "$as_ac_Header=yes"
5171else
5172  echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
5175eval "$as_ac_Header=no"
5176fi
5177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5178fi
5179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5181if test `eval echo '${'$as_ac_Header'}'` = yes; then
5182  cat >>confdefs.h <<_ACEOF
5183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184_ACEOF
5185
5186fi
5187
5188done
5189
5190
5191
5192for ac_header in dlfcn.h
5193do
5194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5195if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196  echo "$as_me:$LINENO: checking for $ac_header" >&5
5197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5198if eval "test \"\${$as_ac_Header+set}\" = set"; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200fi
5201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5203else
5204  # Is the header compilable?
5205echo "$as_me:$LINENO: checking $ac_header usability" >&5
5206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5207cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h.  */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h.  */
5213$ac_includes_default
5214#include <$ac_header>
5215_ACEOF
5216rm -f conftest.$ac_objext
5217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218  (eval $ac_compile) 2>conftest.er1
5219  ac_status=$?
5220  grep -v '^ *+' conftest.er1 >conftest.err
5221  rm -f conftest.er1
5222  cat conftest.err >&5
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } &&
5225         { ac_try='test -z "$ac_c_werror_flag"
5226                         || test ! -s conftest.err'
5227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228  (eval $ac_try) 2>&5
5229  ac_status=$?
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); }; } &&
5232         { ac_try='test -s conftest.$ac_objext'
5233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234  (eval $ac_try) 2>&5
5235  ac_status=$?
5236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237  (exit $ac_status); }; }; then
5238  ac_header_compiler=yes
5239else
5240  echo "$as_me: failed program was:" >&5
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
5243ac_header_compiler=no
5244fi
5245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5247echo "${ECHO_T}$ac_header_compiler" >&6
5248
5249# Is the header present?
5250echo "$as_me:$LINENO: checking $ac_header presence" >&5
5251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5252cat >conftest.$ac_ext <<_ACEOF
5253/* confdefs.h.  */
5254_ACEOF
5255cat confdefs.h >>conftest.$ac_ext
5256cat >>conftest.$ac_ext <<_ACEOF
5257/* end confdefs.h.  */
5258#include <$ac_header>
5259_ACEOF
5260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5261  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5262  ac_status=$?
5263  grep -v '^ *+' conftest.er1 >conftest.err
5264  rm -f conftest.er1
5265  cat conftest.err >&5
5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267  (exit $ac_status); } >/dev/null; then
5268  if test -s conftest.err; then
5269    ac_cpp_err=$ac_c_preproc_warn_flag
5270    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271  else
5272    ac_cpp_err=
5273  fi
5274else
5275  ac_cpp_err=yes
5276fi
5277if test -z "$ac_cpp_err"; then
5278  ac_header_preproc=yes
5279else
5280  echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283  ac_header_preproc=no
5284fi
5285rm -f conftest.err conftest.$ac_ext
5286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5287echo "${ECHO_T}$ac_header_preproc" >&6
5288
5289# So?  What about this header?
5290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5291  yes:no: )
5292    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5294    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5296    ac_header_preproc=yes
5297    ;;
5298  no:yes:* )
5299    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5301    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5302echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5303    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5305    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5306echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5307    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5309    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5311    (
5312      cat <<\_ASBOX
5313## ---------------------------------------- ##
5314## Report this to coin-clp@list.coin-or.org ##
5315## ---------------------------------------- ##
5316_ASBOX
5317    ) |
5318      sed "s/^/$as_me: WARNING:     /" >&2
5319    ;;
5320esac
5321echo "$as_me:$LINENO: checking for $ac_header" >&5
5322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5323if eval "test \"\${$as_ac_Header+set}\" = set"; then
5324  echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326  eval "$as_ac_Header=\$ac_header_preproc"
5327fi
5328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5330
5331fi
5332if test `eval echo '${'$as_ac_Header'}'` = yes; then
5333  cat >>confdefs.h <<_ACEOF
5334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5335_ACEOF
5336
5337fi
5338
5339done
5340
5341
5342
5343if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5344    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5345    (test "X$CXX" != "Xg++"))) ; then
5346  ac_ext=cc
5347ac_cpp='$CXXCPP $CPPFLAGS'
5348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5351echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5352echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5353if test -z "$CXXCPP"; then
5354  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5355  echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357      # Double quotes because CXXCPP needs to be expanded
5358    for CXXCPP in "$CXX -E" "/lib/cpp"
5359    do
5360      ac_preproc_ok=false
5361for ac_cxx_preproc_warn_flag in '' yes
5362do
5363  # Use a header file that comes with gcc, so configuring glibc
5364  # with a fresh cross-compiler works.
5365  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5366  # <limits.h> exists even on freestanding compilers.
5367  # On the NeXT, cc -E runs the code through the compiler's parser,
5368  # not just through cpp. "Syntax error" is here to catch this case.
5369  cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h.  */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h.  */
5375#ifdef __STDC__
5376# include <limits.h>
5377#else
5378# include <assert.h>
5379#endif
5380                     Syntax error
5381_ACEOF
5382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5383  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5384  ac_status=$?
5385  grep -v '^ *+' conftest.er1 >conftest.err
5386  rm -f conftest.er1
5387  cat conftest.err >&5
5388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389  (exit $ac_status); } >/dev/null; then
5390  if test -s conftest.err; then
5391    ac_cpp_err=$ac_cxx_preproc_warn_flag
5392    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5393  else
5394    ac_cpp_err=
5395  fi
5396else
5397  ac_cpp_err=yes
5398fi
5399if test -z "$ac_cpp_err"; then
5400  :
5401else
5402  echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405  # Broken: fails on valid input.
5406continue
5407fi
5408rm -f conftest.err conftest.$ac_ext
5409
5410  # OK, works on sane cases.  Now check whether non-existent headers
5411  # can be detected and how.
5412  cat >conftest.$ac_ext <<_ACEOF
5413/* confdefs.h.  */
5414_ACEOF
5415cat confdefs.h >>conftest.$ac_ext
5416cat >>conftest.$ac_ext <<_ACEOF
5417/* end confdefs.h.  */
5418#include <ac_nonexistent.h>
5419_ACEOF
5420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5422  ac_status=$?
5423  grep -v '^ *+' conftest.er1 >conftest.err
5424  rm -f conftest.er1
5425  cat conftest.err >&5
5426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427  (exit $ac_status); } >/dev/null; then
5428  if test -s conftest.err; then
5429    ac_cpp_err=$ac_cxx_preproc_warn_flag
5430    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5431  else
5432    ac_cpp_err=
5433  fi
5434else
5435  ac_cpp_err=yes
5436fi
5437if test -z "$ac_cpp_err"; then
5438  # Broken: success on invalid input.
5439continue
5440else
5441  echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444  # Passes both tests.
5445ac_preproc_ok=:
5446break
5447fi
5448rm -f conftest.err conftest.$ac_ext
5449
5450done
5451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452rm -f conftest.err conftest.$ac_ext
5453if $ac_preproc_ok; then
5454  break
5455fi
5456
5457    done
5458    ac_cv_prog_CXXCPP=$CXXCPP
5459
5460fi
5461  CXXCPP=$ac_cv_prog_CXXCPP
5462else
5463  ac_cv_prog_CXXCPP=$CXXCPP
5464fi
5465echo "$as_me:$LINENO: result: $CXXCPP" >&5
5466echo "${ECHO_T}$CXXCPP" >&6
5467ac_preproc_ok=false
5468for ac_cxx_preproc_warn_flag in '' yes
5469do
5470  # Use a header file that comes with gcc, so configuring glibc
5471  # with a fresh cross-compiler works.
5472  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5473  # <limits.h> exists even on freestanding compilers.
5474  # On the NeXT, cc -E runs the code through the compiler's parser,
5475  # not just through cpp. "Syntax error" is here to catch this case.
5476  cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h.  */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h.  */
5482#ifdef __STDC__
5483# include <limits.h>
5484#else
5485# include <assert.h>
5486#endif
5487                     Syntax error
5488_ACEOF
5489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5490  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5491  ac_status=$?
5492  grep -v '^ *+' conftest.er1 >conftest.err
5493  rm -f conftest.er1
5494  cat conftest.err >&5
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); } >/dev/null; then
5497  if test -s conftest.err; then
5498    ac_cpp_err=$ac_cxx_preproc_warn_flag
5499    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5500  else
5501    ac_cpp_err=
5502  fi
5503else
5504  ac_cpp_err=yes
5505fi
5506if test -z "$ac_cpp_err"; then
5507  :
5508else
5509  echo "$as_me: failed program was:" >&5
5510sed 's/^/| /' conftest.$ac_ext >&5
5511
5512  # Broken: fails on valid input.
5513continue
5514fi
5515rm -f conftest.err conftest.$ac_ext
5516
5517  # OK, works on sane cases.  Now check whether non-existent headers
5518  # can be detected and how.
5519  cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h.  */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h.  */
5525#include <ac_nonexistent.h>
5526_ACEOF
5527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5529  ac_status=$?
5530  grep -v '^ *+' conftest.er1 >conftest.err
5531  rm -f conftest.er1
5532  cat conftest.err >&5
5533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); } >/dev/null; then
5535  if test -s conftest.err; then
5536    ac_cpp_err=$ac_cxx_preproc_warn_flag
5537    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5538  else
5539    ac_cpp_err=
5540  fi
5541else
5542  ac_cpp_err=yes
5543fi
5544if test -z "$ac_cpp_err"; then
5545  # Broken: success on invalid input.
5546continue
5547else
5548  echo "$as_me: failed program was:" >&5
5549sed 's/^/| /' conftest.$ac_ext >&5
5550
5551  # Passes both tests.
5552ac_preproc_ok=:
5553break
5554fi
5555rm -f conftest.err conftest.$ac_ext
5556
5557done
5558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5559rm -f conftest.err conftest.$ac_ext
5560if $ac_preproc_ok; then
5561  :
5562else
5563  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5564See \`config.log' for more details." >&5
5565echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5566See \`config.log' for more details." >&2;}
5567   { (exit 1); exit 1; }; }
5568fi
5569
5570ac_ext=cc
5571ac_cpp='$CXXCPP $CPPFLAGS'
5572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5575
5576fi
5577
5578ac_ext=f
5579ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5580ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5582if test -n "$ac_tool_prefix"; then
5583  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5584  do
5585    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5587echo "$as_me:$LINENO: checking for $ac_word" >&5
5588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589if test "${ac_cv_prog_F77+set}" = set; then
5590  echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592  if test -n "$F77"; then
5593  ac_cv_prog_F77="$F77" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598  IFS=$as_save_IFS
5599  test -z "$as_dir" && as_dir=.
5600  for ac_exec_ext in '' $ac_executable_extensions; do
5601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604    break 2
5605  fi
5606done
5607done
5608
5609fi
5610fi
5611F77=$ac_cv_prog_F77
5612if test -n "$F77"; then
5613  echo "$as_me:$LINENO: result: $F77" >&5
5614echo "${ECHO_T}$F77" >&6
5615else
5616  echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618fi
5619
5620    test -n "$F77" && break
5621  done
5622fi
5623if test -z "$F77"; then
5624  ac_ct_F77=$F77
5625  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5626do
5627  # Extract the first word of "$ac_prog", so it can be a program name with args.
5628set dummy $ac_prog; ac_word=$2
5629echo "$as_me:$LINENO: checking for $ac_word" >&5
5630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5631if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5632  echo $ECHO_N "(cached) $ECHO_C" >&6
5633else
5634  if test -n "$ac_ct_F77"; then
5635  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640  IFS=$as_save_IFS
5641  test -z "$as_dir" && as_dir=.
5642  for ac_exec_ext in '' $ac_executable_extensions; do
5643  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644    ac_cv_prog_ac_ct_F77="$ac_prog"
5645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646    break 2
5647  fi
5648done
5649done
5650
5651fi
5652fi
5653ac_ct_F77=$ac_cv_prog_ac_ct_F77
5654if test -n "$ac_ct_F77"; then
5655  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5656echo "${ECHO_T}$ac_ct_F77" >&6
5657else
5658  echo "$as_me:$LINENO: result: no" >&5
5659echo "${ECHO_T}no" >&6
5660fi
5661
5662  test -n "$ac_ct_F77" && break
5663done
5664
5665  F77=$ac_ct_F77
5666fi
5667
5668
5669# Provide some information about the compiler.
5670echo "$as_me:5670:" \
5671     "checking for Fortran 77 compiler version" >&5
5672ac_compiler=`set X $ac_compile; echo $2`
5673{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5674  (eval $ac_compiler --version </dev/null >&5) 2>&5
5675  ac_status=$?
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); }
5678{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5679  (eval $ac_compiler -v </dev/null >&5) 2>&5
5680  ac_status=$?
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); }
5683{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5684  (eval $ac_compiler -V </dev/null >&5) 2>&5
5685  ac_status=$?
5686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687  (exit $ac_status); }
5688rm -f a.out
5689
5690# If we don't use `.F' as extension, the preprocessor is not run on the
5691# input file.  (Note that this only needs to work for GNU compilers.)
5692ac_save_ext=$ac_ext
5693ac_ext=F
5694echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5695echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5696if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  cat >conftest.$ac_ext <<_ACEOF
5700      program main
5701#ifndef __GNUC__
5702       choke me
5703#endif
5704
5705      end
5706_ACEOF
5707rm -f conftest.$ac_objext
5708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709  (eval $ac_compile) 2>conftest.er1
5710  ac_status=$?
5711  grep -v '^ *+' conftest.er1 >conftest.err
5712  rm -f conftest.er1
5713  cat conftest.err >&5
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); } &&
5716         { ac_try='test -z "$ac_f77_werror_flag"
5717                         || test ! -s conftest.err'
5718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719  (eval $ac_try) 2>&5
5720  ac_status=$?
5721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722  (exit $ac_status); }; } &&
5723         { ac_try='test -s conftest.$ac_objext'
5724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725  (eval $ac_try) 2>&5
5726  ac_status=$?
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); }; }; then
5729  ac_compiler_gnu=yes
5730else
5731  echo "$as_me: failed program was:" >&5
5732sed 's/^/| /' conftest.$ac_ext >&5
5733
5734ac_compiler_gnu=no
5735fi
5736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5737ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5738
5739fi
5740echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5741echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5742ac_ext=$ac_save_ext
5743ac_test_FFLAGS=${FFLAGS+set}
5744ac_save_FFLAGS=$FFLAGS
5745FFLAGS=
5746echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5747echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5748if test "${ac_cv_prog_f77_g+set}" = set; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751  FFLAGS=-g
5752cat >conftest.$ac_ext <<_ACEOF
5753      program main
5754
5755      end
5756_ACEOF
5757rm -f conftest.$ac_objext
5758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759  (eval $ac_compile) 2>conftest.er1
5760  ac_status=$?
5761  grep -v '^ *+' conftest.er1 >conftest.err
5762  rm -f conftest.er1
5763  cat conftest.err >&5
5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  (exit $ac_status); } &&
5766         { ac_try='test -z "$ac_f77_werror_flag"
5767                         || test ! -s conftest.err'
5768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769  (eval $ac_try) 2>&5
5770  ac_status=$?
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); }; } &&
5773         { ac_try='test -s conftest.$ac_objext'
5774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775  (eval $ac_try) 2>&5
5776  ac_status=$?
5777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778  (exit $ac_status); }; }; then
5779  ac_cv_prog_f77_g=yes
5780else
5781  echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784ac_cv_prog_f77_g=no
5785fi
5786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5787
5788fi
5789echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5790echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5791if test "$ac_test_FFLAGS" = set; then
5792  FFLAGS=$ac_save_FFLAGS
5793elif test $ac_cv_prog_f77_g = yes; then
5794  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5795    FFLAGS="-g -O2"
5796  else
5797    FFLAGS="-g"
5798  fi
5799else
5800  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5801    FFLAGS="-O2"
5802  else
5803    FFLAGS=
5804  fi
5805fi
5806
5807G77=`test $ac_compiler_gnu = yes && echo yes`
5808ac_ext=c
5809ac_cpp='$CPP $CPPFLAGS'
5810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813
5814
5815
5816# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5817
5818# find the maximum length of command line arguments
5819echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5820echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5821if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824    i=0
5825  teststring="ABCD"
5826
5827  case $build_os in
5828  msdosdjgpp*)
5829    # On DJGPP, this test can blow up pretty badly due to problems in libc
5830    # (any single argument exceeding 2000 bytes causes a buffer overrun
5831    # during glob expansion).  Even if it were fixed, the result of this
5832    # check would be larger than it should be.
5833    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5834    ;;
5835
5836  gnu*)
5837    # Under GNU Hurd, this test is not required because there is
5838    # no limit to the length of command line arguments.
5839    # Libtool will interpret -1 as no limit whatsoever
5840    lt_cv_sys_max_cmd_len=-1;
5841    ;;
5842
5843  cygwin* | mingw*)
5844    # On Win9x/ME, this test blows up -- it succeeds, but takes
5845    # about 5 minutes as the teststring grows exponentially.
5846    # Worse, since 9x/ME are not pre-emptively multitasking,
5847    # you end up with a "frozen" computer, even though with patience
5848    # the test eventually succeeds (with a max line length of 256k).
5849    # Instead, let's just punt: use the minimum linelength reported by
5850    # all of the supported platforms: 8192 (on NT/2K/XP).
5851    lt_cv_sys_max_cmd_len=8192;
5852    ;;
5853
5854  amigaos*)
5855    # On AmigaOS with pdksh, this test takes hours, literally.
5856    # So we just punt and use a minimum line length of 8192.
5857    lt_cv_sys_max_cmd_len=8192;
5858    ;;
5859
5860  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5861    # This has been around since 386BSD, at least.  Likely further.
5862    if test -x /sbin/sysctl; then
5863      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5864    elif test -x /usr/sbin/sysctl; then
5865      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5866    else
5867      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5868    fi
5869    # And add a safety zone
5870    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5871    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5872    ;;
5873
5874  interix*)
5875    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5876    lt_cv_sys_max_cmd_len=196608
5877    ;;
5878
5879  osf*)
5880    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5881    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5882    # nice to cause kernel panics so lets avoid the loop below.
5883    # First set a reasonable default.
5884    lt_cv_sys_max_cmd_len=16384
5885    #
5886    if test -x /sbin/sysconfig; then
5887      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5888        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5889      esac
5890    fi
5891    ;;
5892  sco3.2v5*)
5893    lt_cv_sys_max_cmd_len=102400
5894    ;;
5895  sysv5* | sco5v6* | sysv4.2uw2*)
5896    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5897    if test -n "$kargmax"; then
5898      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5899    else
5900      lt_cv_sys_max_cmd_len=32768
5901    fi
5902    ;;
5903  *)
5904    # If test is not a shell built-in, we'll probably end up computing a
5905    # maximum length that is only half of the actual maximum length, but
5906    # we can't tell.
5907    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5908    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5909               = "XX$teststring") >/dev/null 2>&1 &&
5910            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5911            lt_cv_sys_max_cmd_len=$new_result &&
5912            test $i != 17 # 1/2 MB should be enough
5913    do
5914      i=`expr $i + 1`
5915      teststring=$teststring$teststring
5916    done
5917    teststring=
5918    # Add a significant safety factor because C++ compilers can tack on massive
5919    # amounts of additional arguments before passing them to the linker.
5920    # It appears as though 1/2 is a usable value.
5921    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5922    ;;
5923  esac
5924
5925fi
5926
5927if test -n $lt_cv_sys_max_cmd_len ; then
5928  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5929echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5930else
5931  echo "$as_me:$LINENO: result: none" >&5
5932echo "${ECHO_T}none" >&6
5933fi
5934
5935
5936
5937
5938# Check for command to grab the raw symbol name followed by C symbol from nm.
5939echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5940echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5941if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5942  echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944
5945# These are sane defaults that work on at least a few old systems.
5946# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5947
5948# Character class describing NM global symbol codes.
5949symcode='[BCDEGRST]'
5950
5951# Regexp to match symbols that can be accessed directly from C.
5952sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5953
5954# Transform an extracted symbol line into a proper C declaration
5955lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5956
5957# Transform an extracted symbol line into symbol name and symbol address
5958lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5959
5960# Define system-specific variables.
5961case $host_os in
5962aix*)
5963  symcode='[BCDT]'
5964  ;;
5965cygwin* | mingw* | pw32*)
5966  symcode='[ABCDGISTW]'
5967  ;;
5968hpux*) # Its linker distinguishes data from code symbols
5969  if test "$host_cpu" = ia64; then
5970    symcode='[ABCDEGRST]'
5971  fi
5972  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5973  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5974  ;;
5975linux*)
5976  if test "$host_cpu" = ia64; then
5977    symcode='[ABCDGIRSTW]'
5978    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5979    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5980  fi
5981  ;;
5982irix* | nonstopux*)
5983  symcode='[BCDEGRST]'
5984  ;;
5985osf*)
5986  symcode='[BCDEGQRST]'
5987  ;;
5988solaris*)
5989  symcode='[BDRT]'
5990  ;;
5991sco3.2v5*)
5992  symcode='[DT]'
5993  ;;
5994sysv4.2uw2*)
5995  symcode='[DT]'
5996  ;;
5997sysv5* | sco5v6* | unixware* | OpenUNIX*)
5998  symcode='[ABDT]'
5999  ;;
6000sysv4)
6001  symcode='[DFNSTU]'
6002  ;;
6003esac
6004
6005# Handle CRLF in mingw tool chain
6006opt_cr=
6007case $build_os in
6008mingw*)
6009  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6010  ;;
6011esac
6012
6013# If we're using GNU nm, then use its standard symbol codes.
6014case `$NM -V 2>&1` in
6015*GNU* | *'with BFD'*)
6016  symcode='[ABCDGIRSTW]' ;;
6017esac
6018
6019# Try without a prefix undercore, then with it.
6020for ac_symprfx in "" "_"; do
6021
6022  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6023  symxfrm="\\1 $ac_symprfx\\2 \\2"
6024
6025  # Write the raw and C identifiers.
6026  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6027
6028  # Check to see that the pipe works correctly.
6029  pipe_works=no
6030
6031  rm -f conftest*
6032  cat > conftest.$ac_ext <<EOF
6033#ifdef __cplusplus
6034extern "C" {
6035#endif
6036char nm_test_var;
6037void nm_test_func(){}
6038#ifdef __cplusplus
6039}
6040#endif
6041int main(){nm_test_var='a';nm_test_func();return(0);}
6042EOF
6043
6044  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045  (eval $ac_compile) 2>&5
6046  ac_status=$?
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); }; then
6049    # Now try to grab the symbols.
6050    nlist=conftest.nm
6051    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6052  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6053  ac_status=$?
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } && test -s "$nlist"; then
6056      # Try sorting and uniquifying the output.
6057      if sort "$nlist" | uniq > "$nlist"T; then
6058        mv -f "$nlist"T "$nlist"
6059      else
6060        rm -f "$nlist"T
6061      fi
6062
6063      # Make sure that we snagged all the symbols we need.
6064      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6065        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6066          cat <<EOF > conftest.$ac_ext
6067#ifdef __cplusplus
6068extern "C" {
6069#endif
6070
6071EOF
6072          # Now generate the symbol file.
6073          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6074
6075          cat <<EOF >> conftest.$ac_ext
6076#if defined (__STDC__) && __STDC__
6077# define lt_ptr_t void *
6078#else
6079# define lt_ptr_t char *
6080# define const
6081#endif
6082
6083/* The mapping between symbol names and symbols. */
6084const struct {
6085  const char *name;
6086  lt_ptr_t address;
6087}
6088lt_preloaded_symbols[] =
6089{
6090EOF
6091          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6092          cat <<\EOF >> conftest.$ac_ext
6093  {0, (lt_ptr_t) 0}
6094};
6095
6096#ifdef __cplusplus
6097}
6098#endif
6099EOF
6100          # Now try linking the two files.
6101          mv conftest.$ac_objext conftstm.$ac_objext
6102          lt_save_LIBS="$LIBS"
6103          lt_save_CFLAGS="$CFLAGS"
6104          LIBS="conftstm.$ac_objext"
6105          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6106          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107  (eval $ac_link) 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6111            pipe_works=yes
6112          fi
6113          LIBS="$lt_save_LIBS"
6114          CFLAGS="$lt_save_CFLAGS"
6115        else
6116          echo "cannot find nm_test_func in $nlist" >&5
6117        fi
6118      else
6119        echo "cannot find nm_test_var in $nlist" >&5
6120      fi
6121    else
6122      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6123    fi
6124  else
6125    echo "$progname: failed program was:" >&5
6126    cat conftest.$ac_ext >&5
6127  fi
6128  rm -f conftest* conftst*
6129
6130  # Do not use the global_symbol_pipe unless it works.
6131  if test "$pipe_works" = yes; then
6132    break
6133  else
6134    lt_cv_sys_global_symbol_pipe=
6135  fi
6136done
6137
6138fi
6139
6140if test -z "$lt_cv_sys_global_symbol_pipe"; then
6141  lt_cv_sys_global_symbol_to_cdecl=
6142fi
6143if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6144  echo "$as_me:$LINENO: result: failed" >&5
6145echo "${ECHO_T}failed" >&6
6146else
6147  echo "$as_me:$LINENO: result: ok" >&5
6148echo "${ECHO_T}ok" >&6
6149fi
6150
6151echo "$as_me:$LINENO: checking for objdir" >&5
6152echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6153if test "${lt_cv_objdir+set}" = set; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156  rm -f .libs 2>/dev/null
6157mkdir .libs 2>/dev/null
6158if test -d .libs; then
6159  lt_cv_objdir=.libs
6160else
6161  # MS-DOS does not allow filenames that begin with a dot.
6162  lt_cv_objdir=_libs
6163fi
6164rmdir .libs 2>/dev/null
6165fi
6166echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6167echo "${ECHO_T}$lt_cv_objdir" >&6
6168objdir=$lt_cv_objdir
6169
6170
6171
6172
6173
6174case $host_os in
6175aix3*)
6176  # AIX sometimes has problems with the GCC collect2 program.  For some
6177  # reason, if we set the COLLECT_NAMES environment variable, the problems
6178  # vanish in a puff of smoke.
6179  if test "X${COLLECT_NAMES+set}" != Xset; then
6180    COLLECT_NAMES=
6181    export COLLECT_NAMES
6182  fi
6183  ;;
6184esac
6185
6186# Sed substitution that helps us do robust quoting.  It backslashifies
6187# metacharacters that are still active within double-quoted strings.
6188Xsed='sed -e 1s/^X//'
6189sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6190
6191# Same as above, but do not quote variable references.
6192double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6193
6194# Sed substitution to delay expansion of an escaped shell variable in a
6195# double_quote_subst'ed string.
6196delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6197
6198# Sed substitution to avoid accidental globbing in evaled expressions
6199no_glob_subst='s/\*/\\\*/g'
6200
6201# Constants:
6202rm="rm -f"
6203
6204# Global variables:
6205default_ofile=libtool
6206can_build_shared=yes
6207
6208# All known linkers require a `.a' archive for static linking (except MSVC,
6209# which needs '.lib').
6210libext=a
6211ltmain="$ac_aux_dir/ltmain.sh"
6212ofile="$default_ofile"
6213with_gnu_ld="$lt_cv_prog_gnu_ld"
6214
6215if test -n "$ac_tool_prefix"; then
6216  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}ar; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_AR+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  if test -n "$AR"; then
6224  ac_cv_prog_AR="$AR" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231  for ac_exec_ext in '' $ac_executable_extensions; do
6232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233    ac_cv_prog_AR="${ac_tool_prefix}ar"
6234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238done
6239
6240fi
6241fi
6242AR=$ac_cv_prog_AR
6243if test -n "$AR"; then
6244  echo "$as_me:$LINENO: result: $AR" >&5
6245echo "${ECHO_T}$AR" >&6
6246else
6247  echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249fi
6250
6251fi
6252if test -z "$ac_cv_prog_AR"; then
6253  ac_ct_AR=$AR
6254  # Extract the first word of "ar", so it can be a program name with args.
6255set dummy ar; ac_word=$2
6256echo "$as_me:$LINENO: checking for $ac_word" >&5
6257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6259  echo $ECHO_N "(cached) $ECHO_C" >&6
6260else
6261  if test -n "$ac_ct_AR"; then
6262  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267  IFS=$as_save_IFS
6268  test -z "$as_dir" && as_dir=.
6269  for ac_exec_ext in '' $ac_executable_extensions; do
6270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271    ac_cv_prog_ac_ct_AR="ar"
6272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273    break 2
6274  fi
6275done
6276done
6277
6278  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6279fi
6280fi
6281ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282if test -n "$ac_ct_AR"; then
6283  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6284echo "${ECHO_T}$ac_ct_AR" >&6
6285else
6286  echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
6288fi
6289
6290  AR=$ac_ct_AR
6291else
6292  AR="$ac_cv_prog_AR"
6293fi
6294
6295if test -n "$ac_tool_prefix"; then
6296  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6297set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_RANLIB+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  if test -n "$RANLIB"; then
6304  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  test -z "$as_dir" && as_dir=.
6311  for ac_exec_ext in '' $ac_executable_extensions; do
6312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318done
6319
6320fi
6321fi
6322RANLIB=$ac_cv_prog_RANLIB
6323if test -n "$RANLIB"; then
6324  echo "$as_me:$LINENO: result: $RANLIB" >&5
6325echo "${ECHO_T}$RANLIB" >&6
6326else
6327  echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
6329fi
6330
6331fi
6332if test -z "$ac_cv_prog_RANLIB"; then
6333  ac_ct_RANLIB=$RANLIB
6334  # Extract the first word of "ranlib", so it can be a program name with args.
6335set dummy ranlib; ac_word=$2
6336echo "$as_me:$LINENO: checking for $ac_word" >&5
6337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6339  echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341  if test -n "$ac_ct_RANLIB"; then
6342  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347  IFS=$as_save_IFS
6348  test -z "$as_dir" && as_dir=.
6349  for ac_exec_ext in '' $ac_executable_extensions; do
6350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351    ac_cv_prog_ac_ct_RANLIB="ranlib"
6352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353    break 2
6354  fi
6355done
6356done
6357
6358  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6359fi
6360fi
6361ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6362if test -n "$ac_ct_RANLIB"; then
6363  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6364echo "${ECHO_T}$ac_ct_RANLIB" >&6
6365else
6366  echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368fi
6369
6370  RANLIB=$ac_ct_RANLIB
6371else
6372  RANLIB="$ac_cv_prog_RANLIB"
6373fi
6374
6375if test -n "$ac_tool_prefix"; then
6376  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}strip; ac_word=$2
6378echo "$as_me:$LINENO: checking for $ac_word" >&5
6379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6380if test "${ac_cv_prog_STRIP+set}" = set; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  if test -n "$STRIP"; then
6384  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389  IFS=$as_save_IFS
6390  test -z "$as_dir" && as_dir=.
6391  for ac_exec_ext in '' $ac_executable_extensions; do
6392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395    break 2
6396  fi
6397done
6398done
6399
6400fi
6401fi
6402STRIP=$ac_cv_prog_STRIP
6403if test -n "$STRIP"; then
6404  echo "$as_me:$LINENO: result: $STRIP" >&5
6405echo "${ECHO_T}$STRIP" >&6
6406else
6407  echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6
6409fi
6410
6411fi
6412if test -z "$ac_cv_prog_STRIP"; then
6413  ac_ct_STRIP=$STRIP
6414  # Extract the first word of "strip", so it can be a program name with args.
6415set dummy strip; ac_word=$2
6416echo "$as_me:$LINENO: checking for $ac_word" >&5
6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6418if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  if test -n "$ac_ct_STRIP"; then
6422  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429  for ac_exec_ext in '' $ac_executable_extensions; do
6430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431    ac_cv_prog_ac_ct_STRIP="strip"
6432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436done
6437
6438  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6439fi
6440fi
6441ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6442if test -n "$ac_ct_STRIP"; then
6443  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6444echo "${ECHO_T}$ac_ct_STRIP" >&6
6445else
6446  echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6
6448fi
6449
6450  STRIP=$ac_ct_STRIP
6451else
6452  STRIP="$ac_cv_prog_STRIP"
6453fi
6454
6455
6456old_CC="$CC"
6457old_CFLAGS="$CFLAGS"
6458
6459# Set sane defaults for various variables
6460test -z "$AR" && AR=ar
6461test -z "$AR_FLAGS" && AR_FLAGS=cru
6462test -z "$AS" && AS=as
6463test -z "$CC" && CC=cc
6464test -z "$LTCC" && LTCC=$CC
6465test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6466test -z "$DLLTOOL" && DLLTOOL=dlltool
6467test -z "$LD" && LD=ld
6468test -z "$LN_S" && LN_S="ln -s"
6469test -z "$MAGIC_CMD" && MAGIC_CMD=file
6470test -z "$NM" && NM=nm
6471test -z "$SED" && SED=sed
6472test -z "$OBJDUMP" && OBJDUMP=objdump
6473test -z "$RANLIB" && RANLIB=:
6474test -z "$STRIP" && STRIP=:
6475test -z "$ac_objext" && ac_objext=o
6476
6477# Determine commands to create old-style static archives.
6478old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6479old_postinstall_cmds='chmod 644 $oldlib'
6480old_postuninstall_cmds=
6481
6482if test -n "$RANLIB"; then
6483  case $host_os in
6484  openbsd*)
6485    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6486    ;;
6487  *)
6488    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6489    ;;
6490  esac
6491  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6492fi
6493
6494for cc_temp in $compiler""; do
6495  case $cc_temp in
6496    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6497    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6498    \-*) ;;
6499    *) break;;
6500  esac
6501done
6502cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6503
6504
6505# Only perform the check for file, if the check method requires it
6506case $deplibs_check_method in
6507file_magic*)
6508  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6509    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6510echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6511if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6512  echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514  case $MAGIC_CMD in
6515[\\/*] |  ?:[\\/]*)
6516  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6517  ;;
6518*)
6519  lt_save_MAGIC_CMD="$MAGIC_CMD"
6520  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6521  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6522  for ac_dir in $ac_dummy; do
6523    IFS="$lt_save_ifs"
6524    test -z "$ac_dir" && ac_dir=.
6525    if test -f $ac_dir/${ac_tool_prefix}file; then
6526      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6527      if test -n "$file_magic_test_file"; then
6528        case $deplibs_check_method in
6529        "file_magic "*)
6530          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6531          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6532          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6533            $EGREP "$file_magic_regex" > /dev/null; then
6534            :
6535          else
6536            cat <<EOF 1>&2
6537
6538*** Warning: the command libtool uses to detect shared libraries,
6539*** $file_magic_cmd, produces output that libtool cannot recognize.
6540*** The result is that libtool may fail to recognize shared libraries
6541*** as such.  This will affect the creation of libtool libraries that
6542*** depend on shared libraries, but programs linked with such libtool
6543*** libraries will work regardless of this problem.  Nevertheless, you
6544*** may want to report the problem to your system manager and/or to
6545*** bug-libtool@gnu.org
6546
6547EOF
6548          fi ;;
6549        esac
6550      fi
6551      break
6552    fi
6553  done
6554  IFS="$lt_save_ifs"
6555  MAGIC_CMD="$lt_save_MAGIC_CMD"
6556  ;;
6557esac
6558fi
6559
6560MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6561if test -n "$MAGIC_CMD"; then
6562  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6563echo "${ECHO_T}$MAGIC_CMD" >&6
6564else
6565  echo "$as_me:$LINENO: result: no" >&5
6566echo "${ECHO_T}no" >&6
6567fi
6568
6569if test -z "$lt_cv_path_MAGIC_CMD"; then
6570  if test -n "$ac_tool_prefix"; then
6571    echo "$as_me:$LINENO: checking for file" >&5
6572echo $ECHO_N "checking for file... $ECHO_C" >&6
6573if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6574  echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576  case $MAGIC_CMD in
6577[\\/*] |  ?:[\\/]*)
6578  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6579  ;;
6580*)
6581  lt_save_MAGIC_CMD="$MAGIC_CMD"
6582  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6583  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6584  for ac_dir in $ac_dummy; do
6585    IFS="$lt_save_ifs"
6586    test -z "$ac_dir" && ac_dir=.
6587    if test -f $ac_dir/file; then
6588      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6589      if test -n "$file_magic_test_file"; then
6590        case $deplibs_check_method in
6591        "file_magic "*)
6592          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6593          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6594          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6595            $EGREP "$file_magic_regex" > /dev/null; then
6596            :
6597          else
6598            cat <<EOF 1>&2
6599
6600*** Warning: the command libtool uses to detect shared libraries,
6601*** $file_magic_cmd, produces output that libtool cannot recognize.
6602*** The result is that libtool may fail to recognize shared libraries
6603*** as such.  This will affect the creation of libtool libraries that
6604*** depend on shared libraries, but programs linked with such libtool
6605*** libraries will work regardless of this problem.  Nevertheless, you
6606*** may want to report the problem to your system manager and/or to
6607*** bug-libtool@gnu.org
6608
6609EOF
6610          fi ;;
6611        esac
6612      fi
6613      break
6614    fi
6615  done
6616  IFS="$lt_save_ifs"
6617  MAGIC_CMD="$lt_save_MAGIC_CMD"
6618  ;;
6619esac
6620fi
6621
6622MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6623if test -n "$MAGIC_CMD"; then
6624  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6625echo "${ECHO_T}$MAGIC_CMD" >&6
6626else
6627  echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6
6629fi
6630
6631  else
6632    MAGIC_CMD=:
6633  fi
6634fi
6635
6636  fi
6637  ;;
6638esac
6639
6640enable_dlopen=no
6641enable_win32_dll=no
6642
6643# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6644if test "${enable_libtool_lock+set}" = set; then
6645  enableval="$enable_libtool_lock"
6646
6647fi;
6648test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6649
6650
6651# Check whether --with-pic or --without-pic was given.
6652if test "${with_pic+set}" = set; then
6653  withval="$with_pic"
6654  pic_mode="$withval"
6655else
6656  pic_mode=default
6657fi;
6658test -z "$pic_mode" && pic_mode=default
6659
6660# Use C for the default configuration in the libtool script
6661tagname=
6662lt_save_CC="$CC"
6663ac_ext=c
6664ac_cpp='$CPP $CPPFLAGS'
6665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
6669
6670# Source file extension for C test sources.
6671ac_ext=c
6672
6673# Object file extension for compiled C test sources.
6674objext=o
6675objext=$objext
6676
6677# Code to be used in simple compile tests
6678lt_simple_compile_test_code="int some_variable = 0;\n"
6679
6680# Code to be used in simple link tests
6681lt_simple_link_test_code='int main(){return(0);}\n'
6682
6683
6684# If no C compiler was specified, use CC.
6685LTCC=${LTCC-"$CC"}
6686
6687# If no C compiler flags were specified, use CFLAGS.
6688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6689
6690# Allow CC to be a program name with arguments.
6691compiler=$CC
6692
6693
6694# save warnings/boilerplate of simple test code
6695ac_outfile=conftest.$ac_objext
6696printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6697eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6698_lt_compiler_boilerplate=`cat conftest.err`
6699$rm conftest*
6700
6701ac_outfile=conftest.$ac_objext
6702printf "$lt_simple_link_test_code" >conftest.$ac_ext
6703eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6704_lt_linker_boilerplate=`cat conftest.err`
6705$rm conftest*
6706
6707
6708## CAVEAT EMPTOR:
6709## There is no encapsulation within the following macros, do not change
6710## the running order or otherwise move them around unless you know exactly
6711## what you are doing...
6712
6713lt_prog_compiler_no_builtin_flag=
6714
6715if test "$GCC" = yes; then
6716  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6717
6718
6719echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6720echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6721if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6722  echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724  lt_cv_prog_compiler_rtti_exceptions=no
6725  ac_outfile=conftest.$ac_objext
6726   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6727   lt_compiler_flag="-fno-rtti -fno-exceptions"
6728   # Insert the option either (1) after the last *FLAGS variable, or
6729   # (2) before a word containing "conftest.", or (3) at the end.
6730   # Note that $ac_compile itself does not contain backslashes and begins
6731   # with a dollar sign (not a hyphen), so the echo should work correctly.
6732   # The option is referenced via a variable to avoid confusing sed.
6733   lt_compile=`echo "$ac_compile" | $SED \
6734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6736   -e 's:$: $lt_compiler_flag:'`
6737   (eval echo "\"\$as_me:6737: $lt_compile\"" >&5)
6738   (eval "$lt_compile" 2>conftest.err)
6739   ac_status=$?
6740   cat conftest.err >&5
6741   echo "$as_me:6741: \$? = $ac_status" >&5
6742   if (exit $ac_status) && test -s "$ac_outfile"; then
6743     # The compiler can only warn and ignore the option if not recognized
6744     # So say no if there are warnings other than the usual output.
6745     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6746     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6747     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6748       lt_cv_prog_compiler_rtti_exceptions=yes
6749     fi
6750   fi
6751   $rm conftest*
6752
6753fi
6754echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6755echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6756
6757if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6758    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6759else
6760    :
6761fi
6762
6763fi
6764
6765lt_prog_compiler_wl=
6766lt_prog_compiler_pic=
6767lt_prog_compiler_static=
6768
6769echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6770echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6771
6772  if test "$GCC" = yes; then
6773    lt_prog_compiler_wl='-Wl,'
6774    lt_prog_compiler_static='-static'
6775
6776    case $host_os in
6777      aix*)
6778      # All AIX code is PIC.
6779      if test "$host_cpu" = ia64; then
6780        # AIX 5 now supports IA64 processor
6781        lt_prog_compiler_static='-Bstatic'
6782      fi
6783      ;;
6784
6785    amigaos*)
6786      # FIXME: we need at least 68020 code to build shared libraries, but
6787      # adding the `-m68020' flag to GCC prevents building anything better,
6788      # like `-m68040'.
6789      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6790      ;;
6791
6792    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6793      # PIC is the default for these OSes.
6794      ;;
6795
6796    mingw* | pw32* | os2*)
6797      # This hack is so that the source file can tell whether it is being
6798      # built for inclusion in a dll (and should export symbols for example).
6799      lt_prog_compiler_pic='-DDLL_EXPORT'
6800      ;;
6801
6802    darwin* | rhapsody*)
6803      # PIC is the default on this platform
6804      # Common symbols not allowed in MH_DYLIB files
6805      lt_prog_compiler_pic='-fno-common'
6806      ;;
6807
6808    interix3*)
6809      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6810      # Instead, we relocate shared libraries at runtime.
6811      ;;
6812
6813    msdosdjgpp*)
6814      # Just because we use GCC doesn't mean we suddenly get shared libraries
6815      # on systems that don't support them.
6816      lt_prog_compiler_can_build_shared=no
6817      enable_shared=no
6818      ;;
6819
6820    sysv4*MP*)
6821      if test -d /usr/nec; then
6822        lt_prog_compiler_pic=-Kconform_pic
6823      fi
6824      ;;
6825
6826    hpux*)
6827      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6828      # not for PA HP-UX.
6829      case $host_cpu in
6830      hppa*64*|ia64*)
6831        # +Z the default
6832        ;;
6833      *)
6834        lt_prog_compiler_pic='-fPIC'
6835        ;;
6836      esac
6837      ;;
6838
6839    *)
6840      lt_prog_compiler_pic='-fPIC'
6841      ;;
6842    esac
6843  else
6844    # PORTME Check for flag to pass linker flags through the system compiler.
6845    case $host_os in
6846    aix*)
6847      lt_prog_compiler_wl='-Wl,'
6848      if test "$host_cpu" = ia64; then
6849        # AIX 5 now supports IA64 processor
6850        lt_prog_compiler_static='-Bstatic'
6851      else
6852        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6853      fi
6854      ;;
6855      darwin*)
6856        # PIC is the default on this platform
6857        # Common symbols not allowed in MH_DYLIB files
6858       case $cc_basename in
6859         xlc*)
6860         lt_prog_compiler_pic='-qnocommon'
6861         lt_prog_compiler_wl='-Wl,'
6862         ;;
6863       esac
6864       ;;
6865
6866    mingw* | pw32* | os2*)
6867      # This hack is so that the source file can tell whether it is being
6868      # built for inclusion in a dll (and should export symbols for example).
6869      lt_prog_compiler_pic='-DDLL_EXPORT'
6870      ;;
6871
6872    hpux9* | hpux10* | hpux11*)
6873      lt_prog_compiler_wl='-Wl,'
6874      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6875      # not for PA HP-UX.
6876      case $host_cpu in
6877      hppa*64*|ia64*)
6878        # +Z the default
6879        ;;
6880      *)
6881        lt_prog_compiler_pic='+Z'
6882        ;;
6883      esac
6884      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6885      lt_prog_compiler_static='${wl}-a ${wl}archive'
6886      ;;
6887
6888    irix5* | irix6* | nonstopux*)
6889      lt_prog_compiler_wl='-Wl,'
6890      # PIC (with -KPIC) is the default.
6891      lt_prog_compiler_static='-non_shared'
6892      ;;
6893
6894    newsos6)
6895      lt_prog_compiler_pic='-KPIC'
6896      lt_prog_compiler_static='-Bstatic'
6897      ;;
6898
6899    linux*)
6900      case $cc_basename in
6901      icc* | ecc*)
6902        lt_prog_compiler_wl='-Wl,'
6903        lt_prog_compiler_pic='-KPIC'
6904        lt_prog_compiler_static='-static'
6905        ;;
6906      pgcc* | pgf77* | pgf90* | pgf95*)
6907        # Portland Group compilers (*not* the Pentium gcc compiler,
6908        # which looks to be a dead project)
6909        lt_prog_compiler_wl='-Wl,'
6910        lt_prog_compiler_pic='-fpic'
6911        lt_prog_compiler_static='-Bstatic'
6912        ;;
6913      ccc*)
6914        lt_prog_compiler_wl='-Wl,'
6915        # All Alpha code is PIC.
6916        lt_prog_compiler_static='-non_shared'
6917        ;;
6918      esac
6919      ;;
6920
6921    osf3* | osf4* | osf5*)
6922      lt_prog_compiler_wl='-Wl,'
6923      # All OSF/1 code is PIC.
6924      lt_prog_compiler_static='-non_shared'
6925      ;;
6926
6927    solaris*)
6928      lt_prog_compiler_pic='-KPIC'
6929      lt_prog_compiler_static='-Bstatic'
6930      case $cc_basename in
6931      f77* | f90* | f95*)
6932        lt_prog_compiler_wl='-Qoption ld ';;
6933      *)
6934        lt_prog_compiler_wl='-Wl,';;
6935      esac
6936      ;;
6937
6938    sunos4*)
6939      lt_prog_compiler_wl='-Qoption ld '
6940      lt_prog_compiler_pic='-PIC'
6941      lt_prog_compiler_static='-Bstatic'
6942      ;;
6943
6944    sysv4 | sysv4.2uw2* | sysv4.3*)
6945      lt_prog_compiler_wl='-Wl,'
6946      lt_prog_compiler_pic='-KPIC'
6947      lt_prog_compiler_static='-Bstatic'
6948      ;;
6949
6950    sysv4*MP*)
6951      if test -d /usr/nec ;then
6952        lt_prog_compiler_pic='-Kconform_pic'
6953        lt_prog_compiler_static='-Bstatic'
6954      fi
6955      ;;
6956
6957    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6958      lt_prog_compiler_wl='-Wl,'
6959      lt_prog_compiler_pic='-KPIC'
6960      lt_prog_compiler_static='-Bstatic'
6961      ;;
6962
6963    unicos*)
6964      lt_prog_compiler_wl='-Wl,'
6965      lt_prog_compiler_can_build_shared=no
6966      ;;
6967
6968    uts4*)
6969      lt_prog_compiler_pic='-pic'
6970      lt_prog_compiler_static='-Bstatic'
6971      ;;
6972
6973    *)
6974      lt_prog_compiler_can_build_shared=no
6975      ;;
6976    esac
6977  fi
6978
6979echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6980echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6981
6982#
6983# Check to make sure the PIC flag actually works.
6984#
6985if test -n "$lt_prog_compiler_pic"; then
6986
6987echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6988echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6989if test "${lt_prog_compiler_pic_works+set}" = set; then
6990  echo $ECHO_N "(cached) $ECHO_C" >&6
6991else
6992  lt_prog_compiler_pic_works=no
6993  ac_outfile=conftest.$ac_objext
6994   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6995   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6996   # Insert the option either (1) after the last *FLAGS variable, or
6997   # (2) before a word containing "conftest.", or (3) at the end.
6998   # Note that $ac_compile itself does not contain backslashes and begins
6999   # with a dollar sign (not a hyphen), so the echo should work correctly.
7000   # The option is referenced via a variable to avoid confusing sed.
7001   lt_compile=`echo "$ac_compile" | $SED \
7002   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7003   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7004   -e 's:$: $lt_compiler_flag:'`
7005   (eval echo "\"\$as_me:7005: $lt_compile\"" >&5)
7006   (eval "$lt_compile" 2>conftest.err)
7007   ac_status=$?
7008   cat conftest.err >&5
7009   echo "$as_me:7009: \$? = $ac_status" >&5
7010   if (exit $ac_status) && test -s "$ac_outfile"; then
7011     # The compiler can only warn and ignore the option if not recognized
7012     # So say no if there are warnings other than the usual output.
7013     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7014     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7015     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7016       lt_prog_compiler_pic_works=yes
7017     fi
7018   fi
7019   $rm conftest*
7020
7021fi
7022echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7023echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7024
7025if test x"$lt_prog_compiler_pic_works" = xyes; then
7026    case $lt_prog_compiler_pic in
7027     "" | " "*) ;;
7028     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7029     esac
7030else
7031    lt_prog_compiler_pic=
7032     lt_prog_compiler_can_build_shared=no
7033fi
7034
7035fi
7036case $host_os in
7037  # For platforms which do not support PIC, -DPIC is meaningless:
7038  *djgpp*)
7039    lt_prog_compiler_pic=
7040    ;;
7041  *)
7042    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7043    ;;
7044esac
7045
7046#
7047# Check to make sure the static flag actually works.
7048#
7049wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7050echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7051echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7052if test "${lt_prog_compiler_static_works+set}" = set; then
7053  echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055  lt_prog_compiler_static_works=no
7056   save_LDFLAGS="$LDFLAGS"
7057   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7058   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7059   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7060     # The linker can only warn and ignore the option if not recognized
7061     # So say no if there are warnings
7062     if test -s conftest.err; then
7063       # Append any errors to the config.log.
7064       cat conftest.err 1>&5
7065       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7066       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7067       if diff conftest.exp conftest.er2 >/dev/null; then
7068         lt_prog_compiler_static_works=yes
7069       fi
7070     else
7071       lt_prog_compiler_static_works=yes
7072     fi
7073   fi
7074   $rm conftest*
7075   LDFLAGS="$save_LDFLAGS"
7076
7077fi
7078echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7079echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7080
7081if test x"$lt_prog_compiler_static_works" = xyes; then
7082    :
7083else
7084    lt_prog_compiler_static=
7085fi
7086
7087
7088echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7089echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7090if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7091  echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093  lt_cv_prog_compiler_c_o=no
7094   $rm -r conftest 2>/dev/null
7095   mkdir conftest
7096   cd conftest
7097   mkdir out
7098   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7099
7100   lt_compiler_flag="-o out/conftest2.$ac_objext"
7101   # Insert the option either (1) after the last *FLAGS variable, or
7102   # (2) before a word containing "conftest.", or (3) at the end.
7103   # Note that $ac_compile itself does not contain backslashes and begins
7104   # with a dollar sign (not a hyphen), so the echo should work correctly.
7105   lt_compile=`echo "$ac_compile" | $SED \
7106   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7107   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7108   -e 's:$: $lt_compiler_flag:'`
7109   (eval echo "\"\$as_me:7109: $lt_compile\"" >&5)
7110   (eval "$lt_compile" 2>out/conftest.err)
7111   ac_status=$?
7112   cat out/conftest.err >&5
7113   echo "$as_me:7113: \$? = $ac_status" >&5
7114   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7115   then
7116     # The compiler can only warn and ignore the option if not recognized
7117     # So say no if there are warnings
7118     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7119     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7120     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7121       lt_cv_prog_compiler_c_o=yes
7122     fi
7123   fi
7124   chmod u+w . 2>&5
7125   $rm conftest*
7126   # SGI C++ compiler will create directory out/ii_files/ for
7127   # template instantiation
7128   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7129   $rm out/* && rmdir out
7130   cd ..
7131   rmdir conftest
7132   $rm conftest*
7133
7134fi
7135echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7136echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7137
7138
7139hard_links="nottested"
7140if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7141  # do not overwrite the value of need_locks provided by the user
7142  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7143echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7144  hard_links=yes
7145  $rm conftest*
7146  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7147  touch conftest.a
7148  ln conftest.a conftest.b 2>&5 || hard_links=no
7149  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7150  echo "$as_me:$LINENO: result: $hard_links" >&5
7151echo "${ECHO_T}$hard_links" >&6
7152  if test "$hard_links" = no; then
7153    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7154echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7155    need_locks=warn
7156  fi
7157else
7158  need_locks=no
7159fi
7160
7161echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7162echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7163
7164  runpath_var=
7165  allow_undefined_flag=
7166  enable_shared_with_static_runtimes=no
7167  archive_cmds=
7168  archive_expsym_cmds=
7169  old_archive_From_new_cmds=
7170  old_archive_from_expsyms_cmds=
7171  export_dynamic_flag_spec=
7172  whole_archive_flag_spec=
7173  thread_safe_flag_spec=
7174  hardcode_libdir_flag_spec=
7175  hardcode_libdir_flag_spec_ld=
7176  hardcode_libdir_separator=
7177  hardcode_direct=no
7178  hardcode_minus_L=no
7179  hardcode_shlibpath_var=unsupported
7180  link_all_deplibs=unknown
7181  hardcode_automatic=no
7182  module_cmds=
7183  module_expsym_cmds=
7184  always_export_symbols=no
7185  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7186  # include_expsyms should be a list of space-separated symbols to be *always*
7187  # included in the symbol list
7188  include_expsyms=
7189  # exclude_expsyms can be an extended regexp of symbols to exclude
7190  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7191  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7192  # as well as any symbol that contains `d'.
7193  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7194  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7195  # platforms (ab)use it in PIC code, but their linkers get confused if
7196  # the symbol is explicitly referenced.  Since portable code cannot
7197  # rely on this symbol name, it's probably fine to never include it in
7198  # preloaded symbol tables.
7199  extract_expsyms_cmds=
7200  # Just being paranoid about ensuring that cc_basename is set.
7201  for cc_temp in $compiler""; do
7202  case $cc_temp in
7203    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7204    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7205    \-*) ;;
7206    *) break;;
7207  esac
7208done
7209cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7210
7211  case $host_os in
7212  cygwin* | mingw* | pw32*)
7213    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7214    # When not using gcc, we currently assume that we are using
7215    # Microsoft Visual C++.
7216    if test "$GCC" != yes; then
7217      with_gnu_ld=no
7218    fi
7219    ;;
7220  interix*)
7221    # we just hope/assume this is gcc and not c89 (= MSVC++)
7222    with_gnu_ld=yes
7223    ;;
7224  openbsd*)
7225    with_gnu_ld=no
7226    ;;
7227  esac
7228
7229  ld_shlibs=yes
7230  if test "$with_gnu_ld" = yes; then
7231    # If archive_cmds runs LD, not CC, wlarc should be empty
7232    wlarc='${wl}'
7233
7234    # Set some defaults for GNU ld with shared library support. These
7235    # are reset later if shared libraries are not supported. Putting them
7236    # here allows them to be overridden if necessary.
7237    runpath_var=LD_RUN_PATH
7238    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7239    export_dynamic_flag_spec='${wl}--export-dynamic'
7240    # ancient GNU ld didn't support --whole-archive et. al.
7241    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7242        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7243      else
7244        whole_archive_flag_spec=
7245    fi
7246    supports_anon_versioning=no
7247    case `$LD -v 2>/dev/null` in
7248      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7249      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7250      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7251      *\ 2.11.*) ;; # other 2.11 versions
7252      *) supports_anon_versioning=yes ;;
7253    esac
7254
7255    # See if GNU ld supports shared libraries.
7256    case $host_os in
7257    aix3* | aix4* | aix5*)
7258      # On AIX/PPC, the GNU linker is very broken
7259      if test "$host_cpu" != ia64; then
7260        ld_shlibs=no
7261        cat <<EOF 1>&2
7262
7263*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7264*** to be unable to reliably create shared libraries on AIX.
7265*** Therefore, libtool is disabling shared libraries support.  If you
7266*** really care for shared libraries, you may want to modify your PATH
7267*** so that a non-GNU linker is found, and then restart.
7268
7269EOF
7270      fi
7271      ;;
7272
7273    amigaos*)
7274      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)'
7275      hardcode_libdir_flag_spec='-L$libdir'
7276      hardcode_minus_L=yes
7277
7278      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7279      # that the semantics of dynamic libraries on AmigaOS, at least up
7280      # to version 4, is to share data among multiple programs linked
7281      # with the same dynamic library.  Since this doesn't match the
7282      # behavior of shared libraries on other platforms, we can't use
7283      # them.
7284      ld_shlibs=no
7285      ;;
7286
7287    beos*)
7288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7289        allow_undefined_flag=unsupported
7290        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7291        # support --undefined.  This deserves some investigation.  FIXME
7292        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7293      else
7294        ld_shlibs=no
7295      fi
7296      ;;
7297
7298    cygwin* | mingw* | pw32*)
7299      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7300      # as there is no search path for DLLs.
7301      hardcode_libdir_flag_spec='-L$libdir'
7302      allow_undefined_flag=unsupported
7303      always_export_symbols=no
7304      enable_shared_with_static_runtimes=yes
7305      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7306
7307      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7308        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7309        # If the export-symbols file already is a .def file (1st line
7310        # is EXPORTS), use it as is; otherwise, prepend...
7311        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7312          cp $export_symbols $output_objdir/$soname.def;
7313        else
7314          echo EXPORTS > $output_objdir/$soname.def;
7315          cat $export_symbols >> $output_objdir/$soname.def;
7316        fi~
7317        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7318      else
7319        ld_shlibs=no
7320      fi
7321      ;;
7322
7323    interix3*)
7324      hardcode_direct=no
7325      hardcode_shlibpath_var=no
7326      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7327      export_dynamic_flag_spec='${wl}-E'
7328      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7329      # Instead, shared libraries are loaded at an image base (0x10000000 by
7330      # default) and relocated if they conflict, which is a slow very memory
7331      # consuming and fragmenting process.  To avoid this, we pick a random,
7332      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7333      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7334      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7335      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'
7336      ;;
7337
7338    linux*)
7339      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7340        tmp_addflag=
7341        case $cc_basename,$host_cpu in
7342        pgcc*)                          # Portland Group C compiler
7343          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7344          tmp_addflag=' $pic_flag'
7345          ;;
7346        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7347          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7348          tmp_addflag=' $pic_flag -Mnomain' ;;
7349        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7350          tmp_addflag=' -i_dynamic' ;;
7351        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7352          tmp_addflag=' -i_dynamic -nofor_main' ;;
7353        ifc* | ifort*)                  # Intel Fortran compiler
7354          tmp_addflag=' -nofor_main' ;;
7355        esac
7356        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7357
7358        if test $supports_anon_versioning = yes; then
7359          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7360  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7361  $echo "local: *; };" >> $output_objdir/$libname.ver~
7362          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7363        fi
7364      else
7365        ld_shlibs=no
7366      fi
7367      ;;
7368
7369    netbsd*)
7370      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7371        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7372        wlarc=
7373      else
7374        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7375        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7376      fi
7377      ;;
7378
7379    solaris*)
7380      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7381        ld_shlibs=no
7382        cat <<EOF 1>&2
7383
7384*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7385*** create shared libraries on Solaris systems.  Therefore, libtool
7386*** is disabling shared libraries support.  We urge you to upgrade GNU
7387*** binutils to release 2.9.1 or newer.  Another option is to modify
7388*** your PATH or compiler configuration so that the native linker is
7389*** used, and then restart.
7390
7391EOF
7392      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7393        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7394        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7395      else
7396        ld_shlibs=no
7397      fi
7398      ;;
7399
7400    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7401      case `$LD -v 2>&1` in
7402        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7403        ld_shlibs=no
7404        cat <<_LT_EOF 1>&2
7405
7406*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7407*** reliably create shared libraries on SCO systems.  Therefore, libtool
7408*** is disabling shared libraries support.  We urge you to upgrade GNU
7409*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7410*** your PATH or compiler configuration so that the native linker is
7411*** used, and then restart.
7412
7413_LT_EOF
7414        ;;
7415        *)
7416          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7417            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7418            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7419            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7420          else
7421            ld_shlibs=no
7422          fi
7423        ;;
7424      esac
7425      ;;
7426
7427    sunos4*)
7428      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7429      wlarc=
7430      hardcode_direct=yes
7431      hardcode_shlibpath_var=no
7432      ;;
7433
7434    *)
7435      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7436        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7437        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7438      else
7439        ld_shlibs=no
7440      fi
7441      ;;
7442    esac
7443
7444    if test "$ld_shlibs" = no; then
7445      runpath_var=
7446      hardcode_libdir_flag_spec=
7447      export_dynamic_flag_spec=
7448      whole_archive_flag_spec=
7449    fi
7450  else
7451    # PORTME fill in a description of your system's linker (not GNU ld)
7452    case $host_os in
7453    aix3*)
7454      allow_undefined_flag=unsupported
7455      always_export_symbols=yes
7456      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'
7457      # Note: this linker hardcodes the directories in LIBPATH if there
7458      # are no directories specified by -L.
7459      hardcode_minus_L=yes
7460      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7461        # Neither direct hardcoding nor static linking is supported with a
7462        # broken collect2.
7463        hardcode_direct=unsupported
7464      fi
7465      ;;
7466
7467    aix4* | aix5*)
7468      if test "$host_cpu" = ia64; then
7469        # On IA64, the linker does run time linking by default, so we don't
7470        # have to do anything special.
7471        aix_use_runtimelinking=no
7472        exp_sym_flag='-Bexport'
7473        no_entry_flag=""
7474      else
7475        # If we're using GNU nm, then we don't want the "-C" option.
7476        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7477        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7478          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7479        else
7480          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'
7481        fi
7482        aix_use_runtimelinking=no
7483
7484        # Test if we are trying to use run time linking or normal
7485        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7486        # need to do runtime linking.
7487        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7488          for ld_flag in $LDFLAGS; do
7489          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7490            aix_use_runtimelinking=yes
7491            break
7492          fi
7493          done
7494          ;;
7495        esac
7496
7497        exp_sym_flag='-bexport'
7498        no_entry_flag='-bnoentry'
7499      fi
7500
7501      # When large executables or shared objects are built, AIX ld can
7502      # have problems creating the table of contents.  If linking a library
7503      # or program results in "error TOC overflow" add -mminimal-toc to
7504      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7505      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7506
7507      archive_cmds=''
7508      hardcode_direct=yes
7509      hardcode_libdir_separator=':'
7510      link_all_deplibs=yes
7511
7512      if test "$GCC" = yes; then
7513        case $host_os in aix4.[012]|aix4.[012].*)
7514        # We only want to do this on AIX 4.2 and lower, the check
7515        # below for broken collect2 doesn't work under 4.3+
7516          collect2name=`${CC} -print-prog-name=collect2`
7517          if test -f "$collect2name" && \
7518           strings "$collect2name" | grep resolve_lib_name >/dev/null
7519          then
7520          # We have reworked collect2
7521          hardcode_direct=yes
7522          else
7523          # We have old collect2
7524          hardcode_direct=unsupported
7525          # It fails to find uninstalled libraries when the uninstalled
7526          # path is not listed in the libpath.  Setting hardcode_minus_L
7527          # to unsupported forces relinking
7528          hardcode_minus_L=yes
7529          hardcode_libdir_flag_spec='-L$libdir'
7530          hardcode_libdir_separator=
7531          fi
7532          ;;
7533        esac
7534        shared_flag='-shared'
7535        if test "$aix_use_runtimelinking" = yes; then
7536          shared_flag="$shared_flag "'${wl}-G'
7537        fi
7538      else
7539        # not using gcc
7540        if test "$host_cpu" = ia64; then
7541        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7542        # chokes on -Wl,-G. The following line is correct:
7543          shared_flag='-G'
7544        else
7545          if test "$aix_use_runtimelinking" = yes; then
7546            shared_flag='${wl}-G'
7547          else
7548            shared_flag='${wl}-bM:SRE'
7549          fi
7550        fi
7551      fi
7552
7553      # It seems that -bexpall does not export symbols beginning with
7554      # underscore (_), so it is better to generate a list of symbols to export.
7555      always_export_symbols=yes
7556      if test "$aix_use_runtimelinking" = yes; then
7557        # Warning - without using the other runtime loading flags (-brtl),
7558        # -berok will link without error, but may produce a broken library.
7559        allow_undefined_flag='-berok'
7560       # Determine the default libpath from the value encoded in an empty executable.
7561       cat >conftest.$ac_ext <<_ACEOF
7562/* confdefs.h.  */
7563_ACEOF
7564cat confdefs.h >>conftest.$ac_ext
7565cat >>conftest.$ac_ext <<_ACEOF
7566/* end confdefs.h.  */
7567
7568int
7569main ()
7570{
7571
7572  ;
7573  return 0;
7574}
7575_ACEOF
7576rm -f conftest.$ac_objext conftest$ac_exeext
7577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578  (eval $ac_link) 2>conftest.er1
7579  ac_status=$?
7580  grep -v '^ *+' conftest.er1 >conftest.err
7581  rm -f conftest.er1
7582  cat conftest.err >&5
7583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584  (exit $ac_status); } &&
7585         { ac_try='test -z "$ac_c_werror_flag"
7586                         || test ! -s conftest.err'
7587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588  (eval $ac_try) 2>&5
7589  ac_status=$?
7590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591  (exit $ac_status); }; } &&
7592         { ac_try='test -s conftest$ac_exeext'
7593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594  (eval $ac_try) 2>&5
7595  ac_status=$?
7596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597  (exit $ac_status); }; }; then
7598
7599aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7600}'`
7601# Check for a 64-bit object if we didn't find anything.
7602if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7603}'`; fi
7604else
7605  echo "$as_me: failed program was:" >&5
7606sed 's/^/| /' conftest.$ac_ext >&5
7607
7608fi
7609rm -f conftest.err conftest.$ac_objext \
7610      conftest$ac_exeext conftest.$ac_ext
7611if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7612
7613       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7614        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7615       else
7616        if test "$host_cpu" = ia64; then
7617          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7618          allow_undefined_flag="-z nodefs"
7619          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"
7620        else
7621         # Determine the default libpath from the value encoded in an empty executable.
7622         cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h.  */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h.  */
7628
7629int
7630main ()
7631{
7632
7633  ;
7634  return 0;
7635}
7636_ACEOF
7637rm -f conftest.$ac_objext conftest$ac_exeext
7638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639  (eval $ac_link) 2>conftest.er1
7640  ac_status=$?
7641  grep -v '^ *+' conftest.er1 >conftest.err
7642  rm -f conftest.er1
7643  cat conftest.err >&5
7644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645  (exit $ac_status); } &&
7646         { ac_try='test -z "$ac_c_werror_flag"
7647                         || test ! -s conftest.err'
7648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649  (eval $ac_try) 2>&5
7650  ac_status=$?
7651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652  (exit $ac_status); }; } &&
7653         { ac_try='test -s conftest$ac_exeext'
7654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655  (eval $ac_try) 2>&5
7656  ac_status=$?
7657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658  (exit $ac_status); }; }; then
7659
7660aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7661}'`
7662# Check for a 64-bit object if we didn't find anything.
7663if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7664}'`; fi
7665else
7666  echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669fi
7670rm -f conftest.err conftest.$ac_objext \
7671      conftest$ac_exeext conftest.$ac_ext
7672if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7673
7674         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7675          # Warning - without using the other run time loading flags,
7676          # -berok will link without error, but may produce a broken library.
7677          no_undefined_flag=' ${wl}-bernotok'
7678          allow_undefined_flag=' ${wl}-berok'
7679          # Exported symbols can be pulled into shared objects from archives
7680          whole_archive_flag_spec='$convenience'
7681          archive_cmds_need_lc=yes
7682          # This is similar to how AIX traditionally builds its shared libraries.
7683          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'
7684        fi
7685      fi
7686      ;;
7687
7688    amigaos*)
7689      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)'
7690      hardcode_libdir_flag_spec='-L$libdir'
7691      hardcode_minus_L=yes
7692      # see comment about different semantics on the GNU ld section
7693      ld_shlibs=no
7694      ;;
7695
7696    bsdi[45]*)
7697      export_dynamic_flag_spec=-rdynamic
7698      ;;
7699
7700    cygwin* | mingw* | pw32*)
7701      # When not using gcc, we currently assume that we are using
7702      # Microsoft Visual C++.
7703      # hardcode_libdir_flag_spec is actually meaningless, as there is
7704      # no search path for DLLs.
7705      hardcode_libdir_flag_spec=' '
7706      allow_undefined_flag=unsupported
7707      # Tell ltmain to make .lib files, not .a files.
7708      libext=lib
7709      # Tell ltmain to make .dll files, not .so files.
7710      shrext_cmds=".dll"
7711      # FIXME: Setting linknames here is a bad hack.
7712      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7713      # The linker will automatically build a .lib file if we build a DLL.
7714      old_archive_From_new_cmds='true'
7715      # FIXME: Should let the user specify the lib program.
7716      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7717      fix_srcfile_path='`cygpath -w "$srcfile"`'
7718      enable_shared_with_static_runtimes=yes
7719      ;;
7720
7721    darwin* | rhapsody*)
7722      case $host_os in
7723        rhapsody* | darwin1.[012])
7724         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7725         ;;
7726       *) # Darwin 1.3 on
7727         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7728           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7729         else
7730           case ${MACOSX_DEPLOYMENT_TARGET} in
7731             10.[012])
7732               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7733               ;;
7734             10.*)
7735               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7736               ;;
7737           esac
7738         fi
7739         ;;
7740      esac
7741      archive_cmds_need_lc=no
7742      hardcode_direct=no
7743      hardcode_automatic=yes
7744      hardcode_shlibpath_var=unsupported
7745      whole_archive_flag_spec=''
7746      link_all_deplibs=yes
7747    if test "$GCC" = yes ; then
7748        output_verbose_link_cmd='echo'
7749        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7750      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7751      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7752      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7753      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7754    else
7755      case $cc_basename in
7756        xlc*)
7757         output_verbose_link_cmd='echo'
7758         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7759         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7760          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7761         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7762          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7763          ;;
7764       *)
7765         ld_shlibs=no
7766          ;;
7767      esac
7768    fi
7769      ;;
7770
7771    dgux*)
7772      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7773      hardcode_libdir_flag_spec='-L$libdir'
7774      hardcode_shlibpath_var=no
7775      ;;
7776
7777    freebsd1*)
7778      ld_shlibs=no
7779      ;;
7780
7781    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7782    # support.  Future versions do this automatically, but an explicit c++rt0.o
7783    # does not break anything, and helps significantly (at the cost of a little
7784    # extra space).
7785    freebsd2.2*)
7786      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7787      hardcode_libdir_flag_spec='-R$libdir'
7788      hardcode_direct=yes
7789      hardcode_shlibpath_var=no
7790      ;;
7791
7792    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7793    freebsd2*)
7794      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7795      hardcode_direct=yes
7796      hardcode_minus_L=yes
7797      hardcode_shlibpath_var=no
7798      ;;
7799
7800    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7801    freebsd* | kfreebsd*-gnu | dragonfly*)
7802      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7803      hardcode_libdir_flag_spec='-R$libdir'
7804      hardcode_direct=yes
7805      hardcode_shlibpath_var=no
7806      ;;
7807
7808    hpux9*)
7809      if test "$GCC" = yes; then
7810        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'
7811      else
7812        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'
7813      fi
7814      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7815      hardcode_libdir_separator=:
7816      hardcode_direct=yes
7817
7818      # hardcode_minus_L: Not really in the search PATH,
7819      # but as the default location of the library.
7820      hardcode_minus_L=yes
7821      export_dynamic_flag_spec='${wl}-E'
7822      ;;
7823
7824    hpux10*)
7825      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7826        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7827      else
7828        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7829      fi
7830      if test "$with_gnu_ld" = no; then
7831        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7832        hardcode_libdir_separator=:
7833
7834        hardcode_direct=yes
7835        export_dynamic_flag_spec='${wl}-E'
7836
7837        # hardcode_minus_L: Not really in the search PATH,
7838        # but as the default location of the library.
7839        hardcode_minus_L=yes
7840      fi
7841      ;;
7842
7843    hpux11*)
7844      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7845        case $host_cpu in
7846        hppa*64*)
7847          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7848          ;;
7849        ia64*)
7850          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7851          ;;
7852        *)
7853          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7854          ;;
7855        esac
7856      else
7857        case $host_cpu in
7858        hppa*64*)
7859          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7860          ;;
7861        ia64*)
7862          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7863          ;;
7864        *)
7865          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7866          ;;
7867        esac
7868      fi
7869      if test "$with_gnu_ld" = no; then
7870        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7871        hardcode_libdir_separator=:
7872
7873        case $host_cpu in
7874        hppa*64*|ia64*)
7875          hardcode_libdir_flag_spec_ld='+b $libdir'
7876          hardcode_direct=no
7877          hardcode_shlibpath_var=no
7878          ;;
7879        *)
7880          hardcode_direct=yes
7881          export_dynamic_flag_spec='${wl}-E'
7882
7883          # hardcode_minus_L: Not really in the search PATH,
7884          # but as the default location of the library.
7885          hardcode_minus_L=yes
7886          ;;
7887        esac
7888      fi
7889      ;;
7890
7891    irix5* | irix6* | nonstopux*)
7892      if test "$GCC" = yes; then
7893        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7894      else
7895        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7896        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7897      fi
7898      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7899      hardcode_libdir_separator=:
7900      link_all_deplibs=yes
7901      ;;
7902
7903    netbsd*)
7904      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7905        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7906      else
7907        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7908      fi
7909      hardcode_libdir_flag_spec='-R$libdir'
7910      hardcode_direct=yes
7911      hardcode_shlibpath_var=no
7912      ;;
7913
7914    newsos6)
7915      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7916      hardcode_direct=yes
7917      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7918      hardcode_libdir_separator=:
7919      hardcode_shlibpath_var=no
7920      ;;
7921
7922    openbsd*)
7923      hardcode_direct=yes
7924      hardcode_shlibpath_var=no
7925      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7926        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7927        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7928        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7929        export_dynamic_flag_spec='${wl}-E'
7930      else
7931       case $host_os in
7932         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7933           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7934           hardcode_libdir_flag_spec='-R$libdir'
7935           ;;
7936         *)
7937           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7938           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7939           ;;
7940       esac
7941      fi
7942      ;;
7943
7944    os2*)
7945      hardcode_libdir_flag_spec='-L$libdir'
7946      hardcode_minus_L=yes
7947      allow_undefined_flag=unsupported
7948      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'
7949      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7950      ;;
7951
7952    osf3*)
7953      if test "$GCC" = yes; then
7954        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7955        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7956      else
7957        allow_undefined_flag=' -expect_unresolved \*'
7958        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7959      fi
7960      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7961      hardcode_libdir_separator=:
7962      ;;
7963
7964    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7965      if test "$GCC" = yes; then
7966        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7967        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7968        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7969      else
7970        allow_undefined_flag=' -expect_unresolved \*'
7971        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7972        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7973        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7974
7975        # Both c and cxx compiler support -rpath directly
7976        hardcode_libdir_flag_spec='-rpath $libdir'
7977      fi
7978      hardcode_libdir_separator=:
7979      ;;
7980
7981    solaris*)
7982      no_undefined_flag=' -z text'
7983      if test "$GCC" = yes; then
7984        wlarc='${wl}'
7985        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7986        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7987          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7988      else
7989        wlarc=''
7990        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7991        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7992        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7993      fi
7994      hardcode_libdir_flag_spec='-R$libdir'
7995      hardcode_shlibpath_var=no
7996      case $host_os in
7997      solaris2.[0-5] | solaris2.[0-5].*) ;;
7998      *)
7999        # The compiler driver will combine linker options so we
8000        # cannot just pass the convience library names through
8001        # without $wl, iff we do not link with $LD.
8002        # Luckily, gcc supports the same syntax we need for Sun Studio.
8003        # Supported since Solaris 2.6 (maybe 2.5.1?)
8004        case $wlarc in
8005        '')
8006          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8007        *)
8008          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8009        esac ;;
8010      esac
8011      link_all_deplibs=yes
8012      ;;
8013
8014    sunos4*)
8015      if test "x$host_vendor" = xsequent; then
8016        # Use $CC to link under sequent, because it throws in some extra .o
8017        # files that make .init and .fini sections work.
8018        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8019      else
8020        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8021      fi
8022      hardcode_libdir_flag_spec='-L$libdir'
8023      hardcode_direct=yes
8024      hardcode_minus_L=yes
8025      hardcode_shlibpath_var=no
8026      ;;
8027
8028    sysv4)
8029      case $host_vendor in
8030        sni)
8031          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8032          hardcode_direct=yes # is this really true???
8033        ;;
8034        siemens)
8035          ## LD is ld it makes a PLAMLIB
8036          ## CC just makes a GrossModule.
8037          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8038          reload_cmds='$CC -r -o $output$reload_objs'
8039          hardcode_direct=no
8040        ;;
8041        motorola)
8042          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8043          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8044        ;;
8045      esac
8046      runpath_var='LD_RUN_PATH'
8047      hardcode_shlibpath_var=no
8048      ;;
8049
8050    sysv4.3*)
8051      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8052      hardcode_shlibpath_var=no
8053      export_dynamic_flag_spec='-Bexport'
8054      ;;
8055
8056    sysv4*MP*)
8057      if test -d /usr/nec; then
8058        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8059        hardcode_shlibpath_var=no
8060        runpath_var=LD_RUN_PATH
8061        hardcode_runpath_var=yes
8062        ld_shlibs=yes
8063      fi
8064      ;;
8065
8066    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8067      no_undefined_flag='${wl}-z,text'
8068      archive_cmds_need_lc=no
8069      hardcode_shlibpath_var=no
8070      runpath_var='LD_RUN_PATH'
8071
8072      if test "$GCC" = yes; then
8073        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8074        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8075      else
8076        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8077        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8078      fi
8079      ;;
8080
8081    sysv5* | sco3.2v5* | sco5v6*)
8082      # Note: We can NOT use -z defs as we might desire, because we do not
8083      # link with -lc, and that would cause any symbols used from libc to
8084      # always be unresolved, which means just about no library would
8085      # ever link correctly.  If we're not using GNU ld we use -z text
8086      # though, which does catch some bad symbols but isn't as heavy-handed
8087      # as -z defs.
8088      no_undefined_flag='${wl}-z,text'
8089      allow_undefined_flag='${wl}-z,nodefs'
8090      archive_cmds_need_lc=no
8091      hardcode_shlibpath_var=no
8092      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8093      hardcode_libdir_separator=':'
8094      link_all_deplibs=yes
8095      export_dynamic_flag_spec='${wl}-Bexport'
8096      runpath_var='LD_RUN_PATH'
8097
8098      if test "$GCC" = yes; then
8099        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8100        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8101      else
8102        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8103        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8104      fi
8105      ;;
8106
8107    uts4*)
8108      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8109      hardcode_libdir_flag_spec='-L$libdir'
8110      hardcode_shlibpath_var=no
8111      ;;
8112
8113    *)
8114      ld_shlibs=no
8115      ;;
8116    esac
8117  fi
8118
8119echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8120echo "${ECHO_T}$ld_shlibs" >&6
8121test "$ld_shlibs" = no && can_build_shared=no
8122
8123#
8124# Do we need to explicitly link libc?
8125#
8126case "x$archive_cmds_need_lc" in
8127x|xyes)
8128  # Assume -lc should be added
8129  archive_cmds_need_lc=yes
8130
8131  if test "$enable_shared" = yes && test "$GCC" = yes; then
8132    case $archive_cmds in
8133    *'~'*)
8134      # FIXME: we may have to deal with multi-command sequences.
8135      ;;
8136    '$CC '*)
8137      # Test whether the compiler implicitly links with -lc since on some
8138      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8139      # to ld, don't add -lc before -lgcc.
8140      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8141echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8142      $rm conftest*
8143      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8144
8145      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146  (eval $ac_compile) 2>&5
8147  ac_status=$?
8148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149  (exit $ac_status); } 2>conftest.err; then
8150        soname=conftest
8151        lib=conftest
8152        libobjs=conftest.$ac_objext
8153        deplibs=
8154        wl=$lt_prog_compiler_wl
8155        pic_flag=$lt_prog_compiler_pic
8156        compiler_flags=-v
8157        linker_flags=-v
8158        verstring=
8159        output_objdir=.
8160        libname=conftest
8161        lt_save_allow_undefined_flag=$allow_undefined_flag
8162        allow_undefined_flag=
8163        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8164  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8165  ac_status=$?
8166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167  (exit $ac_status); }
8168        then
8169          archive_cmds_need_lc=no
8170        else
8171          archive_cmds_need_lc=yes
8172        fi
8173        allow_undefined_flag=$lt_save_allow_undefined_flag
8174      else
8175        cat conftest.err 1>&5
8176      fi
8177      $rm conftest*
8178      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8179echo "${ECHO_T}$archive_cmds_need_lc" >&6
8180      ;;
8181    esac
8182  fi
8183  ;;
8184esac
8185
8186echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8187echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8188library_names_spec=
8189libname_spec='lib$name'
8190soname_spec=
8191shrext_cmds=".so"
8192postinstall_cmds=
8193postuninstall_cmds=
8194finish_cmds=
8195finish_eval=
8196shlibpath_var=
8197shlibpath_overrides_runpath=unknown
8198version_type=none
8199dynamic_linker="$host_os ld.so"
8200sys_lib_dlsearch_path_spec="/lib /usr/lib"
8201if test "$GCC" = yes; then
8202  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8203  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8204    # if the path contains ";" then we assume it to be the separator
8205    # otherwise default to the standard path separator (i.e. ":") - it is
8206    # assumed that no part of a normal pathname contains ";" but that should
8207    # okay in the real world where ";" in dirpaths is itself problematic.
8208    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8209  else
8210    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8211  fi
8212else
8213  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8214fi
8215need_lib_prefix=unknown
8216hardcode_into_libs=no
8217
8218# when you set need_version to no, make sure it does not cause -set_version
8219# flags to be left without arguments
8220need_version=unknown
8221
8222case $host_os in
8223aix3*)
8224  version_type=linux
8225  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8226  shlibpath_var=LIBPATH
8227
8228  # AIX 3 has no versioning support, so we append a major version to the name.
8229  soname_spec='${libname}${release}${shared_ext}$major'
8230  ;;
8231
8232aix4* | aix5*)
8233  version_type=linux
8234  need_lib_prefix=no
8235  need_version=no
8236  hardcode_into_libs=yes
8237  if test "$host_cpu" = ia64; then
8238    # AIX 5 supports IA64
8239    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8240    shlibpath_var=LD_LIBRARY_PATH
8241  else
8242    # With GCC up to 2.95.x, collect2 would create an import file
8243    # for dependence libraries.  The import file would start with
8244    # the line `#! .'.  This would cause the generated library to
8245    # depend on `.', always an invalid library.  This was fixed in
8246    # development snapshots of GCC prior to 3.0.
8247    case $host_os in
8248      aix4 | aix4.[01] | aix4.[01].*)
8249      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8250           echo ' yes '
8251           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8252        :
8253      else
8254        can_build_shared=no
8255      fi
8256      ;;
8257    esac
8258    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8259    # soname into executable. Probably we can add versioning support to
8260    # collect2, so additional links can be useful in future.
8261    if test "$aix_use_runtimelinking" = yes; then
8262      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8263      # instead of lib<name>.a to let people know that these are not
8264      # typical AIX shared libraries.
8265      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8266    else
8267      # We preserve .a as extension for shared libraries through AIX4.2
8268      # and later when we are not doing run time linking.
8269      library_names_spec='${libname}${release}.a $libname.a'
8270      soname_spec='${libname}${release}${shared_ext}$major'
8271    fi
8272    shlibpath_var=LIBPATH
8273  fi
8274  ;;
8275
8276amigaos*)
8277  library_names_spec='$libname.ixlibrary $libname.a'
8278  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8279  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8280  ;;
8281
8282beos*)
8283  library_names_spec='${libname}${shared_ext}'
8284  dynamic_linker="$host_os ld.so"
8285  shlibpath_var=LIBRARY_PATH
8286  ;;
8287
8288bsdi[45]*)
8289  version_type=linux
8290  need_version=no
8291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8292  soname_spec='${libname}${release}${shared_ext}$major'
8293  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8294  shlibpath_var=LD_LIBRARY_PATH
8295  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8296  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8297  # the default ld.so.conf also contains /usr/contrib/lib and
8298  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8299  # libtool to hard-code these into programs
8300  ;;
8301
8302cygwin* | mingw* | pw32*)
8303  version_type=windows
8304  shrext_cmds=".dll"
8305  need_version=no
8306  need_lib_prefix=no
8307
8308  case $GCC,$host_os in
8309  yes,cygwin* | yes,mingw* | yes,pw32*)
8310    library_names_spec='$libname.dll.a'
8311    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8312    postinstall_cmds='base_file=`basename \${file}`~
8313      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8314      dldir=$destdir/`dirname \$dlpath`~
8315      test -d \$dldir || mkdir -p \$dldir~
8316      $install_prog $dir/$dlname \$dldir/$dlname~
8317      chmod a+x \$dldir/$dlname'
8318    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8319      dlpath=$dir/\$dldll~
8320       $rm \$dlpath'
8321    shlibpath_overrides_runpath=yes
8322
8323    case $host_os in
8324    cygwin*)
8325      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8326      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8327      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8328      ;;
8329    mingw*)
8330      # MinGW DLLs use traditional 'lib' prefix
8331      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8332      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8333      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8334        # It is most probably a Windows format PATH printed by
8335        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8336        # path with ; separators, and with drive letters. We can handle the
8337        # drive letters (cygwin fileutils understands them), so leave them,
8338        # especially as we might pass files found there to a mingw objdump,
8339        # which wouldn't understand a cygwinified path. Ahh.
8340        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8341      else
8342        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8343      fi
8344      ;;
8345    pw32*)
8346      # pw32 DLLs use 'pw' prefix rather than 'lib'
8347      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8348      ;;
8349    esac
8350    ;;
8351
8352  *)
8353    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8354    ;;
8355  esac
8356  dynamic_linker='Win32 ld.exe'
8357  # FIXME: first we should search . and the directory the executable is in
8358  shlibpath_var=PATH
8359  ;;
8360
8361darwin* | rhapsody*)
8362  dynamic_linker="$host_os dyld"
8363  version_type=darwin
8364  need_lib_prefix=no
8365  need_version=no
8366  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8367  soname_spec='${libname}${release}${major}$shared_ext'
8368  shlibpath_overrides_runpath=yes
8369  shlibpath_var=DYLD_LIBRARY_PATH
8370  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8371  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8372  if test "$GCC" = yes; then
8373    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8374  else
8375    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8376  fi
8377  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8378  ;;
8379
8380dgux*)
8381  version_type=linux
8382  need_lib_prefix=no
8383  need_version=no
8384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8385  soname_spec='${libname}${release}${shared_ext}$major'
8386  shlibpath_var=LD_LIBRARY_PATH
8387  ;;
8388
8389freebsd1*)
8390  dynamic_linker=no
8391  ;;
8392
8393kfreebsd*-gnu)
8394  version_type=linux
8395  need_lib_prefix=no
8396  need_version=no
8397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8398  soname_spec='${libname}${release}${shared_ext}$major'
8399  shlibpath_var=LD_LIBRARY_PATH
8400  shlibpath_overrides_runpath=no
8401  hardcode_into_libs=yes
8402  dynamic_linker='GNU ld.so'
8403  ;;
8404
8405freebsd* | dragonfly*)
8406  # DragonFly does not have aout.  When/if they implement a new
8407  # versioning mechanism, adjust this.
8408  if test -x /usr/bin/objformat; then
8409    objformat=`/usr/bin/objformat`
8410  else
8411    case $host_os in
8412    freebsd[123]*) objformat=aout ;;
8413    *) objformat=elf ;;
8414    esac
8415  fi
8416  version_type=freebsd-$objformat
8417  case $version_type in
8418    freebsd-elf*)
8419      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8420      need_version=no
8421      need_lib_prefix=no
8422      ;;
8423    freebsd-*)
8424      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8425      need_version=yes
8426      ;;
8427  esac
8428  shlibpath_var=LD_LIBRARY_PATH
8429  case $host_os in
8430  freebsd2*)
8431    shlibpath_overrides_runpath=yes
8432    ;;
8433  freebsd3.[01]* | freebsdelf3.[01]*)
8434    shlibpath_overrides_runpath=yes
8435    hardcode_into_libs=yes
8436    ;;
8437  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8438  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8439    shlibpath_overrides_runpath=no
8440    hardcode_into_libs=yes
8441    ;;
8442  freebsd*) # from 4.6 on
8443    shlibpath_overrides_runpath=yes
8444    hardcode_into_libs=yes
8445    ;;
8446  esac
8447  ;;
8448
8449gnu*)
8450  version_type=linux
8451  need_lib_prefix=no
8452  need_version=no
8453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8454  soname_spec='${libname}${release}${shared_ext}$major'
8455  shlibpath_var=LD_LIBRARY_PATH
8456  hardcode_into_libs=yes
8457  ;;
8458
8459hpux9* | hpux10* | hpux11*)
8460  # Give a soname corresponding to the major version so that dld.sl refuses to
8461  # link against other versions.
8462  version_type=sunos
8463  need_lib_prefix=no
8464  need_version=no
8465  case $host_cpu in
8466  ia64*)
8467    shrext_cmds='.so'
8468    hardcode_into_libs=yes
8469    dynamic_linker="$host_os dld.so"
8470    shlibpath_var=LD_LIBRARY_PATH
8471    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8473    soname_spec='${libname}${release}${shared_ext}$major'
8474    if test "X$HPUX_IA64_MODE" = X32; then
8475      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8476    else
8477      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8478    fi
8479    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8480    ;;
8481   hppa*64*)
8482     shrext_cmds='.sl'
8483     hardcode_into_libs=yes
8484     dynamic_linker="$host_os dld.sl"
8485     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8486     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488     soname_spec='${libname}${release}${shared_ext}$major'
8489     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8490     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8491     ;;
8492   *)
8493    shrext_cmds='.sl'
8494    dynamic_linker="$host_os dld.sl"
8495    shlibpath_var=SHLIB_PATH
8496    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8497    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8498    soname_spec='${libname}${release}${shared_ext}$major'
8499    ;;
8500  esac
8501  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8502  postinstall_cmds='chmod 555 $lib'
8503  ;;
8504
8505interix3*)
8506  version_type=linux
8507  need_lib_prefix=no
8508  need_version=no
8509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8510  soname_spec='${libname}${release}${shared_ext}$major'
8511  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8512  shlibpath_var=LD_LIBRARY_PATH
8513  shlibpath_overrides_runpath=no
8514  hardcode_into_libs=yes
8515  ;;
8516
8517irix5* | irix6* | nonstopux*)
8518  case $host_os in
8519    nonstopux*) version_type=nonstopux ;;
8520    *)
8521        if test "$lt_cv_prog_gnu_ld" = yes; then
8522                version_type=linux
8523        else
8524                version_type=irix
8525        fi ;;
8526  esac
8527  need_lib_prefix=no
8528  need_version=no
8529  soname_spec='${libname}${release}${shared_ext}$major'
8530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8531  case $host_os in
8532  irix5* | nonstopux*)
8533    libsuff= shlibsuff=
8534    ;;
8535  *)
8536    case $LD in # libtool.m4 will add one of these switches to LD
8537    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8538      libsuff= shlibsuff= libmagic=32-bit;;
8539    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8540      libsuff=32 shlibsuff=N32 libmagic=N32;;
8541    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8542      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8543    *) libsuff= shlibsuff= libmagic=never-match;;
8544    esac
8545    ;;
8546  esac
8547  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8548  shlibpath_overrides_runpath=no
8549  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8550  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8551  hardcode_into_libs=yes
8552  ;;
8553
8554# No shared lib support for Linux oldld, aout, or coff.
8555linux*oldld* | linux*aout* | linux*coff*)
8556  dynamic_linker=no
8557  ;;
8558
8559# This must be Linux ELF.
8560linux*)
8561  version_type=linux
8562  need_lib_prefix=no
8563  need_version=no
8564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8565  soname_spec='${libname}${release}${shared_ext}$major'
8566  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8567  shlibpath_var=LD_LIBRARY_PATH
8568  shlibpath_overrides_runpath=no
8569  # This implies no fast_install, which is unacceptable.
8570  # Some rework will be needed to allow for fast_install
8571  # before this can be enabled.
8572  hardcode_into_libs=yes
8573
8574  # Append ld.so.conf contents to the search path
8575  if test -f /etc/ld.so.conf; then
8576    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8577    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8578  fi
8579
8580  # We used to test for /lib/ld.so.1 and disable shared libraries on
8581  # powerpc, because MkLinux only supported shared libraries with the
8582  # GNU dynamic linker.  Since this was broken with cross compilers,
8583  # most powerpc-linux boxes support dynamic linking these days and
8584  # people can always --disable-shared, the test was removed, and we
8585  # assume the GNU/Linux dynamic linker is in use.
8586  dynamic_linker='GNU/Linux ld.so'
8587  ;;
8588
8589knetbsd*-gnu)
8590  version_type=linux
8591  need_lib_prefix=no
8592  need_version=no
8593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8594  soname_spec='${libname}${release}${shared_ext}$major'
8595  shlibpath_var=LD_LIBRARY_PATH
8596  shlibpath_overrides_runpath=no
8597  hardcode_into_libs=yes
8598  dynamic_linker='GNU ld.so'
8599  ;;
8600
8601netbsd*)
8602  version_type=sunos
8603  need_lib_prefix=no
8604  need_version=no
8605  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8607    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8608    dynamic_linker='NetBSD (a.out) ld.so'
8609  else
8610    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8611    soname_spec='${libname}${release}${shared_ext}$major'
8612    dynamic_linker='NetBSD ld.elf_so'
8613  fi
8614  shlibpath_var=LD_LIBRARY_PATH
8615  shlibpath_overrides_runpath=yes
8616  hardcode_into_libs=yes
8617  ;;
8618
8619newsos6)
8620  version_type=linux
8621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622  shlibpath_var=LD_LIBRARY_PATH
8623  shlibpath_overrides_runpath=yes
8624  ;;
8625
8626nto-qnx*)
8627  version_type=linux
8628  need_lib_prefix=no
8629  need_version=no
8630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8631  soname_spec='${libname}${release}${shared_ext}$major'
8632  shlibpath_var=LD_LIBRARY_PATH
8633  shlibpath_overrides_runpath=yes
8634  ;;
8635
8636openbsd*)
8637  version_type=sunos
8638  sys_lib_dlsearch_path_spec="/usr/lib"
8639  need_lib_prefix=no
8640  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8641  case $host_os in
8642    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8643    *)                         need_version=no  ;;
8644  esac
8645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8646  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8647  shlibpath_var=LD_LIBRARY_PATH
8648  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8649    case $host_os in
8650      openbsd2.[89] | openbsd2.[89].*)
8651        shlibpath_overrides_runpath=no
8652        ;;
8653      *)
8654        shlibpath_overrides_runpath=yes
8655        ;;
8656      esac
8657  else
8658    shlibpath_overrides_runpath=yes
8659  fi
8660  ;;
8661
8662os2*)
8663  libname_spec='$name'
8664  shrext_cmds=".dll"
8665  need_lib_prefix=no
8666  library_names_spec='$libname${shared_ext} $libname.a'
8667  dynamic_linker='OS/2 ld.exe'
8668  shlibpath_var=LIBPATH
8669  ;;
8670
8671osf3* | osf4* | osf5*)
8672  version_type=osf
8673  need_lib_prefix=no
8674  need_version=no
8675  soname_spec='${libname}${release}${shared_ext}$major'
8676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677  shlibpath_var=LD_LIBRARY_PATH
8678  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8679  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8680  ;;
8681
8682solaris*)
8683  version_type=linux
8684  need_lib_prefix=no
8685  need_version=no
8686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687  soname_spec='${libname}${release}${shared_ext}$major'
8688  shlibpath_var=LD_LIBRARY_PATH
8689  shlibpath_overrides_runpath=yes
8690  hardcode_into_libs=yes
8691  # ldd complains unless libraries are executable
8692  postinstall_cmds='chmod +x $lib'
8693  ;;
8694
8695sunos4*)
8696  version_type=sunos
8697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8698  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8699  shlibpath_var=LD_LIBRARY_PATH
8700  shlibpath_overrides_runpath=yes
8701  if test "$with_gnu_ld" = yes; then
8702    need_lib_prefix=no
8703  fi
8704  need_version=yes
8705  ;;
8706
8707sysv4 | sysv4.3*)
8708  version_type=linux
8709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8710  soname_spec='${libname}${release}${shared_ext}$major'
8711  shlibpath_var=LD_LIBRARY_PATH
8712  case $host_vendor in
8713    sni)
8714      shlibpath_overrides_runpath=no
8715      need_lib_prefix=no
8716      export_dynamic_flag_spec='${wl}-Blargedynsym'
8717      runpath_var=LD_RUN_PATH
8718      ;;
8719    siemens)
8720      need_lib_prefix=no
8721      ;;
8722    motorola)
8723      need_lib_prefix=no
8724      need_version=no
8725      shlibpath_overrides_runpath=no
8726      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8727      ;;
8728  esac
8729  ;;
8730
8731sysv4*MP*)
8732  if test -d /usr/nec ;then
8733    version_type=linux
8734    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8735    soname_spec='$libname${shared_ext}.$major'
8736    shlibpath_var=LD_LIBRARY_PATH
8737  fi
8738  ;;
8739
8740sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8741  version_type=freebsd-elf
8742  need_lib_prefix=no
8743  need_version=no
8744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8745  soname_spec='${libname}${release}${shared_ext}$major'
8746  shlibpath_var=LD_LIBRARY_PATH
8747  hardcode_into_libs=yes
8748  if test "$with_gnu_ld" = yes; then
8749    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8750    shlibpath_overrides_runpath=no
8751  else
8752    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8753    shlibpath_overrides_runpath=yes
8754    case $host_os in
8755      sco3.2v5*)
8756        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8757        ;;
8758    esac
8759  fi
8760  sys_lib_dlsearch_path_spec='/usr/lib'
8761  ;;
8762
8763uts4*)
8764  version_type=linux
8765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766  soname_spec='${libname}${release}${shared_ext}$major'
8767  shlibpath_var=LD_LIBRARY_PATH
8768  ;;
8769
8770*)
8771  dynamic_linker=no
8772  ;;
8773esac
8774echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8775echo "${ECHO_T}$dynamic_linker" >&6
8776test "$dynamic_linker" = no && can_build_shared=no
8777
8778variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8779if test "$GCC" = yes; then
8780  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8781fi
8782
8783echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8784echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8785hardcode_action=
8786if test -n "$hardcode_libdir_flag_spec" || \
8787   test -n "$runpath_var" || \
8788   test "X$hardcode_automatic" = "Xyes" ; then
8789
8790  # We can hardcode non-existant directories.
8791  if test "$hardcode_direct" != no &&
8792     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8793     # have to relink, otherwise we might link with an installed library
8794     # when we should be linking with a yet-to-be-installed one
8795     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8796     test "$hardcode_minus_L" != no; then
8797    # Linking always hardcodes the temporary library directory.
8798    hardcode_action=relink
8799  else
8800    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8801    hardcode_action=immediate
8802  fi
8803else
8804  # We cannot hardcode anything, or else we can only hardcode existing
8805  # directories.
8806  hardcode_action=unsupported
8807fi
8808echo "$as_me:$LINENO: result: $hardcode_action" >&5
8809echo "${ECHO_T}$hardcode_action" >&6
8810
8811if test "$hardcode_action" = relink; then
8812  # Fast installation is not supported
8813  enable_fast_install=no
8814elif test "$shlibpath_overrides_runpath" = yes ||
8815     test "$enable_shared" = no; then
8816  # Fast installation is not necessary
8817  enable_fast_install=needless
8818fi
8819
8820striplib=
8821old_striplib=
8822echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8823echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8824if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8825  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8826  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8827  echo "$as_me:$LINENO: result: yes" >&5
8828echo "${ECHO_T}yes" >&6
8829else
8830# FIXME - insert some real tests, host_os isn't really good enough
8831  case $host_os in
8832   darwin*)
8833       if test -n "$STRIP" ; then
8834         striplib="$STRIP -x"
8835         echo "$as_me:$LINENO: result: yes" >&5
8836echo "${ECHO_T}yes" >&6
8837       else
8838  echo "$as_me:$LINENO: result: no" >&5
8839echo "${ECHO_T}no" >&6
8840fi
8841       ;;
8842   *)
8843  echo "$as_me:$LINENO: result: no" >&5
8844echo "${ECHO_T}no" >&6
8845    ;;
8846  esac
8847fi
8848
8849if test "x$enable_dlopen" != xyes; then
8850  enable_dlopen=unknown
8851  enable_dlopen_self=unknown
8852  enable_dlopen_self_static=unknown
8853else
8854  lt_cv_dlopen=no
8855  lt_cv_dlopen_libs=
8856
8857  case $host_os in
8858  beos*)
8859    lt_cv_dlopen="load_add_on"
8860    lt_cv_dlopen_libs=
8861    lt_cv_dlopen_self=yes
8862    ;;
8863
8864  mingw* | pw32*)
8865    lt_cv_dlopen="LoadLibrary"
8866    lt_cv_dlopen_libs=
8867   ;;
8868
8869  cygwin*)
8870    lt_cv_dlopen="dlopen"
8871    lt_cv_dlopen_libs=
8872   ;;
8873
8874  darwin*)
8875  # if libdl is installed we need to link against it
8876    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8879  echo $ECHO_N "(cached) $ECHO_C" >&6
8880else
8881  ac_check_lib_save_LIBS=$LIBS
8882LIBS="-ldl  $LIBS"
8883cat >conftest.$ac_ext <<_ACEOF
8884/* confdefs.h.  */
8885_ACEOF
8886cat confdefs.h >>conftest.$ac_ext
8887cat >>conftest.$ac_ext <<_ACEOF
8888/* end confdefs.h.  */
8889
8890/* Override any gcc2 internal prototype to avoid an error.  */
8891#ifdef __cplusplus
8892extern "C"
8893#endif
8894/* We use char because int might match the return type of a gcc2
8895   builtin and then its argument prototype would still apply.  */
8896char dlopen ();
8897int
8898main ()
8899{
8900dlopen ();
8901  ;
8902  return 0;
8903}
8904_ACEOF
8905rm -f conftest.$ac_objext conftest$ac_exeext
8906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907  (eval $ac_link) 2>conftest.er1
8908  ac_status=$?
8909  grep -v '^ *+' conftest.er1 >conftest.err
8910  rm -f conftest.er1
8911  cat conftest.err >&5
8912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913  (exit $ac_status); } &&
8914         { ac_try='test -z "$ac_c_werror_flag"
8915                         || test ! -s conftest.err'
8916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917  (eval $ac_try) 2>&5
8918  ac_status=$?
8919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920  (exit $ac_status); }; } &&
8921         { ac_try='test -s conftest$ac_exeext'
8922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923  (eval $ac_try) 2>&5
8924  ac_status=$?
8925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926  (exit $ac_status); }; }; then
8927  ac_cv_lib_dl_dlopen=yes
8928else
8929  echo "$as_me: failed program was:" >&5
8930sed 's/^/| /' conftest.$ac_ext >&5
8931
8932ac_cv_lib_dl_dlopen=no
8933fi
8934rm -f conftest.err conftest.$ac_objext \
8935      conftest$ac_exeext conftest.$ac_ext
8936LIBS=$ac_check_lib_save_LIBS
8937fi
8938echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8939echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8940if test $ac_cv_lib_dl_dlopen = yes; then
8941  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8942else
8943
8944    lt_cv_dlopen="dyld"
8945    lt_cv_dlopen_libs=
8946    lt_cv_dlopen_self=yes
8947
8948fi
8949
8950   ;;
8951
8952  *)
8953    echo "$as_me:$LINENO: checking for shl_load" >&5
8954echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8955if test "${ac_cv_func_shl_load+set}" = set; then
8956  echo $ECHO_N "(cached) $ECHO_C" >&6
8957else
8958  cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h.  */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h.  */
8964/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8965   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8966#define shl_load innocuous_shl_load
8967
8968/* System header to define __stub macros and hopefully few prototypes,
8969    which can conflict with char shl_load (); below.
8970    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8971    <limits.h> exists even on freestanding compilers.  */
8972
8973#ifdef __STDC__
8974# include <limits.h>
8975#else
8976# include <assert.h>
8977#endif
8978
8979#undef shl_load
8980
8981/* Override any gcc2 internal prototype to avoid an error.  */
8982#ifdef __cplusplus
8983extern "C"
8984{
8985#endif
8986/* We use char because int might match the return type of a gcc2
8987   builtin and then its argument prototype would still apply.  */
8988char shl_load ();
8989/* The GNU C library defines this for functions which it implements
8990    to always fail with ENOSYS.  Some functions are actually named
8991    something starting with __ and the normal name is an alias.  */
8992#if defined (__stub_shl_load) || defined (__stub___shl_load)
8993choke me
8994#else
8995char (*f) () = shl_load;
8996#endif
8997#ifdef __cplusplus
8998}
8999#endif
9000
9001int
9002main ()
9003{
9004return f != shl_load;
9005  ;
9006  return 0;
9007}
9008_ACEOF
9009rm -f conftest.$ac_objext conftest$ac_exeext
9010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9011  (eval $ac_link) 2>conftest.er1
9012  ac_status=$?
9013  grep -v '^ *+' conftest.er1 >conftest.err
9014  rm -f conftest.er1
9015  cat conftest.err >&5
9016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017  (exit $ac_status); } &&
9018         { ac_try='test -z "$ac_c_werror_flag"
9019                         || test ! -s conftest.err'
9020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021  (eval $ac_try) 2>&5
9022  ac_status=$?
9023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024  (exit $ac_status); }; } &&
9025         { ac_try='test -s conftest$ac_exeext'
9026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027  (eval $ac_try) 2>&5
9028  ac_status=$?
9029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030  (exit $ac_status); }; }; then
9031  ac_cv_func_shl_load=yes
9032else
9033  echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036ac_cv_func_shl_load=no
9037fi
9038rm -f conftest.err conftest.$ac_objext \
9039      conftest$ac_exeext conftest.$ac_ext
9040fi
9041echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9042echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9043if test $ac_cv_func_shl_load = yes; then
9044  lt_cv_dlopen="shl_load"
9045else
9046  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9047echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9048if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9049  echo $ECHO_N "(cached) $ECHO_C" >&6
9050else
9051  ac_check_lib_save_LIBS=$LIBS
9052LIBS="-ldld  $LIBS"
9053cat >conftest.$ac_ext <<_ACEOF
9054/* confdefs.h.  */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h.  */
9059
9060/* Override any gcc2 internal prototype to avoid an error.  */
9061#ifdef __cplusplus
9062extern "C"
9063#endif
9064/* We use char because int might match the return type of a gcc2
9065   builtin and then its argument prototype would still apply.  */
9066char shl_load ();
9067int
9068main ()
9069{
9070shl_load ();
9071  ;
9072  return 0;
9073}
9074_ACEOF
9075rm -f conftest.$ac_objext conftest$ac_exeext
9076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077  (eval $ac_link) 2>conftest.er1
9078  ac_status=$?
9079  grep -v '^ *+' conftest.er1 >conftest.err
9080  rm -f conftest.er1
9081  cat conftest.err >&5
9082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083  (exit $ac_status); } &&
9084         { ac_try='test -z "$ac_c_werror_flag"
9085                         || test ! -s conftest.err'
9086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087  (eval $ac_try) 2>&5
9088  ac_status=$?
9089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090  (exit $ac_status); }; } &&
9091         { ac_try='test -s conftest$ac_exeext'
9092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093  (eval $ac_try) 2>&5
9094  ac_status=$?
9095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096  (exit $ac_status); }; }; then
9097  ac_cv_lib_dld_shl_load=yes
9098else
9099  echo "$as_me: failed program was:" >&5
9100sed 's/^/| /' conftest.$ac_ext >&5
9101
9102ac_cv_lib_dld_shl_load=no
9103fi
9104rm -f conftest.err conftest.$ac_objext \
9105      conftest$ac_exeext conftest.$ac_ext
9106LIBS=$ac_check_lib_save_LIBS
9107fi
9108echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9109echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9110if test $ac_cv_lib_dld_shl_load = yes; then
9111  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9112else
9113  echo "$as_me:$LINENO: checking for dlopen" >&5
9114echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9115if test "${ac_cv_func_dlopen+set}" = set; then
9116  echo $ECHO_N "(cached) $ECHO_C" >&6
9117else
9118  cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h.  */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h.  */
9124/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9125   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9126#define dlopen innocuous_dlopen
9127
9128/* System header to define __stub macros and hopefully few prototypes,
9129    which can conflict with char dlopen (); below.
9130    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131    <limits.h> exists even on freestanding compilers.  */
9132
9133#ifdef __STDC__
9134# include <limits.h>
9135#else
9136# include <assert.h>
9137#endif
9138
9139#undef dlopen
9140
9141/* Override any gcc2 internal prototype to avoid an error.  */
9142#ifdef __cplusplus
9143extern "C"
9144{
9145#endif
9146/* We use char because int might match the return type of a gcc2
9147   builtin and then its argument prototype would still apply.  */
9148char dlopen ();
9149/* The GNU C library defines this for functions which it implements
9150    to always fail with ENOSYS.  Some functions are actually named
9151    something starting with __ and the normal name is an alias.  */
9152#if defined (__stub_dlopen) || defined (__stub___dlopen)
9153choke me
9154#else
9155char (*f) () = dlopen;
9156#endif
9157#ifdef __cplusplus
9158}
9159#endif
9160
9161int
9162main ()
9163{
9164return f != dlopen;
9165  ;
9166  return 0;
9167}
9168_ACEOF
9169rm -f conftest.$ac_objext conftest$ac_exeext
9170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171  (eval $ac_link) 2>conftest.er1
9172  ac_status=$?
9173  grep -v '^ *+' conftest.er1 >conftest.err
9174  rm -f conftest.er1
9175  cat conftest.err >&5
9176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177  (exit $ac_status); } &&
9178         { ac_try='test -z "$ac_c_werror_flag"
9179                         || test ! -s conftest.err'
9180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181  (eval $ac_try) 2>&5
9182  ac_status=$?
9183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184  (exit $ac_status); }; } &&
9185         { ac_try='test -s conftest$ac_exeext'
9186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187  (eval $ac_try) 2>&5
9188  ac_status=$?
9189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190  (exit $ac_status); }; }; then
9191  ac_cv_func_dlopen=yes
9192else
9193  echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196ac_cv_func_dlopen=no
9197fi
9198rm -f conftest.err conftest.$ac_objext \
9199      conftest$ac_exeext conftest.$ac_ext
9200fi
9201echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9202echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9203if test $ac_cv_func_dlopen = yes; then
9204  lt_cv_dlopen="dlopen"
9205else
9206  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9207echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9208if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9209  echo $ECHO_N "(cached) $ECHO_C" >&6
9210else
9211  ac_check_lib_save_LIBS=$LIBS
9212LIBS="-ldl  $LIBS"
9213cat >conftest.$ac_ext <<_ACEOF
9214/* confdefs.h.  */
9215_ACEOF
9216cat confdefs.h >>conftest.$ac_ext
9217cat >>conftest.$ac_ext <<_ACEOF
9218/* end confdefs.h.  */
9219
9220/* Override any gcc2 internal prototype to avoid an error.  */
9221#ifdef __cplusplus
9222extern "C"
9223#endif
9224/* We use char because int might match the return type of a gcc2
9225   builtin and then its argument prototype would still apply.  */
9226char dlopen ();
9227int
9228main ()
9229{
9230dlopen ();
9231  ;
9232  return 0;
9233}
9234_ACEOF
9235rm -f conftest.$ac_objext conftest$ac_exeext
9236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237  (eval $ac_link) 2>conftest.er1
9238  ac_status=$?
9239  grep -v '^ *+' conftest.er1 >conftest.err
9240  rm -f conftest.er1
9241  cat conftest.err >&5
9242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243  (exit $ac_status); } &&
9244         { ac_try='test -z "$ac_c_werror_flag"
9245                         || test ! -s conftest.err'
9246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247  (eval $ac_try) 2>&5
9248  ac_status=$?
9249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250  (exit $ac_status); }; } &&
9251         { ac_try='test -s conftest$ac_exeext'
9252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253  (eval $ac_try) 2>&5
9254  ac_status=$?
9255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256  (exit $ac_status); }; }; then
9257  ac_cv_lib_dl_dlopen=yes
9258else
9259  echo "$as_me: failed program was:" >&5
9260sed 's/^/| /' conftest.$ac_ext >&5
9261
9262ac_cv_lib_dl_dlopen=no
9263fi
9264rm -f conftest.err conftest.$ac_objext \
9265      conftest$ac_exeext conftest.$ac_ext
9266LIBS=$ac_check_lib_save_LIBS
9267fi
9268echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9269echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9270if test $ac_cv_lib_dl_dlopen = yes; then
9271  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9272else
9273  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9274echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9275if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9276  echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278  ac_check_lib_save_LIBS=$LIBS
9279LIBS="-lsvld  $LIBS"
9280cat >conftest.$ac_ext <<_ACEOF
9281/* confdefs.h.  */
9282_ACEOF
9283cat confdefs.h >>conftest.$ac_ext
9284cat >>conftest.$ac_ext <<_ACEOF
9285/* end confdefs.h.  */
9286
9287/* Override any gcc2 internal prototype to avoid an error.  */
9288#ifdef __cplusplus
9289extern "C"
9290#endif
9291/* We use char because int might match the return type of a gcc2
9292   builtin and then its argument prototype would still apply.  */
9293char dlopen ();
9294int
9295main ()
9296{
9297dlopen ();
9298  ;
9299  return 0;
9300}
9301_ACEOF
9302rm -f conftest.$ac_objext conftest$ac_exeext
9303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304  (eval $ac_link) 2>conftest.er1
9305  ac_status=$?
9306  grep -v '^ *+' conftest.er1 >conftest.err
9307  rm -f conftest.er1
9308  cat conftest.err >&5
9309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310  (exit $ac_status); } &&
9311         { ac_try='test -z "$ac_c_werror_flag"
9312                         || test ! -s conftest.err'
9313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314  (eval $ac_try) 2>&5
9315  ac_status=$?
9316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317  (exit $ac_status); }; } &&
9318         { ac_try='test -s conftest$ac_exeext'
9319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320  (eval $ac_try) 2>&5
9321  ac_status=$?
9322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323  (exit $ac_status); }; }; then
9324  ac_cv_lib_svld_dlopen=yes
9325else
9326  echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
9329ac_cv_lib_svld_dlopen=no
9330fi
9331rm -f conftest.err conftest.$ac_objext \
9332      conftest$ac_exeext conftest.$ac_ext
9333LIBS=$ac_check_lib_save_LIBS
9334fi
9335echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9336echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9337if test $ac_cv_lib_svld_dlopen = yes; then
9338  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9339else
9340  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9341echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9342if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9343  echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345  ac_check_lib_save_LIBS=$LIBS
9346LIBS="-ldld  $LIBS"
9347cat >conftest.$ac_ext <<_ACEOF
9348/* confdefs.h.  */
9349_ACEOF
9350cat confdefs.h >>conftest.$ac_ext
9351cat >>conftest.$ac_ext <<_ACEOF
9352/* end confdefs.h.  */
9353
9354/* Override any gcc2 internal prototype to avoid an error.  */
9355#ifdef __cplusplus
9356extern "C"
9357#endif
9358/* We use char because int might match the return type of a gcc2
9359   builtin and then its argument prototype would still apply.  */
9360char dld_link ();
9361int
9362main ()
9363{
9364dld_link ();
9365  ;
9366  return 0;
9367}
9368_ACEOF
9369rm -f conftest.$ac_objext conftest$ac_exeext
9370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371  (eval $ac_link) 2>conftest.er1
9372  ac_status=$?
9373  grep -v '^ *+' conftest.er1 >conftest.err
9374  rm -f conftest.er1
9375  cat conftest.err >&5
9376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377  (exit $ac_status); } &&
9378         { ac_try='test -z "$ac_c_werror_flag"
9379                         || test ! -s conftest.err'
9380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381  (eval $ac_try) 2>&5
9382  ac_status=$?
9383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384  (exit $ac_status); }; } &&
9385         { ac_try='test -s conftest$ac_exeext'
9386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387  (eval $ac_try) 2>&5
9388  ac_status=$?
9389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390  (exit $ac_status); }; }; then
9391  ac_cv_lib_dld_dld_link=yes
9392else
9393  echo "$as_me: failed program was:" >&5
9394sed 's/^/| /' conftest.$ac_ext >&5
9395
9396ac_cv_lib_dld_dld_link=no
9397fi
9398rm -f conftest.err conftest.$ac_objext \
9399      conftest$ac_exeext conftest.$ac_ext
9400LIBS=$ac_check_lib_save_LIBS
9401fi
9402echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9403echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9404if test $ac_cv_lib_dld_dld_link = yes; then
9405  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9406fi
9407
9408
9409fi
9410
9411
9412fi
9413
9414
9415fi
9416
9417
9418fi
9419
9420
9421fi
9422
9423    ;;
9424  esac
9425
9426  if test "x$lt_cv_dlopen" != xno; then
9427    enable_dlopen=yes
9428  else
9429    enable_dlopen=no
9430  fi
9431
9432  case $lt_cv_dlopen in
9433  dlopen)
9434    save_CPPFLAGS="$CPPFLAGS"
9435    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9436
9437    save_LDFLAGS="$LDFLAGS"
9438    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9439
9440    save_LIBS="$LIBS"
9441    LIBS="$lt_cv_dlopen_libs $LIBS"
9442
9443    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9444echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9445if test "${lt_cv_dlopen_self+set}" = set; then
9446  echo $ECHO_N "(cached) $ECHO_C" >&6
9447else
9448          if test "$cross_compiling" = yes; then :
9449  lt_cv_dlopen_self=cross
9450else
9451  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9452  lt_status=$lt_dlunknown
9453  cat > conftest.$ac_ext <<EOF
9454#line 9454 "configure"
9455#include "confdefs.h"
9456
9457#if HAVE_DLFCN_H
9458#include <dlfcn.h>
9459#endif
9460
9461#include <stdio.h>
9462
9463#ifdef RTLD_GLOBAL
9464#  define LT_DLGLOBAL           RTLD_GLOBAL
9465#else
9466#  ifdef DL_GLOBAL
9467#    define LT_DLGLOBAL         DL_GLOBAL
9468#  else
9469#    define LT_DLGLOBAL         0
9470#  endif
9471#endif
9472
9473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9474   find out it does not work in some platform. */
9475#ifndef LT_DLLAZY_OR_NOW
9476#  ifdef RTLD_LAZY
9477#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9478#  else
9479#    ifdef DL_LAZY
9480#      define LT_DLLAZY_OR_NOW          DL_LAZY
9481#    else
9482#      ifdef RTLD_NOW
9483#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9484#      else
9485#        ifdef DL_NOW
9486#          define LT_DLLAZY_OR_NOW      DL_NOW
9487#        else
9488#          define LT_DLLAZY_OR_NOW      0
9489#        endif
9490#      endif
9491#    endif
9492#  endif
9493#endif
9494
9495#ifdef __cplusplus
9496extern "C" void exit (int);
9497#endif
9498
9499void fnord() { int i=42;}
9500int main ()
9501{
9502  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9503  int status = $lt_dlunknown;
9504
9505  if (self)
9506    {
9507      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9508      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9509      /* dlclose (self); */
9510    }
9511  else
9512    puts (dlerror ());
9513
9514    exit (status);
9515}
9516EOF
9517  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518  (eval $ac_link) 2>&5
9519  ac_status=$?
9520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9522    (./conftest; exit; ) >&5 2>/dev/null
9523    lt_status=$?
9524    case x$lt_status in
9525      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9526      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9527      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9528    esac
9529  else :
9530    # compilation failed
9531    lt_cv_dlopen_self=no
9532  fi
9533fi
9534rm -fr conftest*
9535
9536
9537fi
9538echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9539echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9540
9541    if test "x$lt_cv_dlopen_self" = xyes; then
9542      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9543      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9544echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9545if test "${lt_cv_dlopen_self_static+set}" = set; then
9546  echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548          if test "$cross_compiling" = yes; then :
9549  lt_cv_dlopen_self_static=cross
9550else
9551  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9552  lt_status=$lt_dlunknown
9553  cat > conftest.$ac_ext <<EOF
9554#line 9554 "configure"
9555#include "confdefs.h"
9556
9557#if HAVE_DLFCN_H
9558#include <dlfcn.h>
9559#endif
9560
9561#include <stdio.h>
9562
9563#ifdef RTLD_GLOBAL
9564#  define LT_DLGLOBAL           RTLD_GLOBAL
9565#else
9566#  ifdef DL_GLOBAL
9567#    define LT_DLGLOBAL         DL_GLOBAL
9568#  else
9569#    define LT_DLGLOBAL         0
9570#  endif
9571#endif
9572
9573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9574   find out it does not work in some platform. */
9575#ifndef LT_DLLAZY_OR_NOW
9576#  ifdef RTLD_LAZY
9577#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9578#  else
9579#    ifdef DL_LAZY
9580#      define LT_DLLAZY_OR_NOW          DL_LAZY
9581#    else
9582#      ifdef RTLD_NOW
9583#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9584#      else
9585#        ifdef DL_NOW
9586#          define LT_DLLAZY_OR_NOW      DL_NOW
9587#        else
9588#          define LT_DLLAZY_OR_NOW      0
9589#        endif
9590#      endif
9591#    endif
9592#  endif
9593#endif
9594
9595#ifdef __cplusplus
9596extern "C" void exit (int);
9597#endif
9598
9599void fnord() { int i=42;}
9600int main ()
9601{
9602  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9603  int status = $lt_dlunknown;
9604
9605  if (self)
9606    {
9607      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9608      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9609      /* dlclose (self); */
9610    }
9611  else
9612    puts (dlerror ());
9613
9614    exit (status);
9615}
9616EOF
9617  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618  (eval $ac_link) 2>&5
9619  ac_status=$?
9620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9622    (./conftest; exit; ) >&5 2>/dev/null
9623    lt_status=$?
9624    case x$lt_status in
9625      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9626      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9627      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9628    esac
9629  else :
9630    # compilation failed
9631    lt_cv_dlopen_self_static=no
9632  fi
9633fi
9634rm -fr conftest*
9635
9636
9637fi
9638echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9639echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9640    fi
9641
9642    CPPFLAGS="$save_CPPFLAGS"
9643    LDFLAGS="$save_LDFLAGS"
9644    LIBS="$save_LIBS"
9645    ;;
9646  esac
9647
9648  case $lt_cv_dlopen_self in
9649  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9650  *) enable_dlopen_self=unknown ;;
9651  esac
9652
9653  case $lt_cv_dlopen_self_static in
9654  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9655  *) enable_dlopen_self_static=unknown ;;
9656  esac
9657fi
9658
9659
9660# Report which library types will actually be built
9661echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9662echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9663echo "$as_me:$LINENO: result: $can_build_shared" >&5
9664echo "${ECHO_T}$can_build_shared" >&6
9665
9666echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9667echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9668test "$can_build_shared" = "no" && enable_shared=no
9669
9670# On AIX, shared libraries and static libraries use the same namespace, and
9671# are all built from PIC.
9672case $host_os in
9673aix3*)
9674  test "$enable_shared" = yes && enable_static=no
9675  if test -n "$RANLIB"; then
9676    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9677    postinstall_cmds='$RANLIB $lib'
9678  fi
9679  ;;
9680
9681aix4* | aix5*)
9682  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9683    test "$enable_shared" = yes && enable_static=no
9684  fi
9685    ;;
9686esac
9687echo "$as_me:$LINENO: result: $enable_shared" >&5
9688echo "${ECHO_T}$enable_shared" >&6
9689
9690echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9691echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9692# Make sure either enable_shared or enable_static is yes.
9693test "$enable_shared" = yes || enable_static=yes
9694echo "$as_me:$LINENO: result: $enable_static" >&5
9695echo "${ECHO_T}$enable_static" >&6
9696
9697# The else clause should only fire when bootstrapping the
9698# libtool distribution, otherwise you forgot to ship ltmain.sh
9699# with your package, and you will get complaints that there are
9700# no rules to generate ltmain.sh.
9701if test -f "$ltmain"; then
9702  # See if we are running on zsh, and set the options which allow our commands through
9703  # without removal of \ escapes.
9704  if test -n "${ZSH_VERSION+set}" ; then
9705    setopt NO_GLOB_SUBST
9706  fi
9707  # Now quote all the things that may contain metacharacters while being
9708  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9709  # variables and quote the copies for generation of the libtool script.
9710  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9711    SED SHELL STRIP \
9712    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9713    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9714    deplibs_check_method reload_flag reload_cmds need_locks \
9715    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9716    lt_cv_sys_global_symbol_to_c_name_address \
9717    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9718    old_postinstall_cmds old_postuninstall_cmds \
9719    compiler \
9720    CC \
9721    LD \
9722    lt_prog_compiler_wl \
9723    lt_prog_compiler_pic \
9724    lt_prog_compiler_static \
9725    lt_prog_compiler_no_builtin_flag \
9726    export_dynamic_flag_spec \
9727    thread_safe_flag_spec \
9728    whole_archive_flag_spec \
9729    enable_shared_with_static_runtimes \
9730    old_archive_cmds \
9731    old_archive_from_new_cmds \
9732    predep_objects \
9733    postdep_objects \
9734    predeps \
9735    postdeps \
9736    compiler_lib_search_path \
9737    archive_cmds \
9738    archive_expsym_cmds \
9739    postinstall_cmds \
9740    postuninstall_cmds \
9741    old_archive_from_expsyms_cmds \
9742    allow_undefined_flag \
9743    no_undefined_flag \
9744    export_symbols_cmds \
9745    hardcode_libdir_flag_spec \
9746    hardcode_libdir_flag_spec_ld \
9747    hardcode_libdir_separator \
9748    hardcode_automatic \
9749    module_cmds \
9750    module_expsym_cmds \
9751    lt_cv_prog_compiler_c_o \
9752    exclude_expsyms \
9753    include_expsyms; do
9754
9755    case $var in
9756    old_archive_cmds | \
9757    old_archive_from_new_cmds | \
9758    archive_cmds | \
9759    archive_expsym_cmds | \
9760    module_cmds | \
9761    module_expsym_cmds | \
9762    old_archive_from_expsyms_cmds | \
9763    export_symbols_cmds | \
9764    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9765    postinstall_cmds | postuninstall_cmds | \
9766    old_postinstall_cmds | old_postuninstall_cmds | \
9767    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9768      # Double-quote double-evaled strings.
9769      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9770      ;;
9771    *)
9772      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9773      ;;
9774    esac
9775  done
9776
9777  case $lt_echo in
9778  *'\$0 --fallback-echo"')
9779    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9780    ;;
9781  esac
9782
9783cfgfile="${ofile}T"
9784  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9785  $rm -f "$cfgfile"
9786  { echo "$as_me:$LINENO: creating $ofile" >&5
9787echo "$as_me: creating $ofile" >&6;}
9788
9789  cat <<__EOF__ >> "$cfgfile"
9790#! $SHELL
9791
9792# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9793# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9794# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9795#
9796# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9797# Free Software Foundation, Inc.
9798#
9799# This file is part of GNU Libtool:
9800# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9801#
9802# This program is free software; you can redistribute it and/or modify
9803# it under the terms of the GNU General Public License as published by
9804# the Free Software Foundation; either version 2 of the License, or
9805# (at your option) any later version.
9806#
9807# This program is distributed in the hope that it will be useful, but
9808# WITHOUT ANY WARRANTY; without even the implied warranty of
9809# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9810# General Public License for more details.
9811#
9812# You should have received a copy of the GNU General Public License
9813# along with this program; if not, write to the Free Software
9814# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9815#
9816# As a special exception to the GNU General Public License, if you
9817# distribute this file as part of a program that contains a
9818# configuration script generated by Autoconf, you may include it under
9819# the same distribution terms that you use for the rest of that program.
9820
9821# A sed program that does not truncate output.
9822SED=$lt_SED
9823
9824# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9825Xsed="$SED -e 1s/^X//"
9826
9827# The HP-UX ksh and POSIX shell print the target directory to stdout
9828# if CDPATH is set.
9829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9830
9831# The names of the tagged configurations supported by this script.
9832available_tags=
9833
9834# ### BEGIN LIBTOOL CONFIG
9835
9836# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9837
9838# Shell to use when invoking shell scripts.
9839SHELL=$lt_SHELL
9840
9841# Whether or not to build shared libraries.
9842build_libtool_libs=$enable_shared
9843
9844# Whether or not to build static libraries.
9845build_old_libs=$enable_static
9846
9847# Whether or not to add -lc for building shared libraries.
9848build_libtool_need_lc=$archive_cmds_need_lc
9849
9850# Whether or not to disallow shared libs when runtime libs are static
9851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9852
9853# Whether or not to optimize for fast installation.
9854fast_install=$enable_fast_install
9855
9856# The host system.
9857host_alias=$host_alias
9858host=$host
9859host_os=$host_os
9860
9861# The build system.
9862build_alias=$build_alias
9863build=$build
9864build_os=$build_os
9865
9866# An echo program that does not interpret backslashes.
9867echo=$lt_echo
9868
9869# The archiver.
9870AR=$lt_AR
9871AR_FLAGS=$lt_AR_FLAGS
9872
9873# A C compiler.
9874LTCC=$lt_LTCC
9875
9876# LTCC compiler flags.
9877LTCFLAGS=$lt_LTCFLAGS
9878
9879# A language-specific compiler.
9880CC=$lt_compiler
9881
9882# Is the compiler the GNU C compiler?
9883with_gcc=$GCC
9884
9885# An ERE matcher.
9886EGREP=$lt_EGREP
9887
9888# The linker used to build libraries.
9889LD=$lt_LD
9890
9891# Whether we need hard or soft links.
9892LN_S=$lt_LN_S
9893
9894# A BSD-compatible nm program.
9895NM=$lt_NM
9896
9897# A symbol stripping program
9898STRIP=$lt_STRIP
9899
9900# Used to examine libraries when file_magic_cmd begins "file"
9901MAGIC_CMD=$MAGIC_CMD
9902
9903# Used on cygwin: DLL creation program.
9904DLLTOOL="$DLLTOOL"
9905
9906# Used on cygwin: object dumper.
9907OBJDUMP="$OBJDUMP"
9908
9909# Used on cygwin: assembler.
9910AS="$AS"
9911
9912# The name of the directory that contains temporary libtool files.
9913objdir=$objdir
9914
9915# How to create reloadable object files.
9916reload_flag=$lt_reload_flag
9917reload_cmds=$lt_reload_cmds
9918
9919# How to pass a linker flag through the compiler.
9920wl=$lt_lt_prog_compiler_wl
9921
9922# Object file suffix (normally "o").
9923objext="$ac_objext"
9924
9925# Old archive suffix (normally "a").
9926libext="$libext"
9927
9928# Shared library suffix (normally ".so").
9929shrext_cmds='$shrext_cmds'
9930
9931# Executable file suffix (normally "").
9932exeext="$exeext"
9933
9934# Additional compiler flags for building library objects.
9935pic_flag=$lt_lt_prog_compiler_pic
9936pic_mode=$pic_mode
9937
9938# What is the maximum length of a command?
9939max_cmd_len=$lt_cv_sys_max_cmd_len
9940
9941# Does compiler simultaneously support -c and -o options?
9942compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9943
9944# Must we lock files when doing compilation?
9945need_locks=$lt_need_locks
9946
9947# Do we need the lib prefix for modules?
9948need_lib_prefix=$need_lib_prefix
9949
9950# Do we need a version for libraries?
9951need_version=$need_version
9952
9953# Whether dlopen is supported.
9954dlopen_support=$enable_dlopen
9955
9956# Whether dlopen of programs is supported.
9957dlopen_self=$enable_dlopen_self
9958
9959# Whether dlopen of statically linked programs is supported.
9960dlopen_self_static=$enable_dlopen_self_static
9961
9962# Compiler flag to prevent dynamic linking.
9963link_static_flag=$lt_lt_prog_compiler_static
9964
9965# Compiler flag to turn off builtin functions.
9966no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9967
9968# Compiler flag to allow reflexive dlopens.
9969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9970
9971# Compiler flag to generate shared objects directly from archives.
9972whole_archive_flag_spec=$lt_whole_archive_flag_spec
9973
9974# Compiler flag to generate thread-safe objects.
9975thread_safe_flag_spec=$lt_thread_safe_flag_spec
9976
9977# Library versioning type.
9978version_type=$version_type
9979
9980# Format of library name prefix.
9981libname_spec=$lt_libname_spec
9982
9983# List of archive names.  First name is the real one, the rest are links.
9984# The last name is the one that the linker finds with -lNAME.
9985library_names_spec=$lt_library_names_spec
9986
9987# The coded name of the library, if different from the real name.
9988soname_spec=$lt_soname_spec
9989
9990# Commands used to build and install an old-style archive.
9991RANLIB=$lt_RANLIB
9992old_archive_cmds=$lt_old_archive_cmds
9993old_postinstall_cmds=$lt_old_postinstall_cmds
9994old_postuninstall_cmds=$lt_old_postuninstall_cmds
9995
9996# Create an old-style archive from a shared archive.
9997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9998
9999# Create a temporary old-style archive to link instead of a shared archive.
10000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10001
10002# Commands used to build and install a shared archive.
10003archive_cmds=$lt_archive_cmds
10004archive_expsym_cmds=$lt_archive_expsym_cmds
10005postinstall_cmds=$lt_postinstall_cmds
10006postuninstall_cmds=$lt_postuninstall_cmds
10007
10008# Commands used to build a loadable module (assumed same as above if empty)
10009module_cmds=$lt_module_cmds
10010module_expsym_cmds=$lt_module_expsym_cmds
10011
10012# Commands to strip libraries.
10013old_striplib=$lt_old_striplib
10014striplib=$lt_striplib
10015
10016# Dependencies to place before the objects being linked to create a
10017# shared library.
10018predep_objects=$lt_predep_objects
10019
10020# Dependencies to place after the objects being linked to create a
10021# shared library.
10022postdep_objects=$lt_postdep_objects
10023
10024# Dependencies to place before the objects being linked to create a
10025# shared library.
10026predeps=$lt_predeps
10027
10028# Dependencies to place after the objects being linked to create a
10029# shared library.
10030postdeps=$lt_postdeps
10031
10032# The library search path used internally by the compiler when linking
10033# a shared library.
10034compiler_lib_search_path=$lt_compiler_lib_search_path
10035
10036# Method to check whether dependent libraries are shared objects.
10037deplibs_check_method=$lt_deplibs_check_method
10038
10039# Command to use when deplibs_check_method == file_magic.
10040file_magic_cmd=$lt_file_magic_cmd
10041
10042# Flag that allows shared libraries with undefined symbols to be built.
10043allow_undefined_flag=$lt_allow_undefined_flag
10044
10045# Flag that forces no undefined symbols.
10046no_undefined_flag=$lt_no_undefined_flag
10047
10048# Commands used to finish a libtool library installation in a directory.
10049finish_cmds=$lt_finish_cmds
10050
10051# Same as above, but a single script fragment to be evaled but not shown.
10052finish_eval=$lt_finish_eval
10053
10054# Take the output of nm and produce a listing of raw symbols and C names.
10055global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10056
10057# Transform the output of nm in a proper C declaration
10058global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10059
10060# Transform the output of nm in a C name address pair
10061global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10062
10063# This is the shared library runtime path variable.
10064runpath_var=$runpath_var
10065
10066# This is the shared library path variable.
10067shlibpath_var=$shlibpath_var
10068
10069# Is shlibpath searched before the hard-coded library search path?
10070shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10071
10072# How to hardcode a shared library path into an executable.
10073hardcode_action=$hardcode_action
10074
10075# Whether we should hardcode library paths into libraries.
10076hardcode_into_libs=$hardcode_into_libs
10077
10078# Flag to hardcode \$libdir into a binary during linking.
10079# This must work even if \$libdir does not exist.
10080hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10081
10082# If ld is used when linking, flag to hardcode \$libdir into
10083# a binary during linking. This must work even if \$libdir does
10084# not exist.
10085hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10086
10087# Whether we need a single -rpath flag with a separated argument.
10088hardcode_libdir_separator=$lt_hardcode_libdir_separator
10089
10090# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10091# resulting binary.
10092hardcode_direct=$hardcode_direct
10093
10094# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10095# resulting binary.
10096hardcode_minus_L=$hardcode_minus_L
10097
10098# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10099# the resulting binary.
10100hardcode_shlibpath_var=$hardcode_shlibpath_var
10101
10102# Set to yes if building a shared library automatically hardcodes DIR into the library
10103# and all subsequent libraries and executables linked against it.
10104hardcode_automatic=$hardcode_automatic
10105
10106# Variables whose values should be saved in libtool wrapper scripts and
10107# restored at relink time.
10108variables_saved_for_relink="$variables_saved_for_relink"
10109
10110# Whether libtool must link a program against all its dependency libraries.
10111link_all_deplibs=$link_all_deplibs
10112
10113# Compile-time system search path for libraries
10114sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10115
10116# Run-time system search path for libraries
10117sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10118
10119# Fix the shell variable \$srcfile for the compiler.
10120fix_srcfile_path="$fix_srcfile_path"
10121
10122# Set to yes if exported symbols are required.
10123always_export_symbols=$always_export_symbols
10124
10125# The commands to list exported symbols.
10126export_symbols_cmds=$lt_export_symbols_cmds
10127
10128# The commands to extract the exported symbol list from a shared archive.
10129extract_expsyms_cmds=$lt_extract_expsyms_cmds
10130
10131# Symbols that should not be listed in the preloaded symbols.
10132exclude_expsyms=$lt_exclude_expsyms
10133
10134# Symbols that must always be exported.
10135include_expsyms=$lt_include_expsyms
10136
10137# ### END LIBTOOL CONFIG
10138
10139__EOF__
10140
10141
10142  case $host_os in
10143  aix3*)
10144    cat <<\EOF >> "$cfgfile"
10145
10146# AIX sometimes has problems with the GCC collect2 program.  For some
10147# reason, if we set the COLLECT_NAMES environment variable, the problems
10148# vanish in a puff of smoke.
10149if test "X${COLLECT_NAMES+set}" != Xset; then
10150  COLLECT_NAMES=
10151  export COLLECT_NAMES
10152fi
10153EOF
10154    ;;
10155  esac
10156
10157  # We use sed instead of cat because bash on DJGPP gets confused if
10158  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10159  # text mode, it properly converts lines to CR/LF.  This bash problem
10160  # is reportedly fixed, but why not run on old versions too?
10161  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10162
10163  mv -f "$cfgfile" "$ofile" || \
10164    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10165  chmod +x "$ofile"
10166
10167else
10168  # If there is no Makefile yet, we rely on a make rule to execute
10169  # `config.status --recheck' to rerun these tests and create the
10170  # libtool script then.
10171  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10172  if test -f "$ltmain_in"; then
10173    test -f Makefile && make "$ltmain"
10174  fi
10175fi
10176
10177
10178ac_ext=c
10179ac_cpp='$CPP $CPPFLAGS'
10180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183
10184CC="$lt_save_CC"
10185
10186
10187# Check whether --with-tags or --without-tags was given.
10188if test "${with_tags+set}" = set; then
10189  withval="$with_tags"
10190  tagnames="$withval"
10191fi;
10192
10193if test -f "$ltmain" && test -n "$tagnames"; then
10194  if test ! -f "${ofile}"; then
10195    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10196echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10197  fi
10198
10199  if test -z "$LTCC"; then
10200    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10201    if test -z "$LTCC"; then
10202      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10203echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10204    else
10205      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10206echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10207    fi
10208  fi
10209  if test -z "$LTCFLAGS"; then
10210    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10211  fi
10212
10213  # Extract list of available tagged configurations in $ofile.
10214  # Note that this assumes the entire list is on one line.
10215  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10216
10217  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10218  for tagname in $tagnames; do
10219    IFS="$lt_save_ifs"
10220    # Check whether tagname contains only valid characters
10221    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10222    "") ;;
10223    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10224echo "$as_me: error: invalid tag name: $tagname" >&2;}
10225   { (exit 1); exit 1; }; }
10226        ;;
10227    esac
10228
10229    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10230    then
10231      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10232echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10233   { (exit 1); exit 1; }; }
10234    fi
10235
10236    # Update the list of available tags.
10237    if test -n "$tagname"; then
10238      echo appending configuration tag \"$tagname\" to $ofile
10239
10240      case $tagname in
10241      CXX)
10242        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10243            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10244            (test "X$CXX" != "Xg++"))) ; then
10245          ac_ext=cc
10246ac_cpp='$CXXCPP $CPPFLAGS'
10247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10250
10251
10252
10253
10254archive_cmds_need_lc_CXX=no
10255allow_undefined_flag_CXX=
10256always_export_symbols_CXX=no
10257archive_expsym_cmds_CXX=
10258export_dynamic_flag_spec_CXX=
10259hardcode_direct_CXX=no
10260hardcode_libdir_flag_spec_CXX=
10261hardcode_libdir_flag_spec_ld_CXX=
10262hardcode_libdir_separator_CXX=
10263hardcode_minus_L_CXX=no
10264hardcode_shlibpath_var_CXX=unsupported
10265hardcode_automatic_CXX=no
10266module_cmds_CXX=
10267module_expsym_cmds_CXX=
10268link_all_deplibs_CXX=unknown
10269old_archive_cmds_CXX=$old_archive_cmds
10270no_undefined_flag_CXX=
10271whole_archive_flag_spec_CXX=
10272enable_shared_with_static_runtimes_CXX=no
10273
10274# Dependencies to place before and after the object being linked:
10275predep_objects_CXX=
10276postdep_objects_CXX=
10277predeps_CXX=
10278postdeps_CXX=
10279compiler_lib_search_path_CXX=
10280
10281# Source file extension for C++ test sources.
10282ac_ext=cpp
10283
10284# Object file extension for compiled C++ test sources.
10285objext=o
10286objext_CXX=$objext
10287
10288# Code to be used in simple compile tests
10289lt_simple_compile_test_code="int some_variable = 0;\n"
10290
10291# Code to be used in simple link tests
10292lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10293
10294# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10295
10296# If no C compiler was specified, use CC.
10297LTCC=${LTCC-"$CC"}
10298
10299# If no C compiler flags were specified, use CFLAGS.
10300LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10301
10302# Allow CC to be a program name with arguments.
10303compiler=$CC
10304
10305
10306# save warnings/boilerplate of simple test code
10307ac_outfile=conftest.$ac_objext
10308printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10309eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10310_lt_compiler_boilerplate=`cat conftest.err`
10311$rm conftest*
10312
10313ac_outfile=conftest.$ac_objext
10314printf "$lt_simple_link_test_code" >conftest.$ac_ext
10315eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10316_lt_linker_boilerplate=`cat conftest.err`
10317$rm conftest*
10318
10319
10320# Allow CC to be a program name with arguments.
10321lt_save_CC=$CC
10322lt_save_LD=$LD
10323lt_save_GCC=$GCC
10324GCC=$GXX
10325lt_save_with_gnu_ld=$with_gnu_ld
10326lt_save_path_LD=$lt_cv_path_LD
10327if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10328  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10329else
10330  $as_unset lt_cv_prog_gnu_ld
10331fi
10332if test -n "${lt_cv_path_LDCXX+set}"; then
10333  lt_cv_path_LD=$lt_cv_path_LDCXX
10334else
10335  $as_unset lt_cv_path_LD
10336fi
10337test -z "${LDCXX+set}" || LD=$LDCXX
10338CC=${CXX-"c++"}
10339compiler=$CC
10340compiler_CXX=$CC
10341for cc_temp in $compiler""; do
10342  case $cc_temp in
10343    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10344    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10345    \-*) ;;
10346    *) break;;
10347  esac
10348done
10349cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10350
10351
10352# We don't want -fno-exception wen compiling C++ code, so set the
10353# no_builtin_flag separately
10354if test "$GXX" = yes; then
10355  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10356else
10357  lt_prog_compiler_no_builtin_flag_CXX=
10358fi
10359
10360if test "$GXX" = yes; then
10361  # Set up default GNU C++ configuration
10362
10363
10364# Check whether --with-gnu-ld or --without-gnu-ld was given.
10365if test "${with_gnu_ld+set}" = set; then
10366  withval="$with_gnu_ld"
10367  test "$withval" = no || with_gnu_ld=yes
10368else
10369  with_gnu_ld=no
10370fi;
10371ac_prog=ld
10372if test "$GCC" = yes; then
10373  # Check if gcc -print-prog-name=ld gives a path.
10374  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10375echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10376  case $host in
10377  *-*-mingw*)
10378    # gcc leaves a trailing carriage return which upsets mingw
10379    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10380  *)
10381    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10382  esac
10383  case $ac_prog in
10384    # Accept absolute paths.
10385    [\\/]* | ?:[\\/]*)
10386      re_direlt='/[^/][^/]*/\.\./'
10387      # Canonicalize the pathname of ld
10388      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10389      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10390        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10391      done
10392      test -z "$LD" && LD="$ac_prog"
10393      ;;
10394  "")
10395    # If it fails, then pretend we aren't using GCC.
10396    ac_prog=ld
10397    ;;
10398  *)
10399    # If it is relative, then search for the first ld in PATH.
10400    with_gnu_ld=unknown
10401    ;;
10402  esac
10403elif test "$with_gnu_ld" = yes; then
10404  echo "$as_me:$LINENO: checking for GNU ld" >&5
10405echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10406else
10407  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10408echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10409fi
10410if test "${lt_cv_path_LD+set}" = set; then
10411  echo $ECHO_N "(cached) $ECHO_C" >&6
10412else
10413  if test -z "$LD"; then
10414  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10415  for ac_dir in $PATH; do
10416    IFS="$lt_save_ifs"
10417    test -z "$ac_dir" && ac_dir=.
10418    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10419      lt_cv_path_LD="$ac_dir/$ac_prog"
10420      # Check to see if the program is GNU ld.  I'd rather use --version,
10421      # but apparently some variants of GNU ld only accept -v.
10422      # Break only if it was the GNU/non-GNU ld that we prefer.
10423      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10424      *GNU* | *'with BFD'*)
10425        test "$with_gnu_ld" != no && break
10426        ;;
10427      *)
10428        test "$with_gnu_ld" != yes && break
10429        ;;
10430      esac
10431    fi
10432  done
10433  IFS="$lt_save_ifs"
10434else
10435  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10436fi
10437fi
10438
10439LD="$lt_cv_path_LD"
10440if test -n "$LD"; then
10441  echo "$as_me:$LINENO: result: $LD" >&5
10442echo "${ECHO_T}$LD" >&6
10443else
10444  echo "$as_me:$LINENO: result: no" >&5
10445echo "${ECHO_T}no" >&6
10446fi
10447test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10448echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10449   { (exit 1); exit 1; }; }
10450echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10451echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10452if test "${lt_cv_prog_gnu_ld+set}" = set; then
10453  echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10456case `$LD -v 2>&1 </dev/null` in
10457*GNU* | *'with BFD'*)
10458  lt_cv_prog_gnu_ld=yes
10459  ;;
10460*)
10461  lt_cv_prog_gnu_ld=no
10462  ;;
10463esac
10464fi
10465echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10466echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10467with_gnu_ld=$lt_cv_prog_gnu_ld
10468
10469
10470
10471  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10472  # archiving commands below assume that GNU ld is being used.
10473  if test "$with_gnu_ld" = yes; then
10474    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10475    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'
10476
10477    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10478    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10479
10480    # If archive_cmds runs LD, not CC, wlarc should be empty
10481    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10482    #     investigate it a little bit more. (MM)
10483    wlarc='${wl}'
10484
10485    # ancient GNU ld didn't support --whole-archive et. al.
10486    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10487        grep 'no-whole-archive' > /dev/null; then
10488      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10489    else
10490      whole_archive_flag_spec_CXX=
10491    fi
10492  else
10493    with_gnu_ld=no
10494    wlarc=
10495
10496    # A generic and very simple default shared library creation
10497    # command for GNU C++ for the case where it uses the native
10498    # linker, instead of GNU ld.  If possible, this setting should
10499    # overridden to take advantage of the native linker features on
10500    # the platform it is being used on.
10501    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10502  fi
10503
10504  # Commands to make compiler produce verbose output that lists
10505  # what "hidden" libraries, object files and flags are used when
10506  # linking a shared library.
10507  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10508
10509else
10510  GXX=no
10511  with_gnu_ld=no
10512  wlarc=
10513fi
10514
10515# PORTME: fill in a description of your system's C++ link characteristics
10516echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10517echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10518ld_shlibs_CXX=yes
10519case $host_os in
10520  aix3*)
10521    # FIXME: insert proper C++ library support
10522    ld_shlibs_CXX=no
10523    ;;
10524  aix4* | aix5*)
10525    if test "$host_cpu" = ia64; then
10526      # On IA64, the linker does run time linking by default, so we don't
10527      # have to do anything special.
10528      aix_use_runtimelinking=no
10529      exp_sym_flag='-Bexport'
10530      no_entry_flag=""
10531    else
10532      aix_use_runtimelinking=no
10533
10534      # Test if we are trying to use run time linking or normal
10535      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10536      # need to do runtime linking.
10537      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10538        for ld_flag in $LDFLAGS; do
10539          case $ld_flag in
10540          *-brtl*)
10541            aix_use_runtimelinking=yes
10542            break
10543            ;;
10544          esac
10545        done
10546        ;;
10547      esac
10548
10549      exp_sym_flag='-bexport'
10550      no_entry_flag='-bnoentry'
10551    fi
10552
10553    # When large executables or shared objects are built, AIX ld can
10554    # have problems creating the table of contents.  If linking a library
10555    # or program results in "error TOC overflow" add -mminimal-toc to
10556    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10557    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10558
10559    archive_cmds_CXX=''
10560    hardcode_direct_CXX=yes
10561    hardcode_libdir_separator_CXX=':'
10562    link_all_deplibs_CXX=yes
10563
10564    if test "$GXX" = yes; then
10565      case $host_os in aix4.[012]|aix4.[012].*)
10566      # We only want to do this on AIX 4.2 and lower, the check
10567      # below for broken collect2 doesn't work under 4.3+
10568        collect2name=`${CC} -print-prog-name=collect2`
10569        if test -f "$collect2name" && \
10570           strings "$collect2name" | grep resolve_lib_name >/dev/null
10571        then
10572          # We have reworked collect2
10573          hardcode_direct_CXX=yes
10574        else
10575          # We have old collect2
10576          hardcode_direct_CXX=unsupported
10577          # It fails to find uninstalled libraries when the uninstalled
10578          # path is not listed in the libpath.  Setting hardcode_minus_L
10579          # to unsupported forces relinking
10580          hardcode_minus_L_CXX=yes
10581          hardcode_libdir_flag_spec_CXX='-L$libdir'
10582          hardcode_libdir_separator_CXX=
10583        fi
10584        ;;
10585      esac
10586      shared_flag='-shared'
10587      if test "$aix_use_runtimelinking" = yes; then
10588        shared_flag="$shared_flag "'${wl}-G'
10589      fi
10590    else
10591      # not using gcc
10592      if test "$host_cpu" = ia64; then
10593        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10594        # chokes on -Wl,-G. The following line is correct:
10595        shared_flag='-G'
10596      else
10597        if test "$aix_use_runtimelinking" = yes; then
10598          shared_flag='${wl}-G'
10599        else
10600          shared_flag='${wl}-bM:SRE'
10601        fi
10602      fi
10603    fi
10604
10605    # It seems that -bexpall does not export symbols beginning with
10606    # underscore (_), so it is better to generate a list of symbols to export.
10607    always_export_symbols_CXX=yes
10608    if test "$aix_use_runtimelinking" = yes; then
10609      # Warning - without using the other runtime loading flags (-brtl),
10610      # -berok will link without error, but may produce a broken library.
10611      allow_undefined_flag_CXX='-berok'
10612      # Determine the default libpath from the value encoded in an empty executable.
10613      cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h.  */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h.  */
10619
10620int
10621main ()
10622{
10623
10624  ;
10625  return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext conftest$ac_exeext
10629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630  (eval $ac_link) 2>conftest.er1
10631  ac_status=$?
10632  grep -v '^ *+' conftest.er1 >conftest.err
10633  rm -f conftest.er1
10634  cat conftest.err >&5
10635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); } &&
10637         { ac_try='test -z "$ac_cxx_werror_flag"
10638                         || test ! -s conftest.err'
10639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640  (eval $ac_try) 2>&5
10641  ac_status=$?
10642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643  (exit $ac_status); }; } &&
10644         { ac_try='test -s conftest$ac_exeext'
10645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646  (eval $ac_try) 2>&5
10647  ac_status=$?
10648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649  (exit $ac_status); }; }; then
10650
10651aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10652}'`
10653# Check for a 64-bit object if we didn't find anything.
10654if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10655}'`; fi
10656else
10657  echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660fi
10661rm -f conftest.err conftest.$ac_objext \
10662      conftest$ac_exeext conftest.$ac_ext
10663if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10664
10665      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10666
10667      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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10668     else
10669      if test "$host_cpu" = ia64; then
10670        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10671        allow_undefined_flag_CXX="-z nodefs"
10672        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"
10673      else
10674        # Determine the default libpath from the value encoded in an empty executable.
10675        cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h.  */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h.  */
10681
10682int
10683main ()
10684{
10685
10686  ;
10687  return 0;
10688}
10689_ACEOF
10690rm -f conftest.$ac_objext conftest$ac_exeext
10691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692  (eval $ac_link) 2>conftest.er1
10693  ac_status=$?
10694  grep -v '^ *+' conftest.er1 >conftest.err
10695  rm -f conftest.er1
10696  cat conftest.err >&5
10697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); } &&
10699         { ac_try='test -z "$ac_cxx_werror_flag"
10700                         || test ! -s conftest.err'
10701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702  (eval $ac_try) 2>&5
10703  ac_status=$?
10704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705  (exit $ac_status); }; } &&
10706         { ac_try='test -s conftest$ac_exeext'
10707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708  (eval $ac_try) 2>&5
10709  ac_status=$?
10710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711  (exit $ac_status); }; }; then
10712
10713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10714}'`
10715# Check for a 64-bit object if we didn't find anything.
10716if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10717}'`; fi
10718else
10719  echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722fi
10723rm -f conftest.err conftest.$ac_objext \
10724      conftest$ac_exeext conftest.$ac_ext
10725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10726
10727        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10728        # Warning - without using the other run time loading flags,
10729        # -berok will link without error, but may produce a broken library.
10730        no_undefined_flag_CXX=' ${wl}-bernotok'
10731        allow_undefined_flag_CXX=' ${wl}-berok'
10732        # Exported symbols can be pulled into shared objects from archives
10733        whole_archive_flag_spec_CXX='$convenience'
10734        archive_cmds_need_lc_CXX=yes
10735        # This is similar to how AIX traditionally builds its shared libraries.
10736        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'
10737      fi
10738    fi
10739    ;;
10740
10741  beos*)
10742    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10743      allow_undefined_flag_CXX=unsupported
10744      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10745      # support --undefined.  This deserves some investigation.  FIXME
10746      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10747    else
10748      ld_shlibs_CXX=no
10749    fi
10750    ;;
10751
10752  chorus*)
10753    case $cc_basename in
10754      *)
10755        # FIXME: insert proper C++ library support
10756        ld_shlibs_CXX=no
10757        ;;
10758    esac
10759    ;;
10760
10761  cygwin* | mingw* | pw32*)
10762    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10763    # as there is no search path for DLLs.
10764    hardcode_libdir_flag_spec_CXX='-L$libdir'
10765    allow_undefined_flag_CXX=unsupported
10766    always_export_symbols_CXX=no
10767    enable_shared_with_static_runtimes_CXX=yes
10768
10769    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10770      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'
10771      # If the export-symbols file already is a .def file (1st line
10772      # is EXPORTS), use it as is; otherwise, prepend...
10773      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10774        cp $export_symbols $output_objdir/$soname.def;
10775      else
10776        echo EXPORTS > $output_objdir/$soname.def;
10777        cat $export_symbols >> $output_objdir/$soname.def;
10778      fi~
10779      $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'
10780    else
10781      ld_shlibs_CXX=no
10782    fi
10783  ;;
10784      darwin* | rhapsody*)
10785        case $host_os in
10786        rhapsody* | darwin1.[012])
10787         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10788         ;;
10789       *) # Darwin 1.3 on
10790         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10791           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10792         else