source: trunk/Clp/configure @ 784

Last change on this file since 784 was 784, checked in by andreasw, 14 years ago

correct svn:keywords property for configure.ac and Makefile.am files

  • Property svn:executable set to *
File size: 707.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 0.1.
4#
5# Report bugs to <coin-clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='0.1'
433PACKAGE_STRING='Clp 0.1'
434PACKAGE_BUGREPORT='coin-clp@list.coin-or.org'
435
436ac_unique_file="src/ClpCholeskyBase.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 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 abs_lib_dir abs_include_dir abs_bin_dir RPATH_FLAGS COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936ac_env_CXXDEFS_set=${CXXDEFS+set}
937ac_env_CXXDEFS_value=$CXXDEFS
938ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
939ac_cv_env_CXXDEFS_value=$CXXDEFS
940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948ac_env_CPP_set=${CPP+set}
949ac_env_CPP_value=$CPP
950ac_cv_env_CPP_set=${CPP+set}
951ac_cv_env_CPP_value=$CPP
952ac_env_CXXCPP_set=${CXXCPP+set}
953ac_env_CXXCPP_value=$CXXCPP
954ac_cv_env_CXXCPP_set=${CXXCPP+set}
955ac_cv_env_CXXCPP_value=$CXXCPP
956ac_env_F77_set=${F77+set}
957ac_env_F77_value=$F77
958ac_cv_env_F77_set=${F77+set}
959ac_cv_env_F77_value=$F77
960ac_env_FFLAGS_set=${FFLAGS+set}
961ac_env_FFLAGS_value=$FFLAGS
962ac_cv_env_FFLAGS_set=${FFLAGS+set}
963ac_cv_env_FFLAGS_value=$FFLAGS
964
965#
966# Report the --help message.
967#
968if test "$ac_init_help" = "long"; then
969  # Omit some internal or obsolete options to make the list less imposing.
970  # This message is too long to be a string in the A/UX 3.1 sh.
971  cat <<_ACEOF
972\`configure' configures Clp 0.1 to adapt to many kinds of systems.
973
974Usage: $0 [OPTION]... [VAR=VALUE]...
975
976To assign environment variables (e.g., CC, CFLAGS...), specify them as
977VAR=VALUE.  See below for descriptions of some of the useful variables.
978
979Defaults for the options are specified in brackets.
980
981Configuration:
982  -h, --help              display this help and exit
983      --help=short        display options specific to this package
984      --help=recursive    display the short help of all the included packages
985  -V, --version           display version information and exit
986  -q, --quiet, --silent   do not print \`checking...' messages
987      --cache-file=FILE   cache test results in FILE [disabled]
988  -C, --config-cache      alias for \`--cache-file=config.cache'
989  -n, --no-create         do not create output files
990      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
991
992_ACEOF
993
994  cat <<_ACEOF
995Installation directories:
996  --prefix=PREFIX         install architecture-independent files in PREFIX
997                          [$ac_default_prefix]
998  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
999                          [PREFIX]
1000
1001By default, \`make install' will install all the files in
1002\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1003an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1004for instance \`--prefix=\$HOME'.
1005
1006For better control, use the options below.
1007
1008Fine tuning of the installation directories:
1009  --bindir=DIR           user executables [EPREFIX/bin]
1010  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1011  --libexecdir=DIR       program executables [EPREFIX/libexec]
1012  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1013  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1014  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1015  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1016  --libdir=DIR           object code libraries [EPREFIX/lib]
1017  --includedir=DIR       C header files [PREFIX/include]
1018  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1019  --infodir=DIR          info documentation [PREFIX/info]
1020  --mandir=DIR           man documentation [PREFIX/man]
1021_ACEOF
1022
1023  cat <<\_ACEOF
1024
1025Program names:
1026  --program-prefix=PREFIX            prepend PREFIX to installed program names
1027  --program-suffix=SUFFIX            append SUFFIX to installed program names
1028  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1029
1030System types:
1031  --build=BUILD     configure for building on BUILD [guessed]
1032  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1033_ACEOF
1034fi
1035
1036if test -n "$ac_init_help"; then
1037  case $ac_init_help in
1038     short | recursive ) echo "Configuration of Clp 0.1:";;
1039   esac
1040  cat <<\_ACEOF
1041
1042Optional Features:
1043  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1044  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1045  --enable-debug          compile with debug options and runtime tests
1046  --enable-static[=PKGS]
1047                          build static libraries [default=no]
1048  --disable-dependency-tracking  speeds up one-time build
1049  --enable-dependency-tracking   do not reject slow dependency extractors
1050  --enable-maintainer-mode  enable make rules and dependencies not useful
1051                          (and sometimes confusing) to the casual installer
1052  --enable-shared[=PKGS]
1053                          build shared libraries [default=yes]
1054  --enable-fast-install[=PKGS]
1055                          optimize for fast installation [default=yes]
1056  --disable-libtool-lock  avoid locking (might break parallel builds)
1057  --enable-gnu-packages   compile with GNU packages (disabled by default)
1058
1059Optional Packages:
1060  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1061  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1062  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1063  --with-pic              try to use only PIC/non-PIC objects [default=use
1064                          both]
1065  --with-tags[=TAGS]
1066                          include additional configurations [automatic]
1067
1068Some influential environment variables:
1069  CDEFS       Additional -D flags to be used when compiling C code.
1070  CC          C compiler command
1071  CFLAGS      C compiler flags
1072  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1073              nonstandard directory <lib dir>
1074  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075              headers in a nonstandard directory <include dir>
1076  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1077  CXX         C++ compiler command
1078  CXXFLAGS    C++ compiler flags
1079  CPP         C preprocessor
1080  CXXCPP      C++ preprocessor
1081  F77         Fortran 77 compiler command
1082  FFLAGS      Fortran 77 compiler flags
1083
1084Use these variables to override the choices made by `configure' or to help
1085it to find libraries and programs with nonstandard names/locations.
1086
1087Report bugs to <coin-clp@list.coin-or.org>.
1088_ACEOF
1089fi
1090
1091if test "$ac_init_help" = "recursive"; then
1092  # If there are subdirs, report their specific --help.
1093  ac_popdir=`pwd`
1094  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1095    test -d $ac_dir || continue
1096    ac_builddir=.
1097
1098if test "$ac_dir" != .; then
1099  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1100  # A "../" for each directory in $ac_dir_suffix.
1101  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1102else
1103  ac_dir_suffix= ac_top_builddir=
1104fi
1105
1106case $srcdir in
1107  .)  # No --srcdir option.  We are building in place.
1108    ac_srcdir=.
1109    if test -z "$ac_top_builddir"; then
1110       ac_top_srcdir=.
1111    else
1112       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1113    fi ;;
1114  [\\/]* | ?:[\\/]* )  # Absolute path.
1115    ac_srcdir=$srcdir$ac_dir_suffix;
1116    ac_top_srcdir=$srcdir ;;
1117  *) # Relative path.
1118    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1119    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120esac
1121
1122# Do not use `cd foo && pwd` to compute absolute paths, because
1123# the directories may not exist.
1124case `pwd` in
1125.) ac_abs_builddir="$ac_dir";;
1126*)
1127  case "$ac_dir" in
1128  .) ac_abs_builddir=`pwd`;;
1129  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1130  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131  esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_top_builddir=${ac_top_builddir}.;;
1135*)
1136  case ${ac_top_builddir}. in
1137  .) ac_abs_top_builddir=$ac_abs_builddir;;
1138  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1139  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140  esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_srcdir=$ac_srcdir;;
1144*)
1145  case $ac_srcdir in
1146  .) ac_abs_srcdir=$ac_abs_builddir;;
1147  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1148  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149  esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_srcdir=$ac_top_srcdir;;
1153*)
1154  case $ac_top_srcdir in
1155  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1156  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1157  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158  esac;;
1159esac
1160
1161    cd $ac_dir
1162    # Check for guested configure; otherwise get Cygnus style configure.
1163    if test -f $ac_srcdir/configure.gnu; then
1164      echo
1165      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1166    elif test -f $ac_srcdir/configure; then
1167      echo
1168      $SHELL $ac_srcdir/configure  --help=recursive
1169    elif test -f $ac_srcdir/configure.ac ||
1170           test -f $ac_srcdir/configure.in; then
1171      echo
1172      $ac_configure --help
1173    else
1174      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175    fi
1176    cd $ac_popdir
1177  done
1178fi
1179
1180test -n "$ac_init_help" && exit 0
1181if $ac_init_version; then
1182  cat <<\_ACEOF
1183Clp configure 0.1
1184generated by GNU Autoconf 2.59
1185
1186Copyright (C) 2003 Free Software Foundation, Inc.
1187This configure script is free software; the Free Software Foundation
1188gives unlimited permission to copy, distribute and modify it.
1189
1190
1191Copyright 2006 International Business Machines and others.
1192All Rights Reserved.
1193This file is part of the open source package Coin which is distributed
1194under the Common Public License.
1195_ACEOF
1196  exit 0
1197fi
1198exec 5>config.log
1199cat >&5 <<_ACEOF
1200This file contains any messages produced by compilers while
1201running configure, to aid debugging if configure makes a mistake.
1202
1203It was created by Clp $as_me 0.1, which was
1204generated by GNU Autoconf 2.59.  Invocation command line was
1205
1206  $ $0 $@
1207
1208_ACEOF
1209{
1210cat <<_ASUNAME
1211## --------- ##
1212## Platform. ##
1213## --------- ##
1214
1215hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1216uname -m = `(uname -m) 2>/dev/null || echo unknown`
1217uname -r = `(uname -r) 2>/dev/null || echo unknown`
1218uname -s = `(uname -s) 2>/dev/null || echo unknown`
1219uname -v = `(uname -v) 2>/dev/null || echo unknown`
1220
1221/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1222/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1223
1224/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1225/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1226/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1227hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1228/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1229/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1230/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1231
1232_ASUNAME
1233
1234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235for as_dir in $PATH
1236do
1237  IFS=$as_save_IFS
1238  test -z "$as_dir" && as_dir=.
1239  echo "PATH: $as_dir"
1240done
1241
1242} >&5
1243
1244cat >&5 <<_ACEOF
1245
1246
1247## ----------- ##
1248## Core tests. ##
1249## ----------- ##
1250
1251_ACEOF
1252
1253
1254# Keep a trace of the command line.
1255# Strip out --no-create and --no-recursion so they do not pile up.
1256# Strip out --silent because we don't want to record it for future runs.
1257# Also quote any args containing shell meta-characters.
1258# Make two passes to allow for proper duplicate-argument suppression.
1259ac_configure_args=
1260ac_configure_args0=
1261ac_configure_args1=
1262ac_sep=
1263ac_must_keep_next=false
1264for ac_pass in 1 2
1265do
1266  for ac_arg
1267  do
1268    case $ac_arg in
1269    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1270    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271    | -silent | --silent | --silen | --sile | --sil)
1272      continue ;;
1273    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1275    esac
1276    case $ac_pass in
1277    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1278    2)
1279      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1280      if test $ac_must_keep_next = true; then
1281        ac_must_keep_next=false # Got value, back to normal.
1282      else
1283        case $ac_arg in
1284          *=* | --config-cache | -C | -disable-* | --disable-* \
1285          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1286          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1287          | -with-* | --with-* | -without-* | --without-* | --x)
1288            case "$ac_configure_args0 " in
1289              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1290            esac
1291            ;;
1292          -* ) ac_must_keep_next=true ;;
1293        esac
1294      fi
1295      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1296      # Get rid of the leading space.
1297      ac_sep=" "
1298      ;;
1299    esac
1300  done
1301done
1302$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1303$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1304
1305# When interrupted or exit'd, cleanup temporary files, and complete
1306# config.log.  We remove comments because anyway the quotes in there
1307# would cause problems or look ugly.
1308# WARNING: Be sure not to use single quotes in there, as some shells,
1309# such as our DU 5.0 friend, will then `close' the trap.
1310trap 'exit_status=$?
1311  # Save into config.log some information that might help in debugging.
1312  {
1313    echo
1314
1315    cat <<\_ASBOX
1316## ---------------- ##
1317## Cache variables. ##
1318## ---------------- ##
1319_ASBOX
1320    echo
1321    # The following way of writing the cache mishandles newlines in values,
1322{
1323  (set) 2>&1 |
1324    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1325    *ac_space=\ *)
1326      sed -n \
1327        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1328          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1329      ;;
1330    *)
1331      sed -n \
1332        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333      ;;
1334    esac;
1335}
1336    echo
1337
1338    cat <<\_ASBOX
1339## ----------------- ##
1340## Output variables. ##
1341## ----------------- ##
1342_ASBOX
1343    echo
1344    for ac_var in $ac_subst_vars
1345    do
1346      eval ac_val=$`echo $ac_var`
1347      echo "$ac_var='"'"'$ac_val'"'"'"
1348    done | sort
1349    echo
1350
1351    if test -n "$ac_subst_files"; then
1352      cat <<\_ASBOX
1353## ------------- ##
1354## Output files. ##
1355## ------------- ##
1356_ASBOX
1357      echo
1358      for ac_var in $ac_subst_files
1359      do
1360        eval ac_val=$`echo $ac_var`
1361        echo "$ac_var='"'"'$ac_val'"'"'"
1362      done | sort
1363      echo
1364    fi
1365
1366    if test -s confdefs.h; then
1367      cat <<\_ASBOX
1368## ----------- ##
1369## confdefs.h. ##
1370## ----------- ##
1371_ASBOX
1372      echo
1373      sed "/^$/d" confdefs.h | sort
1374      echo
1375    fi
1376    test "$ac_signal" != 0 &&
1377      echo "$as_me: caught signal $ac_signal"
1378    echo "$as_me: exit $exit_status"
1379  } >&5
1380  rm -f core *.core &&
1381  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1382    exit $exit_status
1383     ' 0
1384for ac_signal in 1 2 13 15; do
1385  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1386done
1387ac_signal=0
1388
1389# confdefs.h avoids OS command line length limits that DEFS can exceed.
1390rm -rf conftest* confdefs.h
1391# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1392echo >confdefs.h
1393
1394# Predefined preprocessor variables.
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_NAME "$PACKAGE_NAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_VERSION "$PACKAGE_VERSION"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_STRING "$PACKAGE_STRING"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1418_ACEOF
1419
1420
1421# Let the site file select an alternate cache file if it wants to.
1422# Prefer explicitly selected file to automatically selected ones.
1423if test -z "$CONFIG_SITE"; then
1424  if test "x$prefix" != xNONE; then
1425    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1426  else
1427    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1428  fi
1429fi
1430for ac_site_file in $CONFIG_SITE; do
1431  if test -r "$ac_site_file"; then
1432    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1433echo "$as_me: loading site script $ac_site_file" >&6;}
1434    sed 's/^/| /' "$ac_site_file" >&5
1435    . "$ac_site_file"
1436  fi
1437done
1438
1439if test -r "$cache_file"; then
1440  # Some versions of bash will fail to source /dev/null (special
1441  # files actually), so we avoid doing that.
1442  if test -f "$cache_file"; then
1443    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1444echo "$as_me: loading cache $cache_file" >&6;}
1445    case $cache_file in
1446      [\\/]* | ?:[\\/]* ) . $cache_file;;
1447      *)                      . ./$cache_file;;
1448    esac
1449  fi
1450else
1451  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1452echo "$as_me: creating cache $cache_file" >&6;}
1453  >$cache_file
1454fi
1455
1456# Check that the precious variables saved in the cache have kept the same
1457# value.
1458ac_cache_corrupted=false
1459for ac_var in `(set) 2>&1 |
1460               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1461  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1462  eval ac_new_set=\$ac_env_${ac_var}_set
1463  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1464  eval ac_new_val="\$ac_env_${ac_var}_value"
1465  case $ac_old_set,$ac_new_set in
1466    set,)
1467      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1468echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1469      ac_cache_corrupted=: ;;
1470    ,set)
1471      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1473      ac_cache_corrupted=: ;;
1474    ,);;
1475    *)
1476      if test "x$ac_old_val" != "x$ac_new_val"; then
1477        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1478echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1479        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1480echo "$as_me:   former value:  $ac_old_val" >&2;}
1481        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1482echo "$as_me:   current value: $ac_new_val" >&2;}
1483        ac_cache_corrupted=:
1484      fi;;
1485  esac
1486  # Pass precious variables to config.status.
1487  if test "$ac_new_set" = set; then
1488    case $ac_new_val in
1489    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1490      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1491    *) ac_arg=$ac_var=$ac_new_val ;;
1492    esac
1493    case " $ac_configure_args " in
1494      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1495      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1496    esac
1497  fi
1498done
1499if $ac_cache_corrupted; then
1500  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1501echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1502  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1503echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1504   { (exit 1); exit 1; }; }
1505fi
1506
1507ac_ext=c
1508ac_cpp='$CPP $CPPFLAGS'
1509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512
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# List one file in the package so that the configure script can test
1543# whether the package is actually there
1544
1545
1546#############################################################################
1547#                         Standard build tool stuff                         #
1548#############################################################################
1549
1550# Get the system type
1551ac_aux_dir=
1552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553  if test -f $ac_dir/install-sh; then
1554    ac_aux_dir=$ac_dir
1555    ac_install_sh="$ac_aux_dir/install-sh -c"
1556    break
1557  elif test -f $ac_dir/install.sh; then
1558    ac_aux_dir=$ac_dir
1559    ac_install_sh="$ac_aux_dir/install.sh -c"
1560    break
1561  elif test -f $ac_dir/shtool; then
1562    ac_aux_dir=$ac_dir
1563    ac_install_sh="$ac_aux_dir/shtool install -c"
1564    break
1565  fi
1566done
1567if test -z "$ac_aux_dir"; then
1568  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570   { (exit 1); exit 1; }; }
1571fi
1572ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575
1576# Make sure we can run config.sub.
1577$ac_config_sub sun4 >/dev/null 2>&1 ||
1578  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580   { (exit 1); exit 1; }; }
1581
1582echo "$as_me:$LINENO: checking build system type" >&5
1583echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584if test "${ac_cv_build+set}" = set; then
1585  echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587  ac_cv_build_alias=$build_alias
1588test -z "$ac_cv_build_alias" &&
1589  ac_cv_build_alias=`$ac_config_guess`
1590test -z "$ac_cv_build_alias" &&
1591  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593   { (exit 1); exit 1; }; }
1594ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597   { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601echo "${ECHO_T}$ac_cv_build" >&6
1602build=$ac_cv_build
1603build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608
1609# Where should everything be installed by default?  Here, we want it
1610# to be installed directly in 'bin', 'lib', 'include' subdirectories
1611# of the directory where configure is run.  The default would be
1612# /usr/local.
1613
1614
1615# If this project depends on external projects, the Externals file in
1616# the source root directory contains definition of where to find those
1617# externals.  The following macro ensures that those externals are
1618# retrieved by svn if they are not there yet.
1619# Initialize the ADDLIBS variable
1620ADDLIBS=
1621
1622
1623# A useful makefile conditional that is always false
1624
1625
1626if false; then
1627  ALWAYS_FALSE_TRUE=
1628  ALWAYS_FALSE_FALSE='#'
1629else
1630  ALWAYS_FALSE_TRUE='#'
1631  ALWAYS_FALSE_FALSE=
1632fi
1633
1634
1635
1636# Check if user wants to produce debugging code
1637
1638echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1639echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1640
1641# Check whether --enable-debug or --disable-debug was given.
1642if test "${enable_debug+set}" = set; then
1643  enableval="$enable_debug"
1644  case "${enableval}" in
1645                   yes) coin_debug_compile=true
1646
1647cat >>confdefs.h <<\_ACEOF
1648#define COIN_DEBUG 1
1649_ACEOF
1650
1651                     ;;
1652                   no)  coin_debug_compile=false
1653                     ;;
1654                    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1655echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1656   { (exit 1); exit 1; }; }
1657                     ;;
1658                 esac
1659else
1660  coin_debug_compile=false
1661fi;
1662
1663if test $coin_debug_compile = true; then
1664  echo "$as_me:$LINENO: result: yes" >&5
1665echo "${ECHO_T}yes" >&6
1666else
1667  echo "$as_me:$LINENO: result: no" >&5
1668echo "${ECHO_T}no" >&6
1669fi
1670
1671
1672
1673if test "$coin_debug_compile" = true; then
1674  COIN_DEBUG_TRUE=
1675  COIN_DEBUG_FALSE='#'
1676else
1677  COIN_DEBUG_TRUE='#'
1678  COIN_DEBUG_FALSE=
1679fi
1680
1681
1682
1683# Get the name of the C++ compiler and appropriate compiler options
1684
1685ac_ext=c
1686ac_cpp='$CPP $CPPFLAGS'
1687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1689ac_compiler_gnu=$ac_cv_c_compiler_gnu
1690
1691
1692# For consistency, we set the C compiler to the same value of the C++
1693# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1694if test x"$CXX" != x; then
1695  case $CXX in
1696    cl*)
1697      if test x"$CC" = x; then
1698        CC="$CXX"
1699        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1700echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1701      fi
1702      ;;
1703  esac
1704fi
1705
1706
1707
1708coin_has_cc=yes
1709
1710save_cflags="$CFLAGS"
1711case $build in
1712  *-cygwin* | *-mingw*)
1713             comps="gcc cl" ;;
1714  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1715  *)         comps="xlc cc gcc pgcc icc" ;;
1716esac
1717ac_ext=c
1718ac_cpp='$CPP $CPPFLAGS'
1719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1721ac_compiler_gnu=$ac_cv_c_compiler_gnu
1722if test -n "$ac_tool_prefix"; then
1723  for ac_prog in $comps
1724  do
1725    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729if test "${ac_cv_prog_CC+set}" = set; then
1730  echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732  if test -n "$CC"; then
1733  ac_cv_prog_CC="$CC" # Let the user override the test.
1734else
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738  IFS=$as_save_IFS
1739  test -z "$as_dir" && as_dir=.
1740  for ac_exec_ext in '' $ac_executable_extensions; do
1741  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1743    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744    break 2
1745  fi
1746done
1747done
1748
1749fi
1750fi
1751CC=$ac_cv_prog_CC
1752if test -n "$CC"; then
1753  echo "$as_me:$LINENO: result: $CC" >&5
1754echo "${ECHO_T}$CC" >&6
1755else
1756  echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
1758fi
1759
1760    test -n "$CC" && break
1761  done
1762fi
1763if test -z "$CC"; then
1764  ac_ct_CC=$CC
1765  for ac_prog in $comps
1766do
1767  # Extract the first word of "$ac_prog", so it can be a program name with args.
1768set dummy $ac_prog; ac_word=$2
1769echo "$as_me:$LINENO: checking for $ac_word" >&5
1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1772  echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774  if test -n "$ac_ct_CC"; then
1775  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1776else
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780  IFS=$as_save_IFS
1781  test -z "$as_dir" && as_dir=.
1782  for ac_exec_ext in '' $ac_executable_extensions; do
1783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784    ac_cv_prog_ac_ct_CC="$ac_prog"
1785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786    break 2
1787  fi
1788done
1789done
1790
1791fi
1792fi
1793ac_ct_CC=$ac_cv_prog_ac_ct_CC
1794if test -n "$ac_ct_CC"; then
1795  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1796echo "${ECHO_T}$ac_ct_CC" >&6
1797else
1798  echo "$as_me:$LINENO: result: no" >&5
1799echo "${ECHO_T}no" >&6
1800fi
1801
1802  test -n "$ac_ct_CC" && break
1803done
1804
1805  CC=$ac_ct_CC
1806fi
1807
1808
1809test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1810See \`config.log' for more details." >&5
1811echo "$as_me: error: no acceptable C compiler found in \$PATH
1812See \`config.log' for more details." >&2;}
1813   { (exit 1); exit 1; }; }
1814
1815# Provide some information about the compiler.
1816echo "$as_me:$LINENO:" \
1817     "checking for C compiler version" >&5
1818ac_compiler=`set X $ac_compile; echo $2`
1819{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1820  (eval $ac_compiler --version </dev/null >&5) 2>&5
1821  ac_status=$?
1822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823  (exit $ac_status); }
1824{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1825  (eval $ac_compiler -v </dev/null >&5) 2>&5
1826  ac_status=$?
1827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828  (exit $ac_status); }
1829{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1830  (eval $ac_compiler -V </dev/null >&5) 2>&5
1831  ac_status=$?
1832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833  (exit $ac_status); }
1834
1835cat >conftest.$ac_ext <<_ACEOF
1836/* confdefs.h.  */
1837_ACEOF
1838cat confdefs.h >>conftest.$ac_ext
1839cat >>conftest.$ac_ext <<_ACEOF
1840/* end confdefs.h.  */
1841
1842int
1843main ()
1844{
1845
1846  ;
1847  return 0;
1848}
1849_ACEOF
1850ac_clean_files_save=$ac_clean_files
1851ac_clean_files="$ac_clean_files a.out a.exe b.out"
1852# Try to create an executable without -o first, disregard a.out.
1853# It will help us diagnose broken compilers, and finding out an intuition
1854# of exeext.
1855echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1856echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1857ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1858if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1859  (eval $ac_link_default) 2>&5
1860  ac_status=$?
1861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862  (exit $ac_status); }; then
1863  # Find the output, starting from the most likely.  This scheme is
1864# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1865# resort.
1866
1867# Be careful to initialize this variable, since it used to be cached.
1868# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1869ac_cv_exeext=
1870# b.out is created by i960 compilers.
1871for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1872do
1873  test -f "$ac_file" || continue
1874  case $ac_file in
1875    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1876        ;;
1877    conftest.$ac_ext )
1878        # This is the source file.
1879        ;;
1880    [ab].out )
1881        # We found the default executable, but exeext='' is most
1882        # certainly right.
1883        break;;
1884    *.* )
1885        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886        # FIXME: I believe we export ac_cv_exeext for Libtool,
1887        # but it would be cool to find out if it's true.  Does anybody
1888        # maintain Libtool? --akim.
1889        export ac_cv_exeext
1890        break;;
1891    * )
1892        break;;
1893  esac
1894done
1895else
1896  echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1900See \`config.log' for more details." >&5
1901echo "$as_me: error: C compiler cannot create executables
1902See \`config.log' for more details." >&2;}
1903   { (exit 77); exit 77; }; }
1904fi
1905
1906ac_exeext=$ac_cv_exeext
1907echo "$as_me:$LINENO: result: $ac_file" >&5
1908echo "${ECHO_T}$ac_file" >&6
1909
1910# Check the compiler produces executables we can run.  If not, either
1911# the compiler is broken, or we cross compile.
1912echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1913echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1914# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1915# If not cross compiling, check that we can run a simple program.
1916if test "$cross_compiling" != yes; then
1917  if { ac_try='./$ac_file'
1918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1919  (eval $ac_try) 2>&5
1920  ac_status=$?
1921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922  (exit $ac_status); }; }; then
1923    cross_compiling=no
1924  else
1925    if test "$cross_compiling" = maybe; then
1926        cross_compiling=yes
1927    else
1928        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1929If you meant to cross compile, use \`--host'.
1930See \`config.log' for more details." >&5
1931echo "$as_me: error: cannot run C compiled programs.
1932If you meant to cross compile, use \`--host'.
1933See \`config.log' for more details." >&2;}
1934   { (exit 1); exit 1; }; }
1935    fi
1936  fi
1937fi
1938echo "$as_me:$LINENO: result: yes" >&5
1939echo "${ECHO_T}yes" >&6
1940
1941rm -f a.out a.exe conftest$ac_cv_exeext b.out
1942ac_clean_files=$ac_clean_files_save
1943# Check the compiler produces executables we can run.  If not, either
1944# the compiler is broken, or we cross compile.
1945echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1946echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1947echo "$as_me:$LINENO: result: $cross_compiling" >&5
1948echo "${ECHO_T}$cross_compiling" >&6
1949
1950echo "$as_me:$LINENO: checking for suffix of executables" >&5
1951echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1953  (eval $ac_link) 2>&5
1954  ac_status=$?
1955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956  (exit $ac_status); }; then
1957  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1958# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1959# work properly (i.e., refer to `conftest.exe'), while it won't with
1960# `rm'.
1961for ac_file in conftest.exe conftest conftest.*; do
1962  test -f "$ac_file" || continue
1963  case $ac_file in
1964    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1965    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1966          export ac_cv_exeext
1967          break;;
1968    * ) break;;
1969  esac
1970done
1971else
1972  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1973See \`config.log' for more details." >&5
1974echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1975See \`config.log' for more details." >&2;}
1976   { (exit 1); exit 1; }; }
1977fi
1978
1979rm -f conftest$ac_cv_exeext
1980echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1981echo "${ECHO_T}$ac_cv_exeext" >&6
1982
1983rm -f conftest.$ac_ext
1984EXEEXT=$ac_cv_exeext
1985ac_exeext=$EXEEXT
1986echo "$as_me:$LINENO: checking for suffix of object files" >&5
1987echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1988if test "${ac_cv_objext+set}" = set; then
1989  echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991  cat >conftest.$ac_ext <<_ACEOF
1992/* confdefs.h.  */
1993_ACEOF
1994cat confdefs.h >>conftest.$ac_ext
1995cat >>conftest.$ac_ext <<_ACEOF
1996/* end confdefs.h.  */
1997
1998int
1999main ()
2000{
2001
2002  ;
2003  return 0;
2004}
2005_ACEOF
2006rm -f conftest.o conftest.obj
2007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008  (eval $ac_compile) 2>&5
2009  ac_status=$?
2010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011  (exit $ac_status); }; then
2012  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2013  case $ac_file in
2014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2015    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2016       break;;
2017  esac
2018done
2019else
2020  echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2024See \`config.log' for more details." >&5
2025echo "$as_me: error: cannot compute suffix of object files: cannot compile
2026See \`config.log' for more details." >&2;}
2027   { (exit 1); exit 1; }; }
2028fi
2029
2030rm -f conftest.$ac_cv_objext conftest.$ac_ext
2031fi
2032echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2033echo "${ECHO_T}$ac_cv_objext" >&6
2034OBJEXT=$ac_cv_objext
2035ac_objext=$OBJEXT
2036echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2037echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2038if test "${ac_cv_c_compiler_gnu+set}" = set; then
2039  echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041  cat >conftest.$ac_ext <<_ACEOF
2042/* confdefs.h.  */
2043_ACEOF
2044cat confdefs.h >>conftest.$ac_ext
2045cat >>conftest.$ac_ext <<_ACEOF
2046/* end confdefs.h.  */
2047
2048int
2049main ()
2050{
2051#ifndef __GNUC__
2052       choke me
2053#endif
2054
2055  ;
2056  return 0;
2057}
2058_ACEOF
2059rm -f conftest.$ac_objext
2060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061  (eval $ac_compile) 2>conftest.er1
2062  ac_status=$?
2063  grep -v '^ *+' conftest.er1 >conftest.err
2064  rm -f conftest.er1
2065  cat conftest.err >&5
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); } &&
2068         { ac_try='test -z "$ac_c_werror_flag"
2069                         || test ! -s conftest.err'
2070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071  (eval $ac_try) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; } &&
2075         { ac_try='test -s conftest.$ac_objext'
2076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077  (eval $ac_try) 2>&5
2078  ac_status=$?
2079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080  (exit $ac_status); }; }; then
2081  ac_compiler_gnu=yes
2082else
2083  echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086ac_compiler_gnu=no
2087fi
2088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2089ac_cv_c_compiler_gnu=$ac_compiler_gnu
2090
2091fi
2092echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2093echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2094GCC=`test $ac_compiler_gnu = yes && echo yes`
2095ac_test_CFLAGS=${CFLAGS+set}
2096ac_save_CFLAGS=$CFLAGS
2097CFLAGS="-g"
2098echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2099echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2100if test "${ac_cv_prog_cc_g+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103  cat >conftest.$ac_ext <<_ACEOF
2104/* confdefs.h.  */
2105_ACEOF
2106cat confdefs.h >>conftest.$ac_ext
2107cat >>conftest.$ac_ext <<_ACEOF
2108/* end confdefs.h.  */
2109
2110int
2111main ()
2112{
2113
2114  ;
2115  return 0;
2116}
2117_ACEOF
2118rm -f conftest.$ac_objext
2119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120  (eval $ac_compile) 2>conftest.er1
2121  ac_status=$?
2122  grep -v '^ *+' conftest.er1 >conftest.err
2123  rm -f conftest.er1
2124  cat conftest.err >&5
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); } &&
2127         { ac_try='test -z "$ac_c_werror_flag"
2128                         || test ! -s conftest.err'
2129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130  (eval $ac_try) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }; } &&
2134         { ac_try='test -s conftest.$ac_objext'
2135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136  (eval $ac_try) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }; }; then
2140  ac_cv_prog_cc_g=yes
2141else
2142  echo "$as_me: failed program was:" >&5
2143sed 's/^/| /' conftest.$ac_ext >&5
2144
2145ac_cv_prog_cc_g=no
2146fi
2147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2148fi
2149echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2150echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2151if test "$ac_test_CFLAGS" = set; then
2152  CFLAGS=$ac_save_CFLAGS
2153elif test $ac_cv_prog_cc_g = yes; then
2154  if test "$GCC" = yes; then
2155    CFLAGS="-g -O2"
2156  else
2157    CFLAGS="-g"
2158  fi
2159else
2160  if test "$GCC" = yes; then
2161    CFLAGS="-O2"
2162  else
2163    CFLAGS=
2164  fi
2165fi
2166echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2167echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2168if test "${ac_cv_prog_cc_stdc+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  ac_cv_prog_cc_stdc=no
2172ac_save_CC=$CC
2173cat >conftest.$ac_ext <<_ACEOF
2174/* confdefs.h.  */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h.  */
2179#include <stdarg.h>
2180#include <stdio.h>
2181#include <sys/types.h>
2182#include <sys/stat.h>
2183/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2184struct buf { int x; };
2185FILE * (*rcsopen) (struct buf *, struct stat *, int);
2186static char *e (p, i)
2187     char **p;
2188     int i;
2189{
2190  return p[i];
2191}
2192static char *f (char * (*g) (char **, int), char **p, ...)
2193{
2194  char *s;
2195  va_list v;
2196  va_start (v,p);
2197  s = g (p, va_arg (v,int));
2198  va_end (v);
2199  return s;
2200}
2201
2202/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2203   function prototypes and stuff, but not '\xHH' hex character constants.
2204   These don't provoke an error unfortunately, instead are silently treated
2205   as 'x'.  The following induces an error, until -std1 is added to get
2206   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2207   array size at least.  It's necessary to write '\x00'==0 to get something
2208   that's true only with -std1.  */
2209int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2210
2211int test (int i, double x);
2212struct s1 {int (*f) (int a);};
2213struct s2 {int (*f) (double a);};
2214int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2215int argc;
2216char **argv;
2217int
2218main ()
2219{
2220return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225# Don't try gcc -ansi; that turns off useful extensions and
2226# breaks some systems' header files.
2227# AIX                   -qlanglvl=ansi
2228# Ultrix and OSF/1      -std1
2229# HP-UX 10.20 and later -Ae
2230# HP-UX older versions  -Aa -D_HPUX_SOURCE
2231# SVR4                  -Xc -D__EXTENSIONS__
2232for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2233do
2234  CC="$ac_save_CC $ac_arg"
2235  rm -f conftest.$ac_objext
2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237  (eval $ac_compile) 2>conftest.er1
2238  ac_status=$?
2239  grep -v '^ *+' conftest.er1 >conftest.err
2240  rm -f conftest.er1
2241  cat conftest.err >&5
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); } &&
2244         { ac_try='test -z "$ac_c_werror_flag"
2245                         || test ! -s conftest.err'
2246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247  (eval $ac_try) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; } &&
2251         { ac_try='test -s conftest.$ac_objext'
2252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253  (eval $ac_try) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; }; then
2257  ac_cv_prog_cc_stdc=$ac_arg
2258break
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263fi
2264rm -f conftest.err conftest.$ac_objext
2265done
2266rm -f conftest.$ac_ext conftest.$ac_objext
2267CC=$ac_save_CC
2268
2269fi
2270
2271case "x$ac_cv_prog_cc_stdc" in
2272  x|xno)
2273    echo "$as_me:$LINENO: result: none needed" >&5
2274echo "${ECHO_T}none needed" >&6 ;;
2275  *)
2276    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2277echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2278    CC="$CC $ac_cv_prog_cc_stdc" ;;
2279esac
2280
2281# Some people use a C++ compiler to compile C.  Since we use `exit',
2282# in C++ we need to declare it.  In case someone uses the same compiler
2283# for both compiling C and C++ we need to have the C++ compiler decide
2284# the declaration of exit, since it's the most demanding environment.
2285cat >conftest.$ac_ext <<_ACEOF
2286#ifndef __cplusplus
2287  choke me
2288#endif
2289_ACEOF
2290rm -f conftest.$ac_objext
2291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292  (eval $ac_compile) 2>conftest.er1
2293  ac_status=$?
2294  grep -v '^ *+' conftest.er1 >conftest.err
2295  rm -f conftest.er1
2296  cat conftest.err >&5
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); } &&
2299         { ac_try='test -z "$ac_c_werror_flag"
2300                         || test ! -s conftest.err'
2301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302  (eval $ac_try) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }; } &&
2306         { ac_try='test -s conftest.$ac_objext'
2307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308  (eval $ac_try) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; }; then
2312  for ac_declaration in \
2313   '' \
2314   'extern "C" void std::exit (int) throw (); using std::exit;' \
2315   'extern "C" void std::exit (int); using std::exit;' \
2316   'extern "C" void exit (int) throw ();' \
2317   'extern "C" void exit (int);' \
2318   'void exit (int);'
2319do
2320  cat >conftest.$ac_ext <<_ACEOF
2321/* confdefs.h.  */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h.  */
2326$ac_declaration
2327#include <stdlib.h>
2328int
2329main ()
2330{
2331exit (42);
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336rm -f conftest.$ac_objext
2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338  (eval $ac_compile) 2>conftest.er1
2339  ac_status=$?
2340  grep -v '^ *+' conftest.er1 >conftest.err
2341  rm -f conftest.er1
2342  cat conftest.err >&5
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); } &&
2345         { ac_try='test -z "$ac_c_werror_flag"
2346                         || test ! -s conftest.err'
2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348  (eval $ac_try) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; } &&
2352         { ac_try='test -s conftest.$ac_objext'
2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354  (eval $ac_try) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; }; then
2358  :
2359else
2360  echo "$as_me: failed program was:" >&5
2361sed 's/^/| /' conftest.$ac_ext >&5
2362
2363continue
2364fi
2365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2366  cat >conftest.$ac_ext <<_ACEOF
2367/* confdefs.h.  */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h.  */
2372$ac_declaration
2373int
2374main ()
2375{
2376exit (42);
2377  ;
2378  return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383  (eval $ac_compile) 2>conftest.er1
2384  ac_status=$?
2385  grep -v '^ *+' conftest.er1 >conftest.err
2386  rm -f conftest.er1
2387  cat conftest.err >&5
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); } &&
2390         { ac_try='test -z "$ac_c_werror_flag"
2391                         || test ! -s conftest.err'
2392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393  (eval $ac_try) 2>&5
2394  ac_status=$?
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); }; } &&
2397         { ac_try='test -s conftest.$ac_objext'
2398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399  (eval $ac_try) 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; }; then
2403  break
2404else
2405  echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408fi
2409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410done
2411rm -f conftest*
2412if test -n "$ac_declaration"; then
2413  echo '#ifdef __cplusplus' >>confdefs.h
2414  echo $ac_declaration      >>confdefs.h
2415  echo '#endif'             >>confdefs.h
2416fi
2417
2418else
2419  echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422fi
2423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
2430CFLAGS="$save_cflags"
2431
2432echo "$as_me:$LINENO: checking for C compiler options" >&5
2433echo $ECHO_N "checking for C compiler options... $ECHO_C" >&6
2434if test "${coin_cv_cflags+set}" = set; then
2435  echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437  if test x"$CFLAGS" = x; then
2438
2439  coin_add_cflags=
2440  coin_opt_cflags=
2441  coin_dbg_cflags=
2442  coin_warn_cflags=
2443
2444  if test "$GCC" = "yes"; then
2445    case "$CC" in
2446      icc | */icc)
2447        ;;
2448      *)
2449        coin_opt_cflags="-O3 -fomit-frame-pointer"
2450        coin_add_cflags="-pipe"
2451        coin_dbg_cflags="-g"
2452        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2453
2454        case $build in
2455          *-cygwin*)
2456            CFLAGS="-mno-cygwin"
2457            cat >conftest.$ac_ext <<_ACEOF
2458/* confdefs.h.  */
2459_ACEOF
2460cat confdefs.h >>conftest.$ac_ext
2461cat >>conftest.$ac_ext <<_ACEOF
2462/* end confdefs.h.  */
2463
2464int
2465main ()
2466{
2467int i=0; i++;
2468  ;
2469  return 0;
2470}
2471_ACEOF
2472rm -f conftest.$ac_objext conftest$ac_exeext
2473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2474  (eval $ac_link) 2>conftest.er1
2475  ac_status=$?
2476  grep -v '^ *+' conftest.er1 >conftest.err
2477  rm -f conftest.er1
2478  cat conftest.err >&5
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); } &&
2481         { ac_try='test -z "$ac_c_werror_flag"
2482                         || test ! -s conftest.err'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; } &&
2488         { ac_try='test -s conftest$ac_exeext'
2489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490  (eval $ac_try) 2>&5
2491  ac_status=$?
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); }; }; then
2494  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2495else
2496  echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499fi
2500rm -f conftest.err conftest.$ac_objext \
2501      conftest$ac_exeext conftest.$ac_ext
2502            CFLAGS=
2503          ;;
2504        esac
2505        ;;
2506    esac
2507  fi
2508  if test -z "$coin_opt_cflags"; then
2509    case $build in
2510      *-cygwin* | *-mingw*)
2511        case "$CC" in
2512          cl | */cl)
2513            coin_opt_cflags='-O2'
2514            coin_add_cflags='-nologo'
2515            coin_dbg_cflags='-Yd'
2516            ;;
2517        esac
2518        ;;
2519      *-linux-*)
2520        case "$CC" in
2521          icc | */icc)
2522            coin_opt_cflags="-O3 -ip"
2523            coin_add_cflags=""
2524            coin_dbg_cflags="-g"
2525            # Check if -i_dynamic is necessary (for new glibc library)
2526            CFLAGS=
2527            cat >conftest.$ac_ext <<_ACEOF
2528/* confdefs.h.  */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h.  */
2533
2534int
2535main ()
2536{
2537int i=0; i++;
2538  ;
2539  return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext conftest$ac_exeext
2543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2544  (eval $ac_link) 2>conftest.er1
2545  ac_status=$?
2546  grep -v '^ *+' conftest.er1 >conftest.err
2547  rm -f conftest.er1
2548  cat conftest.err >&5
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); } &&
2551         { ac_try='test -z "$ac_c_werror_flag"
2552                         || test ! -s conftest.err'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; } &&
2558         { ac_try='test -s conftest$ac_exeext'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; }; then
2564  :
2565else
2566  echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569coin_add_cflags="-i_dynamic $coin_add_cflags"
2570fi
2571rm -f conftest.err conftest.$ac_objext \
2572      conftest$ac_exeext conftest.$ac_ext
2573            ;;
2574          pgcc | */pgcc)
2575            coin_opt_cflags="-fast"
2576            coin_add_cflags="-Kieee -pc 64"
2577            coin_dbg_cflags="-g"
2578            ;;
2579        esac
2580        ;;
2581      *-ibm-*)
2582        case "$CC" in
2583          xlc* | */xlc* | mpxlc* | */mpxlc*)
2584            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
2585            coin_add_cflags="-bmaxdata:0x80000000"
2586            coin_dbg_cflags="-g"
2587          ;;
2588        esac
2589        ;;
2590      *-hp-*)
2591        coin_opt_cflags="-O"
2592        coin_add_cflags="-Ae"
2593        coin_dbg_cflags="-g"
2594        ;;
2595      *-sun-*)
2596        coin_opt_cflags="-xO4"
2597        coin_dbg_cflags="-g"
2598        ;;
2599      *-sgi-*)
2600        coin_opt_cflags="-O -OPT:Olimit=0"
2601        coin_dbg_cflags="-g"
2602        ;;
2603    esac
2604  fi
2605
2606  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2607    coin_dbg_cflags="-g"
2608  fi
2609
2610  if test "$coin_debug_compile" = "true"; then
2611    CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2612  else
2613    if test -z "$coin_opt_cflags"; then
2614      # Try if -O option works if nothing else is set
2615      CFLAGS="-O"
2616      cat >conftest.$ac_ext <<_ACEOF
2617/* confdefs.h.  */
2618_ACEOF
2619cat confdefs.h >>conftest.$ac_ext
2620cat >>conftest.$ac_ext <<_ACEOF
2621/* end confdefs.h.  */
2622
2623int
2624main ()
2625{
2626int i=0; i++;
2627  ;
2628  return 0;
2629}
2630_ACEOF
2631rm -f conftest.$ac_objext conftest$ac_exeext
2632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2633  (eval $ac_link) 2>conftest.er1
2634  ac_status=$?
2635  grep -v '^ *+' conftest.er1 >conftest.err
2636  rm -f conftest.er1
2637  cat conftest.err >&5
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); } &&
2640         { ac_try='test -z "$ac_c_werror_flag"
2641                         || test ! -s conftest.err'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; } &&
2647         { ac_try='test -s conftest$ac_exeext'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; }; then
2653  coin_opt_cflags="-O"
2654else
2655  echo "$as_me: failed program was:" >&5
2656sed 's/^/| /' conftest.$ac_ext >&5
2657
2658fi
2659rm -f conftest.err conftest.$ac_objext \
2660      conftest$ac_exeext conftest.$ac_ext
2661    fi
2662    CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $CDEFS $coin_warn_cflags"
2663  fi
2664fi
2665
2666# Try if CFLAGS works
2667cat >conftest.$ac_ext <<_ACEOF
2668/* confdefs.h.  */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
2672/* end confdefs.h.  */
2673
2674int
2675main ()
2676{
2677int i=0; i++;
2678  ;
2679  return 0;
2680}
2681_ACEOF
2682rm -f conftest.$ac_objext conftest$ac_exeext
2683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2684  (eval $ac_link) 2>conftest.er1
2685  ac_status=$?
2686  grep -v '^ *+' conftest.er1 >conftest.err
2687  rm -f conftest.er1
2688  cat conftest.err >&5
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); } &&
2691         { ac_try='test -z "$ac_c_werror_flag"
2692                         || test ! -s conftest.err'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; } &&
2698         { ac_try='test -s conftest$ac_exeext'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; }; then
2704  :
2705else
2706  echo "$as_me: failed program was:" >&5
2707sed 's/^/| /' conftest.$ac_ext >&5
2708
2709CFLAGS=
2710fi
2711rm -f conftest.err conftest.$ac_objext \
2712      conftest$ac_exeext conftest.$ac_ext
2713if test -z "$CFLAGS"; then
2714  { 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
2715echo "$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;}
2716  CFLAGS='-O'
2717  cat >conftest.$ac_ext <<_ACEOF
2718/* confdefs.h.  */
2719_ACEOF
2720cat confdefs.h >>conftest.$ac_ext
2721cat >>conftest.$ac_ext <<_ACEOF
2722/* end confdefs.h.  */
2723
2724int
2725main ()
2726{
2727int i=0; i++;
2728  ;
2729  return 0;
2730}
2731_ACEOF
2732rm -f conftest.$ac_objext conftest$ac_exeext
2733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2734  (eval $ac_link) 2>conftest.er1
2735  ac_status=$?
2736  grep -v '^ *+' conftest.er1 >conftest.err
2737  rm -f conftest.er1
2738  cat conftest.err >&5
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); } &&
2741         { ac_try='test -z "$ac_c_werror_flag"
2742                         || test ! -s conftest.err'
2743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744  (eval $ac_try) 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }; } &&
2748         { ac_try='test -s conftest$ac_exeext'
2749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750  (eval $ac_try) 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; }; then
2754  :
2755else
2756  echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759CFLAGS=
2760fi
2761rm -f conftest.err conftest.$ac_objext \
2762      conftest$ac_exeext conftest.$ac_ext
2763  if test -z "$CFLAGS"; then
2764    { 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
2765echo "$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;}
2766  fi
2767fi
2768coin_cv_cflags="$CFLAGS"
2769
2770fi
2771echo "$as_me:$LINENO: result: $coin_cv_cflags" >&5
2772echo "${ECHO_T}$coin_cv_cflags" >&6 # AC_CACHE_CHECK([for C compiler options CXXFLAGS]
2773CFLAGS="$coin_cv_cflags"
2774
2775ac_ext=c
2776ac_cpp='$CPP $CPPFLAGS'
2777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780
2781
2782
2783 #Let's try if that overcomes configuration problem with VC++ 6.0
2784ac_ext=cc
2785ac_cpp='$CXXCPP $CPPFLAGS'
2786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2789
2790
2791
2792
2793coin_has_cxx=yes
2794
2795save_cxxflags="$CXXFLAGS"
2796case $build in
2797  *-cygwin* | *-mingw*)
2798             comps="g++ cl" ;;
2799  *-darwin*) comps="g++ c++ CC" ;;
2800          *) comps="xlC aCC CC g++ c++ pgCC icpc" ;;
2801esac
2802ac_ext=cc
2803ac_cpp='$CXXCPP $CPPFLAGS'
2804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2807if test -n "$ac_tool_prefix"; then
2808  for ac_prog in $CCC $comps
2809  do
2810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814if test "${ac_cv_prog_CXX+set}" = set; then
2815  echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817  if test -n "$CXX"; then
2818  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825  for ac_exec_ext in '' $ac_executable_extensions; do
2826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832done
2833
2834fi
2835fi
2836CXX=$ac_cv_prog_CXX
2837if test -n "$CXX"; then
2838  echo "$as_me:$LINENO: result: $CXX" >&5
2839echo "${ECHO_T}$CXX" >&6
2840else
2841  echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6
2843fi
2844
2845    test -n "$CXX" && break
2846  done
2847fi
2848if test -z "$CXX"; then
2849  ac_ct_CXX=$CXX
2850  for ac_prog in $CCC $comps
2851do
2852  # Extract the first word of "$ac_prog", so it can be a program name with args.
2853set dummy $ac_prog; ac_word=$2
2854echo "$as_me:$LINENO: checking for $ac_word" >&5
2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2857  echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859  if test -n "$ac_ct_CXX"; then
2860  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2861else
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865  IFS=$as_save_IFS
2866  test -z "$as_dir" && as_dir=.
2867  for ac_exec_ext in '' $ac_executable_extensions; do
2868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869    ac_cv_prog_ac_ct_CXX="$ac_prog"
2870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871    break 2
2872  fi
2873done
2874done
2875
2876fi
2877fi
2878ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2879if test -n "$ac_ct_CXX"; then
2880  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2881echo "${ECHO_T}$ac_ct_CXX" >&6
2882else
2883  echo "$as_me:$LINENO: result: no" >&5
2884echo "${ECHO_T}no" >&6
2885fi
2886
2887  test -n "$ac_ct_CXX" && break
2888done
2889test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2890
2891  CXX=$ac_ct_CXX
2892fi
2893
2894
2895# Provide some information about the compiler.
2896echo "$as_me:$LINENO:" \
2897     "checking for C++ compiler version" >&5
2898ac_compiler=`set X $ac_compile; echo $2`
2899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2900  (eval $ac_compiler --version </dev/null >&5) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }
2904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2905  (eval $ac_compiler -v </dev/null >&5) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }
2909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2910  (eval $ac_compiler -V </dev/null >&5) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }
2914
2915echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2917if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918  echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920  cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h.  */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h.  */
2926
2927int
2928main ()
2929{
2930#ifndef __GNUC__
2931       choke me
2932#endif
2933
2934  ;
2935  return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940  (eval $ac_compile) 2>conftest.er1
2941  ac_status=$?
2942  grep -v '^ *+' conftest.er1 >conftest.err
2943  rm -f conftest.er1
2944  cat conftest.err >&5
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); } &&
2947         { ac_try='test -z "$ac_cxx_werror_flag"
2948                         || test ! -s conftest.err'
2949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950  (eval $ac_try) 2>&5
2951  ac_status=$?
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); }; } &&
2954         { ac_try='test -s conftest.$ac_objext'
2955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956  (eval $ac_try) 2>&5
2957  ac_status=$?
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); }; }; then
2960  ac_compiler_gnu=yes
2961else
2962  echo "$as_me: failed program was:" >&5
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
2965ac_compiler_gnu=no
2966fi
2967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2969
2970fi
2971echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2972echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2973GXX=`test $ac_compiler_gnu = yes && echo yes`
2974ac_test_CXXFLAGS=${CXXFLAGS+set}
2975ac_save_CXXFLAGS=$CXXFLAGS
2976CXXFLAGS="-g"
2977echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2978echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2979if test "${ac_cv_prog_cxx_g+set}" = set; then
2980  echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982  cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h.  */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h.  */
2988
2989int
2990main ()
2991{
2992
2993  ;
2994  return 0;
2995}
2996_ACEOF
2997rm -f conftest.$ac_objext
2998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999  (eval $ac_compile) 2>conftest.er1
3000  ac_status=$?
3001  grep -v '^ *+' conftest.er1 >conftest.err
3002  rm -f conftest.er1
3003  cat conftest.err >&5
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); } &&
3006         { ac_try='test -z "$ac_cxx_werror_flag"
3007                         || test ! -s conftest.err'
3008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009  (eval $ac_try) 2>&5
3010  ac_status=$?
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); }; } &&
3013         { ac_try='test -s conftest.$ac_objext'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; }; then
3019  ac_cv_prog_cxx_g=yes
3020else
3021  echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024ac_cv_prog_cxx_g=no
3025fi
3026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027fi
3028echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3029echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3030if test "$ac_test_CXXFLAGS" = set; then
3031  CXXFLAGS=$ac_save_CXXFLAGS
3032elif test $ac_cv_prog_cxx_g = yes; then
3033  if test "$GXX" = yes; then
3034    CXXFLAGS="-g -O2"
3035  else
3036    CXXFLAGS="-g"
3037  fi
3038else
3039  if test "$GXX" = yes; then
3040    CXXFLAGS="-O2"
3041  else
3042    CXXFLAGS=
3043  fi
3044fi
3045for ac_declaration in \
3046   '' \
3047   'extern "C" void std::exit (int) throw (); using std::exit;' \
3048   'extern "C" void std::exit (int); using std::exit;' \
3049   'extern "C" void exit (int) throw ();' \
3050   'extern "C" void exit (int);' \
3051   'void exit (int);'
3052do
3053  cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059$ac_declaration
3060#include <stdlib.h>
3061int
3062main ()
3063{
3064exit (42);
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext
3070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071  (eval $ac_compile) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_cxx_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest.$ac_objext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096continue
3097fi
3098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099  cat >conftest.$ac_ext <<_ACEOF
3100/* confdefs.h.  */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h.  */
3105$ac_declaration
3106int
3107main ()
3108{
3109exit (42);
3110  ;
3111  return 0;
3112}
3113_ACEOF
3114rm -f conftest.$ac_objext
3115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116  (eval $ac_compile) 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } &&
3123         { ac_try='test -z "$ac_cxx_werror_flag"
3124                         || test ! -s conftest.err'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; } &&
3130         { ac_try='test -s conftest.$ac_objext'
3131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132  (eval $ac_try) 2>&5
3133  ac_status=$?
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); }; }; then
3136  break
3137else
3138  echo "$as_me: failed program was:" >&5
3139sed 's/^/| /' conftest.$ac_ext >&5
3140
3141fi
3142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3143done
3144rm -f conftest*
3145if test -n "$ac_declaration"; then
3146  echo '#ifdef __cplusplus' >>confdefs.h
3147  echo $ac_declaration      >>confdefs.h
3148  echo '#endif'             >>confdefs.h
3149fi
3150
3151ac_ext=cc
3152ac_cpp='$CXXCPP $CPPFLAGS'
3153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3156
3157CXXFLAGS="$save_cxxflags"
3158
3159echo "$as_me:$LINENO: checking for C++ compiler options" >&5
3160echo $ECHO_N "checking for C++ compiler options... $ECHO_C" >&6
3161if test "${coin_cv_cxxflags+set}" = set; then
3162  echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164  if test x"$CXXFLAGS" = x; then
3165
3166# ToDo decide whether we want -DNDEBUG for optimization
3167  coin_add_cxxflags=
3168  coin_opt_cxxflags=
3169  coin_dbg_cxxflags=
3170  coin_warn_cxxflags=
3171
3172  if test "$GXX" = "yes"; then
3173    case "$CXX" in
3174      icpc | */icpc)
3175        ;;
3176      *)
3177# ToDo decide about unroll-loops
3178        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3179        coin_add_cxxflags="-pipe"
3180        coin_dbg_cxxflags="-g"
3181        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3182
3183        case $build in
3184          *-cygwin*)
3185            CXXFLAGS="-mno-cygwin"
3186            cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h.  */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h.  */
3192
3193int
3194main ()
3195{
3196int i=0; i++;
3197  ;
3198  return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext conftest$ac_exeext
3202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3203  (eval $ac_link) 2>conftest.er1
3204  ac_status=$?
3205  grep -v '^ *+' conftest.er1 >conftest.err
3206  rm -f conftest.er1
3207  cat conftest.err >&5
3208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); } &&
3210         { ac_try='test -z "$ac_cxx_werror_flag"
3211                         || test ! -s conftest.err'
3212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213  (eval $ac_try) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }; } &&
3217         { ac_try='test -s conftest$ac_exeext'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; }; then
3223  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3224else
3225  echo "$as_me: failed program was:" >&5
3226sed 's/^/| /' conftest.$ac_ext >&5
3227
3228fi
3229rm -f conftest.err conftest.$ac_objext \
3230      conftest$ac_exeext conftest.$ac_ext
3231            CXXFLAGS=
3232            ;;
3233        esac
3234        ;;
3235    esac
3236  fi
3237  if test -z "$coin_opt_cxxflags"; then
3238    case $build in
3239      *-cygwin* | *-mingw*)
3240        case "$CXX" in
3241          cl | */cl)
3242            coin_opt_cxxflags='-O2'
3243            coin_add_cxxflags='-nologo -EHsc -GR -MT'
3244            coin_dbg_cxxflags='-Yd'
3245            ;;
3246        esac
3247        ;;
3248      *-linux-*)
3249        case "$CXX" in
3250          icpc | */icpc)
3251            coin_opt_cxxflags="-O3 -ip"
3252            coin_add_cxxflags=""
3253            coin_dbg_cxxflags="-g"
3254            # Check if -i_dynamic is necessary (for new glibc library)
3255            CXXFLAGS=
3256            cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h.  */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h.  */
3262
3263int
3264main ()
3265{
3266int i=0; i++;
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271rm -f conftest.$ac_objext conftest$ac_exeext
3272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3273  (eval $ac_link) 2>conftest.er1
3274  ac_status=$?
3275  grep -v '^ *+' conftest.er1 >conftest.err
3276  rm -f conftest.er1
3277  cat conftest.err >&5
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); } &&
3280         { ac_try='test -z "$ac_cxx_werror_flag"
3281                         || test ! -s conftest.err'
3282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283  (eval $ac_try) 2>&5
3284  ac_status=$?
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); }; } &&
3287         { ac_try='test -s conftest$ac_exeext'
3288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289  (eval $ac_try) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }; }; then
3293  :
3294else
3295  echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3299fi
3300rm -f conftest.err conftest.$ac_objext \
3301      conftest$ac_exeext conftest.$ac_ext
3302            ;;
3303          pgCC | */pgCC)
3304            coin_opt_cxxflags="-fast"
3305            coin_add_cxxflags="-Kieee -pc 64"
3306            coin_dbg_cxxflags="-g"
3307            ;;
3308        esac
3309        ;;
3310      *-ibm-*)
3311        case "$CXX" in
3312          xlC* | */xlC* | mpxlC* | */mpxlC*)
3313            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
3314            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3315            coin_dbg_cxxflags="-g"
3316            ;;
3317        esac
3318        ;;
3319      *-hp-*)
3320        case "$CXX" in
3321          aCC | */aCC )
3322            coin_opt_cxxflags="-O"
3323            coin_add_cxxflags="-AA"
3324            coin_dbg_cxxflags="-g"
3325            ;;
3326        esac
3327        ;;
3328      *-sun-*)
3329          coin_opt_cxxflags="-O4"
3330          coin_dbg_cxxflags="-g"
3331        ;;
3332    esac
3333  fi
3334
3335  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3336    coin_dbg_cxxflags="-g"
3337  fi
3338
3339  if test "$coin_debug_compile" = "true"; then
3340    CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3341  else
3342    if test -z "$coin_opt_cxxflags"; then
3343      # Try if -O option works if nothing else is set
3344      CXXFLAGS="-O"
3345      cat >conftest.$ac_ext <<_ACEOF
3346/* confdefs.h.  */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h.  */
3351
3352int
3353main ()
3354{
3355int i=0; i++;
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360rm -f conftest.$ac_objext conftest$ac_exeext
3361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3362  (eval $ac_link) 2>conftest.er1
3363  ac_status=$?
3364  grep -v '^ *+' conftest.er1 >conftest.err
3365  rm -f conftest.er1
3366  cat conftest.err >&5
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); } &&
3369         { ac_try='test -z "$ac_cxx_werror_flag"
3370                         || test ! -s conftest.err'
3371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372  (eval $ac_try) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }; } &&
3376         { ac_try='test -s conftest$ac_exeext'
3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378  (eval $ac_try) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; }; then
3382  coin_opt_cxxflags="-O"
3383else
3384  echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387fi
3388rm -f conftest.err conftest.$ac_objext \
3389      conftest$ac_exeext conftest.$ac_ext
3390    fi
3391    CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $CXXDEFS $coin_warn_cxxflags"
3392  fi
3393fi
3394
3395# Try if CXXFLAGS works
3396cat >conftest.$ac_ext <<_ACEOF
3397/* confdefs.h.  */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h.  */
3402
3403int
3404main ()
3405{
3406int i=0; i++;
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411rm -f conftest.$ac_objext conftest$ac_exeext
3412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3413  (eval $ac_link) 2>conftest.er1
3414  ac_status=$?
3415  grep -v '^ *+' conftest.er1 >conftest.err
3416  rm -f conftest.er1
3417  cat conftest.err >&5
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); } &&
3420         { ac_try='test -z "$ac_cxx_werror_flag"
3421                         || test ! -s conftest.err'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; } &&
3427         { ac_try='test -s conftest$ac_exeext'
3428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429  (eval $ac_try) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; }; then
3433  :
3434else
3435  echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438CXXFLAGS=
3439fi
3440rm -f conftest.err conftest.$ac_objext \
3441      conftest$ac_exeext conftest.$ac_ext
3442if test -z "$CXXFLAGS"; then
3443  { 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
3444echo "$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;}
3445  CXXFLAGS='-O'
3446  cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h.  */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h.  */
3452
3453int
3454main ()
3455{
3456int i=0; i++;
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext conftest$ac_exeext
3462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3463  (eval $ac_link) 2>conftest.er1
3464  ac_status=$?
3465  grep -v '^ *+' conftest.er1 >conftest.err
3466  rm -f conftest.er1
3467  cat conftest.err >&5
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); } &&
3470         { ac_try='test -z "$ac_cxx_werror_flag"
3471                         || test ! -s conftest.err'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; } &&
3477         { ac_try='test -s conftest$ac_exeext'
3478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479  (eval $ac_try) 2>&5
3480  ac_status=$?
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); }; }; then
3483  :
3484else
3485  echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488CXXFLAGS=
3489fi
3490rm -f conftest.err conftest.$ac_objext \
3491      conftest$ac_exeext conftest.$ac_ext
3492  if test -z "$CXXFLAGS"; then
3493    { 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
3494echo "$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;}
3495  fi
3496fi
3497coin_cv_cxxflags="$CXXFLAGS"
3498
3499fi
3500echo "$as_me:$LINENO: result: $coin_cv_cxxflags" >&5
3501echo "${ECHO_T}$coin_cv_cxxflags" >&6 # AC_CACHE_CHECK([for C++ compiler options CXXFLAGS]
3502CXXFLAGS="$coin_cv_cxxflags"
3503
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510
3511
3512# Initialize automake and libtool
3513
3514# On Cygwin, building DLLs doesn't work
3515case $build in
3516  *-cygwin*)
3517    coin_disable_shared=yes
3518    platform=Cygwin
3519  ;;
3520  *-mingw*)
3521    case $CXX in
3522      cl)
3523        coin_disable_shared=yes
3524        platform="Msys with cl"
3525    ;;
3526    esac
3527  ;;
3528esac
3529if test x"$coin_disable_shared" = xyes; then
3530  if test x"$enable_shared" = xyes; then
3531    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3532echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3533  fi
3534#  enable_shared=no
3535fi
3536# By default, we only want the shared objects to be compiled
3537# Check whether --enable-static or --disable-static was given.
3538if test "${enable_static+set}" = set; then
3539  enableval="$enable_static"
3540  p=${PACKAGE-default}
3541    case $enableval in
3542    yes) enable_static=yes ;;
3543    no) enable_static=no ;;
3544    *)
3545     enable_static=no
3546      # Look at the argument we got.  We use all the common list separators.
3547      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3548      for pkg in $enableval; do
3549        IFS="$lt_save_ifs"
3550        if test "X$pkg" = "X$p"; then
3551          enable_static=yes
3552        fi
3553      done
3554      IFS="$lt_save_ifs"
3555      ;;
3556    esac
3557else
3558  enable_static=no
3559fi;
3560
3561
3562
3563echo "$as_me:$LINENO: checking for egrep" >&5
3564echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3565if test "${ac_cv_prog_egrep+set}" = set; then
3566  echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3569    then ac_cv_prog_egrep='grep -E'
3570    else ac_cv_prog_egrep='egrep'
3571    fi
3572fi
3573echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3574echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3575 EGREP=$ac_cv_prog_egrep
3576
3577
3578am__api_version="1.9"
3579# Find a good install program.  We prefer a C program (faster),
3580# so one script is as good as another.  But avoid the broken or
3581# incompatible versions:
3582# SysV /etc/install, /usr/sbin/install
3583# SunOS /usr/etc/install
3584# IRIX /sbin/install
3585# AIX /bin/install
3586# AmigaOS /C/install, which installs bootblocks on floppy discs
3587# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3588# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3589# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3590# OS/2's system install, which has a completely different semantic
3591# ./install, which can be erroneously created by make from ./install.sh.
3592echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3593echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3594if test -z "$INSTALL"; then
3595if test "${ac_cv_path_install+set}" = set; then
3596  echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601  IFS=$as_save_IFS
3602  test -z "$as_dir" && as_dir=.
3603  # Account for people who put trailing slashes in PATH elements.
3604case $as_dir/ in
3605  ./ | .// | /cC/* | \
3606  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3607  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3608  /usr/ucb/* ) ;;
3609  *)
3610    # OSF1 and SCO ODT 3.0 have their own names for install.
3611    # Don't use installbsd from OSF since it installs stuff as root
3612    # by default.
3613    for ac_prog in ginstall scoinst install; do
3614      for ac_exec_ext in '' $ac_executable_extensions; do
3615        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3616          if test $ac_prog = install &&
3617            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3618            # AIX install.  It has an incompatible calling convention.
3619            :
3620          elif test $ac_prog = install &&
3621            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3622            # program-specific install script used by HP pwplus--don't use.
3623            :
3624          else
3625            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626            break 3
3627          fi
3628        fi
3629      done
3630    done
3631    ;;
3632esac
3633done
3634
3635
3636fi
3637  if test "${ac_cv_path_install+set}" = set; then
3638    INSTALL=$ac_cv_path_install
3639  else
3640    # As a last resort, use the slow shell script.  We don't cache a
3641    # path for INSTALL within a source directory, because that will
3642    # break other packages using the cache if that directory is
3643    # removed, or if the path is relative.
3644    INSTALL=$ac_install_sh
3645  fi
3646fi
3647echo "$as_me:$LINENO: result: $INSTALL" >&5
3648echo "${ECHO_T}$INSTALL" >&6
3649
3650# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3651# It thinks the first close brace ends the variable substitution.
3652test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3653
3654test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3655
3656test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3657
3658echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3659echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3660# Just in case
3661sleep 1
3662echo timestamp > conftest.file
3663# Do `set' in a subshell so we don't clobber the current shell's
3664# arguments.  Must try -L first in case configure is actually a
3665# symlink; some systems play weird games with the mod time of symlinks
3666# (eg FreeBSD returns the mod time of the symlink's containing
3667# directory).
3668if (
3669   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3670   if test "$*" = "X"; then
3671      # -L didn't work.
3672      set X `ls -t $srcdir/configure conftest.file`
3673   fi
3674   rm -f conftest.file
3675   if test "$*" != "X $srcdir/configure conftest.file" \
3676      && test "$*" != "X conftest.file $srcdir/configure"; then
3677
3678      # If neither matched, then we have a broken ls.  This can happen
3679      # if, for instance, CONFIG_SHELL is bash and it inherits a
3680      # broken ls alias from the environment.  This has actually
3681      # happened.  Such a system could not be considered "sane".
3682      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3683alias in your environment" >&5
3684echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3685alias in your environment" >&2;}
3686   { (exit 1); exit 1; }; }
3687   fi
3688
3689   test "$2" = conftest.file
3690   )
3691then
3692   # Ok.
3693   :
3694else
3695   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3696Check your system clock" >&5
3697echo "$as_me: error: newly created file is older than distributed files!
3698Check your system clock" >&2;}
3699   { (exit 1); exit 1; }; }
3700fi
3701echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
3703test "$program_prefix" != NONE &&
3704  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3705# Use a double $ so make ignores it.
3706test "$program_suffix" != NONE &&
3707  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3708# Double any \ or $.  echo might interpret backslashes.
3709# By default was `s,x,x', remove it if useless.
3710cat <<\_ACEOF >conftest.sed
3711s/[\\$]/&&/g;s/;s,x,x,$//
3712_ACEOF
3713program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3714rm conftest.sed
3715
3716# expand $ac_aux_dir to an absolute path
3717am_aux_dir=`cd $ac_aux_dir && pwd`
3718
3719test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3720# Use eval to expand $SHELL
3721if eval "$MISSING --run true"; then
3722  am_missing_run="$MISSING --run "
3723else
3724  am_missing_run=
3725  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3726echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3727fi
3728
3729if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3730  # We used to keeping the `.' as first argument, in order to
3731  # allow $(mkdir_p) to be used without argument.  As in
3732  #   $(mkdir_p) $(somedir)
3733  # where $(somedir) is conditionally defined.  However this is wrong
3734  # for two reasons:
3735  #  1. if the package is installed by a user who cannot write `.'
3736  #     make install will fail,
3737  #  2. the above comment should most certainly read
3738  #     $(mkdir_p) $(DESTDIR)$(somedir)
3739  #     so it does not work when $(somedir) is undefined and
3740  #     $(DESTDIR) is not.
3741  #  To support the latter case, we have to write
3742  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3743  #  so the `.' trick is pointless.
3744  mkdir_p='mkdir -p --'
3745else
3746  # On NextStep and OpenStep, the `mkdir' command does not
3747  # recognize any option.  It will interpret all options as
3748  # directories to create, and then abort because `.' already
3749  # exists.
3750  for d in ./-p ./--version;
3751  do
3752    test -d $d && rmdir $d
3753  done
3754  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3755  if test -f "$ac_aux_dir/mkinstalldirs"; then
3756    mkdir_p='$(mkinstalldirs)'
3757  else
3758    mkdir_p='$(install_sh) -d'
3759  fi
3760fi
3761
3762for ac_prog in gawk mawk nawk awk
3763do
3764  # Extract the first word of "$ac_prog", so it can be a program name with args.
3765set dummy $ac_prog; ac_word=$2
3766echo "$as_me:$LINENO: checking for $ac_word" >&5
3767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768if test "${ac_cv_prog_AWK+set}" = set; then
3769  echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771  if test -n "$AWK"; then
3772  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3773else
3774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH
3776do
3777  IFS=$as_save_IFS
3778  test -z "$as_dir" && as_dir=.
3779  for ac_exec_ext in '' $ac_executable_extensions; do
3780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781    ac_cv_prog_AWK="$ac_prog"
3782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783    break 2
3784  fi
3785done
3786done
3787
3788fi
3789fi
3790AWK=$ac_cv_prog_AWK
3791if test -n "$AWK"; then
3792  echo "$as_me:$LINENO: result: $AWK" >&5
3793echo "${ECHO_T}$AWK" >&6
3794else
3795  echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797fi
3798
3799  test -n "$AWK" && break
3800done
3801
3802echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3803echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3804set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3805if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3806  echo $ECHO_N "(cached) $ECHO_C" >&6
3807else
3808  cat >conftest.make <<\_ACEOF
3809all:
3810        @echo 'ac_maketemp="$(MAKE)"'
3811_ACEOF
3812# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3813eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3814if test -n "$ac_maketemp"; then
3815  eval ac_cv_prog_make_${ac_make}_set=yes
3816else
3817  eval ac_cv_prog_make_${ac_make}_set=no
3818fi
3819rm -f conftest.make
3820fi
3821if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3822  echo "$as_me:$LINENO: result: yes" >&5
3823echo "${ECHO_T}yes" >&6
3824  SET_MAKE=
3825else
3826  echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6
3828  SET_MAKE="MAKE=${MAKE-make}"
3829fi
3830
3831rm -rf .tst 2>/dev/null
3832mkdir .tst 2>/dev/null
3833if test -d .tst; then
3834  am__leading_dot=.
3835else
3836  am__leading_dot=_
3837fi
3838rmdir .tst 2>/dev/null
3839
3840DEPDIR="${am__leading_dot}deps"
3841
3842          ac_config_commands="$ac_config_commands depfiles"
3843
3844
3845am_make=${MAKE-make}
3846cat > confinc << 'END'
3847am__doit:
3848        @echo done
3849.PHONY: am__doit
3850END
3851# If we don't find an include directive, just comment out the code.
3852echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3853echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3854am__include="#"
3855am__quote=
3856_am_result=none
3857# First try GNU make style include.
3858echo "include confinc" > confmf
3859# We grep out `Entering directory' and `Leaving directory'
3860# messages which can occur if `w' ends up in MAKEFLAGS.
3861# In particular we don't look at `^make:' because GNU make might
3862# be invoked under some other name (usually "gmake"), in which
3863# case it prints its new name instead of `make'.
3864if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3865   am__include=include
3866   am__quote=
3867   _am_result=GNU
3868fi
3869# Now try BSD make style include.
3870if test "$am__include" = "#"; then
3871   echo '.include "confinc"' > confmf
3872   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3873      am__include=.include
3874      am__quote="\""
3875      _am_result=BSD
3876   fi
3877fi
3878
3879
3880echo "$as_me:$LINENO: result: $_am_result" >&5
3881echo "${ECHO_T}$_am_result" >&6
3882rm -f confinc confmf
3883
3884# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3885if test "${enable_dependency_tracking+set}" = set; then
3886  enableval="$enable_dependency_tracking"
3887
3888fi;
3889if test "x$enable_dependency_tracking" != xno; then
3890  am_depcomp="$ac_aux_dir/depcomp"
3891  AMDEPBACKSLASH='\'
3892fi
3893
3894
3895if test "x$enable_dependency_tracking" != xno; then
3896  AMDEP_TRUE=
3897  AMDEP_FALSE='#'
3898else
3899  AMDEP_TRUE='#'
3900  AMDEP_FALSE=
3901fi
3902
3903
3904
3905ac_ext=c
3906ac_cpp='$CPP $CPPFLAGS'
3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911if test x"" = x; then
3912  hdr="#include <dlfcn.h>"
3913else
3914  hdr=""
3915fi
3916
3917for ac_header in dlfcn.h
3918do
3919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3920echo "$as_me:$LINENO: checking for $ac_header" >&5
3921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3922if eval "test \"\${$as_ac_Header+set}\" = set"; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925  cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h.  */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h.  */
3931$hdr
3932
3933#include <$ac_header>
3934_ACEOF
3935rm -f conftest.$ac_objext
3936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937  (eval $ac_compile) 2>conftest.er1
3938  ac_status=$?
3939  grep -v '^ *+' conftest.er1 >conftest.err
3940  rm -f conftest.er1
3941  cat conftest.err >&5
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); } &&
3944         { ac_try='test -z "$ac_c_werror_flag"
3945                         || test ! -s conftest.err'
3946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947  (eval $ac_try) 2>&5
3948  ac_status=$?
3949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950  (exit $ac_status); }; } &&
3951         { ac_try='test -s conftest.$ac_objext'
3952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953  (eval $ac_try) 2>&5
3954  ac_status=$?
3955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956  (exit $ac_status); }; }; then
3957  eval "$as_ac_Header=yes"
3958else
3959  echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962eval "$as_ac_Header=no"
3963fi
3964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3965fi
3966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3968if test `eval echo '${'$as_ac_Header'}'` = yes; then
3969  cat >>confdefs.h <<_ACEOF
3970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3971_ACEOF
3972
3973fi
3974
3975done
3976
3977
3978ac_ext=c
3979ac_cpp='$CPP $CPPFLAGS'
3980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
3984
3985# Check whether --enable-shared or --disable-shared was given.
3986if test "${enable_shared+set}" = set; then
3987  enableval="$enable_shared"
3988  p=${PACKAGE-default}
3989    case $enableval in
3990    yes) enable_shared=yes ;;
3991    no) enable_shared=no ;;
3992    *)
3993      enable_shared=no
3994      # Look at the argument we got.  We use all the common list separators.
3995      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3996      for pkg in $enableval; do
3997        IFS="$lt_save_ifs"
3998        if test "X$pkg" = "X$p"; then
3999          enable_shared=yes
4000        fi
4001      done
4002      IFS="$lt_save_ifs"
4003      ;;
4004    esac
4005else
4006  enable_shared=yes
4007fi;
4008
4009# Check whether --enable-fast-install or --disable-fast-install was given.
4010if test "${enable_fast_install+set}" = set; then
4011  enableval="$enable_fast_install"
4012  p=${PACKAGE-default}
4013    case $enableval in
4014    yes) enable_fast_install=yes ;;
4015    no) enable_fast_install=no ;;
4016    *)
4017      enable_fast_install=no
4018      # Look at the argument we got.  We use all the common list separators.
4019      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4020      for pkg in $enableval; do
4021        IFS="$lt_save_ifs"
4022        if test "X$pkg" = "X$p"; then
4023          enable_fast_install=yes
4024        fi
4025      done
4026      IFS="$lt_save_ifs"
4027      ;;
4028    esac
4029else
4030  enable_fast_install=yes
4031fi;
4032
4033echo "$as_me:$LINENO: checking host system type" >&5
4034echo $ECHO_N "checking host system type... $ECHO_C" >&6
4035if test "${ac_cv_host+set}" = set; then
4036  echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038  ac_cv_host_alias=$host_alias
4039test -z "$ac_cv_host_alias" &&
4040  ac_cv_host_alias=$ac_cv_build_alias
4041ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4042  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4043echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4044   { (exit 1); exit 1; }; }
4045
4046fi
4047echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4048echo "${ECHO_T}$ac_cv_host" >&6
4049host=$ac_cv_host
4050host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4051host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4052host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4053
4054
4055echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4056echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4057if test "${lt_cv_path_SED+set}" = set; then
4058  echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060  # Loop through the user's path and test for sed and gsed.
4061# Then use that list of sed's as ones to test for truncation.
4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065  IFS=$as_save_IFS
4066  test -z "$as_dir" && as_dir=.
4067  for lt_ac_prog in sed gsed; do
4068    for ac_exec_ext in '' $ac_executable_extensions; do
4069      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4070        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4071      fi
4072    done
4073  done
4074done
4075lt_ac_max=0
4076lt_ac_count=0
4077# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4078# along with /bin/sed that truncates output.
4079for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4080  test ! -f $lt_ac_sed && continue
4081  cat /dev/null > conftest.in
4082  lt_ac_count=0
4083  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4084  # Check for GNU sed and select it if it is found.
4085  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4086    lt_cv_path_SED=$lt_ac_sed
4087    break
4088  fi
4089  while true; do
4090    cat conftest.in conftest.in >conftest.tmp
4091    mv conftest.tmp conftest.in
4092    cp conftest.in conftest.nl
4093    echo >>conftest.nl
4094    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4095    cmp -s conftest.out conftest.nl || break
4096    # 10000 chars as input seems more than enough
4097    test $lt_ac_count -gt 10 && break
4098    lt_ac_count=`expr $lt_ac_count + 1`
4099    if test $lt_ac_count -gt $lt_ac_max; then
4100      lt_ac_max=$lt_ac_count
4101      lt_cv_path_SED=$lt_ac_sed
4102    fi
4103  done
4104done
4105
4106fi
4107
4108SED=$lt_cv_path_SED
4109echo "$as_me:$LINENO: result: $SED" >&5
4110echo "${ECHO_T}$SED" >&6
4111
4112
4113# Check whether --with-gnu-ld or --without-gnu-ld was given.
4114if test "${with_gnu_ld+set}" = set; then
4115  withval="$with_gnu_ld"
4116  test "$withval" = no || with_gnu_ld=yes
4117else
4118  with_gnu_ld=no
4119fi;
4120ac_prog=ld
4121if test "$GCC" = yes; then
4122  # Check if gcc -print-prog-name=ld gives a path.
4123  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4124echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4125  case $host in
4126  *-*-mingw*)
4127    # gcc leaves a trailing carriage return which upsets mingw
4128    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4129  *)
4130    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4131  esac
4132  case $ac_prog in
4133    # Accept absolute paths.
4134    [\\/]* | ?:[\\/]*)
4135      re_direlt='/[^/][^/]*/\.\./'
4136      # Canonicalize the pathname of ld
4137      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4138      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4139        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4140      done
4141      test -z "$LD" && LD="$ac_prog"
4142      ;;
4143  "")
4144    # If it fails, then pretend we aren't using GCC.
4145    ac_prog=ld
4146    ;;
4147  *)
4148    # If it is relative, then search for the first ld in PATH.
4149    with_gnu_ld=unknown
4150    ;;
4151  esac
4152elif test "$with_gnu_ld" = yes; then
4153  echo "$as_me:$LINENO: checking for GNU ld" >&5
4154echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4155else
4156  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4157echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4158fi
4159if test "${lt_cv_path_LD+set}" = set; then
4160  echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162  if test -z "$LD"; then
4163  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4164  for ac_dir in $PATH; do
4165    IFS="$lt_save_ifs"
4166    test -z "$ac_dir" && ac_dir=.
4167    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4168      lt_cv_path_LD="$ac_dir/$ac_prog"
4169      # Check to see if the program is GNU ld.  I'd rather use --version,
4170      # but apparently some variants of GNU ld only accept -v.
4171      # Break only if it was the GNU/non-GNU ld that we prefer.
4172      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4173      *GNU* | *'with BFD'*)
4174        test "$with_gnu_ld" != no && break
4175        ;;
4176      *)
4177        test "$with_gnu_ld" != yes && break
4178        ;;
4179      esac
4180    fi
4181  done
4182  IFS="$lt_save_ifs"
4183else
4184  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4185fi
4186fi
4187
4188LD="$lt_cv_path_LD"
4189if test -n "$LD"; then
4190  echo "$as_me:$LINENO: result: $LD" >&5
4191echo "${ECHO_T}$LD" >&6
4192else
4193  echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195fi
4196test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4197echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4198   { (exit 1); exit 1; }; }
4199echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4200echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4201if test "${lt_cv_prog_gnu_ld+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4205case `$LD -v 2>&1 </dev/null` in
4206*GNU* | *'with BFD'*)
4207  lt_cv_prog_gnu_ld=yes
4208  ;;
4209*)
4210  lt_cv_prog_gnu_ld=no
4211  ;;
4212esac
4213fi
4214echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4215echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4216with_gnu_ld=$lt_cv_prog_gnu_ld
4217
4218
4219echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4220echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4221if test "${lt_cv_ld_reload_flag+set}" = set; then
4222  echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
4224  lt_cv_ld_reload_flag='-r'
4225fi
4226echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4227echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4228reload_flag=$lt_cv_ld_reload_flag
4229case $reload_flag in
4230"" | " "*) ;;
4231*) reload_flag=" $reload_flag" ;;
4232esac
4233reload_cmds='$LD$reload_flag -o $output$reload_objs'
4234case $host_os in
4235  darwin*)
4236    if test "$GCC" = yes; then
4237      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4238    else
4239      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4240    fi
4241    ;;
4242esac
4243
4244echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4245echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4246if test "${lt_cv_path_NM+set}" = set; then
4247  echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249  if test -n "$NM"; then
4250  # Let the user override the test.
4251  lt_cv_path_NM="$NM"
4252else
4253  lt_nm_to_check="${ac_tool_prefix}nm"
4254  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4255    lt_nm_to_check="$lt_nm_to_check nm"
4256  fi
4257  for lt_tmp_nm in $lt_nm_to_check; do
4258    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4259    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4260      IFS="$lt_save_ifs"
4261      test -z "$ac_dir" && ac_dir=.
4262      tmp_nm="$ac_dir/$lt_tmp_nm"
4263      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4264        # Check to see if the nm accepts a BSD-compat flag.
4265        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4266        #   nm: unknown option "B" ignored
4267        # Tru64's nm complains that /dev/null is an invalid object file
4268        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4269        */dev/null* | *'Invalid file or object type'*)
4270          lt_cv_path_NM="$tmp_nm -B"
4271          break
4272          ;;
4273        *)
4274          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4275          */dev/null*)
4276            lt_cv_path_NM="$tmp_nm -p"
4277            break
4278            ;;
4279          *)
4280            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4281            continue # so that we can try to find one that supports BSD flags
4282            ;;
4283          esac
4284          ;;
4285        esac
4286      fi
4287    done
4288    IFS="$lt_save_ifs"
4289  done
4290  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4291fi
4292fi
4293echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4294echo "${ECHO_T}$lt_cv_path_NM" >&6
4295NM="$lt_cv_path_NM"
4296
4297echo "$as_me:$LINENO: checking whether ln -s works" >&5
4298echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4299LN_S=$as_ln_s
4300if test "$LN_S" = "ln -s"; then
4301  echo "$as_me:$LINENO: result: yes" >&5
4302echo "${ECHO_T}yes" >&6
4303else
4304  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4305echo "${ECHO_T}no, using $LN_S" >&6
4306fi
4307
4308echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4309echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4310if test "${lt_cv_deplibs_check_method+set}" = set; then
4311  echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313  lt_cv_file_magic_cmd='$MAGIC_CMD'
4314lt_cv_file_magic_test_file=
4315lt_cv_deplibs_check_method='unknown'
4316# Need to set the preceding variable on all platforms that support
4317# interlibrary dependencies.
4318# 'none' -- dependencies not supported.
4319# `unknown' -- same as none, but documents that we really don't know.
4320# 'pass_all' -- all dependencies passed with no checks.
4321# 'test_compile' -- check by making test program.
4322# 'file_magic [[regex]]' -- check by looking for files in library path
4323# which responds to the $file_magic_cmd with a given extended regex.
4324# If you have `file' or equivalent on your system and you're not sure
4325# whether `pass_all' will *always* work, you probably want this one.
4326
4327case $host_os in
4328aix4* | aix5*)
4329  lt_cv_deplibs_check_method=pass_all
4330  ;;
4331
4332beos*)
4333  lt_cv_deplibs_check_method=pass_all
4334  ;;
4335
4336bsdi[45]*)
4337  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4338  lt_cv_file_magic_cmd='/usr/bin/file -L'
4339  lt_cv_file_magic_test_file=/shlib/libc.so
4340  ;;
4341
4342cygwin*)
4343  # func_win32_libid is a shell function defined in ltmain.sh
4344  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4345  lt_cv_file_magic_cmd='func_win32_libid'
4346  ;;
4347
4348mingw* | pw32*)
4349  # Base MSYS/MinGW do not provide the 'file' command needed by
4350  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4351  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4352  lt_cv_file_magic_cmd='$OBJDUMP -f'
4353  ;;
4354
4355darwin* | rhapsody*)
4356  lt_cv_deplibs_check_method=pass_all
4357  ;;
4358
4359freebsd* | kfreebsd*-gnu | dragonfly*)
4360  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4361    case $host_cpu in
4362    i*86 )
4363      # Not sure whether the presence of OpenBSD here was a mistake.
4364      # Let's accept both of them until this is cleared up.
4365      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4366      lt_cv_file_magic_cmd=/usr/bin/file
4367      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4368      ;;
4369    esac
4370  else
4371    lt_cv_deplibs_check_method=pass_all
4372  fi
4373  ;;
4374
4375gnu*)
4376  lt_cv_deplibs_check_method=pass_all
4377  ;;
4378
4379hpux10.20* | hpux11*)
4380  lt_cv_file_magic_cmd=/usr/bin/file
4381  case $host_cpu in
4382  ia64*)
4383    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4384    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4385    ;;
4386  hppa*64*)
4387    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]'
4388    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4389    ;;
4390  *)
4391    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4392    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4393    ;;
4394  esac
4395  ;;
4396
4397interix3*)
4398  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4399  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4400  ;;
4401
4402irix5* | irix6* | nonstopux*)
4403  case $LD in
4404  *-32|*"-32 ") libmagic=32-bit;;
4405  *-n32|*"-n32 ") libmagic=N32;;
4406  *-64|*"-64 ") libmagic=64-bit;;
4407  *) libmagic=never-match;;
4408  esac
4409  lt_cv_deplibs_check_method=pass_all
4410  ;;
4411
4412# This must be Linux ELF.
4413linux*)
4414  lt_cv_deplibs_check_method=pass_all
4415  ;;
4416
4417netbsd*)
4418  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4419    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4420  else
4421    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4422  fi
4423  ;;
4424
4425newos6*)
4426  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4427  lt_cv_file_magic_cmd=/usr/bin/file
4428  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4429  ;;
4430
4431nto-qnx*)
4432  lt_cv_deplibs_check_method=unknown
4433  ;;
4434
4435openbsd*)
4436  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4437    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4438  else
4439    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4440  fi
4441  ;;
4442
4443osf3* | osf4* | osf5*)
4444  lt_cv_deplibs_check_method=pass_all
4445  ;;
4446
4447solaris*)
4448  lt_cv_deplibs_check_method=pass_all
4449  ;;
4450
4451sysv4 | sysv4.3*)
4452  case $host_vendor in
4453  motorola)
4454    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]'
4455    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4456    ;;
4457  ncr)
4458    lt_cv_deplibs_check_method=pass_all
4459    ;;
4460  sequent)
4461    lt_cv_file_magic_cmd='/bin/file'
4462    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4463    ;;
4464  sni)
4465    lt_cv_file_magic_cmd='/bin/file'
4466    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4467    lt_cv_file_magic_test_file=/lib/libc.so
4468    ;;
4469  siemens)
4470    lt_cv_deplibs_check_method=pass_all
4471    ;;
4472  pc)
4473    lt_cv_deplibs_check_method=pass_all
4474    ;;
4475  esac
4476  ;;
4477
4478sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4479  lt_cv_deplibs_check_method=pass_all
4480  ;;
4481esac
4482
4483fi
4484echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4485echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4486file_magic_cmd=$lt_cv_file_magic_cmd
4487deplibs_check_method=$lt_cv_deplibs_check_method
4488test -z "$deplibs_check_method" && deplibs_check_method=unknown
4489
4490
4491
4492
4493# If no C compiler was specified, use CC.
4494LTCC=${LTCC-"$CC"}
4495
4496# If no C compiler flags were specified, use CFLAGS.
4497LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4498
4499# Allow CC to be a program name with arguments.
4500compiler=$CC
4501
4502# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4503if test "${enable_libtool_lock+set}" = set; then
4504  enableval="$enable_libtool_lock"
4505
4506fi;
4507test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4508
4509# Some flags need to be propagated to the compiler or linker for good
4510# libtool support.
4511case $host in
4512ia64-*-hpux*)
4513  # Find out which ABI we are using.
4514  echo 'int i;' > conftest.$ac_ext
4515  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516  (eval $ac_compile) 2>&5
4517  ac_status=$?
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); }; then
4520    case `/usr/bin/file conftest.$ac_objext` in
4521    *ELF-32*)
4522      HPUX_IA64_MODE="32"
4523      ;;
4524    *ELF-64*)
4525      HPUX_IA64_MODE="64"
4526      ;;
4527    esac
4528  fi
4529  rm -rf conftest*
4530  ;;
4531*-*-irix6*)
4532  # Find out which ABI we are using.
4533  echo '#line 4533 "configure"' > conftest.$ac_ext
4534  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535  (eval $ac_compile) 2>&5
4536  ac_status=$?
4537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538  (exit $ac_status); }; then
4539   if test "$lt_cv_prog_gnu_ld" = yes; then
4540    case `/usr/bin/file conftest.$ac_objext` in
4541    *32-bit*)
4542      LD="${LD-ld} -melf32bsmip"
4543      ;;
4544    *N32*)
4545      LD="${LD-ld} -melf32bmipn32"
4546      ;;
4547    *64-bit*)
4548      LD="${LD-ld} -melf64bmip"
4549      ;;
4550    esac
4551   else
4552    case `/usr/bin/file conftest.$ac_objext` in
4553    *32-bit*)
4554      LD="${LD-ld} -32"
4555      ;;
4556    *N32*)
4557      LD="${LD-ld} -n32"
4558      ;;
4559    *64-bit*)
4560      LD="${LD-ld} -64"
4561      ;;
4562    esac
4563   fi
4564  fi
4565  rm -rf conftest*
4566  ;;
4567
4568x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4569  # Find out which ABI we are using.
4570  echo 'int i;' > conftest.$ac_ext
4571  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572  (eval $ac_compile) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); }; then
4576    case `/usr/bin/file conftest.o` in
4577    *32-bit*)
4578      case $host in
4579        x86_64-*linux*)
4580          LD="${LD-ld} -m elf_i386"
4581          ;;
4582        ppc64-*linux*|powerpc64-*linux*)
4583          LD="${LD-ld} -m elf32ppclinux"
4584          ;;
4585        s390x-*linux*)
4586          LD="${LD-ld} -m elf_s390"
4587          ;;
4588        sparc64-*linux*)
4589          LD="${LD-ld} -m elf32_sparc"
4590          ;;
4591      esac
4592      ;;
4593    *64-bit*)
4594      case $host in
4595        x86_64-*linux*)
4596          LD="${LD-ld} -m elf_x86_64"
4597          ;;
4598        ppc*-*linux*|powerpc*-*linux*)
4599          LD="${LD-ld} -m elf64ppc"
4600          ;;
4601        s390*-*linux*)
4602          LD="${LD-ld} -m elf64_s390"
4603          ;;
4604        sparc*-*linux*)
4605          LD="${LD-ld} -m elf64_sparc"
4606          ;;
4607      esac
4608      ;;
4609    esac
4610  fi
4611  rm -rf conftest*
4612  ;;
4613
4614*-*-sco3.2v5*)
4615  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4616  SAVE_CFLAGS="$CFLAGS"
4617  CFLAGS="$CFLAGS -belf"
4618  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4619echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4620if test "${lt_cv_cc_needs_belf+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623  ac_ext=c
4624ac_cpp='$CPP $CPPFLAGS'
4625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
4629     cat >conftest.$ac_ext <<_ACEOF
4630/* confdefs.h.  */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h.  */
4635
4636int
4637main ()
4638{
4639
4640  ;
4641  return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext conftest$ac_exeext
4645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646  (eval $ac_link) 2>conftest.er1
4647  ac_status=$?
4648  grep -v '^ *+' conftest.er1 >conftest.err
4649  rm -f conftest.er1
4650  cat conftest.err >&5
4651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652  (exit $ac_status); } &&
4653         { ac_try='test -z "$ac_c_werror_flag"
4654                         || test ! -s conftest.err'
4655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656  (eval $ac_try) 2>&5
4657  ac_status=$?
4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659  (exit $ac_status); }; } &&
4660         { ac_try='test -s conftest$ac_exeext'
4661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662  (eval $ac_try) 2>&5
4663  ac_status=$?
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); }; }; then
4666  lt_cv_cc_needs_belf=yes
4667else
4668  echo "$as_me: failed program was:" >&5
4669sed 's/^/| /' conftest.$ac_ext >&5
4670
4671lt_cv_cc_needs_belf=no
4672fi
4673rm -f conftest.err conftest.$ac_objext \
4674      conftest$ac_exeext conftest.$ac_ext
4675     ac_ext=c
4676ac_cpp='$CPP $CPPFLAGS'
4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680
4681fi
4682echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4683echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4684  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4685    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4686    CFLAGS="$SAVE_CFLAGS"
4687  fi
4688  ;;
4689sparc*-*solaris*)
4690  # Find out which ABI we are using.
4691  echo 'int i;' > conftest.$ac_ext
4692  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693  (eval $ac_compile) 2>&5
4694  ac_status=$?
4695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696  (exit $ac_status); }; then
4697    case `/usr/bin/file conftest.o` in
4698    *64-bit*)
4699      case $lt_cv_prog_gnu_ld in
4700      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4701      *)    LD="${LD-ld} -64" ;;
4702      esac
4703      ;;
4704    esac
4705  fi
4706  rm -rf conftest*
4707  ;;
4708
4709
4710esac
4711
4712need_locks="$enable_libtool_lock"
4713
4714
4715ac_ext=c
4716ac_cpp='$CPP $CPPFLAGS'
4717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4721echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4722# On Suns, sometimes $CPP names a directory.
4723if test -n "$CPP" && test -d "$CPP"; then
4724  CPP=
4725fi
4726if test -z "$CPP"; then
4727  if test "${ac_cv_prog_CPP+set}" = set; then
4728  echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730      # Double quotes because CPP needs to be expanded
4731    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4732    do
4733      ac_preproc_ok=false
4734for ac_c_preproc_warn_flag in '' yes
4735do
4736  # Use a header file that comes with gcc, so configuring glibc
4737  # with a fresh cross-compiler works.
4738  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4739  # <limits.h> exists even on freestanding compilers.
4740  # On the NeXT, cc -E runs the code through the compiler's parser,
4741  # not just through cpp. "Syntax error" is here to catch this case.
4742  cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h.  */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h.  */
4748#ifdef __STDC__
4749# include <limits.h>
4750#else
4751# include <assert.h>
4752#endif
4753                     Syntax error
4754_ACEOF
4755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757  ac_status=$?
4758  grep -v '^ *+' conftest.er1 >conftest.err
4759  rm -f conftest.er1
4760  cat conftest.err >&5
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); } >/dev/null; then
4763  if test -s conftest.err; then
4764    ac_cpp_err=$ac_c_preproc_warn_flag
4765    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4766  else
4767    ac_cpp_err=
4768  fi
4769else
4770  ac_cpp_err=yes
4771fi
4772if test -z "$ac_cpp_err"; then
4773  :
4774else
4775  echo "$as_me: failed program was:" >&5
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
4778  # Broken: fails on valid input.
4779continue
4780fi
4781rm -f conftest.err conftest.$ac_ext
4782
4783  # OK, works on sane cases.  Now check whether non-existent headers
4784  # can be detected and how.
4785  cat >conftest.$ac_ext <<_ACEOF
4786/* confdefs.h.  */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h.  */
4791#include <ac_nonexistent.h>
4792_ACEOF
4793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4794  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4795  ac_status=$?
4796  grep -v '^ *+' conftest.er1 >conftest.err
4797  rm -f conftest.er1
4798  cat conftest.err >&5
4799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800  (exit $ac_status); } >/dev/null; then
4801  if test -s conftest.err; then
4802    ac_cpp_err=$ac_c_preproc_warn_flag
4803    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4804  else
4805    ac_cpp_err=
4806  fi
4807else
4808  ac_cpp_err=yes
4809fi
4810if test -z "$ac_cpp_err"; then
4811  # Broken: success on invalid input.
4812continue
4813else
4814  echo "$as_me: failed program was:" >&5
4815sed 's/^/| /' conftest.$ac_ext >&5
4816
4817  # Passes both tests.
4818ac_preproc_ok=:
4819break
4820fi
4821rm -f conftest.err conftest.$ac_ext
4822
4823done
4824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825rm -f conftest.err conftest.$ac_ext
4826if $ac_preproc_ok; then
4827  break
4828fi
4829
4830    done
4831    ac_cv_prog_CPP=$CPP
4832
4833fi
4834  CPP=$ac_cv_prog_CPP
4835else
4836  ac_cv_prog_CPP=$CPP
4837fi
4838echo "$as_me:$LINENO: result: $CPP" >&5
4839echo "${ECHO_T}$CPP" >&6
4840ac_preproc_ok=false
4841for ac_c_preproc_warn_flag in '' yes
4842do
4843  # Use a header file that comes with gcc, so configuring glibc
4844  # with a fresh cross-compiler works.
4845  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846  # <limits.h> exists even on freestanding compilers.
4847  # On the NeXT, cc -E runs the code through the compiler's parser,
4848  # not just through cpp. "Syntax error" is here to catch this case.
4849  cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h.  */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h.  */
4855#ifdef __STDC__
4856# include <limits.h>
4857#else
4858# include <assert.h>
4859#endif
4860                     Syntax error
4861_ACEOF
4862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4864  ac_status=$?
4865  grep -v '^ *+' conftest.er1 >conftest.err
4866  rm -f conftest.er1
4867  cat conftest.err >&5
4868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869  (exit $ac_status); } >/dev/null; then
4870  if test -s conftest.err; then
4871    ac_cpp_err=$ac_c_preproc_warn_flag
4872    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4873  else
4874    ac_cpp_err=
4875  fi
4876else
4877  ac_cpp_err=yes
4878fi
4879if test -z "$ac_cpp_err"; then
4880  :
4881else
4882  echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885  # Broken: fails on valid input.
4886continue
4887fi
4888rm -f conftest.err conftest.$ac_ext
4889
4890  # OK, works on sane cases.  Now check whether non-existent headers
4891  # can be detected and how.
4892  cat >conftest.$ac_ext <<_ACEOF
4893/* confdefs.h.  */
4894_ACEOF
4895cat confdefs.h >>conftest.$ac_ext
4896cat >>conftest.$ac_ext <<_ACEOF
4897/* end confdefs.h.  */
4898#include <ac_nonexistent.h>
4899_ACEOF
4900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4901  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902  ac_status=$?
4903  grep -v '^ *+' conftest.er1 >conftest.err
4904  rm -f conftest.er1
4905  cat conftest.err >&5
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); } >/dev/null; then
4908  if test -s conftest.err; then
4909    ac_cpp_err=$ac_c_preproc_warn_flag
4910    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4911  else
4912    ac_cpp_err=
4913  fi
4914else
4915  ac_cpp_err=yes
4916fi
4917if test -z "$ac_cpp_err"; then
4918  # Broken: success on invalid input.
4919continue
4920else
4921  echo "$as_me: failed program was:" >&5
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
4924  # Passes both tests.
4925ac_preproc_ok=:
4926break
4927fi
4928rm -f conftest.err conftest.$ac_ext
4929
4930done
4931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932rm -f conftest.err conftest.$ac_ext
4933if $ac_preproc_ok; then
4934  :
4935else
4936  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4937See \`config.log' for more details." >&5
4938echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4939See \`config.log' for more details." >&2;}
4940   { (exit 1); exit 1; }; }
4941fi
4942
4943ac_ext=c
4944ac_cpp='$CPP $CPPFLAGS'
4945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948
4949
4950echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4952if test "${ac_cv_header_stdc+set}" = set; then
4953  echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955  cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h.  */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h.  */
4961#include <stdlib.h>
4962#include <stdarg.h>
4963#include <string.h>
4964#include <float.h>
4965
4966int
4967main ()
4968{
4969
4970  ;
4971  return 0;
4972}
4973_ACEOF
4974rm -f conftest.$ac_objext
4975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976  (eval $ac_compile) 2>conftest.er1
4977  ac_status=$?
4978  grep -v '^ *+' conftest.er1 >conftest.err
4979  rm -f conftest.er1
4980  cat conftest.err >&5
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); } &&
4983         { ac_try='test -z "$ac_c_werror_flag"
4984                         || test ! -s conftest.err'
4985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986  (eval $ac_try) 2>&5
4987  ac_status=$?
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); }; } &&
4990         { ac_try='test -s conftest.$ac_objext'
4991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992  (eval $ac_try) 2>&5
4993  ac_status=$?
4994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995  (exit $ac_status); }; }; then
4996  ac_cv_header_stdc=yes
4997else
4998  echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001ac_cv_header_stdc=no
5002fi
5003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004
5005if test $ac_cv_header_stdc = yes; then
5006  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5007  cat >conftest.$ac_ext <<_ACEOF
5008/* confdefs.h.  */
5009_ACEOF
5010cat confdefs.h >>conftest.$ac_ext
5011cat >>conftest.$ac_ext <<_ACEOF
5012/* end confdefs.h.  */
5013#include <string.h>
5014
5015_ACEOF
5016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017  $EGREP "memchr" >/dev/null 2>&1; then
5018  :
5019else
5020  ac_cv_header_stdc=no
5021fi
5022rm -f conftest*
5023
5024fi
5025
5026if test $ac_cv_header_stdc = yes; then
5027  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5028  cat >conftest.$ac_ext <<_ACEOF
5029/* confdefs.h.  */
5030_ACEOF
5031cat confdefs.h >>conftest.$ac_ext
5032cat >>conftest.$ac_ext <<_ACEOF
5033/* end confdefs.h.  */
5034#include <stdlib.h>
5035
5036_ACEOF
5037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5038  $EGREP "free" >/dev/null 2>&1; then
5039  :
5040else
5041  ac_cv_header_stdc=no
5042fi
5043rm -f conftest*
5044
5045fi
5046
5047if test $ac_cv_header_stdc = yes; then
5048  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5049  if test "$cross_compiling" = yes; then
5050  :
5051else
5052  cat >conftest.$ac_ext <<_ACEOF
5053/* confdefs.h.  */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h.  */
5058#include <ctype.h>
5059#if ((' ' & 0x0FF) == 0x020)
5060# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5061# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5062#else
5063# define ISLOWER(c) \
5064                   (('a' <= (c) && (c) <= 'i') \
5065                     || ('j' <= (c) && (c) <= 'r') \
5066                     || ('s' <= (c) && (c) <= 'z'))
5067# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5068#endif
5069
5070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5071int
5072main ()
5073{
5074  int i;
5075  for (i = 0; i < 256; i++)
5076    if (XOR (islower (i), ISLOWER (i))
5077        || toupper (i) != TOUPPER (i))
5078      exit(2);
5079  exit (0);
5080}
5081_ACEOF
5082rm -f conftest$ac_exeext
5083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5084  (eval $ac_link) 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089  (eval $ac_try) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }; }; then
5093  :
5094else
5095  echo "$as_me: program exited with status $ac_status" >&5
5096echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099( exit $ac_status )
5100ac_cv_header_stdc=no
5101fi
5102rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5103fi
5104fi
5105fi
5106echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5107echo "${ECHO_T}$ac_cv_header_stdc" >&6
5108if test $ac_cv_header_stdc = yes; then
5109
5110cat >>confdefs.h <<\_ACEOF
5111#define STDC_HEADERS 1
5112_ACEOF
5113
5114fi
5115
5116# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5127                  inttypes.h stdint.h unistd.h
5128do
5129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5130echo "$as_me:$LINENO: checking for $ac_header" >&5
5131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5132if eval "test \"\${$as_ac_Header+set}\" = set"; then
5133  echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135  cat >conftest.$ac_ext <<_ACEOF
5136/* confdefs.h.  */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h.  */
5141$ac_includes_default
5142
5143#include <$ac_header>
5144_ACEOF
5145rm -f conftest.$ac_objext
5146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147  (eval $ac_compile) 2>conftest.er1
5148  ac_status=$?
5149  grep -v '^ *+' conftest.er1 >conftest.err
5150  rm -f conftest.er1
5151  cat conftest.err >&5
5152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); } &&
5154         { ac_try='test -z "$ac_c_werror_flag"
5155                         || test ! -s conftest.err'
5156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157  (eval $ac_try) 2>&5
5158  ac_status=$?
5159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160  (exit $ac_status); }; } &&
5161         { ac_try='test -s conftest.$ac_objext'
5162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163  (eval $ac_try) 2>&5
5164  ac_status=$?
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); }; }; then
5167  eval "$as_ac_Header=yes"
5168else
5169  echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
5172eval "$as_ac_Header=no"
5173fi
5174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5175fi
5176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5178if test `eval echo '${'$as_ac_Header'}'` = yes; then
5179  cat >>confdefs.h <<_ACEOF
5180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5181_ACEOF
5182
5183fi
5184
5185done
5186
5187
5188
5189for ac_header in dlfcn.h
5190do
5191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5192if eval "test \"\${$as_ac_Header+set}\" = set"; then
5193  echo "$as_me:$LINENO: checking for $ac_header" >&5
5194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5195if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196  echo $ECHO_N "(cached) $ECHO_C" >&6
5197fi
5198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5200else
5201  # Is the header compilable?
5202echo "$as_me:$LINENO: checking $ac_header usability" >&5
5203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5204cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h.  */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h.  */
5210$ac_includes_default
5211#include <$ac_header>
5212_ACEOF
5213rm -f conftest.$ac_objext
5214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215  (eval $ac_compile) 2>conftest.er1
5216  ac_status=$?
5217  grep -v '^ *+' conftest.er1 >conftest.err
5218  rm -f conftest.er1
5219  cat conftest.err >&5
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); } &&
5222         { ac_try='test -z "$ac_c_werror_flag"
5223                         || test ! -s conftest.err'
5224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225  (eval $ac_try) 2>&5
5226  ac_status=$?
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); }; } &&
5229         { ac_try='test -s conftest.$ac_objext'
5230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231  (eval $ac_try) 2>&5
5232  ac_status=$?
5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); }; }; then
5235  ac_header_compiler=yes
5236else
5237  echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240ac_header_compiler=no
5241fi
5242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5244echo "${ECHO_T}$ac_header_compiler" >&6
5245
5246# Is the header present?
5247echo "$as_me:$LINENO: checking $ac_header presence" >&5
5248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5249cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h.  */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h.  */
5255#include <$ac_header>
5256_ACEOF
5257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5258  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5259  ac_status=$?
5260  grep -v '^ *+' conftest.er1 >conftest.err
5261  rm -f conftest.er1
5262  cat conftest.err >&5
5263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264  (exit $ac_status); } >/dev/null; then
5265  if test -s conftest.err; then
5266    ac_cpp_err=$ac_c_preproc_warn_flag
5267    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5268  else
5269    ac_cpp_err=
5270  fi
5271else
5272  ac_cpp_err=yes
5273fi
5274if test -z "$ac_cpp_err"; then
5275  ac_header_preproc=yes
5276else
5277  echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
5280  ac_header_preproc=no
5281fi
5282rm -f conftest.err conftest.$ac_ext
5283echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5284echo "${ECHO_T}$ac_header_preproc" >&6
5285
5286# So?  What about this header?
5287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5288  yes:no: )
5289    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5291    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5293    ac_header_preproc=yes
5294    ;;
5295  no:yes:* )
5296    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5298    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5299echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5300    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5302    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5303echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5304    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5306    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5308    (
5309      cat <<\_ASBOX
5310## ---------------------------------------- ##
5311## Report this to coin-clp@list.coin-or.org ##
5312## ---------------------------------------- ##
5313_ASBOX
5314    ) |
5315      sed "s/^/$as_me: WARNING:     /" >&2
5316    ;;
5317esac
5318echo "$as_me:$LINENO: checking for $ac_header" >&5
5319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5320if eval "test \"\${$as_ac_Header+set}\" = set"; then
5321  echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323  eval "$as_ac_Header=\$ac_header_preproc"
5324fi
5325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5327
5328fi
5329if test `eval echo '${'$as_ac_Header'}'` = yes; then
5330  cat >>confdefs.h <<_ACEOF
5331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5332_ACEOF
5333
5334fi
5335
5336done
5337
5338
5339
5340if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5341    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5342    (test "X$CXX" != "Xg++"))) ; then
5343  ac_ext=cc
5344ac_cpp='$CXXCPP $CPPFLAGS'
5345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5348echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5349echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5350if test -z "$CXXCPP"; then
5351  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5352  echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354      # Double quotes because CXXCPP needs to be expanded
5355    for CXXCPP in "$CXX -E" "/lib/cpp"
5356    do
5357      ac_preproc_ok=false
5358for ac_cxx_preproc_warn_flag in '' yes
5359do
5360  # Use a header file that comes with gcc, so configuring glibc
5361  # with a fresh cross-compiler works.
5362  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363  # <limits.h> exists even on freestanding compilers.
5364  # On the NeXT, cc -E runs the code through the compiler's parser,
5365  # not just through cpp. "Syntax error" is here to catch this case.
5366  cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h.  */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h.  */
5372#ifdef __STDC__
5373# include <limits.h>
5374#else
5375# include <assert.h>
5376#endif
5377                     Syntax error
5378_ACEOF
5379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5380  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5381  ac_status=$?
5382  grep -v '^ *+' conftest.er1 >conftest.err
5383  rm -f conftest.er1
5384  cat conftest.err >&5
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); } >/dev/null; then
5387  if test -s conftest.err; then
5388    ac_cpp_err=$ac_cxx_preproc_warn_flag
5389    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5390  else
5391    ac_cpp_err=
5392  fi
5393else
5394  ac_cpp_err=yes
5395fi
5396if test -z "$ac_cpp_err"; then
5397  :
5398else
5399  echo "$as_me: failed program was:" >&5
5400sed 's/^/| /' conftest.$ac_ext >&5
5401
5402  # Broken: fails on valid input.
5403continue
5404fi
5405rm -f conftest.err conftest.$ac_ext
5406
5407  # OK, works on sane cases.  Now check whether non-existent headers
5408  # can be detected and how.
5409  cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h.  */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h.  */
5415#include <ac_nonexistent.h>
5416_ACEOF
5417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5418  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5419  ac_status=$?
5420  grep -v '^ *+' conftest.er1 >conftest.err
5421  rm -f conftest.er1
5422  cat conftest.err >&5
5423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424  (exit $ac_status); } >/dev/null; then
5425  if test -s conftest.err; then
5426    ac_cpp_err=$ac_cxx_preproc_warn_flag
5427    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5428  else
5429    ac_cpp_err=
5430  fi
5431else
5432  ac_cpp_err=yes
5433fi
5434if test -z "$ac_cpp_err"; then
5435  # Broken: success on invalid input.
5436continue
5437else
5438  echo "$as_me: failed program was:" >&5
5439sed 's/^/| /' conftest.$ac_ext >&5
5440
5441  # Passes both tests.
5442ac_preproc_ok=:
5443break
5444fi
5445rm -f conftest.err conftest.$ac_ext
5446
5447done
5448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5449rm -f conftest.err conftest.$ac_ext
5450if $ac_preproc_ok; then
5451  break
5452fi
5453
5454    done
5455    ac_cv_prog_CXXCPP=$CXXCPP
5456
5457fi
5458  CXXCPP=$ac_cv_prog_CXXCPP
5459else
5460  ac_cv_prog_CXXCPP=$CXXCPP
5461fi
5462echo "$as_me:$LINENO: result: $CXXCPP" >&5
5463echo "${ECHO_T}$CXXCPP" >&6
5464ac_preproc_ok=false
5465for ac_cxx_preproc_warn_flag in '' yes
5466do
5467  # Use a header file that comes with gcc, so configuring glibc
5468  # with a fresh cross-compiler works.
5469  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5470  # <limits.h> exists even on freestanding compilers.
5471  # On the NeXT, cc -E runs the code through the compiler's parser,
5472  # not just through cpp. "Syntax error" is here to catch this case.
5473  cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h.  */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h.  */
5479#ifdef __STDC__
5480# include <limits.h>
5481#else
5482# include <assert.h>
5483#endif
5484                     Syntax error
5485_ACEOF
5486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5487  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5488  ac_status=$?
5489  grep -v '^ *+' conftest.er1 >conftest.err
5490  rm -f conftest.er1
5491  cat conftest.err >&5
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); } >/dev/null; then
5494  if test -s conftest.err; then
5495    ac_cpp_err=$ac_cxx_preproc_warn_flag
5496    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5497  else
5498    ac_cpp_err=
5499  fi
5500else
5501  ac_cpp_err=yes
5502fi
5503if test -z "$ac_cpp_err"; then
5504  :
5505else
5506  echo "$as_me: failed program was:" >&5
5507sed 's/^/| /' conftest.$ac_ext >&5
5508
5509  # Broken: fails on valid input.
5510continue
5511fi
5512rm -f conftest.err conftest.$ac_ext
5513
5514  # OK, works on sane cases.  Now check whether non-existent headers
5515  # can be detected and how.
5516  cat >conftest.$ac_ext <<_ACEOF
5517/* confdefs.h.  */
5518_ACEOF
5519cat confdefs.h >>conftest.$ac_ext
5520cat >>conftest.$ac_ext <<_ACEOF
5521/* end confdefs.h.  */
5522#include <ac_nonexistent.h>
5523_ACEOF
5524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5525  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5526  ac_status=$?
5527  grep -v '^ *+' conftest.er1 >conftest.err
5528  rm -f conftest.er1
5529  cat conftest.err >&5
5530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531  (exit $ac_status); } >/dev/null; then
5532  if test -s conftest.err; then
5533    ac_cpp_err=$ac_cxx_preproc_warn_flag
5534    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5535  else
5536    ac_cpp_err=
5537  fi
5538else
5539  ac_cpp_err=yes
5540fi
5541if test -z "$ac_cpp_err"; then
5542  # Broken: success on invalid input.
5543continue
5544else
5545  echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548  # Passes both tests.
5549ac_preproc_ok=:
5550break
5551fi
5552rm -f conftest.err conftest.$ac_ext
5553
5554done
5555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5556rm -f conftest.err conftest.$ac_ext
5557if $ac_preproc_ok; then
5558  :
5559else
5560  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5561See \`config.log' for more details." >&5
5562echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5563See \`config.log' for more details." >&2;}
5564   { (exit 1); exit 1; }; }
5565fi
5566
5567ac_ext=cc
5568ac_cpp='$CXXCPP $CPPFLAGS'
5569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5572
5573fi
5574
5575ac_ext=f
5576ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5577ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5579if test -n "$ac_tool_prefix"; then
5580  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5581  do
5582    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5584echo "$as_me:$LINENO: checking for $ac_word" >&5
5585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586if test "${ac_cv_prog_F77+set}" = set; then
5587  echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589  if test -n "$F77"; then
5590  ac_cv_prog_F77="$F77" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595  IFS=$as_save_IFS
5596  test -z "$as_dir" && as_dir=.
5597  for ac_exec_ext in '' $ac_executable_extensions; do
5598  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601    break 2
5602  fi
5603done
5604done
5605
5606fi
5607fi
5608F77=$ac_cv_prog_F77
5609if test -n "$F77"; then
5610  echo "$as_me:$LINENO: result: $F77" >&5
5611echo "${ECHO_T}$F77" >&6
5612else
5613  echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615fi
5616
5617    test -n "$F77" && break
5618  done
5619fi
5620if test -z "$F77"; then
5621  ac_ct_F77=$F77
5622  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5623do
5624  # Extract the first word of "$ac_prog", so it can be a program name with args.
5625set dummy $ac_prog; ac_word=$2
5626echo "$as_me:$LINENO: checking for $ac_word" >&5
5627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5629  echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631  if test -n "$ac_ct_F77"; then
5632  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5633else
5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH
5636do
5637  IFS=$as_save_IFS
5638  test -z "$as_dir" && as_dir=.
5639  for ac_exec_ext in '' $ac_executable_extensions; do
5640  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641    ac_cv_prog_ac_ct_F77="$ac_prog"
5642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643    break 2
5644  fi
5645done
5646done
5647
5648fi
5649fi
5650ac_ct_F77=$ac_cv_prog_ac_ct_F77
5651if test -n "$ac_ct_F77"; then
5652  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5653echo "${ECHO_T}$ac_ct_F77" >&6
5654else
5655  echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6
5657fi
5658
5659  test -n "$ac_ct_F77" && break
5660done
5661
5662  F77=$ac_ct_F77
5663fi
5664
5665
5666# Provide some information about the compiler.
5667echo "$as_me:5667:" \
5668     "checking for Fortran 77 compiler version" >&5
5669ac_compiler=`set X $ac_compile; echo $2`
5670{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5671  (eval $ac_compiler --version </dev/null >&5) 2>&5
5672  ac_status=$?
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); }
5675{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5676  (eval $ac_compiler -v </dev/null >&5) 2>&5
5677  ac_status=$?
5678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679  (exit $ac_status); }
5680{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5681  (eval $ac_compiler -V </dev/null >&5) 2>&5
5682  ac_status=$?
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); }
5685rm -f a.out
5686
5687# If we don't use `.F' as extension, the preprocessor is not run on the
5688# input file.  (Note that this only needs to work for GNU compilers.)
5689ac_save_ext=$ac_ext
5690ac_ext=F
5691echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5692echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5693if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5694  echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696  cat >conftest.$ac_ext <<_ACEOF
5697      program main
5698#ifndef __GNUC__
5699       choke me
5700#endif
5701
5702      end
5703_ACEOF
5704rm -f conftest.$ac_objext
5705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706  (eval $ac_compile) 2>conftest.er1
5707  ac_status=$?
5708  grep -v '^ *+' conftest.er1 >conftest.err
5709  rm -f conftest.er1
5710  cat conftest.err >&5
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } &&
5713         { ac_try='test -z "$ac_f77_werror_flag"
5714                         || test ! -s conftest.err'
5715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716  (eval $ac_try) 2>&5
5717  ac_status=$?
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); }; } &&
5720         { ac_try='test -s conftest.$ac_objext'
5721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722  (eval $ac_try) 2>&5
5723  ac_status=$?
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); }; }; then
5726  ac_compiler_gnu=yes
5727else
5728  echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731ac_compiler_gnu=no
5732fi
5733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5735
5736fi
5737echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5738echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5739ac_ext=$ac_save_ext
5740ac_test_FFLAGS=${FFLAGS+set}
5741ac_save_FFLAGS=$FFLAGS
5742FFLAGS=
5743echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5744echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5745if test "${ac_cv_prog_f77_g+set}" = set; then
5746  echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
5748  FFLAGS=-g
5749cat >conftest.$ac_ext <<_ACEOF
5750      program main
5751
5752      end
5753_ACEOF
5754rm -f conftest.$ac_objext
5755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756  (eval $ac_compile) 2>conftest.er1
5757  ac_status=$?
5758  grep -v '^ *+' conftest.er1 >conftest.err
5759  rm -f conftest.er1
5760  cat conftest.err >&5
5761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762  (exit $ac_status); } &&
5763         { ac_try='test -z "$ac_f77_werror_flag"
5764                         || test ! -s conftest.err'
5765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766  (eval $ac_try) 2>&5
5767  ac_status=$?
5768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769  (exit $ac_status); }; } &&
5770         { ac_try='test -s conftest.$ac_objext'
5771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772  (eval $ac_try) 2>&5
5773  ac_status=$?
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); }; }; then
5776  ac_cv_prog_f77_g=yes
5777else
5778  echo "$as_me: failed program was:" >&5
5779sed 's/^/| /' conftest.$ac_ext >&5
5780
5781ac_cv_prog_f77_g=no
5782fi
5783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5784
5785fi
5786echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5787echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5788if test "$ac_test_FFLAGS" = set; then
5789  FFLAGS=$ac_save_FFLAGS
5790elif test $ac_cv_prog_f77_g = yes; then
5791  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5792    FFLAGS="-g -O2"
5793  else
5794    FFLAGS="-g"
5795  fi
5796else
5797  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5798    FFLAGS="-O2"
5799  else
5800    FFLAGS=
5801  fi
5802fi
5803
5804G77=`test $ac_compiler_gnu = yes && echo yes`
5805ac_ext=c
5806ac_cpp='$CPP $CPPFLAGS'
5807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810
5811
5812
5813# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5814
5815# find the maximum length of command line arguments
5816echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5817echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5818if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5819  echo $ECHO_N "(cached) $ECHO_C" >&6
5820else
5821    i=0
5822  teststring="ABCD"
5823
5824  case $build_os in
5825  msdosdjgpp*)
5826    # On DJGPP, this test can blow up pretty badly due to problems in libc
5827    # (any single argument exceeding 2000 bytes causes a buffer overrun
5828    # during glob expansion).  Even if it were fixed, the result of this
5829    # check would be larger than it should be.
5830    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5831    ;;
5832
5833  gnu*)
5834    # Under GNU Hurd, this test is not required because there is
5835    # no limit to the length of command line arguments.
5836    # Libtool will interpret -1 as no limit whatsoever
5837    lt_cv_sys_max_cmd_len=-1;
5838    ;;
5839
5840  cygwin* | mingw*)
5841    # On Win9x/ME, this test blows up -- it succeeds, but takes
5842    # about 5 minutes as the teststring grows exponentially.
5843    # Worse, since 9x/ME are not pre-emptively multitasking,
5844    # you end up with a "frozen" computer, even though with patience
5845    # the test eventually succeeds (with a max line length of 256k).
5846    # Instead, let's just punt: use the minimum linelength reported by
5847    # all of the supported platforms: 8192 (on NT/2K/XP).
5848    lt_cv_sys_max_cmd_len=8192;
5849    ;;
5850
5851  amigaos*)
5852    # On AmigaOS with pdksh, this test takes hours, literally.
5853    # So we just punt and use a minimum line length of 8192.
5854    lt_cv_sys_max_cmd_len=8192;
5855    ;;
5856
5857  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5858    # This has been around since 386BSD, at least.  Likely further.
5859    if test -x /sbin/sysctl; then
5860      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5861    elif test -x /usr/sbin/sysctl; then
5862      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5863    else
5864      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5865    fi
5866    # And add a safety zone
5867    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5868    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5869    ;;
5870
5871  interix*)
5872    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5873    lt_cv_sys_max_cmd_len=196608
5874    ;;
5875
5876  osf*)
5877    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5878    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5879    # nice to cause kernel panics so lets avoid the loop below.
5880    # First set a reasonable default.
5881    lt_cv_sys_max_cmd_len=16384
5882    #
5883    if test -x /sbin/sysconfig; then
5884      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5885        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5886      esac
5887    fi
5888    ;;
5889  sco3.2v5*)
5890    lt_cv_sys_max_cmd_len=102400
5891    ;;
5892  sysv5* | sco5v6* | sysv4.2uw2*)
5893    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5894    if test -n "$kargmax"; then
5895      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5896    else
5897      lt_cv_sys_max_cmd_len=32768
5898    fi
5899    ;;
5900  *)
5901    # If test is not a shell built-in, we'll probably end up computing a
5902    # maximum length that is only half of the actual maximum length, but
5903    # we can't tell.
5904    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5905    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5906               = "XX$teststring") >/dev/null 2>&1 &&
5907            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5908            lt_cv_sys_max_cmd_len=$new_result &&
5909            test $i != 17 # 1/2 MB should be enough
5910    do
5911      i=`expr $i + 1`
5912      teststring=$teststring$teststring
5913    done
5914    teststring=
5915    # Add a significant safety factor because C++ compilers can tack on massive
5916    # amounts of additional arguments before passing them to the linker.
5917    # It appears as though 1/2 is a usable value.
5918    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5919    ;;
5920  esac
5921
5922fi
5923
5924if test -n $lt_cv_sys_max_cmd_len ; then
5925  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5926echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5927else
5928  echo "$as_me:$LINENO: result: none" >&5
5929echo "${ECHO_T}none" >&6
5930fi
5931
5932
5933
5934
5935# Check for command to grab the raw symbol name followed by C symbol from nm.
5936echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5937echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5938if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5939  echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941
5942# These are sane defaults that work on at least a few old systems.
5943# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5944
5945# Character class describing NM global symbol codes.
5946symcode='[BCDEGRST]'
5947
5948# Regexp to match symbols that can be accessed directly from C.
5949sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5950
5951# Transform an extracted symbol line into a proper C declaration
5952lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5953
5954# Transform an extracted symbol line into symbol name and symbol address
5955lt_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'"
5956
5957# Define system-specific variables.
5958case $host_os in
5959aix*)
5960  symcode='[BCDT]'
5961  ;;
5962cygwin* | mingw* | pw32*)
5963  symcode='[ABCDGISTW]'
5964  ;;
5965hpux*) # Its linker distinguishes data from code symbols
5966  if test "$host_cpu" = ia64; then
5967    symcode='[ABCDEGRST]'
5968  fi
5969  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5970  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'"
5971  ;;
5972linux*)
5973  if test "$host_cpu" = ia64; then
5974    symcode='[ABCDGIRSTW]'
5975    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5976    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'"
5977  fi
5978  ;;
5979irix* | nonstopux*)
5980  symcode='[BCDEGRST]'
5981  ;;
5982osf*)
5983  symcode='[BCDEGQRST]'
5984  ;;
5985solaris*)
5986  symcode='[BDRT]'
5987  ;;
5988sco3.2v5*)
5989  symcode='[DT]'
5990  ;;
5991sysv4.2uw2*)
5992  symcode='[DT]'
5993  ;;
5994sysv5* | sco5v6* | unixware* | OpenUNIX*)
5995  symcode='[ABDT]'
5996  ;;
5997sysv4)
5998  symcode='[DFNSTU]'
5999  ;;
6000esac
6001
6002# Handle CRLF in mingw tool chain
6003opt_cr=
6004case $build_os in
6005mingw*)
6006  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6007  ;;
6008esac
6009
6010# If we're using GNU nm, then use its standard symbol codes.
6011case `$NM -V 2>&1` in
6012*GNU* | *'with BFD'*)
6013  symcode='[ABCDGIRSTW]' ;;
6014esac
6015
6016# Try without a prefix undercore, then with it.
6017for ac_symprfx in "" "_"; do
6018
6019  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6020  symxfrm="\\1 $ac_symprfx\\2 \\2"
6021
6022  # Write the raw and C identifiers.
6023  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6024
6025  # Check to see that the pipe works correctly.
6026  pipe_works=no
6027
6028  rm -f conftest*
6029  cat > conftest.$ac_ext <<EOF
6030#ifdef __cplusplus
6031extern "C" {
6032#endif
6033char nm_test_var;
6034void nm_test_func(){}
6035#ifdef __cplusplus
6036}
6037#endif
6038int main(){nm_test_var='a';nm_test_func();return(0);}
6039EOF
6040
6041  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042  (eval $ac_compile) 2>&5
6043  ac_status=$?
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); }; then
6046    # Now try to grab the symbols.
6047    nlist=conftest.nm
6048    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6049  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6050  ac_status=$?
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); } && test -s "$nlist"; then
6053      # Try sorting and uniquifying the output.
6054      if sort "$nlist" | uniq > "$nlist"T; then
6055        mv -f "$nlist"T "$nlist"
6056      else
6057        rm -f "$nlist"T
6058      fi
6059
6060      # Make sure that we snagged all the symbols we need.
6061      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6062        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6063          cat <<EOF > conftest.$ac_ext
6064#ifdef __cplusplus
6065extern "C" {
6066#endif
6067
6068EOF
6069          # Now generate the symbol file.
6070          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6071
6072          cat <<EOF >> conftest.$ac_ext
6073#if defined (__STDC__) && __STDC__
6074# define lt_ptr_t void *
6075#else
6076# define lt_ptr_t char *
6077# define const
6078#endif
6079
6080/* The mapping between symbol names and symbols. */
6081const struct {
6082  const char *name;
6083  lt_ptr_t address;
6084}
6085lt_preloaded_symbols[] =
6086{
6087EOF
6088          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6089          cat <<\EOF >> conftest.$ac_ext
6090  {0, (lt_ptr_t) 0}
6091};
6092
6093#ifdef __cplusplus
6094}
6095#endif
6096EOF
6097          # Now try linking the two files.
6098          mv conftest.$ac_objext conftstm.$ac_objext
6099          lt_save_LIBS="$LIBS"
6100          lt_save_CFLAGS="$CFLAGS"
6101          LIBS="conftstm.$ac_objext"
6102          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6103          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104  (eval $ac_link) 2>&5
6105  ac_status=$?
6106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6108            pipe_works=yes
6109          fi
6110          LIBS="$lt_save_LIBS"
6111          CFLAGS="$lt_save_CFLAGS"
6112        else
6113          echo "cannot find nm_test_func in $nlist" >&5
6114        fi
6115      else
6116        echo "cannot find nm_test_var in $nlist" >&5
6117      fi
6118    else
6119      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6120    fi
6121  else
6122    echo "$progname: failed program was:" >&5
6123    cat conftest.$ac_ext >&5
6124  fi
6125  rm -f conftest* conftst*
6126
6127  # Do not use the global_symbol_pipe unless it works.
6128  if test "$pipe_works" = yes; then
6129    break
6130  else
6131    lt_cv_sys_global_symbol_pipe=
6132  fi
6133done
6134
6135fi
6136
6137if test -z "$lt_cv_sys_global_symbol_pipe"; then
6138  lt_cv_sys_global_symbol_to_cdecl=
6139fi
6140if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6141  echo "$as_me:$LINENO: result: failed" >&5
6142echo "${ECHO_T}failed" >&6
6143else
6144  echo "$as_me:$LINENO: result: ok" >&5
6145echo "${ECHO_T}ok" >&6
6146fi
6147
6148echo "$as_me:$LINENO: checking for objdir" >&5
6149echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6150if test "${lt_cv_objdir+set}" = set; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153  rm -f .libs 2>/dev/null
6154mkdir .libs 2>/dev/null
6155if test -d .libs; then
6156  lt_cv_objdir=.libs
6157else
6158  # MS-DOS does not allow filenames that begin with a dot.
6159  lt_cv_objdir=_libs
6160fi
6161rmdir .libs 2>/dev/null
6162fi
6163echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6164echo "${ECHO_T}$lt_cv_objdir" >&6
6165objdir=$lt_cv_objdir
6166
6167
6168
6169
6170
6171case $host_os in
6172aix3*)
6173  # AIX sometimes has problems with the GCC collect2 program.  For some
6174  # reason, if we set the COLLECT_NAMES environment variable, the problems
6175  # vanish in a puff of smoke.
6176  if test "X${COLLECT_NAMES+set}" != Xset; then
6177    COLLECT_NAMES=
6178    export COLLECT_NAMES
6179  fi
6180  ;;
6181esac
6182
6183# Sed substitution that helps us do robust quoting.  It backslashifies
6184# metacharacters that are still active within double-quoted strings.
6185Xsed='sed -e 1s/^X//'
6186sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6187
6188# Same as above, but do not quote variable references.
6189double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6190
6191# Sed substitution to delay expansion of an escaped shell variable in a
6192# double_quote_subst'ed string.
6193delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6194
6195# Sed substitution to avoid accidental globbing in evaled expressions
6196no_glob_subst='s/\*/\\\*/g'
6197
6198# Constants:
6199rm="rm -f"
6200
6201# Global variables:
6202default_ofile=libtool
6203can_build_shared=yes
6204
6205# All known linkers require a `.a' archive for static linking (except MSVC,
6206# which needs '.lib').
6207libext=a
6208ltmain="$ac_aux_dir/ltmain.sh"
6209ofile="$default_ofile"
6210with_gnu_ld="$lt_cv_prog_gnu_ld"
6211
6212if test -n "$ac_tool_prefix"; then
6213  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6214set dummy ${ac_tool_prefix}ar; ac_word=$2
6215echo "$as_me:$LINENO: checking for $ac_word" >&5
6216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217if test "${ac_cv_prog_AR+set}" = set; then
6218  echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220  if test -n "$AR"; then
6221  ac_cv_prog_AR="$AR" # Let the user override the test.
6222else
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226  IFS=$as_save_IFS
6227  test -z "$as_dir" && as_dir=.
6228  for ac_exec_ext in '' $ac_executable_extensions; do
6229  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230    ac_cv_prog_AR="${ac_tool_prefix}ar"
6231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232    break 2
6233  fi
6234done
6235done
6236
6237fi
6238fi
6239AR=$ac_cv_prog_AR
6240if test -n "$AR"; then
6241  echo "$as_me:$LINENO: result: $AR" >&5
6242echo "${ECHO_T}$AR" >&6
6243else
6244  echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6
6246fi
6247
6248fi
6249if test -z "$ac_cv_prog_AR"; then
6250  ac_ct_AR=$AR
6251  # Extract the first word of "ar", so it can be a program name with args.
6252set dummy ar; ac_word=$2
6253echo "$as_me:$LINENO: checking for $ac_word" >&5
6254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6255if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6256  echo $ECHO_N "(cached) $ECHO_C" >&6
6257else
6258  if test -n "$ac_ct_AR"; then
6259  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6260else
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264  IFS=$as_save_IFS
6265  test -z "$as_dir" && as_dir=.
6266  for ac_exec_ext in '' $ac_executable_extensions; do
6267  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268    ac_cv_prog_ac_ct_AR="ar"
6269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270    break 2
6271  fi
6272done
6273done
6274
6275  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6276fi
6277fi
6278ac_ct_AR=$ac_cv_prog_ac_ct_AR
6279if test -n "$ac_ct_AR"; then
6280  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6281echo "${ECHO_T}$ac_ct_AR" >&6
6282else
6283  echo "$as_me:$LINENO: result: no" >&5
6284echo "${ECHO_T}no" >&6
6285fi
6286
6287  AR=$ac_ct_AR
6288else
6289  AR="$ac_cv_prog_AR"
6290fi
6291
6292if test -n "$ac_tool_prefix"; then
6293  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6294set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6295echo "$as_me:$LINENO: checking for $ac_word" >&5
6296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6297if test "${ac_cv_prog_RANLIB+set}" = set; then
6298  echo $ECHO_N "(cached) $ECHO_C" >&6
6299else
6300  if test -n "$RANLIB"; then
6301  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306  IFS=$as_save_IFS
6307  test -z "$as_dir" && as_dir=.
6308  for ac_exec_ext in '' $ac_executable_extensions; do
6309  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312    break 2
6313  fi
6314done
6315done
6316
6317fi
6318fi
6319RANLIB=$ac_cv_prog_RANLIB
6320if test -n "$RANLIB"; then
6321  echo "$as_me:$LINENO: result: $RANLIB" >&5
6322echo "${ECHO_T}$RANLIB" >&6
6323else
6324  echo "$as_me:$LINENO: result: no" >&5
6325echo "${ECHO_T}no" >&6
6326fi
6327
6328fi
6329if test -z "$ac_cv_prog_RANLIB"; then
6330  ac_ct_RANLIB=$RANLIB
6331  # Extract the first word of "ranlib", so it can be a program name with args.
6332set dummy ranlib; ac_word=$2
6333echo "$as_me:$LINENO: checking for $ac_word" >&5
6334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6335if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6336  echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338  if test -n "$ac_ct_RANLIB"; then
6339  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6340else
6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344  IFS=$as_save_IFS
6345  test -z "$as_dir" && as_dir=.
6346  for ac_exec_ext in '' $ac_executable_extensions; do
6347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348    ac_cv_prog_ac_ct_RANLIB="ranlib"
6349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350    break 2
6351  fi
6352done
6353done
6354
6355  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6356fi
6357fi
6358ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6359if test -n "$ac_ct_RANLIB"; then
6360  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6361echo "${ECHO_T}$ac_ct_RANLIB" >&6
6362else
6363  echo "$as_me:$LINENO: result: no" >&5
6364echo "${ECHO_T}no" >&6
6365fi
6366
6367  RANLIB=$ac_ct_RANLIB
6368else
6369  RANLIB="$ac_cv_prog_RANLIB"
6370fi
6371
6372if test -n "$ac_tool_prefix"; then
6373  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}strip; ac_word=$2
6375echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377if test "${ac_cv_prog_STRIP+set}" = set; then
6378  echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380  if test -n "$STRIP"; then
6381  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386  IFS=$as_save_IFS
6387  test -z "$as_dir" && as_dir=.
6388  for ac_exec_ext in '' $ac_executable_extensions; do
6389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392    break 2
6393  fi
6394done
6395done
6396
6397fi
6398fi
6399STRIP=$ac_cv_prog_STRIP
6400if test -n "$STRIP"; then
6401  echo "$as_me:$LINENO: result: $STRIP" >&5
6402echo "${ECHO_T}$STRIP" >&6
6403else
6404  echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406fi
6407
6408fi
6409if test -z "$ac_cv_prog_STRIP"; then
6410  ac_ct_STRIP=$STRIP
6411  # Extract the first word of "strip", so it can be a program name with args.
6412set dummy strip; ac_word=$2
6413echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6416  echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418  if test -n "$ac_ct_STRIP"; then
6419  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424  IFS=$as_save_IFS
6425  test -z "$as_dir" && as_dir=.
6426  for ac_exec_ext in '' $ac_executable_extensions; do
6427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428    ac_cv_prog_ac_ct_STRIP="strip"
6429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430    break 2
6431  fi
6432done
6433done
6434
6435  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6436fi
6437fi
6438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6439if test -n "$ac_ct_STRIP"; then
6440  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6441echo "${ECHO_T}$ac_ct_STRIP" >&6
6442else
6443  echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445fi
6446
6447  STRIP=$ac_ct_STRIP
6448else
6449  STRIP="$ac_cv_prog_STRIP"
6450fi
6451
6452
6453old_CC="$CC"
6454old_CFLAGS="$CFLAGS"
6455
6456# Set sane defaults for various variables
6457test -z "$AR" && AR=ar
6458test -z "$AR_FLAGS" && AR_FLAGS=cru
6459test -z "$AS" && AS=as
6460test -z "$CC" && CC=cc
6461test -z "$LTCC" && LTCC=$CC
6462test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6463test -z "$DLLTOOL" && DLLTOOL=dlltool
6464test -z "$LD" && LD=ld
6465test -z "$LN_S" && LN_S="ln -s"
6466test -z "$MAGIC_CMD" && MAGIC_CMD=file
6467test -z "$NM" && NM=nm
6468test -z "$SED" && SED=sed
6469test -z "$OBJDUMP" && OBJDUMP=objdump
6470test -z "$RANLIB" && RANLIB=:
6471test -z "$STRIP" && STRIP=:
6472test -z "$ac_objext" && ac_objext=o
6473
6474# Determine commands to create old-style static archives.
6475old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6476old_postinstall_cmds='chmod 644 $oldlib'
6477old_postuninstall_cmds=
6478
6479if test -n "$RANLIB"; then
6480  case $host_os in
6481  openbsd*)
6482    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6483    ;;
6484  *)
6485    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6486    ;;
6487  esac
6488  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6489fi
6490
6491for cc_temp in $compiler""; do
6492  case $cc_temp in
6493    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6494    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6495    \-*) ;;
6496    *) break;;
6497  esac
6498done
6499cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6500
6501
6502# Only perform the check for file, if the check method requires it
6503case $deplibs_check_method in
6504file_magic*)
6505  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6506    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6507echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6508if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6509  echo $ECHO_N "(cached) $ECHO_C" >&6
6510else
6511  case $MAGIC_CMD in
6512[\\/*] |  ?:[\\/]*)
6513  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6514  ;;
6515*)
6516  lt_save_MAGIC_CMD="$MAGIC_CMD"
6517  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6518  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6519  for ac_dir in $ac_dummy; do
6520    IFS="$lt_save_ifs"
6521    test -z "$ac_dir" && ac_dir=.
6522    if test -f $ac_dir/${ac_tool_prefix}file; then
6523      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6524      if test -n "$file_magic_test_file"; then
6525        case $deplibs_check_method in
6526        "file_magic "*)
6527          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6528          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6529          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6530            $EGREP "$file_magic_regex" > /dev/null; then
6531            :
6532          else
6533            cat <<EOF 1>&2
6534
6535*** Warning: the command libtool uses to detect shared libraries,
6536*** $file_magic_cmd, produces output that libtool cannot recognize.
6537*** The result is that libtool may fail to recognize shared libraries
6538*** as such.  This will affect the creation of libtool libraries that
6539*** depend on shared libraries, but programs linked with such libtool
6540*** libraries will work regardless of this problem.  Nevertheless, you
6541*** may want to report the problem to your system manager and/or to
6542*** bug-libtool@gnu.org
6543
6544EOF
6545          fi ;;
6546        esac
6547      fi
6548      break
6549    fi
6550  done
6551  IFS="$lt_save_ifs"
6552  MAGIC_CMD="$lt_save_MAGIC_CMD"
6553  ;;
6554esac
6555fi
6556
6557MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6558if test -n "$MAGIC_CMD"; then
6559  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6560echo "${ECHO_T}$MAGIC_CMD" >&6
6561else
6562  echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6
6564fi
6565
6566if test -z "$lt_cv_path_MAGIC_CMD"; then
6567  if test -n "$ac_tool_prefix"; then
6568    echo "$as_me:$LINENO: checking for file" >&5
6569echo $ECHO_N "checking for file... $ECHO_C" >&6
6570if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6571  echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573  case $MAGIC_CMD in
6574[\\/*] |  ?:[\\/]*)
6575  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6576  ;;
6577*)
6578  lt_save_MAGIC_CMD="$MAGIC_CMD"
6579  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6580  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6581  for ac_dir in $ac_dummy; do
6582    IFS="$lt_save_ifs"
6583    test -z "$ac_dir" && ac_dir=.
6584    if test -f $ac_dir/file; then
6585      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6586      if test -n "$file_magic_test_file"; then
6587        case $deplibs_check_method in
6588        "file_magic "*)
6589          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6590          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6591          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6592            $EGREP "$file_magic_regex" > /dev/null; then
6593            :
6594          else
6595            cat <<EOF 1>&2
6596
6597*** Warning: the command libtool uses to detect shared libraries,
6598*** $file_magic_cmd, produces output that libtool cannot recognize.
6599*** The result is that libtool may fail to recognize shared libraries
6600*** as such.  This will affect the creation of libtool libraries that
6601*** depend on shared libraries, but programs linked with such libtool
6602*** libraries will work regardless of this problem.  Nevertheless, you
6603*** may want to report the problem to your system manager and/or to
6604*** bug-libtool@gnu.org
6605
6606EOF
6607          fi ;;
6608        esac
6609      fi
6610      break
6611    fi
6612  done
6613  IFS="$lt_save_ifs"
6614  MAGIC_CMD="$lt_save_MAGIC_CMD"
6615  ;;
6616esac
6617fi
6618
6619MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6620if test -n "$MAGIC_CMD"; then
6621  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6622echo "${ECHO_T}$MAGIC_CMD" >&6
6623else
6624  echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6
6626fi
6627
6628  else
6629    MAGIC_CMD=:
6630  fi
6631fi
6632
6633  fi
6634  ;;
6635esac
6636
6637enable_dlopen=no
6638enable_win32_dll=no
6639
6640# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6641if test "${enable_libtool_lock+set}" = set; then
6642  enableval="$enable_libtool_lock"
6643
6644fi;
6645test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6646
6647
6648# Check whether --with-pic or --without-pic was given.
6649if test "${with_pic+set}" = set; then
6650  withval="$with_pic"
6651  pic_mode="$withval"
6652else
6653  pic_mode=default
6654fi;
6655test -z "$pic_mode" && pic_mode=default
6656
6657# Use C for the default configuration in the libtool script
6658tagname=
6659lt_save_CC="$CC"
6660ac_ext=c
6661ac_cpp='$CPP $CPPFLAGS'
6662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664ac_compiler_gnu=$ac_cv_c_compiler_gnu
6665
6666
6667# Source file extension for C test sources.
6668ac_ext=c
6669
6670# Object file extension for compiled C test sources.
6671objext=o
6672objext=$objext
6673
6674# Code to be used in simple compile tests
6675lt_simple_compile_test_code="int some_variable = 0;\n"
6676
6677# Code to be used in simple link tests
6678lt_simple_link_test_code='int main(){return(0);}\n'
6679
6680
6681# If no C compiler was specified, use CC.
6682LTCC=${LTCC-"$CC"}
6683
6684# If no C compiler flags were specified, use CFLAGS.
6685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6686
6687# Allow CC to be a program name with arguments.
6688compiler=$CC
6689
6690
6691# save warnings/boilerplate of simple test code
6692ac_outfile=conftest.$ac_objext
6693printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6694eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6695_lt_compiler_boilerplate=`cat conftest.err`
6696$rm conftest*
6697
6698ac_outfile=conftest.$ac_objext
6699printf "$lt_simple_link_test_code" >conftest.$ac_ext
6700eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6701_lt_linker_boilerplate=`cat conftest.err`
6702$rm conftest*
6703
6704
6705## CAVEAT EMPTOR:
6706## There is no encapsulation within the following macros, do not change
6707## the running order or otherwise move them around unless you know exactly
6708## what you are doing...
6709
6710lt_prog_compiler_no_builtin_flag=
6711
6712if test "$GCC" = yes; then
6713  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6714
6715
6716echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6717echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6718if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6719  echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721  lt_cv_prog_compiler_rtti_exceptions=no
6722  ac_outfile=conftest.$ac_objext
6723   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6724   lt_compiler_flag="-fno-rtti -fno-exceptions"
6725   # Insert the option either (1) after the last *FLAGS variable, or
6726   # (2) before a word containing "conftest.", or (3) at the end.
6727   # Note that $ac_compile itself does not contain backslashes and begins
6728   # with a dollar sign (not a hyphen), so the echo should work correctly.
6729   # The option is referenced via a variable to avoid confusing sed.
6730   lt_compile=`echo "$ac_compile" | $SED \
6731   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6732   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6733   -e 's:$: $lt_compiler_flag:'`
6734   (eval echo "\"\$as_me:6734: $lt_compile\"" >&5)
6735   (eval "$lt_compile" 2>conftest.err)
6736   ac_status=$?
6737   cat conftest.err >&5
6738   echo "$as_me:6738: \$? = $ac_status" >&5
6739   if (exit $ac_status) && test -s "$ac_outfile"; then
6740     # The compiler can only warn and ignore the option if not recognized
6741     # So say no if there are warnings other than the usual output.
6742     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6743     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6744     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6745       lt_cv_prog_compiler_rtti_exceptions=yes
6746     fi
6747   fi
6748   $rm conftest*
6749
6750fi
6751echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6752echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6753
6754if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6755    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6756else
6757    :
6758fi
6759
6760fi
6761
6762lt_prog_compiler_wl=
6763lt_prog_compiler_pic=
6764lt_prog_compiler_static=
6765
6766echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6767echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6768
6769  if test "$GCC" = yes; then
6770    lt_prog_compiler_wl='-Wl,'
6771    lt_prog_compiler_static='-static'
6772
6773    case $host_os in
6774      aix*)
6775      # All AIX code is PIC.
6776      if test "$host_cpu" = ia64; then
6777        # AIX 5 now supports IA64 processor
6778        lt_prog_compiler_static='-Bstatic'
6779      fi
6780      ;;
6781
6782    amigaos*)
6783      # FIXME: we need at least 68020 code to build shared libraries, but
6784      # adding the `-m68020' flag to GCC prevents building anything better,
6785      # like `-m68040'.
6786      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6787      ;;
6788
6789    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6790      # PIC is the default for these OSes.
6791      ;;
6792
6793    mingw* | pw32* | os2*)
6794      # This hack is so that the source file can tell whether it is being
6795      # built for inclusion in a dll (and should export symbols for example).
6796      lt_prog_compiler_pic='-DDLL_EXPORT'
6797      ;;
6798
6799    darwin* | rhapsody*)
6800      # PIC is the default on this platform
6801      # Common symbols not allowed in MH_DYLIB files
6802      lt_prog_compiler_pic='-fno-common'
6803      ;;
6804
6805    interix3*)
6806      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6807      # Instead, we relocate shared libraries at runtime.
6808      ;;
6809
6810    msdosdjgpp*)
6811      # Just because we use GCC doesn't mean we suddenly get shared libraries
6812      # on systems that don't support them.
6813      lt_prog_compiler_can_build_shared=no
6814      enable_shared=no
6815      ;;
6816
6817    sysv4*MP*)
6818      if test -d /usr/nec; then
6819        lt_prog_compiler_pic=-Kconform_pic
6820      fi
6821      ;;
6822
6823    hpux*)
6824      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6825      # not for PA HP-UX.
6826      case $host_cpu in
6827      hppa*64*|ia64*)
6828        # +Z the default
6829        ;;
6830      *)
6831        lt_prog_compiler_pic='-fPIC'
6832        ;;
6833      esac
6834      ;;
6835
6836    *)
6837      lt_prog_compiler_pic='-fPIC'
6838      ;;
6839    esac
6840  else
6841    # PORTME Check for flag to pass linker flags through the system compiler.
6842    case $host_os in
6843    aix*)
6844      lt_prog_compiler_wl='-Wl,'
6845      if test "$host_cpu" = ia64; then
6846        # AIX 5 now supports IA64 processor
6847        lt_prog_compiler_static='-Bstatic'
6848      else
6849        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6850      fi
6851      ;;
6852      darwin*)
6853        # PIC is the default on this platform
6854        # Common symbols not allowed in MH_DYLIB files
6855       case $cc_basename in
6856         xlc*)
6857         lt_prog_compiler_pic='-qnocommon'
6858         lt_prog_compiler_wl='-Wl,'
6859         ;;
6860       esac
6861       ;;
6862
6863    mingw* | pw32* | os2*)
6864      # This hack is so that the source file can tell whether it is being
6865      # built for inclusion in a dll (and should export symbols for example).
6866      lt_prog_compiler_pic='-DDLL_EXPORT'
6867      ;;
6868
6869    hpux9* | hpux10* | hpux11*)
6870      lt_prog_compiler_wl='-Wl,'
6871      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6872      # not for PA HP-UX.
6873      case $host_cpu in
6874      hppa*64*|ia64*)
6875        # +Z the default
6876        ;;
6877      *)
6878        lt_prog_compiler_pic='+Z'
6879        ;;
6880      esac
6881      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6882      lt_prog_compiler_static='${wl}-a ${wl}archive'
6883      ;;
6884
6885    irix5* | irix6* | nonstopux*)
6886      lt_prog_compiler_wl='-Wl,'
6887      # PIC (with -KPIC) is the default.
6888      lt_prog_compiler_static='-non_shared'
6889      ;;
6890
6891    newsos6)
6892      lt_prog_compiler_pic='-KPIC'
6893      lt_prog_compiler_static='-Bstatic'
6894      ;;
6895
6896    linux*)
6897      case $cc_basename in
6898      icc* | ecc*)
6899        lt_prog_compiler_wl='-Wl,'
6900        lt_prog_compiler_pic='-KPIC'
6901        lt_prog_compiler_static='-static'
6902        ;;
6903      pgcc* | pgf77* | pgf90* | pgf95*)
6904        # Portland Group compilers (*not* the Pentium gcc compiler,
6905        # which looks to be a dead project)
6906        lt_prog_compiler_wl='-Wl,'
6907        lt_prog_compiler_pic='-fpic'
6908        lt_prog_compiler_static='-Bstatic'
6909        ;;
6910      ccc*)
6911        lt_prog_compiler_wl='-Wl,'
6912        # All Alpha code is PIC.
6913        lt_prog_compiler_static='-non_shared'
6914        ;;
6915      esac
6916      ;;
6917
6918    osf3* | osf4* | osf5*)
6919      lt_prog_compiler_wl='-Wl,'
6920      # All OSF/1 code is PIC.
6921      lt_prog_compiler_static='-non_shared'
6922      ;;
6923
6924    solaris*)
6925      lt_prog_compiler_pic='-KPIC'
6926      lt_prog_compiler_static='-Bstatic'
6927      case $cc_basename in
6928      f77* | f90* | f95*)
6929        lt_prog_compiler_wl='-Qoption ld ';;
6930      *)
6931        lt_prog_compiler_wl='-Wl,';;
6932      esac
6933      ;;
6934
6935    sunos4*)
6936      lt_prog_compiler_wl='-Qoption ld '
6937      lt_prog_compiler_pic='-PIC'
6938      lt_prog_compiler_static='-Bstatic'
6939      ;;
6940
6941    sysv4 | sysv4.2uw2* | sysv4.3*)
6942      lt_prog_compiler_wl='-Wl,'
6943      lt_prog_compiler_pic='-KPIC'
6944      lt_prog_compiler_static='-Bstatic'
6945      ;;
6946
6947    sysv4*MP*)
6948      if test -d /usr/nec ;then
6949        lt_prog_compiler_pic='-Kconform_pic'
6950        lt_prog_compiler_static='-Bstatic'
6951      fi
6952      ;;
6953
6954    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6955      lt_prog_compiler_wl='-Wl,'
6956      lt_prog_compiler_pic='-KPIC'
6957      lt_prog_compiler_static='-Bstatic'
6958      ;;
6959
6960    unicos*)
6961      lt_prog_compiler_wl='-Wl,'
6962      lt_prog_compiler_can_build_shared=no
6963      ;;
6964
6965    uts4*)
6966      lt_prog_compiler_pic='-pic'
6967      lt_prog_compiler_static='-Bstatic'
6968      ;;
6969
6970    *)
6971      lt_prog_compiler_can_build_shared=no
6972      ;;
6973    esac
6974  fi
6975
6976echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6977echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6978
6979#
6980# Check to make sure the PIC flag actually works.
6981#
6982if test -n "$lt_prog_compiler_pic"; then
6983
6984echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6985echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6986if test "${lt_prog_compiler_pic_works+set}" = set; then
6987  echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989  lt_prog_compiler_pic_works=no
6990  ac_outfile=conftest.$ac_objext
6991   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6992   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6993   # Insert the option either (1) after the last *FLAGS variable, or
6994   # (2) before a word containing "conftest.", or (3) at the end.
6995   # Note that $ac_compile itself does not contain backslashes and begins
6996   # with a dollar sign (not a hyphen), so the echo should work correctly.
6997   # The option is referenced via a variable to avoid confusing sed.
6998   lt_compile=`echo "$ac_compile" | $SED \
6999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001   -e 's:$: $lt_compiler_flag:'`
7002   (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003   (eval "$lt_compile" 2>conftest.err)
7004   ac_status=$?
7005   cat conftest.err >&5
7006   echo "$as_me:7006: \$? = $ac_status" >&5
7007   if (exit $ac_status) && test -s "$ac_outfile"; then
7008     # The compiler can only warn and ignore the option if not recognized
7009     # So say no if there are warnings other than the usual output.
7010     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7011     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7012     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7013       lt_prog_compiler_pic_works=yes
7014     fi
7015   fi
7016   $rm conftest*
7017
7018fi
7019echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7020echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7021
7022if test x"$lt_prog_compiler_pic_works" = xyes; then
7023    case $lt_prog_compiler_pic in
7024     "" | " "*) ;;
7025     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7026     esac
7027else
7028    lt_prog_compiler_pic=
7029     lt_prog_compiler_can_build_shared=no
7030fi
7031
7032fi
7033case $host_os in
7034  # For platforms which do not support PIC, -DPIC is meaningless:
7035  *djgpp*)
7036    lt_prog_compiler_pic=
7037    ;;
7038  *)
7039    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7040    ;;
7041esac
7042
7043#
7044# Check to make sure the static flag actually works.
7045#
7046wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7047echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7048echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7049if test "${lt_prog_compiler_static_works+set}" = set; then
7050  echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052  lt_prog_compiler_static_works=no
7053   save_LDFLAGS="$LDFLAGS"
7054   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7055   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7056   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7057     # The linker can only warn and ignore the option if not recognized
7058     # So say no if there are warnings
7059     if test -s conftest.err; then
7060       # Append any errors to the config.log.
7061       cat conftest.err 1>&5
7062       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7063       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7064       if diff conftest.exp conftest.er2 >/dev/null; then
7065         lt_prog_compiler_static_works=yes
7066       fi
7067     else
7068       lt_prog_compiler_static_works=yes
7069     fi
7070   fi
7071   $rm conftest*
7072   LDFLAGS="$save_LDFLAGS"
7073
7074fi
7075echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7076echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7077
7078if test x"$lt_prog_compiler_static_works" = xyes; then
7079    :
7080else
7081    lt_prog_compiler_static=
7082fi
7083
7084
7085echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7086echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7087if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7088  echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090  lt_cv_prog_compiler_c_o=no
7091   $rm -r conftest 2>/dev/null
7092   mkdir conftest
7093   cd conftest
7094   mkdir out
7095   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7096
7097   lt_compiler_flag="-o out/conftest2.$ac_objext"
7098   # Insert the option either (1) after the last *FLAGS variable, or
7099   # (2) before a word containing "conftest.", or (3) at the end.
7100   # Note that $ac_compile itself does not contain backslashes and begins
7101   # with a dollar sign (not a hyphen), so the echo should work correctly.
7102   lt_compile=`echo "$ac_compile" | $SED \
7103   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7104   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7105   -e 's:$: $lt_compiler_flag:'`
7106   (eval echo "\"\$as_me:7106: $lt_compile\"" >&5)
7107   (eval "$lt_compile" 2>out/conftest.err)
7108   ac_status=$?
7109   cat out/conftest.err >&5
7110   echo "$as_me:7110: \$? = $ac_status" >&5
7111   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7112   then
7113     # The compiler can only warn and ignore the option if not recognized
7114     # So say no if there are warnings
7115     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7116     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7117     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7118       lt_cv_prog_compiler_c_o=yes
7119     fi
7120   fi
7121   chmod u+w . 2>&5
7122   $rm conftest*
7123   # SGI C++ compiler will create directory out/ii_files/ for
7124   # template instantiation
7125   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7126   $rm out/* && rmdir out
7127   cd ..
7128   rmdir conftest
7129   $rm conftest*
7130
7131fi
7132echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7133echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7134
7135
7136hard_links="nottested"
7137if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7138  # do not overwrite the value of need_locks provided by the user
7139  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7140echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7141  hard_links=yes
7142  $rm conftest*
7143  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7144  touch conftest.a
7145  ln conftest.a conftest.b 2>&5 || hard_links=no
7146  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7147  echo "$as_me:$LINENO: result: $hard_links" >&5
7148echo "${ECHO_T}$hard_links" >&6
7149  if test "$hard_links" = no; then
7150    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7151echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7152    need_locks=warn
7153  fi
7154else
7155  need_locks=no
7156fi
7157
7158echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7159echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7160
7161  runpath_var=
7162  allow_undefined_flag=
7163  enable_shared_with_static_runtimes=no
7164  archive_cmds=
7165  archive_expsym_cmds=
7166  old_archive_From_new_cmds=
7167  old_archive_from_expsyms_cmds=
7168  export_dynamic_flag_spec=
7169  whole_archive_flag_spec=
7170  thread_safe_flag_spec=
7171  hardcode_libdir_flag_spec=
7172  hardcode_libdir_flag_spec_ld=
7173  hardcode_libdir_separator=
7174  hardcode_direct=no
7175  hardcode_minus_L=no
7176  hardcode_shlibpath_var=unsupported
7177  link_all_deplibs=unknown
7178  hardcode_automatic=no
7179  module_cmds=
7180  module_expsym_cmds=
7181  always_export_symbols=no
7182  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7183  # include_expsyms should be a list of space-separated symbols to be *always*
7184  # included in the symbol list
7185  include_expsyms=
7186  # exclude_expsyms can be an extended regexp of symbols to exclude
7187  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7188  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7189  # as well as any symbol that contains `d'.
7190  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7191  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7192  # platforms (ab)use it in PIC code, but their linkers get confused if
7193  # the symbol is explicitly referenced.  Since portable code cannot
7194  # rely on this symbol name, it's probably fine to never include it in
7195  # preloaded symbol tables.
7196  extract_expsyms_cmds=
7197  # Just being paranoid about ensuring that cc_basename is set.
7198  for cc_temp in $compiler""; do
7199  case $cc_temp in
7200    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7201    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7202    \-*) ;;
7203    *) break;;
7204  esac
7205done
7206cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7207
7208  case $host_os in
7209  cygwin* | mingw* | pw32*)
7210    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7211    # When not using gcc, we currently assume that we are using
7212    # Microsoft Visual C++.
7213    if test "$GCC" != yes; then
7214      with_gnu_ld=no
7215    fi
7216    ;;
7217  interix*)
7218    # we just hope/assume this is gcc and not c89 (= MSVC++)
7219    with_gnu_ld=yes
7220    ;;
7221  openbsd*)
7222    with_gnu_ld=no
7223    ;;
7224  esac
7225
7226  ld_shlibs=yes
7227  if test "$with_gnu_ld" = yes; then
7228    # If archive_cmds runs LD, not CC, wlarc should be empty
7229    wlarc='${wl}'
7230
7231    # Set some defaults for GNU ld with shared library support. These
7232    # are reset later if shared libraries are not supported. Putting them
7233    # here allows them to be overridden if necessary.
7234    runpath_var=LD_RUN_PATH
7235    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7236    export_dynamic_flag_spec='${wl}--export-dynamic'
7237    # ancient GNU ld didn't support --whole-archive et. al.
7238    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7239        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7240      else
7241        whole_archive_flag_spec=
7242    fi
7243    supports_anon_versioning=no
7244    case `$LD -v 2>/dev/null` in
7245      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7246      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7247      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7248      *\ 2.11.*) ;; # other 2.11 versions
7249      *) supports_anon_versioning=yes ;;
7250    esac
7251
7252    # See if GNU ld supports shared libraries.
7253    case $host_os in
7254    aix3* | aix4* | aix5*)
7255      # On AIX/PPC, the GNU linker is very broken
7256      if test "$host_cpu" != ia64; then
7257        ld_shlibs=no
7258        cat <<EOF 1>&2
7259
7260*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7261*** to be unable to reliably create shared libraries on AIX.
7262*** Therefore, libtool is disabling shared libraries support.  If you
7263*** really care for shared libraries, you may want to modify your PATH
7264*** so that a non-GNU linker is found, and then restart.
7265
7266EOF
7267      fi
7268      ;;
7269
7270    amigaos*)
7271      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)'
7272      hardcode_libdir_flag_spec='-L$libdir'
7273      hardcode_minus_L=yes
7274
7275      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7276      # that the semantics of dynamic libraries on AmigaOS, at least up
7277      # to version 4, is to share data among multiple programs linked
7278      # with the same dynamic library.  Since this doesn't match the
7279      # behavior of shared libraries on other platforms, we can't use
7280      # them.
7281      ld_shlibs=no
7282      ;;
7283
7284    beos*)
7285      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7286        allow_undefined_flag=unsupported
7287        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7288        # support --undefined.  This deserves some investigation.  FIXME
7289        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7290      else
7291        ld_shlibs=no
7292      fi
7293      ;;
7294
7295    cygwin* | mingw* | pw32*)
7296      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7297      # as there is no search path for DLLs.
7298      hardcode_libdir_flag_spec='-L$libdir'
7299      allow_undefined_flag=unsupported
7300      always_export_symbols=no
7301      enable_shared_with_static_runtimes=yes
7302      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7303
7304      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7305        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7306        # If the export-symbols file already is a .def file (1st line
7307        # is EXPORTS), use it as is; otherwise, prepend...
7308        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7309          cp $export_symbols $output_objdir/$soname.def;
7310        else
7311          echo EXPORTS > $output_objdir/$soname.def;
7312          cat $export_symbols >> $output_objdir/$soname.def;
7313        fi~
7314        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7315      else
7316        ld_shlibs=no
7317      fi
7318      ;;
7319
7320    interix3*)
7321      hardcode_direct=no
7322      hardcode_shlibpath_var=no
7323      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7324      export_dynamic_flag_spec='${wl}-E'
7325      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7326      # Instead, shared libraries are loaded at an image base (0x10000000 by
7327      # default) and relocated if they conflict, which is a slow very memory
7328      # consuming and fragmenting process.  To avoid this, we pick a random,
7329      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7330      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7331      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7332      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'
7333      ;;
7334
7335    linux*)
7336      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7337        tmp_addflag=
7338        case $cc_basename,$host_cpu in
7339        pgcc*)                          # Portland Group C compiler
7340          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'
7341          tmp_addflag=' $pic_flag'
7342          ;;
7343        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7344          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'
7345          tmp_addflag=' $pic_flag -Mnomain' ;;
7346        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7347          tmp_addflag=' -i_dynamic' ;;
7348        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7349          tmp_addflag=' -i_dynamic -nofor_main' ;;
7350        ifc* | ifort*)                  # Intel Fortran compiler
7351          tmp_addflag=' -nofor_main' ;;
7352        esac
7353        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7354
7355        if test $supports_anon_versioning = yes; then
7356          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7357  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7358  $echo "local: *; };" >> $output_objdir/$libname.ver~
7359          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7360        fi
7361      else
7362        ld_shlibs=no
7363      fi
7364      ;;
7365
7366    netbsd*)
7367      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7368        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7369        wlarc=
7370      else
7371        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7372        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7373      fi
7374      ;;
7375
7376    solaris*)
7377      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7378        ld_shlibs=no
7379        cat <<EOF 1>&2
7380
7381*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7382*** create shared libraries on Solaris systems.  Therefore, libtool
7383*** is disabling shared libraries support.  We urge you to upgrade GNU
7384*** binutils to release 2.9.1 or newer.  Another option is to modify
7385*** your PATH or compiler configuration so that the native linker is
7386*** used, and then restart.
7387
7388EOF
7389      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7390        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7391        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7392      else
7393        ld_shlibs=no
7394      fi
7395      ;;
7396
7397    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7398      case `$LD -v 2>&1` in
7399        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7400        ld_shlibs=no
7401        cat <<_LT_EOF 1>&2
7402
7403*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7404*** reliably create shared libraries on SCO systems.  Therefore, libtool
7405*** is disabling shared libraries support.  We urge you to upgrade GNU
7406*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7407*** your PATH or compiler configuration so that the native linker is
7408*** used, and then restart.
7409
7410_LT_EOF
7411        ;;
7412        *)
7413          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7414            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7415            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7416            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7417          else
7418            ld_shlibs=no
7419          fi
7420        ;;
7421      esac
7422      ;;
7423
7424    sunos4*)
7425      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7426      wlarc=
7427      hardcode_direct=yes
7428      hardcode_shlibpath_var=no
7429      ;;
7430
7431    *)
7432      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7433        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7434        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7435      else
7436        ld_shlibs=no
7437      fi
7438      ;;
7439    esac
7440
7441    if test "$ld_shlibs" = no; then
7442      runpath_var=
7443      hardcode_libdir_flag_spec=
7444      export_dynamic_flag_spec=
7445      whole_archive_flag_spec=
7446    fi
7447  else
7448    # PORTME fill in a description of your system's linker (not GNU ld)
7449    case $host_os in
7450    aix3*)
7451      allow_undefined_flag=unsupported
7452      always_export_symbols=yes
7453      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'
7454      # Note: this linker hardcodes the directories in LIBPATH if there
7455      # are no directories specified by -L.
7456      hardcode_minus_L=yes
7457      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7458        # Neither direct hardcoding nor static linking is supported with a
7459        # broken collect2.
7460        hardcode_direct=unsupported
7461      fi
7462      ;;
7463
7464    aix4* | aix5*)
7465      if test "$host_cpu" = ia64; then
7466        # On IA64, the linker does run time linking by default, so we don't
7467        # have to do anything special.
7468        aix_use_runtimelinking=no
7469        exp_sym_flag='-Bexport'
7470        no_entry_flag=""
7471      else
7472        # If we're using GNU nm, then we don't want the "-C" option.
7473        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7474        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7475          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'
7476        else
7477          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'
7478        fi
7479        aix_use_runtimelinking=no
7480
7481        # Test if we are trying to use run time linking or normal
7482        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7483        # need to do runtime linking.
7484        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7485          for ld_flag in $LDFLAGS; do
7486          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7487            aix_use_runtimelinking=yes
7488            break
7489          fi
7490          done
7491          ;;
7492        esac
7493
7494        exp_sym_flag='-bexport'
7495        no_entry_flag='-bnoentry'
7496      fi
7497
7498      # When large executables or shared objects are built, AIX ld can
7499      # have problems creating the table of contents.  If linking a library
7500      # or program results in "error TOC overflow" add -mminimal-toc to
7501      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7502      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7503
7504      archive_cmds=''
7505      hardcode_direct=yes
7506      hardcode_libdir_separator=':'
7507      link_all_deplibs=yes
7508
7509      if test "$GCC" = yes; then
7510        case $host_os in aix4.[012]|aix4.[012].*)
7511        # We only want to do this on AIX 4.2 and lower, the check
7512        # below for broken collect2 doesn't work under 4.3+
7513          collect2name=`${CC} -print-prog-name=collect2`
7514          if test -f "$collect2name" && \
7515           strings "$collect2name" | grep resolve_lib_name >/dev/null
7516          then
7517          # We have reworked collect2
7518          hardcode_direct=yes
7519          else
7520          # We have old collect2
7521          hardcode_direct=unsupported
7522          # It fails to find uninstalled libraries when the uninstalled
7523          # path is not listed in the libpath.  Setting hardcode_minus_L
7524          # to unsupported forces relinking
7525          hardcode_minus_L=yes
7526          hardcode_libdir_flag_spec='-L$libdir'
7527          hardcode_libdir_separator=
7528          fi
7529          ;;
7530        esac
7531        shared_flag='-shared'
7532        if test "$aix_use_runtimelinking" = yes; then
7533          shared_flag="$shared_flag "'${wl}-G'
7534        fi
7535      else
7536        # not using gcc
7537        if test "$host_cpu" = ia64; then
7538        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7539        # chokes on -Wl,-G. The following line is correct:
7540          shared_flag='-G'
7541        else
7542          if test "$aix_use_runtimelinking" = yes; then
7543            shared_flag='${wl}-G'
7544          else
7545            shared_flag='${wl}-bM:SRE'
7546          fi
7547        fi
7548      fi
7549
7550      # It seems that -bexpall does not export symbols beginning with
7551      # underscore (_), so it is better to generate a list of symbols to export.
7552      always_export_symbols=yes
7553      if test "$aix_use_runtimelinking" = yes; then
7554        # Warning - without using the other runtime loading flags (-brtl),
7555        # -berok will link without error, but may produce a broken library.
7556        allow_undefined_flag='-berok'
7557       # Determine the default libpath from the value encoded in an empty executable.
7558       cat >conftest.$ac_ext <<_ACEOF
7559/* confdefs.h.  */
7560_ACEOF
7561cat confdefs.h >>conftest.$ac_ext
7562cat >>conftest.$ac_ext <<_ACEOF
7563/* end confdefs.h.  */
7564
7565int
7566main ()
7567{
7568
7569  ;
7570  return 0;
7571}
7572_ACEOF
7573rm -f conftest.$ac_objext conftest$ac_exeext
7574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575  (eval $ac_link) 2>conftest.er1
7576  ac_status=$?
7577  grep -v '^ *+' conftest.er1 >conftest.err
7578  rm -f conftest.er1
7579  cat conftest.err >&5
7580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581  (exit $ac_status); } &&
7582         { ac_try='test -z "$ac_c_werror_flag"
7583                         || test ! -s conftest.err'
7584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585  (eval $ac_try) 2>&5
7586  ac_status=$?
7587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588  (exit $ac_status); }; } &&
7589         { ac_try='test -s conftest$ac_exeext'
7590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591  (eval $ac_try) 2>&5
7592  ac_status=$?
7593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594  (exit $ac_status); }; }; then
7595
7596aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7597}'`
7598# Check for a 64-bit object if we didn't find anything.
7599if 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; }
7600}'`; fi
7601else
7602  echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7605fi
7606rm -f conftest.err conftest.$ac_objext \
7607      conftest$ac_exeext conftest.$ac_ext
7608if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7609
7610       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7611        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"
7612       else
7613        if test "$host_cpu" = ia64; then
7614          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7615          allow_undefined_flag="-z nodefs"
7616          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"
7617        else
7618         # Determine the default libpath from the value encoded in an empty executable.
7619         cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h.  */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h.  */
7625
7626int
7627main ()
7628{
7629
7630  ;
7631  return 0;
7632}
7633_ACEOF
7634rm -f conftest.$ac_objext conftest$ac_exeext
7635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636  (eval $ac_link) 2>conftest.er1
7637  ac_status=$?
7638  grep -v '^ *+' conftest.er1 >conftest.err
7639  rm -f conftest.er1
7640  cat conftest.err >&5
7641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642  (exit $ac_status); } &&
7643         { ac_try='test -z "$ac_c_werror_flag"
7644                         || test ! -s conftest.err'
7645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646  (eval $ac_try) 2>&5
7647  ac_status=$?
7648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649  (exit $ac_status); }; } &&
7650         { ac_try='test -s conftest$ac_exeext'
7651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652  (eval $ac_try) 2>&5
7653  ac_status=$?
7654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655  (exit $ac_status); }; }; then
7656
7657aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7658}'`
7659# Check for a 64-bit object if we didn't find anything.
7660if 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; }
7661}'`; fi
7662else
7663  echo "$as_me: failed program was:" >&5
7664sed 's/^/| /' conftest.$ac_ext >&5
7665
7666fi
7667rm -f conftest.err conftest.$ac_objext \
7668      conftest$ac_exeext conftest.$ac_ext
7669if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7670
7671         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7672          # Warning - without using the other run time loading flags,
7673          # -berok will link without error, but may produce a broken library.
7674          no_undefined_flag=' ${wl}-bernotok'
7675          allow_undefined_flag=' ${wl}-berok'
7676          # Exported symbols can be pulled into shared objects from archives
7677          whole_archive_flag_spec='$convenience'
7678          archive_cmds_need_lc=yes
7679          # This is similar to how AIX traditionally builds its shared libraries.
7680          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'
7681        fi
7682      fi
7683      ;;
7684
7685    amigaos*)
7686      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)'
7687      hardcode_libdir_flag_spec='-L$libdir'
7688      hardcode_minus_L=yes
7689      # see comment about different semantics on the GNU ld section
7690      ld_shlibs=no
7691      ;;
7692
7693    bsdi[45]*)
7694      export_dynamic_flag_spec=-rdynamic
7695      ;;
7696
7697    cygwin* | mingw* | pw32*)
7698      # When not using gcc, we currently assume that we are using
7699      # Microsoft Visual C++.
7700      # hardcode_libdir_flag_spec is actually meaningless, as there is
7701      # no search path for DLLs.
7702      hardcode_libdir_flag_spec=' '
7703      allow_undefined_flag=unsupported
7704      # Tell ltmain to make .lib files, not .a files.
7705      libext=lib
7706      # Tell ltmain to make .dll files, not .so files.
7707      shrext_cmds=".dll"
7708      # FIXME: Setting linknames here is a bad hack.
7709      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7710      # The linker will automatically build a .lib file if we build a DLL.
7711      old_archive_From_new_cmds='true'
7712      # FIXME: Should let the user specify the lib program.
7713      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7714      fix_srcfile_path='`cygpath -w "$srcfile"`'
7715      enable_shared_with_static_runtimes=yes
7716      ;;
7717
7718    darwin* | rhapsody*)
7719      case $host_os in
7720        rhapsody* | darwin1.[012])
7721         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7722         ;;
7723       *) # Darwin 1.3 on
7724         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7725           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7726         else
7727           case ${MACOSX_DEPLOYMENT_TARGET} in
7728             10.[012])
7729               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7730               ;;
7731             10.*)
7732               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7733               ;;
7734           esac
7735         fi
7736         ;;
7737      esac
7738      archive_cmds_need_lc=no
7739      hardcode_direct=no
7740      hardcode_automatic=yes
7741      hardcode_shlibpath_var=unsupported
7742      whole_archive_flag_spec=''
7743      link_all_deplibs=yes
7744    if test "$GCC" = yes ; then
7745        output_verbose_link_cmd='echo'
7746        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7747      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7748      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7749      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}'
7750      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}'
7751    else
7752      case $cc_basename in
7753        xlc*)
7754         output_verbose_link_cmd='echo'
7755         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7756         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7757          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7758         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}'
7759          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}'
7760          ;;
7761       *)
7762         ld_shlibs=no
7763          ;;
7764      esac
7765    fi
7766      ;;
7767
7768    dgux*)
7769      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7770      hardcode_libdir_flag_spec='-L$libdir'
7771      hardcode_shlibpath_var=no
7772      ;;
7773
7774    freebsd1*)
7775      ld_shlibs=no
7776      ;;
7777
7778    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7779    # support.  Future versions do this automatically, but an explicit c++rt0.o
7780    # does not break anything, and helps significantly (at the cost of a little
7781    # extra space).
7782    freebsd2.2*)
7783      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7784      hardcode_libdir_flag_spec='-R$libdir'
7785      hardcode_direct=yes
7786      hardcode_shlibpath_var=no
7787      ;;
7788
7789    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7790    freebsd2*)
7791      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7792      hardcode_direct=yes
7793      hardcode_minus_L=yes
7794      hardcode_shlibpath_var=no
7795      ;;
7796
7797    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7798    freebsd* | kfreebsd*-gnu | dragonfly*)
7799      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7800      hardcode_libdir_flag_spec='-R$libdir'
7801      hardcode_direct=yes
7802      hardcode_shlibpath_var=no
7803      ;;
7804
7805    hpux9*)
7806      if test "$GCC" = yes; then
7807        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'
7808      else
7809        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'
7810      fi
7811      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7812      hardcode_libdir_separator=:
7813      hardcode_direct=yes
7814
7815      # hardcode_minus_L: Not really in the search PATH,
7816      # but as the default location of the library.
7817      hardcode_minus_L=yes
7818      export_dynamic_flag_spec='${wl}-E'
7819      ;;
7820
7821    hpux10*)
7822      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7823        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7824      else
7825        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7826      fi
7827      if test "$with_gnu_ld" = no; then
7828        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7829        hardcode_libdir_separator=:
7830
7831        hardcode_direct=yes
7832        export_dynamic_flag_spec='${wl}-E'
7833
7834        # hardcode_minus_L: Not really in the search PATH,
7835        # but as the default location of the library.
7836        hardcode_minus_L=yes
7837      fi
7838      ;;
7839
7840    hpux11*)
7841      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7842        case $host_cpu in
7843        hppa*64*)
7844          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7845          ;;
7846        ia64*)
7847          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7848          ;;
7849        *)
7850          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7851          ;;
7852        esac
7853      else
7854        case $host_cpu in
7855        hppa*64*)
7856          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7857          ;;
7858        ia64*)
7859          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7860          ;;
7861        *)
7862          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7863          ;;
7864        esac
7865      fi
7866      if test "$with_gnu_ld" = no; then
7867        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7868        hardcode_libdir_separator=:
7869
7870        case $host_cpu in
7871        hppa*64*|ia64*)
7872          hardcode_libdir_flag_spec_ld='+b $libdir'
7873          hardcode_direct=no
7874          hardcode_shlibpath_var=no
7875          ;;
7876        *)
7877          hardcode_direct=yes
7878          export_dynamic_flag_spec='${wl}-E'
7879
7880          # hardcode_minus_L: Not really in the search PATH,
7881          # but as the default location of the library.
7882          hardcode_minus_L=yes
7883          ;;
7884        esac
7885      fi
7886      ;;
7887
7888    irix5* | irix6* | nonstopux*)
7889      if test "$GCC" = yes; then
7890        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'
7891      else
7892        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'
7893        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7894      fi
7895      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7896      hardcode_libdir_separator=:
7897      link_all_deplibs=yes
7898      ;;
7899
7900    netbsd*)
7901      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7902        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7903      else
7904        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7905      fi
7906      hardcode_libdir_flag_spec='-R$libdir'
7907      hardcode_direct=yes
7908      hardcode_shlibpath_var=no
7909      ;;
7910
7911    newsos6)
7912      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7913      hardcode_direct=yes
7914      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7915      hardcode_libdir_separator=:
7916      hardcode_shlibpath_var=no
7917      ;;
7918
7919    openbsd*)
7920      hardcode_direct=yes
7921      hardcode_shlibpath_var=no
7922      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7923        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7924        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7925        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7926        export_dynamic_flag_spec='${wl}-E'
7927      else
7928       case $host_os in
7929         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7930           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7931           hardcode_libdir_flag_spec='-R$libdir'
7932           ;;
7933         *)
7934           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7935           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7936           ;;
7937       esac
7938      fi
7939      ;;
7940
7941    os2*)
7942      hardcode_libdir_flag_spec='-L$libdir'
7943      hardcode_minus_L=yes
7944      allow_undefined_flag=unsupported
7945      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'
7946      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7947      ;;
7948
7949    osf3*)
7950      if test "$GCC" = yes; then
7951        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7952        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'
7953      else
7954        allow_undefined_flag=' -expect_unresolved \*'
7955        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'
7956      fi
7957      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7958      hardcode_libdir_separator=:
7959      ;;
7960
7961    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7962      if test "$GCC" = yes; then
7963        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7964        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'
7965        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7966      else
7967        allow_undefined_flag=' -expect_unresolved \*'
7968        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'
7969        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7970        $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'
7971
7972        # Both c and cxx compiler support -rpath directly
7973        hardcode_libdir_flag_spec='-rpath $libdir'
7974      fi
7975      hardcode_libdir_separator=:
7976      ;;
7977
7978    solaris*)
7979      no_undefined_flag=' -z text'
7980      if test "$GCC" = yes; then
7981        wlarc='${wl}'
7982        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7983        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7984          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7985      else
7986        wlarc=''
7987        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7988        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7989        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7990      fi
7991      hardcode_libdir_flag_spec='-R$libdir'
7992      hardcode_shlibpath_var=no
7993      case $host_os in
7994      solaris2.[0-5] | solaris2.[0-5].*) ;;
7995      *)
7996        # The compiler driver will combine linker options so we
7997        # cannot just pass the convience library names through
7998        # without $wl, iff we do not link with $LD.
7999        # Luckily, gcc supports the same syntax we need for Sun Studio.
8000        # Supported since Solaris 2.6 (maybe 2.5.1?)
8001        case $wlarc in
8002        '')
8003          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8004        *)
8005          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' ;;
8006        esac ;;
8007      esac
8008      link_all_deplibs=yes
8009      ;;
8010
8011    sunos4*)
8012      if test "x$host_vendor" = xsequent; then
8013        # Use $CC to link under sequent, because it throws in some extra .o
8014        # files that make .init and .fini sections work.
8015        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8016      else
8017        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8018      fi
8019      hardcode_libdir_flag_spec='-L$libdir'
8020      hardcode_direct=yes
8021      hardcode_minus_L=yes
8022      hardcode_shlibpath_var=no
8023      ;;
8024
8025    sysv4)
8026      case $host_vendor in
8027        sni)
8028          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8029          hardcode_direct=yes # is this really true???
8030        ;;
8031        siemens)
8032          ## LD is ld it makes a PLAMLIB
8033          ## CC just makes a GrossModule.
8034          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8035          reload_cmds='$CC -r -o $output$reload_objs'
8036          hardcode_direct=no
8037        ;;
8038        motorola)
8039          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8040          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8041        ;;
8042      esac
8043      runpath_var='LD_RUN_PATH'
8044      hardcode_shlibpath_var=no
8045      ;;
8046
8047    sysv4.3*)
8048      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8049      hardcode_shlibpath_var=no
8050      export_dynamic_flag_spec='-Bexport'
8051      ;;
8052
8053    sysv4*MP*)
8054      if test -d /usr/nec; then
8055        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8056        hardcode_shlibpath_var=no
8057        runpath_var=LD_RUN_PATH
8058        hardcode_runpath_var=yes
8059        ld_shlibs=yes
8060      fi
8061      ;;
8062
8063    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8064      no_undefined_flag='${wl}-z,text'
8065      archive_cmds_need_lc=no
8066      hardcode_shlibpath_var=no
8067      runpath_var='LD_RUN_PATH'
8068
8069      if test "$GCC" = yes; then
8070        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8071        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8072      else
8073        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8074        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8075      fi
8076      ;;
8077
8078    sysv5* | sco3.2v5* | sco5v6*)
8079      # Note: We can NOT use -z defs as we might desire, because we do not
8080      # link with -lc, and that would cause any symbols used from libc to
8081      # always be unresolved, which means just about no library would
8082      # ever link correctly.  If we're not using GNU ld we use -z text
8083      # though, which does catch some bad symbols but isn't as heavy-handed
8084      # as -z defs.
8085      no_undefined_flag='${wl}-z,text'
8086      allow_undefined_flag='${wl}-z,nodefs'
8087      archive_cmds_need_lc=no
8088      hardcode_shlibpath_var=no
8089      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8090      hardcode_libdir_separator=':'
8091      link_all_deplibs=yes
8092      export_dynamic_flag_spec='${wl}-Bexport'
8093      runpath_var='LD_RUN_PATH'
8094
8095      if test "$GCC" = yes; then
8096        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8097        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8098      else
8099        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8100        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8101      fi
8102      ;;
8103
8104    uts4*)
8105      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8106      hardcode_libdir_flag_spec='-L$libdir'
8107      hardcode_shlibpath_var=no
8108      ;;
8109
8110    *)
8111      ld_shlibs=no
8112      ;;
8113    esac
8114  fi
8115
8116echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8117echo "${ECHO_T}$ld_shlibs" >&6
8118test "$ld_shlibs" = no && can_build_shared=no
8119
8120#
8121# Do we need to explicitly link libc?
8122#
8123case "x$archive_cmds_need_lc" in
8124x|xyes)
8125  # Assume -lc should be added
8126  archive_cmds_need_lc=yes
8127
8128  if test "$enable_shared" = yes && test "$GCC" = yes; then
8129    case $archive_cmds in
8130    *'~'*)
8131      # FIXME: we may have to deal with multi-command sequences.
8132      ;;
8133    '$CC '*)
8134      # Test whether the compiler implicitly links with -lc since on some
8135      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8136      # to ld, don't add -lc before -lgcc.
8137      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8138echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8139      $rm conftest*
8140      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8141
8142      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8143  (eval $ac_compile) 2>&5
8144  ac_status=$?
8145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146  (exit $ac_status); } 2>conftest.err; then
8147        soname=conftest
8148        lib=conftest
8149        libobjs=conftest.$ac_objext
8150        deplibs=
8151        wl=$lt_prog_compiler_wl
8152        pic_flag=$lt_prog_compiler_pic
8153        compiler_flags=-v
8154        linker_flags=-v
8155        verstring=
8156        output_objdir=.
8157        libname=conftest
8158        lt_save_allow_undefined_flag=$allow_undefined_flag
8159        allow_undefined_flag=
8160        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8161  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8162  ac_status=$?
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); }
8165        then
8166          archive_cmds_need_lc=no
8167        else
8168          archive_cmds_need_lc=yes
8169        fi
8170        allow_undefined_flag=$lt_save_allow_undefined_flag
8171      else
8172        cat conftest.err 1>&5
8173      fi
8174      $rm conftest*
8175      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8176echo "${ECHO_T}$archive_cmds_need_lc" >&6
8177      ;;
8178    esac
8179  fi
8180  ;;
8181esac
8182
8183echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8184echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8185library_names_spec=
8186libname_spec='lib$name'
8187soname_spec=
8188shrext_cmds=".so"
8189postinstall_cmds=
8190postuninstall_cmds=
8191finish_cmds=
8192finish_eval=
8193shlibpath_var=
8194shlibpath_overrides_runpath=unknown
8195version_type=none
8196dynamic_linker="$host_os ld.so"
8197sys_lib_dlsearch_path_spec="/lib /usr/lib"
8198if test "$GCC" = yes; then
8199  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8200  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8201    # if the path contains ";" then we assume it to be the separator
8202    # otherwise default to the standard path separator (i.e. ":") - it is
8203    # assumed that no part of a normal pathname contains ";" but that should
8204    # okay in the real world where ";" in dirpaths is itself problematic.
8205    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8206  else
8207    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8208  fi
8209else
8210  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8211fi
8212need_lib_prefix=unknown
8213hardcode_into_libs=no
8214
8215# when you set need_version to no, make sure it does not cause -set_version
8216# flags to be left without arguments
8217need_version=unknown
8218
8219case $host_os in
8220aix3*)
8221  version_type=linux
8222  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8223  shlibpath_var=LIBPATH
8224
8225  # AIX 3 has no versioning support, so we append a major version to the name.
8226  soname_spec='${libname}${release}${shared_ext}$major'
8227  ;;
8228
8229aix4* | aix5*)
8230  version_type=linux
8231  need_lib_prefix=no
8232  need_version=no
8233  hardcode_into_libs=yes
8234  if test "$host_cpu" = ia64; then
8235    # AIX 5 supports IA64
8236    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8237    shlibpath_var=LD_LIBRARY_PATH
8238  else
8239    # With GCC up to 2.95.x, collect2 would create an import file
8240    # for dependence libraries.  The import file would start with
8241    # the line `#! .'.  This would cause the generated library to
8242    # depend on `.', always an invalid library.  This was fixed in
8243    # development snapshots of GCC prior to 3.0.
8244    case $host_os in
8245      aix4 | aix4.[01] | aix4.[01].*)
8246      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8247           echo ' yes '
8248           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8249        :
8250      else
8251        can_build_shared=no
8252      fi
8253      ;;
8254    esac
8255    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8256    # soname into executable. Probably we can add versioning support to
8257    # collect2, so additional links can be useful in future.
8258    if test "$aix_use_runtimelinking" = yes; then
8259      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8260      # instead of lib<name>.a to let people know that these are not
8261      # typical AIX shared libraries.
8262      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8263    else
8264      # We preserve .a as extension for shared libraries through AIX4.2
8265      # and later when we are not doing run time linking.
8266      library_names_spec='${libname}${release}.a $libname.a'
8267      soname_spec='${libname}${release}${shared_ext}$major'
8268    fi
8269    shlibpath_var=LIBPATH
8270  fi
8271  ;;
8272
8273amigaos*)
8274  library_names_spec='$libname.ixlibrary $libname.a'
8275  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8276  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'
8277  ;;
8278
8279beos*)
8280  library_names_spec='${libname}${shared_ext}'
8281  dynamic_linker="$host_os ld.so"
8282  shlibpath_var=LIBRARY_PATH
8283  ;;
8284
8285bsdi[45]*)
8286  version_type=linux
8287  need_version=no
8288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289  soname_spec='${libname}${release}${shared_ext}$major'
8290  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8291  shlibpath_var=LD_LIBRARY_PATH
8292  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8293  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8294  # the default ld.so.conf also contains /usr/contrib/lib and
8295  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8296  # libtool to hard-code these into programs
8297  ;;
8298
8299cygwin* | mingw* | pw32*)
8300  version_type=windows
8301  shrext_cmds=".dll"
8302  need_version=no
8303  need_lib_prefix=no
8304
8305  case $GCC,$host_os in
8306  yes,cygwin* | yes,mingw* | yes,pw32*)
8307    library_names_spec='$libname.dll.a'
8308    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8309    postinstall_cmds='base_file=`basename \${file}`~
8310      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8311      dldir=$destdir/`dirname \$dlpath`~
8312      test -d \$dldir || mkdir -p \$dldir~
8313      $install_prog $dir/$dlname \$dldir/$dlname~
8314      chmod a+x \$dldir/$dlname'
8315    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8316      dlpath=$dir/\$dldll~
8317       $rm \$dlpath'
8318    shlibpath_overrides_runpath=yes
8319
8320    case $host_os in
8321    cygwin*)
8322      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8323      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8324      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8325      ;;
8326    mingw*)
8327      # MinGW DLLs use traditional 'lib' prefix
8328      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8329      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8330      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8331        # It is most probably a Windows format PATH printed by
8332        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8333        # path with ; separators, and with drive letters. We can handle the
8334        # drive letters (cygwin fileutils understands them), so leave them,
8335        # especially as we might pass files found there to a mingw objdump,
8336        # which wouldn't understand a cygwinified path. Ahh.
8337        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8338      else
8339        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8340      fi
8341      ;;
8342    pw32*)
8343      # pw32 DLLs use 'pw' prefix rather than 'lib'
8344      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8345      ;;
8346    esac
8347    ;;
8348
8349  *)
8350    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8351    ;;
8352  esac
8353  dynamic_linker='Win32 ld.exe'
8354  # FIXME: first we should search . and the directory the executable is in
8355  shlibpath_var=PATH
8356  ;;
8357
8358darwin* | rhapsody*)
8359  dynamic_linker="$host_os dyld"
8360  version_type=darwin
8361  need_lib_prefix=no
8362  need_version=no
8363  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8364  soname_spec='${libname}${release}${major}$shared_ext'
8365  shlibpath_overrides_runpath=yes
8366  shlibpath_var=DYLD_LIBRARY_PATH
8367  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8368  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8369  if test "$GCC" = yes; then
8370    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"`
8371  else
8372    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8373  fi
8374  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8375  ;;
8376
8377dgux*)
8378  version_type=linux
8379  need_lib_prefix=no
8380  need_version=no
8381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8382  soname_spec='${libname}${release}${shared_ext}$major'
8383  shlibpath_var=LD_LIBRARY_PATH
8384  ;;
8385
8386freebsd1*)
8387  dynamic_linker=no
8388  ;;
8389
8390kfreebsd*-gnu)
8391  version_type=linux
8392  need_lib_prefix=no
8393  need_version=no
8394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8395  soname_spec='${libname}${release}${shared_ext}$major'
8396  shlibpath_var=LD_LIBRARY_PATH
8397  shlibpath_overrides_runpath=no
8398  hardcode_into_libs=yes
8399  dynamic_linker='GNU ld.so'
8400  ;;
8401
8402freebsd* | dragonfly*)
8403  # DragonFly does not have aout.  When/if they implement a new
8404  # versioning mechanism, adjust this.
8405  if test -x /usr/bin/objformat; then
8406    objformat=`/usr/bin/objformat`
8407  else
8408    case $host_os in
8409    freebsd[123]*) objformat=aout ;;
8410    *) objformat=elf ;;
8411    esac
8412  fi
8413  version_type=freebsd-$objformat
8414  case $version_type in
8415    freebsd-elf*)
8416      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8417      need_version=no
8418      need_lib_prefix=no
8419      ;;
8420    freebsd-*)
8421      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8422      need_version=yes
8423      ;;
8424  esac
8425  shlibpath_var=LD_LIBRARY_PATH
8426  case $host_os in
8427  freebsd2*)
8428    shlibpath_overrides_runpath=yes
8429    ;;
8430  freebsd3.[01]* | freebsdelf3.[01]*)
8431    shlibpath_overrides_runpath=yes
8432    hardcode_into_libs=yes
8433    ;;
8434  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8435  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8436    shlibpath_overrides_runpath=no
8437    hardcode_into_libs=yes
8438    ;;
8439  freebsd*) # from 4.6 on
8440    shlibpath_overrides_runpath=yes
8441    hardcode_into_libs=yes
8442    ;;
8443  esac
8444  ;;
8445
8446gnu*)
8447  version_type=linux
8448  need_lib_prefix=no
8449  need_version=no
8450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8451  soname_spec='${libname}${release}${shared_ext}$major'
8452  shlibpath_var=LD_LIBRARY_PATH
8453  hardcode_into_libs=yes
8454  ;;
8455
8456hpux9* | hpux10* | hpux11*)
8457  # Give a soname corresponding to the major version so that dld.sl refuses to
8458  # link against other versions.
8459  version_type=sunos
8460  need_lib_prefix=no
8461  need_version=no
8462  case $host_cpu in
8463  ia64*)
8464    shrext_cmds='.so'
8465    hardcode_into_libs=yes
8466    dynamic_linker="$host_os dld.so"
8467    shlibpath_var=LD_LIBRARY_PATH
8468    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8469    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8470    soname_spec='${libname}${release}${shared_ext}$major'
8471    if test "X$HPUX_IA64_MODE" = X32; then
8472      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8473    else
8474      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8475    fi
8476    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8477    ;;
8478   hppa*64*)
8479     shrext_cmds='.sl'
8480     hardcode_into_libs=yes
8481     dynamic_linker="$host_os dld.sl"
8482     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8483     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8485     soname_spec='${libname}${release}${shared_ext}$major'
8486     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8487     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8488     ;;
8489   *)
8490    shrext_cmds='.sl'
8491    dynamic_linker="$host_os dld.sl"
8492    shlibpath_var=SHLIB_PATH
8493    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8494    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8495    soname_spec='${libname}${release}${shared_ext}$major'
8496    ;;
8497  esac
8498  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8499  postinstall_cmds='chmod 555 $lib'
8500  ;;
8501
8502interix3*)
8503  version_type=linux
8504  need_lib_prefix=no
8505  need_version=no
8506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8507  soname_spec='${libname}${release}${shared_ext}$major'
8508  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8509  shlibpath_var=LD_LIBRARY_PATH
8510  shlibpath_overrides_runpath=no
8511  hardcode_into_libs=yes
8512  ;;
8513
8514irix5* | irix6* | nonstopux*)
8515  case $host_os in
8516    nonstopux*) version_type=nonstopux ;;
8517    *)
8518        if test "$lt_cv_prog_gnu_ld" = yes; then
8519                version_type=linux
8520        else
8521                version_type=irix
8522        fi ;;
8523  esac
8524  need_lib_prefix=no
8525  need_version=no
8526  soname_spec='${libname}${release}${shared_ext}$major'
8527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8528  case $host_os in
8529  irix5* | nonstopux*)
8530    libsuff= shlibsuff=
8531    ;;
8532  *)
8533    case $LD in # libtool.m4 will add one of these switches to LD
8534    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8535      libsuff= shlibsuff= libmagic=32-bit;;
8536    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8537      libsuff=32 shlibsuff=N32 libmagic=N32;;
8538    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8539      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8540    *) libsuff= shlibsuff= libmagic=never-match;;
8541    esac
8542    ;;
8543  esac
8544  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8545  shlibpath_overrides_runpath=no
8546  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8547  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8548  hardcode_into_libs=yes
8549  ;;
8550
8551# No shared lib support for Linux oldld, aout, or coff.
8552linux*oldld* | linux*aout* | linux*coff*)
8553  dynamic_linker=no
8554  ;;
8555
8556# This must be Linux ELF.
8557linux*)
8558  version_type=linux
8559  need_lib_prefix=no
8560  need_version=no
8561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562  soname_spec='${libname}${release}${shared_ext}$major'
8563  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8564  shlibpath_var=LD_LIBRARY_PATH
8565  shlibpath_overrides_runpath=no
8566  # This implies no fast_install, which is unacceptable.
8567  # Some rework will be needed to allow for fast_install
8568  # before this can be enabled.
8569  hardcode_into_libs=yes
8570
8571  # Append ld.so.conf contents to the search path
8572  if test -f /etc/ld.so.conf; then
8573    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' ' '`
8574    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8575  fi
8576
8577  # We used to test for /lib/ld.so.1 and disable shared libraries on
8578  # powerpc, because MkLinux only supported shared libraries with the
8579  # GNU dynamic linker.  Since this was broken with cross compilers,
8580  # most powerpc-linux boxes support dynamic linking these days and
8581  # people can always --disable-shared, the test was removed, and we
8582  # assume the GNU/Linux dynamic linker is in use.
8583  dynamic_linker='GNU/Linux ld.so'
8584  ;;
8585
8586knetbsd*-gnu)
8587  version_type=linux
8588  need_lib_prefix=no
8589  need_version=no
8590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8591  soname_spec='${libname}${release}${shared_ext}$major'
8592  shlibpath_var=LD_LIBRARY_PATH
8593  shlibpath_overrides_runpath=no
8594  hardcode_into_libs=yes
8595  dynamic_linker='GNU ld.so'
8596  ;;
8597
8598netbsd*)
8599  version_type=sunos
8600  need_lib_prefix=no
8601  need_version=no
8602  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8603    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8604    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8605    dynamic_linker='NetBSD (a.out) ld.so'
8606  else
8607    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8608    soname_spec='${libname}${release}${shared_ext}$major'
8609    dynamic_linker='NetBSD ld.elf_so'
8610  fi
8611  shlibpath_var=LD_LIBRARY_PATH
8612  shlibpath_overrides_runpath=yes
8613  hardcode_into_libs=yes
8614  ;;
8615
8616newsos6)
8617  version_type=linux
8618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619  shlibpath_var=LD_LIBRARY_PATH
8620  shlibpath_overrides_runpath=yes
8621  ;;
8622
8623nto-qnx*)
8624  version_type=linux
8625  need_lib_prefix=no
8626  need_version=no
8627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8628  soname_spec='${libname}${release}${shared_ext}$major'
8629  shlibpath_var=LD_LIBRARY_PATH
8630  shlibpath_overrides_runpath=yes
8631  ;;
8632
8633openbsd*)
8634  version_type=sunos
8635  sys_lib_dlsearch_path_spec="/usr/lib"
8636  need_lib_prefix=no
8637  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8638  case $host_os in
8639    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8640    *)                         need_version=no  ;;
8641  esac
8642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8643  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8644  shlibpath_var=LD_LIBRARY_PATH
8645  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8646    case $host_os in
8647      openbsd2.[89] | openbsd2.[89].*)
8648        shlibpath_overrides_runpath=no
8649        ;;
8650      *)
8651        shlibpath_overrides_runpath=yes
8652        ;;
8653      esac
8654  else
8655    shlibpath_overrides_runpath=yes
8656  fi
8657  ;;
8658
8659os2*)
8660  libname_spec='$name'
8661  shrext_cmds=".dll"
8662  need_lib_prefix=no
8663  library_names_spec='$libname${shared_ext} $libname.a'
8664  dynamic_linker='OS/2 ld.exe'
8665  shlibpath_var=LIBPATH
8666  ;;
8667
8668osf3* | osf4* | osf5*)
8669  version_type=osf
8670  need_lib_prefix=no
8671  need_version=no
8672  soname_spec='${libname}${release}${shared_ext}$major'
8673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674  shlibpath_var=LD_LIBRARY_PATH
8675  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8676  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8677  ;;
8678
8679solaris*)
8680  version_type=linux
8681  need_lib_prefix=no
8682  need_version=no
8683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684  soname_spec='${libname}${release}${shared_ext}$major'
8685  shlibpath_var=LD_LIBRARY_PATH
8686  shlibpath_overrides_runpath=yes
8687  hardcode_into_libs=yes
8688  # ldd complains unless libraries are executable
8689  postinstall_cmds='chmod +x $lib'
8690  ;;
8691
8692sunos4*)
8693  version_type=sunos
8694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8695  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8696  shlibpath_var=LD_LIBRARY_PATH
8697  shlibpath_overrides_runpath=yes
8698  if test "$with_gnu_ld" = yes; then
8699    need_lib_prefix=no
8700  fi
8701  need_version=yes
8702  ;;
8703
8704sysv4 | sysv4.3*)
8705  version_type=linux
8706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707  soname_spec='${libname}${release}${shared_ext}$major'
8708  shlibpath_var=LD_LIBRARY_PATH
8709  case $host_vendor in
8710    sni)
8711      shlibpath_overrides_runpath=no
8712      need_lib_prefix=no
8713      export_dynamic_flag_spec='${wl}-Blargedynsym'
8714      runpath_var=LD_RUN_PATH
8715      ;;
8716    siemens)
8717      need_lib_prefix=no
8718      ;;
8719    motorola)
8720      need_lib_prefix=no
8721      need_version=no
8722      shlibpath_overrides_runpath=no
8723      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8724      ;;
8725  esac
8726  ;;
8727
8728sysv4*MP*)
8729  if test -d /usr/nec ;then
8730    version_type=linux
8731    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8732    soname_spec='$libname${shared_ext}.$major'
8733    shlibpath_var=LD_LIBRARY_PATH
8734  fi
8735  ;;
8736
8737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8738  version_type=freebsd-elf
8739  need_lib_prefix=no
8740  need_version=no
8741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8742  soname_spec='${libname}${release}${shared_ext}$major'
8743  shlibpath_var=LD_LIBRARY_PATH
8744  hardcode_into_libs=yes
8745  if test "$with_gnu_ld" = yes; then
8746    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8747    shlibpath_overrides_runpath=no
8748  else
8749    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8750    shlibpath_overrides_runpath=yes
8751    case $host_os in
8752      sco3.2v5*)
8753        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8754        ;;
8755    esac
8756  fi
8757  sys_lib_dlsearch_path_spec='/usr/lib'
8758  ;;
8759
8760uts4*)
8761  version_type=linux
8762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763  soname_spec='${libname}${release}${shared_ext}$major'
8764  shlibpath_var=LD_LIBRARY_PATH
8765  ;;
8766
8767*)
8768  dynamic_linker=no
8769  ;;
8770esac
8771echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8772echo "${ECHO_T}$dynamic_linker" >&6
8773test "$dynamic_linker" = no && can_build_shared=no
8774
8775variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8776if test "$GCC" = yes; then
8777  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8778fi
8779
8780echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8781echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8782hardcode_action=
8783if test -n "$hardcode_libdir_flag_spec" || \
8784   test -n "$runpath_var" || \
8785   test "X$hardcode_automatic" = "Xyes" ; then
8786
8787  # We can hardcode non-existant directories.
8788  if test "$hardcode_direct" != no &&
8789     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8790     # have to relink, otherwise we might link with an installed library
8791     # when we should be linking with a yet-to-be-installed one
8792     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8793     test "$hardcode_minus_L" != no; then
8794    # Linking always hardcodes the temporary library directory.
8795    hardcode_action=relink
8796  else
8797    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8798    hardcode_action=immediate
8799  fi
8800else
8801  # We cannot hardcode anything, or else we can only hardcode existing
8802  # directories.
8803  hardcode_action=unsupported
8804fi
8805echo "$as_me:$LINENO: result: $hardcode_action" >&5
8806echo "${ECHO_T}$hardcode_action" >&6
8807
8808if test "$hardcode_action" = relink; then
8809  # Fast installation is not supported
8810  enable_fast_install=no
8811elif test "$shlibpath_overrides_runpath" = yes ||
8812     test "$enable_shared" = no; then
8813  # Fast installation is not necessary
8814  enable_fast_install=needless
8815fi
8816
8817striplib=
8818old_striplib=
8819echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8820echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8821if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8822  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8823  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8824  echo "$as_me:$LINENO: result: yes" >&5
8825echo "${ECHO_T}yes" >&6
8826else
8827# FIXME - insert some real tests, host_os isn't really good enough
8828  case $host_os in
8829   darwin*)
8830       if test -n "$STRIP" ; then
8831         striplib="$STRIP -x"
8832         echo "$as_me:$LINENO: result: yes" >&5
8833echo "${ECHO_T}yes" >&6
8834       else
8835  echo "$as_me:$LINENO: result: no" >&5
8836echo "${ECHO_T}no" >&6
8837fi
8838       ;;
8839   *)
8840  echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
8842    ;;
8843  esac
8844fi
8845
8846if test "x$enable_dlopen" != xyes; then
8847  enable_dlopen=unknown
8848  enable_dlopen_self=unknown
8849  enable_dlopen_self_static=unknown
8850else
8851  lt_cv_dlopen=no
8852  lt_cv_dlopen_libs=
8853
8854  case $host_os in
8855  beos*)
8856    lt_cv_dlopen="load_add_on"
8857    lt_cv_dlopen_libs=
8858    lt_cv_dlopen_self=yes
8859    ;;
8860
8861  mingw* | pw32*)
8862    lt_cv_dlopen="LoadLibrary"
8863    lt_cv_dlopen_libs=
8864   ;;
8865
8866  cygwin*)
8867    lt_cv_dlopen="dlopen"
8868    lt_cv_dlopen_libs=
8869   ;;
8870
8871  darwin*)
8872  # if libdl is installed we need to link against it
8873    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8874echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8875if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8876  echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878  ac_check_lib_save_LIBS=$LIBS
8879LIBS="-ldl  $LIBS"
8880cat >conftest.$ac_ext <<_ACEOF
8881/* confdefs.h.  */
8882_ACEOF
8883cat confdefs.h >>conftest.$ac_ext
8884cat >>conftest.$ac_ext <<_ACEOF
8885/* end confdefs.h.  */
8886
8887/* Override any gcc2 internal prototype to avoid an error.  */
8888#ifdef __cplusplus
8889extern "C"
8890#endif
8891/* We use char because int might match the return type of a gcc2
8892   builtin and then its argument prototype would still apply.  */
8893char dlopen ();
8894int
8895main ()
8896{
8897dlopen ();
8898  ;
8899  return 0;
8900}
8901_ACEOF
8902rm -f conftest.$ac_objext conftest$ac_exeext
8903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904  (eval $ac_link) 2>conftest.er1
8905  ac_status=$?
8906  grep -v '^ *+' conftest.er1 >conftest.err
8907  rm -f conftest.er1
8908  cat conftest.err >&5
8909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910  (exit $ac_status); } &&
8911         { ac_try='test -z "$ac_c_werror_flag"
8912                         || test ! -s conftest.err'
8913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914  (eval $ac_try) 2>&5
8915  ac_status=$?
8916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917  (exit $ac_status); }; } &&
8918         { ac_try='test -s conftest$ac_exeext'
8919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920  (eval $ac_try) 2>&5
8921  ac_status=$?
8922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923  (exit $ac_status); }; }; then
8924  ac_cv_lib_dl_dlopen=yes
8925else
8926  echo "$as_me: failed program was:" >&5
8927sed 's/^/| /' conftest.$ac_ext >&5
8928
8929ac_cv_lib_dl_dlopen=no
8930fi
8931rm -f conftest.err conftest.$ac_objext \
8932      conftest$ac_exeext conftest.$ac_ext
8933LIBS=$ac_check_lib_save_LIBS
8934fi
8935echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8936echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8937if test $ac_cv_lib_dl_dlopen = yes; then
8938  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8939else
8940
8941    lt_cv_dlopen="dyld"
8942    lt_cv_dlopen_libs=
8943    lt_cv_dlopen_self=yes
8944
8945fi
8946
8947   ;;
8948
8949  *)
8950    echo "$as_me:$LINENO: checking for shl_load" >&5
8951echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8952if test "${ac_cv_func_shl_load+set}" = set; then
8953  echo $ECHO_N "(cached) $ECHO_C" >&6
8954else
8955  cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h.  */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h.  */
8961/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8962   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8963#define shl_load innocuous_shl_load
8964
8965/* System header to define __stub macros and hopefully few prototypes,
8966    which can conflict with char shl_load (); below.
8967    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8968    <limits.h> exists even on freestanding compilers.  */
8969
8970#ifdef __STDC__
8971# include <limits.h>
8972#else
8973# include <assert.h>
8974#endif
8975
8976#undef shl_load
8977
8978/* Override any gcc2 internal prototype to avoid an error.  */
8979#ifdef __cplusplus
8980extern "C"
8981{
8982#endif
8983/* We use char because int might match the return type of a gcc2
8984   builtin and then its argument prototype would still apply.  */
8985char shl_load ();
8986/* The GNU C library defines this for functions which it implements
8987    to always fail with ENOSYS.  Some functions are actually named
8988    something starting with __ and the normal name is an alias.  */
8989#if defined (__stub_shl_load) || defined (__stub___shl_load)
8990choke me
8991#else
8992char (*f) () = shl_load;
8993#endif
8994#ifdef __cplusplus
8995}
8996#endif
8997
8998int
8999main ()
9000{
9001return f != shl_load;
9002  ;
9003  return 0;
9004}
9005_ACEOF
9006rm -f conftest.$ac_objext conftest$ac_exeext
9007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008  (eval $ac_link) 2>conftest.er1
9009  ac_status=$?
9010  grep -v '^ *+' conftest.er1 >conftest.err
9011  rm -f conftest.er1
9012  cat conftest.err >&5
9013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014  (exit $ac_status); } &&
9015         { ac_try='test -z "$ac_c_werror_flag"
9016                         || test ! -s conftest.err'
9017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018  (eval $ac_try) 2>&5
9019  ac_status=$?
9020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021  (exit $ac_status); }; } &&
9022         { ac_try='test -s conftest$ac_exeext'
9023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024  (eval $ac_try) 2>&5
9025  ac_status=$?
9026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027  (exit $ac_status); }; }; then
9028  ac_cv_func_shl_load=yes
9029else
9030  echo "$as_me: failed program was:" >&5
9031sed 's/^/| /' conftest.$ac_ext >&5
9032
9033ac_cv_func_shl_load=no
9034fi
9035rm -f conftest.err conftest.$ac_objext \
9036      conftest$ac_exeext conftest.$ac_ext
9037fi
9038echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9039echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9040if test $ac_cv_func_shl_load = yes; then
9041  lt_cv_dlopen="shl_load"
9042else
9043  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9044echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9045if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9046  echo $ECHO_N "(cached) $ECHO_C" >&6
9047else
9048  ac_check_lib_save_LIBS=$LIBS
9049LIBS="-ldld  $LIBS"
9050cat >conftest.$ac_ext <<_ACEOF
9051/* confdefs.h.  */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h.  */
9056
9057/* Override any gcc2 internal prototype to avoid an error.  */
9058#ifdef __cplusplus
9059extern "C"
9060#endif
9061/* We use char because int might match the return type of a gcc2
9062   builtin and then its argument prototype would still apply.  */
9063char shl_load ();
9064int
9065main ()
9066{
9067shl_load ();
9068  ;
9069  return 0;
9070}
9071_ACEOF
9072rm -f conftest.$ac_objext conftest$ac_exeext
9073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074  (eval $ac_link) 2>conftest.er1
9075  ac_status=$?
9076  grep -v '^ *+' conftest.er1 >conftest.err
9077  rm -f conftest.er1
9078  cat conftest.err >&5
9079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080  (exit $ac_status); } &&
9081         { ac_try='test -z "$ac_c_werror_flag"
9082                         || test ! -s conftest.err'
9083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084  (eval $ac_try) 2>&5
9085  ac_status=$?
9086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087  (exit $ac_status); }; } &&
9088         { ac_try='test -s conftest$ac_exeext'
9089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090  (eval $ac_try) 2>&5
9091  ac_status=$?
9092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093  (exit $ac_status); }; }; then
9094  ac_cv_lib_dld_shl_load=yes
9095else
9096  echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099ac_cv_lib_dld_shl_load=no
9100fi
9101rm -f conftest.err conftest.$ac_objext \
9102      conftest$ac_exeext conftest.$ac_ext
9103LIBS=$ac_check_lib_save_LIBS
9104fi
9105echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9106echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9107if test $ac_cv_lib_dld_shl_load = yes; then
9108  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9109else
9110  echo "$as_me:$LINENO: checking for dlopen" >&5
9111echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9112if test "${ac_cv_func_dlopen+set}" = set; then
9113  echo $ECHO_N "(cached) $ECHO_C" >&6
9114else
9115  cat >conftest.$ac_ext <<_ACEOF
9116/* confdefs.h.  */
9117_ACEOF
9118cat confdefs.h >>conftest.$ac_ext
9119cat >>conftest.$ac_ext <<_ACEOF
9120/* end confdefs.h.  */
9121/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9122   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9123#define dlopen innocuous_dlopen
9124
9125/* System header to define __stub macros and hopefully few prototypes,
9126    which can conflict with char dlopen (); below.
9127    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9128    <limits.h> exists even on freestanding compilers.  */
9129
9130#ifdef __STDC__
9131# include <limits.h>
9132#else
9133# include <assert.h>
9134#endif
9135
9136#undef dlopen
9137
9138/* Override any gcc2 internal prototype to avoid an error.  */
9139#ifdef __cplusplus
9140extern "C"
9141{
9142#endif
9143/* We use char because int might match the return type of a gcc2
9144   builtin and then its argument prototype would still apply.  */
9145char dlopen ();
9146/* The GNU C library defines this for functions which it implements
9147    to always fail with ENOSYS.  Some functions are actually named
9148    something starting with __ and the normal name is an alias.  */
9149#if defined (__stub_dlopen) || defined (__stub___dlopen)
9150choke me
9151#else
9152char (*f) () = dlopen;
9153#endif
9154#ifdef __cplusplus
9155}
9156#endif
9157
9158int
9159main ()
9160{
9161return f != dlopen;
9162  ;
9163  return 0;
9164}
9165_ACEOF
9166rm -f conftest.$ac_objext conftest$ac_exeext
9167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168  (eval $ac_link) 2>conftest.er1
9169  ac_status=$?
9170  grep -v '^ *+' conftest.er1 >conftest.err
9171  rm -f conftest.er1
9172  cat conftest.err >&5
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); } &&
9175         { ac_try='test -z "$ac_c_werror_flag"
9176                         || test ! -s conftest.err'
9177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178  (eval $ac_try) 2>&5
9179  ac_status=$?
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); }; } &&
9182         { ac_try='test -s conftest$ac_exeext'
9183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184  (eval $ac_try) 2>&5
9185  ac_status=$?
9186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); }; }; then
9188  ac_cv_func_dlopen=yes
9189else
9190  echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193ac_cv_func_dlopen=no
9194fi
9195rm -f conftest.err conftest.$ac_objext \
9196      conftest$ac_exeext conftest.$ac_ext
9197fi
9198echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9199echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9200if test $ac_cv_func_dlopen = yes; then
9201  lt_cv_dlopen="dlopen"
9202else
9203  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9204echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9206  echo $ECHO_N "(cached) $ECHO_C" >&6
9207else
9208  ac_check_lib_save_LIBS=$LIBS
9209LIBS="-ldl  $LIBS"
9210cat >conftest.$ac_ext <<_ACEOF
9211/* confdefs.h.  */
9212_ACEOF
9213cat confdefs.h >>conftest.$ac_ext
9214cat >>conftest.$ac_ext <<_ACEOF
9215/* end confdefs.h.  */
9216
9217/* Override any gcc2 internal prototype to avoid an error.  */
9218#ifdef __cplusplus
9219extern "C"
9220#endif
9221/* We use char because int might match the return type of a gcc2
9222   builtin and then its argument prototype would still apply.  */
9223char dlopen ();
9224int
9225main ()
9226{
9227dlopen ();
9228  ;
9229  return 0;
9230}
9231_ACEOF
9232rm -f conftest.$ac_objext conftest$ac_exeext
9233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234  (eval $ac_link) 2>conftest.er1
9235  ac_status=$?
9236  grep -v '^ *+' conftest.er1 >conftest.err
9237  rm -f conftest.er1
9238  cat conftest.err >&5
9239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240  (exit $ac_status); } &&
9241         { ac_try='test -z "$ac_c_werror_flag"
9242                         || test ! -s conftest.err'
9243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244  (eval $ac_try) 2>&5
9245  ac_status=$?
9246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247  (exit $ac_status); }; } &&
9248         { ac_try='test -s conftest$ac_exeext'
9249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250  (eval $ac_try) 2>&5
9251  ac_status=$?
9252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253  (exit $ac_status); }; }; then
9254  ac_cv_lib_dl_dlopen=yes
9255else
9256  echo "$as_me: failed program was:" >&5
9257sed 's/^/| /' conftest.$ac_ext >&5
9258
9259ac_cv_lib_dl_dlopen=no
9260fi
9261rm -f conftest.err conftest.$ac_objext \
9262      conftest$ac_exeext conftest.$ac_ext
9263LIBS=$ac_check_lib_save_LIBS
9264fi
9265echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9266echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9267if test $ac_cv_lib_dl_dlopen = yes; then
9268  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9269else
9270  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9271echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9272if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9273  echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275  ac_check_lib_save_LIBS=$LIBS
9276LIBS="-lsvld  $LIBS"
9277cat >conftest.$ac_ext <<_ACEOF
9278/* confdefs.h.  */
9279_ACEOF
9280cat confdefs.h >>conftest.$ac_ext
9281cat >>conftest.$ac_ext <<_ACEOF
9282/* end confdefs.h.  */
9283
9284/* Override any gcc2 internal prototype to avoid an error.  */
9285#ifdef __cplusplus
9286extern "C"
9287#endif
9288/* We use char because int might match the return type of a gcc2
9289   builtin and then its argument prototype would still apply.  */
9290char dlopen ();
9291int
9292main ()
9293{
9294dlopen ();
9295  ;
9296  return 0;
9297}
9298_ACEOF
9299rm -f conftest.$ac_objext conftest$ac_exeext
9300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301  (eval $ac_link) 2>conftest.er1
9302  ac_status=$?
9303  grep -v '^ *+' conftest.er1 >conftest.err
9304  rm -f conftest.er1
9305  cat conftest.err >&5
9306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307  (exit $ac_status); } &&
9308         { ac_try='test -z "$ac_c_werror_flag"
9309                         || test ! -s conftest.err'
9310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311  (eval $ac_try) 2>&5
9312  ac_status=$?
9313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314  (exit $ac_status); }; } &&
9315         { ac_try='test -s conftest$ac_exeext'
9316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317  (eval $ac_try) 2>&5
9318  ac_status=$?
9319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320  (exit $ac_status); }; }; then
9321  ac_cv_lib_svld_dlopen=yes
9322else
9323  echo "$as_me: failed program was:" >&5
9324sed 's/^/| /' conftest.$ac_ext >&5
9325
9326ac_cv_lib_svld_dlopen=no
9327fi
9328rm -f conftest.err conftest.$ac_objext \
9329      conftest$ac_exeext conftest.$ac_ext
9330LIBS=$ac_check_lib_save_LIBS
9331fi
9332echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9333echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9334if test $ac_cv_lib_svld_dlopen = yes; then
9335  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9336else
9337  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9338echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9339if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9340  echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342  ac_check_lib_save_LIBS=$LIBS
9343LIBS="-ldld  $LIBS"
9344cat >conftest.$ac_ext <<_ACEOF
9345/* confdefs.h.  */
9346_ACEOF
9347cat confdefs.h >>conftest.$ac_ext
9348cat >>conftest.$ac_ext <<_ACEOF
9349/* end confdefs.h.  */
9350
9351/* Override any gcc2 internal prototype to avoid an error.  */
9352#ifdef __cplusplus
9353extern "C"
9354#endif
9355/* We use char because int might match the return type of a gcc2
9356   builtin and then its argument prototype would still apply.  */
9357char dld_link ();
9358int
9359main ()
9360{
9361dld_link ();
9362  ;
9363  return 0;
9364}
9365_ACEOF
9366rm -f conftest.$ac_objext conftest$ac_exeext
9367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368  (eval $ac_link) 2>conftest.er1
9369  ac_status=$?
9370  grep -v '^ *+' conftest.er1 >conftest.err
9371  rm -f conftest.er1
9372  cat conftest.err >&5
9373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374  (exit $ac_status); } &&
9375         { ac_try='test -z "$ac_c_werror_flag"
9376                         || test ! -s conftest.err'
9377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378  (eval $ac_try) 2>&5
9379  ac_status=$?
9380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381  (exit $ac_status); }; } &&
9382         { ac_try='test -s conftest$ac_exeext'
9383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384  (eval $ac_try) 2>&5
9385  ac_status=$?
9386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387  (exit $ac_status); }; }; then
9388  ac_cv_lib_dld_dld_link=yes
9389else
9390  echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
9393ac_cv_lib_dld_dld_link=no
9394fi
9395rm -f conftest.err conftest.$ac_objext \
9396      conftest$ac_exeext conftest.$ac_ext
9397LIBS=$ac_check_lib_save_LIBS
9398fi
9399echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9400echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9401if test $ac_cv_lib_dld_dld_link = yes; then
9402  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9403fi
9404
9405
9406fi
9407
9408
9409fi
9410
9411
9412fi
9413
9414
9415fi
9416
9417
9418fi
9419
9420    ;;
9421  esac
9422
9423  if test "x$lt_cv_dlopen" != xno; then
9424    enable_dlopen=yes
9425  else
9426    enable_dlopen=no
9427  fi
9428
9429  case $lt_cv_dlopen in
9430  dlopen)
9431    save_CPPFLAGS="$CPPFLAGS"
9432    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9433
9434    save_LDFLAGS="$LDFLAGS"
9435    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9436
9437    save_LIBS="$LIBS"
9438    LIBS="$lt_cv_dlopen_libs $LIBS"
9439
9440    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9441echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9442if test "${lt_cv_dlopen_self+set}" = set; then
9443  echo $ECHO_N "(cached) $ECHO_C" >&6
9444else
9445          if test "$cross_compiling" = yes; then :
9446  lt_cv_dlopen_self=cross
9447else
9448  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9449  lt_status=$lt_dlunknown
9450  cat > conftest.$ac_ext <<EOF
9451#line 9451 "configure"
9452#include "confdefs.h"
9453
9454#if HAVE_DLFCN_H
9455#include <dlfcn.h>
9456#endif
9457
9458#include <stdio.h>
9459
9460#ifdef RTLD_GLOBAL
9461#  define LT_DLGLOBAL           RTLD_GLOBAL
9462#else
9463#  ifdef DL_GLOBAL
9464#    define LT_DLGLOBAL         DL_GLOBAL
9465#  else
9466#    define LT_DLGLOBAL         0
9467#  endif
9468#endif
9469
9470/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9471   find out it does not work in some platform. */
9472#ifndef LT_DLLAZY_OR_NOW
9473#  ifdef RTLD_LAZY
9474#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9475#  else
9476#    ifdef DL_LAZY
9477#      define LT_DLLAZY_OR_NOW          DL_LAZY
9478#    else
9479#      ifdef RTLD_NOW
9480#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9481#      else
9482#        ifdef DL_NOW
9483#          define LT_DLLAZY_OR_NOW      DL_NOW
9484#        else
9485#          define LT_DLLAZY_OR_NOW      0
9486#        endif
9487#      endif
9488#    endif
9489#  endif
9490#endif
9491
9492#ifdef __cplusplus
9493extern "C" void exit (int);
9494#endif
9495
9496void fnord() { int i=42;}
9497int main ()
9498{
9499  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9500  int status = $lt_dlunknown;
9501
9502  if (self)
9503    {
9504      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9505      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9506      /* dlclose (self); */
9507    }
9508  else
9509    puts (dlerror ());
9510
9511    exit (status);
9512}
9513EOF
9514  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515  (eval $ac_link) 2>&5
9516  ac_status=$?
9517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9519    (./conftest; exit; ) >&5 2>/dev/null
9520    lt_status=$?
9521    case x$lt_status in
9522      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9523      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9524      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9525    esac
9526  else :
9527    # compilation failed
9528    lt_cv_dlopen_self=no
9529  fi
9530fi
9531rm -fr conftest*
9532
9533
9534fi
9535echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9536echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9537
9538    if test "x$lt_cv_dlopen_self" = xyes; then
9539      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9540      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9541echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9542if test "${lt_cv_dlopen_self_static+set}" = set; then
9543  echo $ECHO_N "(cached) $ECHO_C" >&6
9544else
9545          if test "$cross_compiling" = yes; then :
9546  lt_cv_dlopen_self_static=cross
9547else
9548  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9549  lt_status=$lt_dlunknown
9550  cat > conftest.$ac_ext <<EOF
9551#line 9551 "configure"
9552#include "confdefs.h"
9553
9554#if HAVE_DLFCN_H
9555#include <dlfcn.h>
9556#endif
9557
9558#include <stdio.h>
9559
9560#ifdef RTLD_GLOBAL
9561#  define LT_DLGLOBAL           RTLD_GLOBAL
9562#else
9563#  ifdef DL_GLOBAL
9564#    define LT_DLGLOBAL         DL_GLOBAL
9565#  else
9566#    define LT_DLGLOBAL         0
9567#  endif
9568#endif
9569
9570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9571   find out it does not work in some platform. */
9572#ifndef LT_DLLAZY_OR_NOW
9573#  ifdef RTLD_LAZY
9574#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9575#  else
9576#    ifdef DL_LAZY
9577#      define LT_DLLAZY_OR_NOW          DL_LAZY
9578#    else
9579#      ifdef RTLD_NOW
9580#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9581#      else
9582#        ifdef DL_NOW
9583#          define LT_DLLAZY_OR_NOW      DL_NOW
9584#        else
9585#          define LT_DLLAZY_OR_NOW      0
9586#        endif
9587#      endif
9588#    endif
9589#  endif
9590#endif
9591
9592#ifdef __cplusplus
9593extern "C" void exit (int);
9594#endif
9595
9596void fnord() { int i=42;}
9597int main ()
9598{
9599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9600  int status = $lt_dlunknown;
9601
9602  if (self)
9603    {
9604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9605      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9606      /* dlclose (self); */
9607    }
9608  else
9609    puts (dlerror ());
9610
9611    exit (status);
9612}
9613EOF
9614  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615  (eval $ac_link) 2>&5
9616  ac_status=$?
9617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9619    (./conftest; exit; ) >&5 2>/dev/null
9620    lt_status=$?
9621    case x$lt_status in
9622      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9623      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9624      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9625    esac
9626  else :
9627    # compilation failed
9628    lt_cv_dlopen_self_static=no
9629  fi
9630fi
9631rm -fr conftest*
9632
9633
9634fi
9635echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9636echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9637    fi
9638
9639    CPPFLAGS="$save_CPPFLAGS"
9640    LDFLAGS="$save_LDFLAGS"
9641    LIBS="$save_LIBS"
9642    ;;
9643  esac
9644
9645  case $lt_cv_dlopen_self in
9646  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9647  *) enable_dlopen_self=unknown ;;
9648  esac
9649
9650  case $lt_cv_dlopen_self_static in
9651  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9652  *) enable_dlopen_self_static=unknown ;;
9653  esac
9654fi
9655
9656
9657# Report which library types will actually be built
9658echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9659echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9660echo "$as_me:$LINENO: result: $can_build_shared" >&5
9661echo "${ECHO_T}$can_build_shared" >&6
9662
9663echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9664echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9665test "$can_build_shared" = "no" && enable_shared=no
9666
9667# On AIX, shared libraries and static libraries use the same namespace, and
9668# are all built from PIC.
9669case $host_os in
9670aix3*)
9671  test "$enable_shared" = yes && enable_static=no
9672  if test -n "$RANLIB"; then
9673    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9674    postinstall_cmds='$RANLIB $lib'
9675  fi
9676  ;;
9677
9678aix4* | aix5*)
9679  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9680    test "$enable_shared" = yes && enable_static=no
9681  fi
9682    ;;
9683esac
9684echo "$as_me:$LINENO: result: $enable_shared" >&5
9685echo "${ECHO_T}$enable_shared" >&6
9686
9687echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9688echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9689# Make sure either enable_shared or enable_static is yes.
9690test "$enable_shared" = yes || enable_static=yes
9691echo "$as_me:$LINENO: result: $enable_static" >&5
9692echo "${ECHO_T}$enable_static" >&6
9693
9694# The else clause should only fire when bootstrapping the
9695# libtool distribution, otherwise you forgot to ship ltmain.sh
9696# with your package, and you will get complaints that there are
9697# no rules to generate ltmain.sh.
9698if test -f "$ltmain"; then
9699  # See if we are running on zsh, and set the options which allow our commands through
9700  # without removal of \ escapes.
9701  if test -n "${ZSH_VERSION+set}" ; then
9702    setopt NO_GLOB_SUBST
9703  fi
9704  # Now quote all the things that may contain metacharacters while being
9705  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9706  # variables and quote the copies for generation of the libtool script.
9707  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9708    SED SHELL STRIP \
9709    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9710    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9711    deplibs_check_method reload_flag reload_cmds need_locks \
9712    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9713    lt_cv_sys_global_symbol_to_c_name_address \
9714    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9715    old_postinstall_cmds old_postuninstall_cmds \
9716    compiler \
9717    CC \
9718    LD \
9719    lt_prog_compiler_wl \
9720    lt_prog_compiler_pic \
9721    lt_prog_compiler_static \
9722    lt_prog_compiler_no_builtin_flag \
9723    export_dynamic_flag_spec \
9724    thread_safe_flag_spec \
9725    whole_archive_flag_spec \
9726    enable_shared_with_static_runtimes \
9727    old_archive_cmds \
9728    old_archive_from_new_cmds \
9729    predep_objects \
9730    postdep_objects \
9731    predeps \
9732    postdeps \
9733    compiler_lib_search_path \
9734    archive_cmds \
9735    archive_expsym_cmds \
9736    postinstall_cmds \
9737    postuninstall_cmds \
9738    old_archive_from_expsyms_cmds \
9739    allow_undefined_flag \
9740    no_undefined_flag \
9741    export_symbols_cmds \
9742    hardcode_libdir_flag_spec \
9743    hardcode_libdir_flag_spec_ld \
9744    hardcode_libdir_separator \
9745    hardcode_automatic \
9746    module_cmds \
9747    module_expsym_cmds \
9748    lt_cv_prog_compiler_c_o \
9749    exclude_expsyms \
9750    include_expsyms; do
9751
9752    case $var in
9753    old_archive_cmds | \
9754    old_archive_from_new_cmds | \
9755    archive_cmds | \
9756    archive_expsym_cmds | \
9757    module_cmds | \
9758    module_expsym_cmds | \
9759    old_archive_from_expsyms_cmds | \
9760    export_symbols_cmds | \
9761    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9762    postinstall_cmds | postuninstall_cmds | \
9763    old_postinstall_cmds | old_postuninstall_cmds | \
9764    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9765      # Double-quote double-evaled strings.
9766      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9767      ;;
9768    *)
9769      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9770      ;;
9771    esac
9772  done
9773
9774  case $lt_echo in
9775  *'\$0 --fallback-echo"')
9776    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9777    ;;
9778  esac
9779
9780cfgfile="${ofile}T"
9781  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9782  $rm -f "$cfgfile"
9783  { echo "$as_me:$LINENO: creating $ofile" >&5
9784echo "$as_me: creating $ofile" >&6;}
9785
9786  cat <<__EOF__ >> "$cfgfile"
9787#! $SHELL
9788
9789# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9790# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9791# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9792#
9793# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9794# Free Software Foundation, Inc.
9795#
9796# This file is part of GNU Libtool:
9797# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9798#
9799# This program is free software; you can redistribute it and/or modify
9800# it under the terms of the GNU General Public License as published by
9801# the Free Software Foundation; either version 2 of the License, or
9802# (at your option) any later version.
9803#
9804# This program is distributed in the hope that it will be useful, but
9805# WITHOUT ANY WARRANTY; without even the implied warranty of
9806# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9807# General Public License for more details.
9808#
9809# You should have received a copy of the GNU General Public License
9810# along with this program; if not, write to the Free Software
9811# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9812#
9813# As a special exception to the GNU General Public License, if you
9814# distribute this file as part of a program that contains a
9815# configuration script generated by Autoconf, you may include it under
9816# the same distribution terms that you use for the rest of that program.
9817
9818# A sed program that does not truncate output.
9819SED=$lt_SED
9820
9821# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9822Xsed="$SED -e 1s/^X//"
9823
9824# The HP-UX ksh and POSIX shell print the target directory to stdout
9825# if CDPATH is set.
9826(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9827
9828# The names of the tagged configurations supported by this script.
9829available_tags=
9830
9831# ### BEGIN LIBTOOL CONFIG
9832
9833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9834
9835# Shell to use when invoking shell scripts.
9836SHELL=$lt_SHELL
9837
9838# Whether or not to build shared libraries.
9839build_libtool_libs=$enable_shared
9840
9841# Whether or not to build static libraries.
9842build_old_libs=$enable_static
9843
9844# Whether or not to add -lc for building shared libraries.
9845build_libtool_need_lc=$archive_cmds_need_lc
9846
9847# Whether or not to disallow shared libs when runtime libs are static
9848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9849
9850# Whether or not to optimize for fast installation.
9851fast_install=$enable_fast_install
9852
9853# The host system.
9854host_alias=$host_alias
9855host=$host
9856host_os=$host_os
9857
9858# The build system.
9859build_alias=$build_alias
9860build=$build
9861build_os=$build_os
9862
9863# An echo program that does not interpret backslashes.
9864echo=$lt_echo
9865
9866# The archiver.
9867AR=$lt_AR
9868AR_FLAGS=$lt_AR_FLAGS
9869
9870# A C compiler.
9871LTCC=$lt_LTCC
9872
9873# LTCC compiler flags.
9874LTCFLAGS=$lt_LTCFLAGS
9875
9876# A language-specific compiler.
9877CC=$lt_compiler
9878
9879# Is the compiler the GNU C compiler?
9880with_gcc=$GCC
9881
9882# An ERE matcher.
9883EGREP=$lt_EGREP
9884
9885# The linker used to build libraries.
9886LD=$lt_LD
9887
9888# Whether we need hard or soft links.
9889LN_S=$lt_LN_S
9890
9891# A BSD-compatible nm program.
9892NM=$lt_NM
9893
9894# A symbol stripping program
9895STRIP=$lt_STRIP
9896
9897# Used to examine libraries when file_magic_cmd begins "file"
9898MAGIC_CMD=$MAGIC_CMD
9899
9900# Used on cygwin: DLL creation program.
9901DLLTOOL="$DLLTOOL"
9902
9903# Used on cygwin: object dumper.
9904OBJDUMP="$OBJDUMP"
9905
9906# Used on cygwin: assembler.
9907AS="$AS"
9908
9909# The name of the directory that contains temporary libtool files.
9910objdir=$objdir
9911
9912# How to create reloadable object files.
9913reload_flag=$lt_reload_flag
9914reload_cmds=$lt_reload_cmds
9915
9916# How to pass a linker flag through the compiler.
9917wl=$lt_lt_prog_compiler_wl
9918
9919# Object file suffix (normally "o").
9920objext="$ac_objext"
9921
9922# Old archive suffix (normally "a").
9923libext="$libext"
9924
9925# Shared library suffix (normally ".so").
9926shrext_cmds='$shrext_cmds'
9927
9928# Executable file suffix (normally "").
9929exeext="$exeext"
9930
9931# Additional compiler flags for building library objects.
9932pic_flag=$lt_lt_prog_compiler_pic
9933pic_mode=$pic_mode
9934
9935# What is the maximum length of a command?
9936max_cmd_len=$lt_cv_sys_max_cmd_len
9937
9938# Does compiler simultaneously support -c and -o options?
9939compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9940
9941# Must we lock files when doing compilation?
9942need_locks=$lt_need_locks
9943
9944# Do we need the lib prefix for modules?
9945need_lib_prefix=$need_lib_prefix
9946
9947# Do we need a version for libraries?
9948need_version=$need_version
9949
9950# Whether dlopen is supported.
9951dlopen_support=$enable_dlopen
9952
9953# Whether dlopen of programs is supported.
9954dlopen_self=$enable_dlopen_self
9955
9956# Whether dlopen of statically linked programs is supported.
9957dlopen_self_static=$enable_dlopen_self_static
9958
9959# Compiler flag to prevent dynamic linking.
9960link_static_flag=$lt_lt_prog_compiler_static
9961
9962# Compiler flag to turn off builtin functions.
9963no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9964
9965# Compiler flag to allow reflexive dlopens.
9966export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9967
9968# Compiler flag to generate shared objects directly from archives.
9969whole_archive_flag_spec=$lt_whole_archive_flag_spec
9970
9971# Compiler flag to generate thread-safe objects.
9972thread_safe_flag_spec=$lt_thread_safe_flag_spec
9973
9974# Library versioning type.
9975version_type=$version_type
9976
9977# Format of library name prefix.
9978libname_spec=$lt_libname_spec
9979
9980# List of archive names.  First name is the real one, the rest are links.
9981# The last name is the one that the linker finds with -lNAME.
9982library_names_spec=$lt_library_names_spec
9983
9984# The coded name of the library, if different from the real name.
9985soname_spec=$lt_soname_spec
9986
9987# Commands used to build and install an old-style archive.
9988RANLIB=$lt_RANLIB
9989old_archive_cmds=$lt_old_archive_cmds
9990old_postinstall_cmds=$lt_old_postinstall_cmds
9991old_postuninstall_cmds=$lt_old_postuninstall_cmds
9992
9993# Create an old-style archive from a shared archive.
9994old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9995
9996# Create a temporary old-style archive to link instead of a shared archive.
9997old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9998
9999# Commands used to build and install a shared archive.
10000archive_cmds=$lt_archive_cmds
10001archive_expsym_cmds=$lt_archive_expsym_cmds
10002postinstall_cmds=$lt_postinstall_cmds
10003postuninstall_cmds=$lt_postuninstall_cmds
10004
10005# Commands used to build a loadable module (assumed same as above if empty)
10006module_cmds=$lt_module_cmds
10007module_expsym_cmds=$lt_module_expsym_cmds
10008
10009# Commands to strip libraries.
10010old_striplib=$lt_old_striplib
10011striplib=$lt_striplib
10012
10013# Dependencies to place before the objects being linked to create a
10014# shared library.
10015predep_objects=$lt_predep_objects
10016
10017# Dependencies to place after the objects being linked to create a
10018# shared library.
10019postdep_objects=$lt_postdep_objects
10020
10021# Dependencies to place before the objects being linked to create a
10022# shared library.
10023predeps=$lt_predeps
10024
10025# Dependencies to place after the objects being linked to create a
10026# shared library.
10027postdeps=$lt_postdeps
10028
10029# The library search path used internally by the compiler when linking
10030# a shared library.
10031compiler_lib_search_path=$lt_compiler_lib_search_path
10032
10033# Method to check whether dependent libraries are shared objects.
10034deplibs_check_method=$lt_deplibs_check_method
10035
10036# Command to use when deplibs_check_method == file_magic.
10037file_magic_cmd=$lt_file_magic_cmd
10038
10039# Flag that allows shared libraries with undefined symbols to be built.
10040allow_undefined_flag=$lt_allow_undefined_flag
10041
10042# Flag that forces no undefined symbols.
10043no_undefined_flag=$lt_no_undefined_flag
10044
10045# Commands used to finish a libtool library installation in a directory.
10046finish_cmds=$lt_finish_cmds
10047
10048# Same as above, but a single script fragment to be evaled but not shown.
10049finish_eval=$lt_finish_eval
10050
10051# Take the output of nm and produce a listing of raw symbols and C names.
10052global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10053
10054# Transform the output of nm in a proper C declaration
10055global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10056
10057# Transform the output of nm in a C name address pair
10058global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10059
10060# This is the shared library runtime path variable.
10061runpath_var=$runpath_var
10062
10063# This is the shared library path variable.
10064shlibpath_var=$shlibpath_var
10065
10066# Is shlibpath searched before the hard-coded library search path?
10067shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10068
10069# How to hardcode a shared library path into an executable.
10070hardcode_action=$hardcode_action
10071
10072# Whether we should hardcode library paths into libraries.
10073hardcode_into_libs=$hardcode_into_libs
10074
10075# Flag to hardcode \$libdir into a binary during linking.
10076# This must work even if \$libdir does not exist.
10077hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10078
10079# If ld is used when linking, flag to hardcode \$libdir into
10080# a binary during linking. This must work even if \$libdir does
10081# not exist.
10082hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10083
10084# Whether we need a single -rpath flag with a separated argument.
10085hardcode_libdir_separator=$lt_hardcode_libdir_separator
10086
10087# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10088# resulting binary.
10089hardcode_direct=$hardcode_direct
10090
10091# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10092# resulting binary.
10093hardcode_minus_L=$hardcode_minus_L
10094
10095# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10096# the resulting binary.
10097hardcode_shlibpath_var=$hardcode_shlibpath_var
10098
10099# Set to yes if building a shared library automatically hardcodes DIR into the library
10100# and all subsequent libraries and executables linked against it.
10101hardcode_automatic=$hardcode_automatic
10102
10103# Variables whose values should be saved in libtool wrapper scripts and
10104# restored at relink time.
10105variables_saved_for_relink="$variables_saved_for_relink"
10106
10107# Whether libtool must link a program against all its dependency libraries.
10108link_all_deplibs=$link_all_deplibs
10109
10110# Compile-time system search path for libraries
10111sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10112
10113# Run-time system search path for libraries
10114sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10115
10116# Fix the shell variable \$srcfile for the compiler.
10117fix_srcfile_path="$fix_srcfile_path"
10118
10119# Set to yes if exported symbols are required.
10120always_export_symbols=$always_export_symbols
10121
10122# The commands to list exported symbols.
10123export_symbols_cmds=$lt_export_symbols_cmds
10124
10125# The commands to extract the exported symbol list from a shared archive.
10126extract_expsyms_cmds=$lt_extract_expsyms_cmds
10127
10128# Symbols that should not be listed in the preloaded symbols.
10129exclude_expsyms=$lt_exclude_expsyms
10130
10131# Symbols that must always be exported.
10132include_expsyms=$lt_include_expsyms
10133
10134# ### END LIBTOOL CONFIG
10135
10136__EOF__
10137
10138
10139  case $host_os in
10140  aix3*)
10141    cat <<\EOF >> "$cfgfile"
10142
10143# AIX sometimes has problems with the GCC collect2 program.  For some
10144# reason, if we set the COLLECT_NAMES environment variable, the problems
10145# vanish in a puff of smoke.
10146if test "X${COLLECT_NAMES+set}" != Xset; then
10147  COLLECT_NAMES=
10148  export COLLECT_NAMES
10149fi
10150EOF
10151    ;;
10152  esac
10153
10154  # We use sed instead of cat because bash on DJGPP gets confused if
10155  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10156  # text mode, it properly converts lines to CR/LF.  This bash problem
10157  # is reportedly fixed, but why not run on old versions too?
10158  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10159
10160  mv -f "$cfgfile" "$ofile" || \
10161    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10162  chmod +x "$ofile"
10163
10164else
10165  # If there is no Makefile yet, we rely on a make rule to execute
10166  # `config.status --recheck' to rerun these tests and create the
10167  # libtool script then.
10168  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10169  if test -f "$ltmain_in"; then
10170    test -f Makefile && make "$ltmain"
10171  fi
10172fi
10173
10174
10175ac_ext=c
10176ac_cpp='$CPP $CPPFLAGS'
10177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10179ac_compiler_gnu=$ac_cv_c_compiler_gnu
10180
10181CC="$lt_save_CC"
10182
10183
10184# Check whether --with-tags or --without-tags was given.
10185if test "${with_tags+set}" = set; then
10186  withval="$with_tags"
10187  tagnames="$withval"
10188fi;
10189
10190if test -f "$ltmain" && test -n "$tagnames"; then
10191  if test ! -f "${ofile}"; then
10192    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10193echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10194  fi
10195
10196  if test -z "$LTCC"; then
10197    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10198    if test -z "$LTCC"; then
10199      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10200echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10201    else
10202      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10203echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10204    fi
10205  fi
10206  if test -z "$LTCFLAGS"; then
10207    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10208  fi
10209
10210  # Extract list of available tagged configurations in $ofile.
10211  # Note that this assumes the entire list is on one line.
10212  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10213
10214  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10215  for tagname in $tagnames; do
10216    IFS="$lt_save_ifs"
10217    # Check whether tagname contains only valid characters
10218    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10219    "") ;;
10220    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10221echo "$as_me: error: invalid tag name: $tagname" >&2;}
10222   { (exit 1); exit 1; }; }
10223        ;;
10224    esac
10225
10226    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10227    then
10228      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10229echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10230   { (exit 1); exit 1; }; }
10231    fi
10232
10233    # Update the list of available tags.
10234    if test -n "$tagname"; then
10235      echo appending configuration tag \"$tagname\" to $ofile
10236
10237      case $tagname in
10238      CXX)
10239        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10240            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10241            (test "X$CXX" != "Xg++"))) ; then
10242          ac_ext=cc
10243ac_cpp='$CXXCPP $CPPFLAGS'
10244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10247
10248
10249
10250
10251archive_cmds_need_lc_CXX=no
10252allow_undefined_flag_CXX=
10253always_export_symbols_CXX=no
10254archive_expsym_cmds_CXX=
10255export_dynamic_flag_spec_CXX=
10256hardcode_direct_CXX=no
10257hardcode_libdir_flag_spec_CXX=
10258hardcode_libdir_flag_spec_ld_CXX=
10259hardcode_libdir_separator_CXX=
10260hardcode_minus_L_CXX=no
10261hardcode_shlibpath_var_CXX=unsupported
10262hardcode_automatic_CXX=no
10263module_cmds_CXX=
10264module_expsym_cmds_CXX=
10265link_all_deplibs_CXX=unknown
10266old_archive_cmds_CXX=$old_archive_cmds
10267no_undefined_flag_CXX=
10268whole_archive_flag_spec_CXX=
10269enable_shared_with_static_runtimes_CXX=no
10270
10271# Dependencies to place before and after the object being linked:
10272predep_objects_CXX=
10273postdep_objects_CXX=
10274predeps_CXX=
10275postdeps_CXX=
10276compiler_lib_search_path_CXX=
10277
10278# Source file extension for C++ test sources.
10279ac_ext=cpp
10280
10281# Object file extension for compiled C++ test sources.
10282objext=o
10283objext_CXX=$objext
10284
10285# Code to be used in simple compile tests
10286lt_simple_compile_test_code="int some_variable = 0;\n"
10287
10288# Code to be used in simple link tests
10289lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10290
10291# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10292
10293# If no C compiler was specified, use CC.
10294LTCC=${LTCC-"$CC"}
10295
10296# If no C compiler flags were specified, use CFLAGS.
10297LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10298
10299# Allow CC to be a program name with arguments.
10300compiler=$CC
10301
10302
10303# save warnings/boilerplate of simple test code
10304ac_outfile=conftest.$ac_objext
10305printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10306eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10307_lt_compiler_boilerplate=`cat conftest.err`
10308$rm conftest*
10309
10310ac_outfile=conftest.$ac_objext
10311printf "$lt_simple_link_test_code" >conftest.$ac_ext
10312eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10313_lt_linker_boilerplate=`cat conftest.err`
10314$rm conftest*
10315
10316
10317# Allow CC to be a program name with arguments.
10318lt_save_CC=$CC
10319lt_save_LD=$LD
10320lt_save_GCC=$GCC
10321GCC=$GXX
10322lt_save_with_gnu_ld=$with_gnu_ld
10323lt_save_path_LD=$lt_cv_path_LD
10324if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10325  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10326else
10327  $as_unset lt_cv_prog_gnu_ld
10328fi
10329if test -n "${lt_cv_path_LDCXX+set}"; then
10330  lt_cv_path_LD=$lt_cv_path_LDCXX
10331else
10332  $as_unset lt_cv_path_LD
10333fi
10334test -z "${LDCXX+set}" || LD=$LDCXX
10335CC=${CXX-"c++"}
10336compiler=$CC
10337compiler_CXX=$CC
10338for cc_temp in $compiler""; do
10339  case $cc_temp in
10340    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10341    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10342    \-*) ;;
10343    *) break;;
10344  esac
10345done
10346cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10347
10348
10349# We don't want -fno-exception wen compiling C++ code, so set the
10350# no_builtin_flag separately
10351if test "$GXX" = yes; then
10352  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10353else
10354  lt_prog_compiler_no_builtin_flag_CXX=
10355fi
10356
10357if test "$GXX" = yes; then
10358  # Set up default GNU C++ configuration
10359
10360
10361# Check whether --with-gnu-ld or --without-gnu-ld was given.
10362if test "${with_gnu_ld+set}" = set; then
10363  withval="$with_gnu_ld"
10364  test "$withval" = no || with_gnu_ld=yes
10365else
10366  with_gnu_ld=no
10367fi;
10368ac_prog=ld
10369if test "$GCC" = yes; then
10370  # Check if gcc -print-prog-name=ld gives a path.
10371  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10372echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10373  case $host in
10374  *-*-mingw*)
10375    # gcc leaves a trailing carriage return which upsets mingw
10376    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10377  *)
10378    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10379  esac
10380  case $ac_prog in
10381    # Accept absolute paths.
10382    [\\/]* | ?:[\\/]*)
10383      re_direlt='/[^/][^/]*/\.\./'
10384      # Canonicalize the pathname of ld
10385      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10386      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10387        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10388      done
10389      test -z "$LD" && LD="$ac_prog"
10390      ;;
10391  "")
10392    # If it fails, then pretend we aren't using GCC.
10393    ac_prog=ld
10394    ;;
10395  *)
10396    # If it is relative, then search for the first ld in PATH.
10397    with_gnu_ld=unknown
10398    ;;
10399  esac
10400elif test "$with_gnu_ld" = yes; then
10401  echo "$as_me:$LINENO: checking for GNU ld" >&5
10402echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10403else
10404  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10405echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10406fi
10407if test "${lt_cv_path_LD+set}" = set; then
10408  echo $ECHO_N "(cached) $ECHO_C" >&6
10409else
10410  if test -z "$LD"; then
10411  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10412  for ac_dir in $PATH; do
10413    IFS="$lt_save_ifs"
10414    test -z "$ac_dir" && ac_dir=.
10415    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10416      lt_cv_path_LD="$ac_dir/$ac_prog"
10417      # Check to see if the program is GNU ld.  I'd rather use --version,
10418      # but apparently some variants of GNU ld only accept -v.
10419      # Break only if it was the GNU/non-GNU ld that we prefer.
10420      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10421      *GNU* | *'with BFD'*)
10422        test "$with_gnu_ld" != no && break
10423        ;;
10424      *)
10425        test "$with_gnu_ld" != yes && break
10426        ;;
10427      esac
10428    fi
10429  done
10430  IFS="$lt_save_ifs"
10431else
10432  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10433fi
10434fi
10435
10436LD="$lt_cv_path_LD"
10437if test -n "$LD"; then
10438  echo "$as_me:$LINENO: result: $LD" >&5
10439echo "${ECHO_T}$LD" >&6
10440else
10441  echo "$as_me:$LINENO: result: no" >&5
10442echo "${ECHO_T}no" >&6
10443fi
10444test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10445echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10446   { (exit 1); exit 1; }; }
10447echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10448echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10449if test "${lt_cv_prog_gnu_ld+set}" = set; then
10450  echo $ECHO_N "(cached) $ECHO_C" >&6
10451else
10452  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10453case `$LD -v 2>&1 </dev/null` in
10454*GNU* | *'with BFD'*)
10455  lt_cv_prog_gnu_ld=yes
10456  ;;
10457*)
10458  lt_cv_prog_gnu_ld=no
10459  ;;
10460esac
10461fi
10462echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10463echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10464with_gnu_ld=$lt_cv_prog_gnu_ld
10465
10466
10467
10468  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10469  # archiving commands below assume that GNU ld is being used.
10470  if test "$with_gnu_ld" = yes; then
10471    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10472    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'
10473
10474    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10475    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10476
10477    # If archive_cmds runs LD, not CC, wlarc should be empty
10478    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10479    #     investigate it a little bit more. (MM)
10480    wlarc='${wl}'
10481
10482    # ancient GNU ld didn't support --whole-archive et. al.
10483    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10484        grep 'no-whole-archive' > /dev/null; then
10485      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10486    else
10487      whole_archive_flag_spec_CXX=
10488    fi
10489  else
10490    with_gnu_ld=no
10491    wlarc=
10492
10493    # A generic and very simple default shared library creation
10494    # command for GNU C++ for the case where it uses the native
10495    # linker, instead of GNU ld.  If possible, this setting should
10496    # overridden to take advantage of the native linker features on
10497    # the platform it is being used on.
10498    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10499  fi
10500
10501  # Commands to make compiler produce verbose output that lists
10502  # what "hidden" libraries, object files and flags are used when
10503  # linking a shared library.
10504  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10505
10506else
10507  GXX=no
10508  with_gnu_ld=no
10509  wlarc=
10510fi
10511
10512# PORTME: fill in a description of your system's C++ link characteristics
10513echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10514echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10515ld_shlibs_CXX=yes
10516case $host_os in
10517  aix3*)
10518    # FIXME: insert proper C++ library support
10519    ld_shlibs_CXX=no
10520    ;;
10521  aix4* | aix5*)
10522    if test "$host_cpu" = ia64; then
10523      # On IA64, the linker does run time linking by default, so we don't
10524      # have to do anything special.
10525      aix_use_runtimelinking=no
10526      exp_sym_flag='-Bexport'
10527      no_entry_flag=""
10528    else
10529      aix_use_runtimelinking=no
10530
10531      # Test if we are trying to use run time linking or normal
10532      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10533      # need to do runtime linking.
10534      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10535        for ld_flag in $LDFLAGS; do
10536          case $ld_flag in
10537          *-brtl*)
10538            aix_use_runtimelinking=yes
10539            break
10540            ;;
10541          esac
10542        done
10543        ;;
10544      esac
10545
10546      exp_sym_flag='-bexport'
10547      no_entry_flag='-bnoentry'
10548    fi
10549
10550    # When large executables or shared objects are built, AIX ld can
10551    # have problems creating the table of contents.  If linking a library
10552    # or program results in "error TOC overflow" add -mminimal-toc to
10553    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10554    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10555
10556    archive_cmds_CXX=''
10557    hardcode_direct_CXX=yes
10558    hardcode_libdir_separator_CXX=':'
10559    link_all_deplibs_CXX=yes
10560
10561    if test "$GXX" = yes; then
10562      case $host_os in aix4.[012]|aix4.[012].*)
10563      # We only want to do this on AIX 4.2 and lower, the check
10564      # below for broken collect2 doesn't work under 4.3+
10565        collect2name=`${CC} -print-prog-name=collect2`
10566        if test -f "$collect2name" && \
10567           strings "$collect2name" | grep resolve_lib_name >/dev/null
10568        then
10569          # We have reworked collect2
10570          hardcode_direct_CXX=yes
10571        else
10572          # We have old collect2
10573          hardcode_direct_CXX=unsupported
10574          # It fails to find uninstalled libraries when the uninstalled
10575          # path is not listed in the libpath.  Setting hardcode_minus_L
10576          # to unsupported forces relinking
10577          hardcode_minus_L_CXX=yes
10578          hardcode_libdir_flag_spec_CXX='-L$libdir'
10579          hardcode_libdir_separator_CXX=
10580        fi
10581        ;;
10582      esac
10583      shared_flag='-shared'
10584      if test "$aix_use_runtimelinking" = yes; then
10585        shared_flag="$shared_flag "'${wl}-G'
10586      fi
10587    else
10588      # not using gcc
10589      if test "$host_cpu" = ia64; then
10590        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10591        # chokes on -Wl,-G. The following line is correct:
10592        shared_flag='-G'
10593      else
10594        if test "$aix_use_runtimelinking" = yes; then
10595          shared_flag='${wl}-G'
10596        else
10597          shared_flag='${wl}-bM:SRE'
10598        fi
10599      fi
10600    fi
10601
10602    # It seems that -bexpall does not export symbols beginning with
10603    # underscore (_), so it is better to generate a list of symbols to export.
10604    always_export_symbols_CXX=yes
10605    if test "$aix_use_runtimelinking" = yes; then
10606      # Warning - without using the other runtime loading flags (-brtl),
10607      # -berok will link without error, but may produce a broken library.
10608      allow_undefined_flag_CXX='-berok'
10609      # Determine the default libpath from the value encoded in an empty executable.
10610      cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h.  */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h.  */
10616
10617int
10618main ()
10619{
10620
10621  ;
10622  return 0;
10623}
10624_ACEOF
10625rm -f conftest.$ac_objext conftest$ac_exeext
10626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627  (eval $ac_link) 2>conftest.er1
10628  ac_status=$?
10629  grep -v '^ *+' conftest.er1 >conftest.err
10630  rm -f conftest.er1
10631  cat conftest.err >&5
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); } &&
10634         { ac_try='test -z "$ac_cxx_werror_flag"
10635                         || test ! -s conftest.err'
10636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637  (eval $ac_try) 2>&5
10638  ac_status=$?
10639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); }; } &&
10641         { ac_try='test -s conftest$ac_exeext'
10642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643  (eval $ac_try) 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); }; }; then
10647
10648aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10649}'`
10650# Check for a 64-bit object if we didn't find anything.
10651if 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; }
10652}'`; fi
10653else
10654  echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
10657fi
10658rm -f conftest.err conftest.$ac_objext \
10659      conftest$ac_exeext conftest.$ac_ext
10660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10661
10662      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10663
10664      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"
10665     else
10666      if test "$host_cpu" = ia64; then
10667        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10668        allow_undefined_flag_CXX="-z nodefs"
10669        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"
10670      else
10671        # Determine the default libpath from the value encoded in an empty executable.
10672        cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h.  */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h.  */
10678
10679int
10680main ()
10681{
10682
10683  ;
10684  return 0;
10685}
10686_ACEOF
10687rm -f conftest.$ac_objext conftest$ac_exeext
10688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689  (eval $ac_link) 2>conftest.er1
10690  ac_status=$?
10691  grep -v '^ *+' conftest.er1 >conftest.err
10692  rm -f conftest.er1
10693  cat conftest.err >&5
10694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695  (exit $ac_status); } &&
10696         { ac_try='test -z "$ac_cxx_werror_flag"
10697                         || test ! -s conftest.err'
10698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699  (eval $ac_try) 2>&5
10700  ac_status=$?
10701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702  (exit $ac_status); }; } &&
10703         { ac_try='test -s conftest$ac_exeext'
10704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705  (eval $ac_try) 2>&5
10706  ac_status=$?
10707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708  (exit $ac_status); }; }; then
10709
10710aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10711}'`
10712# Check for a 64-bit object if we didn't find anything.
10713if 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; }
10714}'`; fi
10715else
10716  echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719fi
10720rm -f conftest.err conftest.$ac_objext \
10721      conftest$ac_exeext conftest.$ac_ext
10722if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10723
10724        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10725        # Warning - without using the other run time loading flags,
10726        # -berok will link without error, but may produce a broken library.
10727        no_undefined_flag_CXX=' ${wl}-bernotok'
10728        allow_undefined_flag_CXX=' ${wl}-berok'
10729        # Exported symbols can be pulled into shared objects from archives
10730        whole_archive_flag_spec_CXX='$convenience'
10731        archive_cmds_need_lc_CXX=yes
10732        # This is similar to how AIX traditionally builds its shared libraries.
10733        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'
10734      fi
10735    fi
10736    ;;
10737
10738  beos*)
10739    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10740      allow_undefined_flag_CXX=unsupported
10741      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10742      # support --undefined.  This deserves some investigation.  FIXME
10743      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10744    else
10745      ld_shlibs_CXX=no
10746    fi
10747    ;;
10748
10749  chorus*)
10750    case $cc_basename in
10751      *)
10752        # FIXME: insert proper C++ library support
10753        ld_shlibs_CXX=no
10754        ;;
10755    esac
10756    ;;
10757
10758  cygwin* | mingw* | pw32*)
10759    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10760    # as there is no search path for DLLs.
10761    hardcode_libdir_flag_spec_CXX='-L$libdir'
10762    allow_undefined_flag_CXX=unsupported
10763    always_export_symbols_CXX=no
10764    enable_shared_with_static_runtimes_CXX=yes
10765
10766    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10767      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'
10768      # If the export-symbols file already is a .def file (1st line
10769      # is EXPORTS), use it as is; otherwise, prepend...
10770      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10771        cp $export_symbols $output_objdir/$soname.def;
10772      else
10773        echo EXPORTS > $output_objdir/$soname.def;
10774        cat $export_symbols >> $output_objdir/$soname.def;
10775      fi~
10776      $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'
10777    else
10778      ld_shlibs_CXX=no
10779    fi
10780  ;;
10781      darwin* | rhapsody*)
10782        case $host_os in
10783        rhapsody* | darwin1.[012])
10784         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10785         ;;
10786       *) # Darwin 1.3 on
10787         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10788           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10789         else
10790           case ${MACOSX_DEPLOYMENT_TARGET} in
10791             10.[012])