source: ThirdParty/Blas/trunk/configure @ 195

Last change on this file since 195 was 195, checked in by andreasw, 15 years ago

reran autotools

  • Property svn:executable set to *
File size: 695.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
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='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES 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_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-blas compile this project (Blas) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS (default: disabled)
1077  --enable-static[=PKGS]
1078                          build static libraries [default=no]
1079  --disable-dependency-tracking  speeds up one-time build
1080  --enable-dependency-tracking   do not reject slow dependency extractors
1081  --enable-maintainer-mode  enable make rules and dependencies not useful
1082                          (and sometimes confusing) to the casual installer
1083  --enable-shared[=PKGS]
1084                          build shared libraries [default=yes]
1085  --enable-fast-install[=PKGS]
1086                          optimize for fast installation [default=yes]
1087  --disable-libtool-lock  avoid locking (might break parallel builds)
1088
1089Optional Packages:
1090  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1091  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1092  --with-blas-verbosity specify the debug verbosity level for project Blas
1093  --with-blas-checklevel specify the sanity check level for project Blas
1094  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1095  --with-pic              try to use only PIC/non-PIC objects [default=use
1096                          both]
1097  --with-tags[=TAGS]
1098                          include additional configurations [automatic]
1099
1100Some influential environment variables:
1101  CDEFS       Additional -D flags to be used when compiling C code.
1102  ADD_CFLAGS  Additional C compiler options
1103  DBG_CFLAGS  Debug C compiler options
1104  OPT_CFLAGS  Optimize C compiler options
1105  CC          C compiler command
1106  CFLAGS      C compiler flags
1107  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1108              nonstandard directory <lib dir>
1109  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1110              headers in a nonstandard directory <include dir>
1111  MPICC       C MPI Compiler
1112  ADD_FFLAGS  Additional Fortran compiler options
1113  DBG_FFLAGS  Debug Fortran compiler options
1114  OPT_FFLAGS  Optimize Fortran compiler options
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117  MPIF77      Fortran MPI Compiler
1118  CPP         C preprocessor
1119  CXX         C++ compiler command
1120  CXXFLAGS    C++ compiler flags
1121  CXXCPP      C++ preprocessor
1122
1123Use these variables to override the choices made by `configure' or to help
1124it to find libraries and programs with nonstandard names/locations.
1125
1126Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1127_ACEOF
1128fi
1129
1130if test "$ac_init_help" = "recursive"; then
1131  # If there are subdirs, report their specific --help.
1132  ac_popdir=`pwd`
1133  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1134    test -d $ac_dir || continue
1135    ac_builddir=.
1136
1137if test "$ac_dir" != .; then
1138  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1139  # A "../" for each directory in $ac_dir_suffix.
1140  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1141else
1142  ac_dir_suffix= ac_top_builddir=
1143fi
1144
1145case $srcdir in
1146  .)  # No --srcdir option.  We are building in place.
1147    ac_srcdir=.
1148    if test -z "$ac_top_builddir"; then
1149       ac_top_srcdir=.
1150    else
1151       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1152    fi ;;
1153  [\\/]* | ?:[\\/]* )  # Absolute path.
1154    ac_srcdir=$srcdir$ac_dir_suffix;
1155    ac_top_srcdir=$srcdir ;;
1156  *) # Relative path.
1157    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1158    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1159esac
1160
1161# Do not use `cd foo && pwd` to compute absolute paths, because
1162# the directories may not exist.
1163case `pwd` in
1164.) ac_abs_builddir="$ac_dir";;
1165*)
1166  case "$ac_dir" in
1167  .) ac_abs_builddir=`pwd`;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1169  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1170  esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_top_builddir=${ac_top_builddir}.;;
1174*)
1175  case ${ac_top_builddir}. in
1176  .) ac_abs_top_builddir=$ac_abs_builddir;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1178  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_srcdir=$ac_srcdir;;
1183*)
1184  case $ac_srcdir in
1185  .) ac_abs_srcdir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1187  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_top_srcdir=$ac_top_srcdir;;
1192*)
1193  case $ac_top_srcdir in
1194  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1196  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1197  esac;;
1198esac
1199
1200    cd $ac_dir
1201    # Check for guested configure; otherwise get Cygnus style configure.
1202    if test -f $ac_srcdir/configure.gnu; then
1203      echo
1204      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1205    elif test -f $ac_srcdir/configure; then
1206      echo
1207      $SHELL $ac_srcdir/configure  --help=recursive
1208    elif test -f $ac_srcdir/configure.ac ||
1209           test -f $ac_srcdir/configure.in; then
1210      echo
1211      $ac_configure --help
1212    else
1213      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1214    fi
1215    cd $ac_popdir
1216  done
1217fi
1218
1219test -n "$ac_init_help" && exit 0
1220if $ac_init_version; then
1221  cat <<\_ACEOF
1222ThirdPartyBlas configure 0.0
1223generated by GNU Autoconf 2.59
1224
1225Copyright (C) 2003 Free Software Foundation, Inc.
1226This configure script is free software; the Free Software Foundation
1227gives unlimited permission to copy, distribute and modify it.
1228
1229
1230Copyright 2006 International Business Machines and others.
1231All Rights Reserved.
1232This file is part of the open source package Coin which is distributed
1233under the Common Public License.
1234_ACEOF
1235  exit 0
1236fi
1237exec 5>config.log
1238cat >&5 <<_ACEOF
1239This file contains any messages produced by compilers while
1240running configure, to aid debugging if configure makes a mistake.
1241
1242It was created by ThirdPartyBlas $as_me 0.0, which was
1243generated by GNU Autoconf 2.59.  Invocation command line was
1244
1245  $ $0 $@
1246
1247_ACEOF
1248{
1249cat <<_ASUNAME
1250## --------- ##
1251## Platform. ##
1252## --------- ##
1253
1254hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258uname -v = `(uname -v) 2>/dev/null || echo unknown`
1259
1260/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1262
1263/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1264/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1265/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1267/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1268/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1269/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1270
1271_ASUNAME
1272
1273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274for as_dir in $PATH
1275do
1276  IFS=$as_save_IFS
1277  test -z "$as_dir" && as_dir=.
1278  echo "PATH: $as_dir"
1279done
1280
1281} >&5
1282
1283cat >&5 <<_ACEOF
1284
1285
1286## ----------- ##
1287## Core tests. ##
1288## ----------- ##
1289
1290_ACEOF
1291
1292
1293# Keep a trace of the command line.
1294# Strip out --no-create and --no-recursion so they do not pile up.
1295# Strip out --silent because we don't want to record it for future runs.
1296# Also quote any args containing shell meta-characters.
1297# Make two passes to allow for proper duplicate-argument suppression.
1298ac_configure_args=
1299ac_configure_args0=
1300ac_configure_args1=
1301ac_sep=
1302ac_must_keep_next=false
1303for ac_pass in 1 2
1304do
1305  for ac_arg
1306  do
1307    case $ac_arg in
1308    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310    | -silent | --silent | --silen | --sile | --sil)
1311      continue ;;
1312    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1314    esac
1315    case $ac_pass in
1316    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1317    2)
1318      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319      if test $ac_must_keep_next = true; then
1320        ac_must_keep_next=false # Got value, back to normal.
1321      else
1322        case $ac_arg in
1323          *=* | --config-cache | -C | -disable-* | --disable-* \
1324          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326          | -with-* | --with-* | -without-* | --without-* | --x)
1327            case "$ac_configure_args0 " in
1328              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1329            esac
1330            ;;
1331          -* ) ac_must_keep_next=true ;;
1332        esac
1333      fi
1334      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335      # Get rid of the leading space.
1336      ac_sep=" "
1337      ;;
1338    esac
1339  done
1340done
1341$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1343
1344# When interrupted or exit'd, cleanup temporary files, and complete
1345# config.log.  We remove comments because anyway the quotes in there
1346# would cause problems or look ugly.
1347# WARNING: Be sure not to use single quotes in there, as some shells,
1348# such as our DU 5.0 friend, will then `close' the trap.
1349trap 'exit_status=$?
1350  # Save into config.log some information that might help in debugging.
1351  {
1352    echo
1353
1354    cat <<\_ASBOX
1355## ---------------- ##
1356## Cache variables. ##
1357## ---------------- ##
1358_ASBOX
1359    echo
1360    # The following way of writing the cache mishandles newlines in values,
1361{
1362  (set) 2>&1 |
1363    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1364    *ac_space=\ *)
1365      sed -n \
1366        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1368      ;;
1369    *)
1370      sed -n \
1371        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1372      ;;
1373    esac;
1374}
1375    echo
1376
1377    cat <<\_ASBOX
1378## ----------------- ##
1379## Output variables. ##
1380## ----------------- ##
1381_ASBOX
1382    echo
1383    for ac_var in $ac_subst_vars
1384    do
1385      eval ac_val=$`echo $ac_var`
1386      echo "$ac_var='"'"'$ac_val'"'"'"
1387    done | sort
1388    echo
1389
1390    if test -n "$ac_subst_files"; then
1391      cat <<\_ASBOX
1392## ------------- ##
1393## Output files. ##
1394## ------------- ##
1395_ASBOX
1396      echo
1397      for ac_var in $ac_subst_files
1398      do
1399        eval ac_val=$`echo $ac_var`
1400        echo "$ac_var='"'"'$ac_val'"'"'"
1401      done | sort
1402      echo
1403    fi
1404
1405    if test -s confdefs.h; then
1406      cat <<\_ASBOX
1407## ----------- ##
1408## confdefs.h. ##
1409## ----------- ##
1410_ASBOX
1411      echo
1412      sed "/^$/d" confdefs.h | sort
1413      echo
1414    fi
1415    test "$ac_signal" != 0 &&
1416      echo "$as_me: caught signal $ac_signal"
1417    echo "$as_me: exit $exit_status"
1418  } >&5
1419  rm -f core *.core &&
1420  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1421    exit $exit_status
1422     ' 0
1423for ac_signal in 1 2 13 15; do
1424  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425done
1426ac_signal=0
1427
1428# confdefs.h avoids OS command line length limits that DEFS can exceed.
1429rm -rf conftest* confdefs.h
1430# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1431echo >confdefs.h
1432
1433# Predefined preprocessor variables.
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_NAME "$PACKAGE_NAME"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_VERSION "$PACKAGE_VERSION"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_STRING "$PACKAGE_STRING"
1452_ACEOF
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457_ACEOF
1458
1459
1460# Let the site file select an alternate cache file if it wants to.
1461# Prefer explicitly selected file to automatically selected ones.
1462if test -z "$CONFIG_SITE"; then
1463  if test "x$prefix" != xNONE; then
1464    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1465  else
1466    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1467  fi
1468fi
1469for ac_site_file in $CONFIG_SITE; do
1470  if test -r "$ac_site_file"; then
1471    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472echo "$as_me: loading site script $ac_site_file" >&6;}
1473    sed 's/^/| /' "$ac_site_file" >&5
1474    . "$ac_site_file"
1475  fi
1476done
1477
1478if test -r "$cache_file"; then
1479  # Some versions of bash will fail to source /dev/null (special
1480  # files actually), so we avoid doing that.
1481  if test -f "$cache_file"; then
1482    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1483echo "$as_me: loading cache $cache_file" >&6;}
1484    case $cache_file in
1485      [\\/]* | ?:[\\/]* ) . $cache_file;;
1486      *)                      . ./$cache_file;;
1487    esac
1488  fi
1489else
1490  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1491echo "$as_me: creating cache $cache_file" >&6;}
1492  >$cache_file
1493fi
1494
1495# Check that the precious variables saved in the cache have kept the same
1496# value.
1497ac_cache_corrupted=false
1498for ac_var in `(set) 2>&1 |
1499               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1500  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1501  eval ac_new_set=\$ac_env_${ac_var}_set
1502  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1503  eval ac_new_val="\$ac_env_${ac_var}_value"
1504  case $ac_old_set,$ac_new_set in
1505    set,)
1506      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1507echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1508      ac_cache_corrupted=: ;;
1509    ,set)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,);;
1514    *)
1515      if test "x$ac_old_val" != "x$ac_new_val"; then
1516        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1517echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1518        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1519echo "$as_me:   former value:  $ac_old_val" >&2;}
1520        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1521echo "$as_me:   current value: $ac_new_val" >&2;}
1522        ac_cache_corrupted=:
1523      fi;;
1524  esac
1525  # Pass precious variables to config.status.
1526  if test "$ac_new_set" = set; then
1527    case $ac_new_val in
1528    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1529      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1530    *) ac_arg=$ac_var=$ac_new_val ;;
1531    esac
1532    case " $ac_configure_args " in
1533      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1534      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1535    esac
1536  fi
1537done
1538if $ac_cache_corrupted; then
1539  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543   { (exit 1); exit 1; }; }
1544fi
1545
1546ac_ext=c
1547ac_cpp='$CPP $CPPFLAGS'
1548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550ac_compiler_gnu=$ac_cv_c_compiler_gnu
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581# List one file in the package so that the configure script can test
1582# whether the package is actually there
1583
1584
1585# Where should everything be installed by default?  Here, we want it
1586# to be installed directly in 'bin', 'lib', 'include' subdirectories
1587# of the directory where configure is run.  The default would be
1588# /usr/local.
1589
1590
1591# Initialize the ADDLIBS variable
1592ADDLIBS="-lm $LIBS"
1593
1594
1595# Initialize the FADDLIBS variable (which is to be used with a fortran
1596# compiler and will not include FLIBS)
1597FADDLIBS="$LIBS"
1598
1599
1600# A useful makefile conditional that is always false
1601
1602
1603if false; then
1604  ALWAYS_FALSE_TRUE=
1605  ALWAYS_FALSE_FALSE='#'
1606else
1607  ALWAYS_FALSE_TRUE='#'
1608  ALWAYS_FALSE_FALSE=
1609fi
1610
1611
1612# We set the following variable so that we know later in AC_COIN_FINALIZE
1613# that we are in a project main directory
1614coin_projectdir=yes
1615
1616
1617#############################################################################
1618#                         Standard build tool stuff                         #
1619#############################################################################
1620
1621# Get the system type
1622ac_aux_dir=
1623for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1624  if test -f $ac_dir/install-sh; then
1625    ac_aux_dir=$ac_dir
1626    ac_install_sh="$ac_aux_dir/install-sh -c"
1627    break
1628  elif test -f $ac_dir/install.sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install.sh -c"
1631    break
1632  elif test -f $ac_dir/shtool; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/shtool install -c"
1635    break
1636  fi
1637done
1638if test -z "$ac_aux_dir"; then
1639  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1640echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1641   { (exit 1); exit 1; }; }
1642fi
1643ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1644ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1645ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1646
1647# Make sure we can run config.sub.
1648$ac_config_sub sun4 >/dev/null 2>&1 ||
1649  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1650echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1651   { (exit 1); exit 1; }; }
1652
1653echo "$as_me:$LINENO: checking build system type" >&5
1654echo $ECHO_N "checking build system type... $ECHO_C" >&6
1655if test "${ac_cv_build+set}" = set; then
1656  echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658  ac_cv_build_alias=$build_alias
1659test -z "$ac_cv_build_alias" &&
1660  ac_cv_build_alias=`$ac_config_guess`
1661test -z "$ac_cv_build_alias" &&
1662  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1663echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1664   { (exit 1); exit 1; }; }
1665ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1666  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1667echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1668   { (exit 1); exit 1; }; }
1669
1670fi
1671echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1672echo "${ECHO_T}$ac_cv_build" >&6
1673build=$ac_cv_build
1674build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1675build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1676build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677
1678
1679
1680# Check if user wants to produce debugging code
1681
1682echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1683echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1684
1685# Check whether --enable-debug or --disable-debug was given.
1686if test "${enable_debug+set}" = set; then
1687  enableval="$enable_debug"
1688  case "${enableval}" in
1689   yes) coin_debug_compile=true
1690        enable_shared=no
1691        ;;
1692   no)  coin_debug_compile=false
1693        ;;
1694   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1695echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1696   { (exit 1); exit 1; }; }
1697        ;;
1698esac
1699else
1700  coin_debug_compile=false
1701fi;
1702
1703# Check whether --enable-debug-blas or --disable-debug-blas was given.
1704if test "${enable_debug_blas+set}" = set; then
1705  enableval="$enable_debug_blas"
1706  case "${enableval}" in
1707    yes) coin_debug_compile=true
1708         enable_shared=no
1709         ;;
1710    no)  coin_debug_compile=false
1711         ;;
1712    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1713echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1714   { (exit 1); exit 1; }; }
1715         ;;
1716 esac
1717else
1718  :
1719fi;
1720
1721 # m4_ifvaln([Blas],
1722
1723if test $coin_debug_compile = true; then
1724  echo "$as_me:$LINENO: result: yes" >&5
1725echo "${ECHO_T}yes" >&6
1726else
1727  echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
1729fi
1730
1731
1732# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1733if test "${with_blas_verbosity+set}" = set; then
1734  withval="$with_blas_verbosity"
1735  coin_blas_verbosity=$withval
1736else
1737  coin_blas_verbosity=0
1738fi;
1739
1740cat >>confdefs.h <<_ACEOF
1741#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1742_ACEOF
1743
1744
1745
1746# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1747if test "${with_blas_checklevel+set}" = set; then
1748  withval="$with_blas_checklevel"
1749  coin_blas_checklevel=$withval
1750else
1751  coin_blas_checklevel=0
1752fi;
1753
1754cat >>confdefs.h <<_ACEOF
1755#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1756_ACEOF
1757
1758
1759# We use the following variable to have a string with the upper case
1760# version of the project name
1761COIN_PRJCT=BLAS
1762
1763
1764 # m4_ifvaln([Blas],
1765
1766
1767
1768# Get the name of the Fortran compiler and appropriate compiler options
1769case $build in
1770  *-mingw*)
1771    if test "${LD+set}" = set; then :; else
1772      LD=link
1773    fi
1774    ;;
1775esac
1776
1777# Check whether --enable-doscompile or --disable-doscompile was given.
1778if test "${enable_doscompile+set}" = set; then
1779  enableval="$enable_doscompile"
1780  if test "$enable_doscompile = yes"; then
1781  case $build in
1782    *-cygwin*) ;;
1783    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
1784echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
1785   { (exit 1); exit 1; }; } ;;
1786  esac
1787fi
1788else
1789  enable_doscompile=no
1790fi;
1791
1792
1793
1794
1795ac_ext=c
1796ac_cpp='$CPP $CPPFLAGS'
1797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800
1801
1802# For consistency, we set the C compiler to the same value of the C++
1803# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1804if test x"$CXX" != x; then
1805  case "$CXX" in
1806    cl* | */cl* | CL* | */CL*)
1807      if test x"$CC" = x; then
1808        CC="$CXX"
1809        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1810echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1811      fi
1812      ;;
1813  esac
1814fi
1815
1816
1817
1818
1819
1820
1821coin_has_cc=yes
1822
1823save_cflags="$CFLAGS"
1824case $build in
1825  *-cygwin* | *-mingw*)
1826             comps="gcc cl" ;;
1827  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1828  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1829esac
1830
1831# We delete the cached value, since the test might not have been
1832# performed with our choice of compilers earlier
1833$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1834ac_ext=c
1835ac_cpp='$CPP $CPPFLAGS'
1836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839if test -n "$ac_tool_prefix"; then
1840  for ac_prog in $comps
1841  do
1842    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1843set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1844echo "$as_me:$LINENO: checking for $ac_word" >&5
1845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846if test "${ac_cv_prog_CC+set}" = set; then
1847  echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849  if test -n "$CC"; then
1850  ac_cv_prog_CC="$CC" # Let the user override the test.
1851else
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855  IFS=$as_save_IFS
1856  test -z "$as_dir" && as_dir=.
1857  for ac_exec_ext in '' $ac_executable_extensions; do
1858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861    break 2
1862  fi
1863done
1864done
1865
1866fi
1867fi
1868CC=$ac_cv_prog_CC
1869if test -n "$CC"; then
1870  echo "$as_me:$LINENO: result: $CC" >&5
1871echo "${ECHO_T}$CC" >&6
1872else
1873  echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6
1875fi
1876
1877    test -n "$CC" && break
1878  done
1879fi
1880if test -z "$CC"; then
1881  ac_ct_CC=$CC
1882  for ac_prog in $comps
1883do
1884  # Extract the first word of "$ac_prog", so it can be a program name with args.
1885set dummy $ac_prog; ac_word=$2
1886echo "$as_me:$LINENO: checking for $ac_word" >&5
1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889  echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891  if test -n "$ac_ct_CC"; then
1892  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893else
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897  IFS=$as_save_IFS
1898  test -z "$as_dir" && as_dir=.
1899  for ac_exec_ext in '' $ac_executable_extensions; do
1900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901    ac_cv_prog_ac_ct_CC="$ac_prog"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907
1908fi
1909fi
1910ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911if test -n "$ac_ct_CC"; then
1912  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913echo "${ECHO_T}$ac_ct_CC" >&6
1914else
1915  echo "$as_me:$LINENO: result: no" >&5
1916echo "${ECHO_T}no" >&6
1917fi
1918
1919  test -n "$ac_ct_CC" && break
1920done
1921
1922  CC=$ac_ct_CC
1923fi
1924
1925
1926test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1927See \`config.log' for more details." >&5
1928echo "$as_me: error: no acceptable C compiler found in \$PATH
1929See \`config.log' for more details." >&2;}
1930   { (exit 1); exit 1; }; }
1931
1932# Provide some information about the compiler.
1933echo "$as_me:$LINENO:" \
1934     "checking for C compiler version" >&5
1935ac_compiler=`set X $ac_compile; echo $2`
1936{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1937  (eval $ac_compiler --version </dev/null >&5) 2>&5
1938  ac_status=$?
1939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940  (exit $ac_status); }
1941{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1942  (eval $ac_compiler -v </dev/null >&5) 2>&5
1943  ac_status=$?
1944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945  (exit $ac_status); }
1946{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1947  (eval $ac_compiler -V </dev/null >&5) 2>&5
1948  ac_status=$?
1949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950  (exit $ac_status); }
1951
1952cat >conftest.$ac_ext <<_ACEOF
1953/* confdefs.h.  */
1954_ACEOF
1955cat confdefs.h >>conftest.$ac_ext
1956cat >>conftest.$ac_ext <<_ACEOF
1957/* end confdefs.h.  */
1958
1959int
1960main ()
1961{
1962
1963  ;
1964  return 0;
1965}
1966_ACEOF
1967ac_clean_files_save=$ac_clean_files
1968ac_clean_files="$ac_clean_files a.out a.exe b.out"
1969# Try to create an executable without -o first, disregard a.out.
1970# It will help us diagnose broken compilers, and finding out an intuition
1971# of exeext.
1972echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1973echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1974ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1975if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1976  (eval $ac_link_default) 2>&5
1977  ac_status=$?
1978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979  (exit $ac_status); }; then
1980  # Find the output, starting from the most likely.  This scheme is
1981# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1982# resort.
1983
1984# Be careful to initialize this variable, since it used to be cached.
1985# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1986ac_cv_exeext=
1987# b.out is created by i960 compilers.
1988for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1989do
1990  test -f "$ac_file" || continue
1991  case $ac_file in
1992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1993        ;;
1994    conftest.$ac_ext )
1995        # This is the source file.
1996        ;;
1997    [ab].out )
1998        # We found the default executable, but exeext='' is most
1999        # certainly right.
2000        break;;
2001    *.* )
2002        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2003        # FIXME: I believe we export ac_cv_exeext for Libtool,
2004        # but it would be cool to find out if it's true.  Does anybody
2005        # maintain Libtool? --akim.
2006        export ac_cv_exeext
2007        break;;
2008    * )
2009        break;;
2010  esac
2011done
2012else
2013  echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2017See \`config.log' for more details." >&5
2018echo "$as_me: error: C compiler cannot create executables
2019See \`config.log' for more details." >&2;}
2020   { (exit 77); exit 77; }; }
2021fi
2022
2023ac_exeext=$ac_cv_exeext
2024echo "$as_me:$LINENO: result: $ac_file" >&5
2025echo "${ECHO_T}$ac_file" >&6
2026
2027# Check the compiler produces executables we can run.  If not, either
2028# the compiler is broken, or we cross compile.
2029echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2030echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2031# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2032# If not cross compiling, check that we can run a simple program.
2033if test "$cross_compiling" != yes; then
2034  if { ac_try='./$ac_file'
2035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036  (eval $ac_try) 2>&5
2037  ac_status=$?
2038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039  (exit $ac_status); }; }; then
2040    cross_compiling=no
2041  else
2042    if test "$cross_compiling" = maybe; then
2043        cross_compiling=yes
2044    else
2045        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2046If you meant to cross compile, use \`--host'.
2047See \`config.log' for more details." >&5
2048echo "$as_me: error: cannot run C compiled programs.
2049If you meant to cross compile, use \`--host'.
2050See \`config.log' for more details." >&2;}
2051   { (exit 1); exit 1; }; }
2052    fi
2053  fi
2054fi
2055echo "$as_me:$LINENO: result: yes" >&5
2056echo "${ECHO_T}yes" >&6
2057
2058rm -f a.out a.exe conftest$ac_cv_exeext b.out
2059ac_clean_files=$ac_clean_files_save
2060# Check the compiler produces executables we can run.  If not, either
2061# the compiler is broken, or we cross compile.
2062echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2063echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2064echo "$as_me:$LINENO: result: $cross_compiling" >&5
2065echo "${ECHO_T}$cross_compiling" >&6
2066
2067echo "$as_me:$LINENO: checking for suffix of executables" >&5
2068echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2070  (eval $ac_link) 2>&5
2071  ac_status=$?
2072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073  (exit $ac_status); }; then
2074  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2075# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2076# work properly (i.e., refer to `conftest.exe'), while it won't with
2077# `rm'.
2078for ac_file in conftest.exe conftest conftest.*; do
2079  test -f "$ac_file" || continue
2080  case $ac_file in
2081    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2082    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2083          export ac_cv_exeext
2084          break;;
2085    * ) break;;
2086  esac
2087done
2088else
2089  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092See \`config.log' for more details." >&2;}
2093   { (exit 1); exit 1; }; }
2094fi
2095
2096rm -f conftest$ac_cv_exeext
2097echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100rm -f conftest.$ac_ext
2101EXEEXT=$ac_cv_exeext
2102ac_exeext=$EXEEXT
2103echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105if test "${ac_cv_objext+set}" = set; then
2106  echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108  cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h.  */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
2113/* end confdefs.h.  */
2114
2115int
2116main ()
2117{
2118
2119  ;
2120  return 0;
2121}
2122_ACEOF
2123rm -f conftest.o conftest.obj
2124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125  (eval $ac_compile) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }; then
2129  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130  case $ac_file in
2131    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133       break;;
2134  esac
2135done
2136else
2137  echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
2140{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2141See \`config.log' for more details." >&5
2142echo "$as_me: error: cannot compute suffix of object files: cannot compile
2143See \`config.log' for more details." >&2;}
2144   { (exit 1); exit 1; }; }
2145fi
2146
2147rm -f conftest.$ac_cv_objext conftest.$ac_ext
2148fi
2149echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2150echo "${ECHO_T}$ac_cv_objext" >&6
2151OBJEXT=$ac_cv_objext
2152ac_objext=$OBJEXT
2153echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2154echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2155if test "${ac_cv_c_compiler_gnu+set}" = set; then
2156  echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158  cat >conftest.$ac_ext <<_ACEOF
2159/* confdefs.h.  */
2160_ACEOF
2161cat confdefs.h >>conftest.$ac_ext
2162cat >>conftest.$ac_ext <<_ACEOF
2163/* end confdefs.h.  */
2164
2165int
2166main ()
2167{
2168#ifndef __GNUC__
2169       choke me
2170#endif
2171
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176rm -f conftest.$ac_objext
2177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178  (eval $ac_compile) 2>conftest.er1
2179  ac_status=$?
2180  grep -v '^ *+' conftest.er1 >conftest.err
2181  rm -f conftest.er1
2182  cat conftest.err >&5
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); } &&
2185         { ac_try='test -z "$ac_c_werror_flag"
2186                         || test ! -s conftest.err'
2187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188  (eval $ac_try) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; } &&
2192         { ac_try='test -s conftest.$ac_objext'
2193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194  (eval $ac_try) 2>&5
2195  ac_status=$?
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); }; }; then
2198  ac_compiler_gnu=yes
2199else
2200  echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203ac_compiler_gnu=no
2204fi
2205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206ac_cv_c_compiler_gnu=$ac_compiler_gnu
2207
2208fi
2209echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2210echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2211GCC=`test $ac_compiler_gnu = yes && echo yes`
2212ac_test_CFLAGS=${CFLAGS+set}
2213ac_save_CFLAGS=$CFLAGS
2214CFLAGS="-g"
2215echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2216echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2217if test "${ac_cv_prog_cc_g+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.$ac_ext <<_ACEOF
2221/* confdefs.h.  */
2222_ACEOF
2223cat confdefs.h >>conftest.$ac_ext
2224cat >>conftest.$ac_ext <<_ACEOF
2225/* end confdefs.h.  */
2226
2227int
2228main ()
2229{
2230
2231  ;
2232  return 0;
2233}
2234_ACEOF
2235rm -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_g=yes
2258else
2259  echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262ac_cv_prog_cc_g=no
2263fi
2264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2265fi
2266echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2267echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2268if test "$ac_test_CFLAGS" = set; then
2269  CFLAGS=$ac_save_CFLAGS
2270elif test $ac_cv_prog_cc_g = yes; then
2271  if test "$GCC" = yes; then
2272    CFLAGS="-g -O2"
2273  else
2274    CFLAGS="-g"
2275  fi
2276else
2277  if test "$GCC" = yes; then
2278    CFLAGS="-O2"
2279  else
2280    CFLAGS=
2281  fi
2282fi
2283echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2284echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2285if test "${ac_cv_prog_cc_stdc+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  ac_cv_prog_cc_stdc=no
2289ac_save_CC=$CC
2290cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h.  */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h.  */
2296#include <stdarg.h>
2297#include <stdio.h>
2298#include <sys/types.h>
2299#include <sys/stat.h>
2300/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2301struct buf { int x; };
2302FILE * (*rcsopen) (struct buf *, struct stat *, int);
2303static char *e (p, i)
2304     char **p;
2305     int i;
2306{
2307  return p[i];
2308}
2309static char *f (char * (*g) (char **, int), char **p, ...)
2310{
2311  char *s;
2312  va_list v;
2313  va_start (v,p);
2314  s = g (p, va_arg (v,int));
2315  va_end (v);
2316  return s;
2317}
2318
2319/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2320   function prototypes and stuff, but not '\xHH' hex character constants.
2321   These don't provoke an error unfortunately, instead are silently treated
2322   as 'x'.  The following induces an error, until -std1 is added to get
2323   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2324   array size at least.  It's necessary to write '\x00'==0 to get something
2325   that's true only with -std1.  */
2326int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2327
2328int test (int i, double x);
2329struct s1 {int (*f) (int a);};
2330struct s2 {int (*f) (double a);};
2331int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2332int argc;
2333char **argv;
2334int
2335main ()
2336{
2337return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342# Don't try gcc -ansi; that turns off useful extensions and
2343# breaks some systems' header files.
2344# AIX                   -qlanglvl=ansi
2345# Ultrix and OSF/1      -std1
2346# HP-UX 10.20 and later -Ae
2347# HP-UX older versions  -Aa -D_HPUX_SOURCE
2348# SVR4                  -Xc -D__EXTENSIONS__
2349for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2350do
2351  CC="$ac_save_CC $ac_arg"
2352  rm -f conftest.$ac_objext
2353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354  (eval $ac_compile) 2>conftest.er1
2355  ac_status=$?
2356  grep -v '^ *+' conftest.er1 >conftest.err
2357  rm -f conftest.er1
2358  cat conftest.err >&5
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } &&
2361         { ac_try='test -z "$ac_c_werror_flag"
2362                         || test ! -s conftest.err'
2363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364  (eval $ac_try) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; } &&
2368         { ac_try='test -s conftest.$ac_objext'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; }; then
2374  ac_cv_prog_cc_stdc=$ac_arg
2375break
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380fi
2381rm -f conftest.err conftest.$ac_objext
2382done
2383rm -f conftest.$ac_ext conftest.$ac_objext
2384CC=$ac_save_CC
2385
2386fi
2387
2388case "x$ac_cv_prog_cc_stdc" in
2389  x|xno)
2390    echo "$as_me:$LINENO: result: none needed" >&5
2391echo "${ECHO_T}none needed" >&6 ;;
2392  *)
2393    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2394echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2395    CC="$CC $ac_cv_prog_cc_stdc" ;;
2396esac
2397
2398# Some people use a C++ compiler to compile C.  Since we use `exit',
2399# in C++ we need to declare it.  In case someone uses the same compiler
2400# for both compiling C and C++ we need to have the C++ compiler decide
2401# the declaration of exit, since it's the most demanding environment.
2402cat >conftest.$ac_ext <<_ACEOF
2403#ifndef __cplusplus
2404  choke me
2405#endif
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409  (eval $ac_compile) 2>conftest.er1
2410  ac_status=$?
2411  grep -v '^ *+' conftest.er1 >conftest.err
2412  rm -f conftest.er1
2413  cat conftest.err >&5
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); } &&
2416         { ac_try='test -z "$ac_c_werror_flag"
2417                         || test ! -s conftest.err'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; } &&
2423         { ac_try='test -s conftest.$ac_objext'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; }; then
2429  for ac_declaration in \
2430   '' \
2431   'extern "C" void std::exit (int) throw (); using std::exit;' \
2432   'extern "C" void std::exit (int); using std::exit;' \
2433   'extern "C" void exit (int) throw ();' \
2434   'extern "C" void exit (int);' \
2435   'void exit (int);'
2436do
2437  cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h.  */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h.  */
2443$ac_declaration
2444#include <stdlib.h>
2445int
2446main ()
2447{
2448exit (42);
2449  ;
2450  return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455  (eval $ac_compile) 2>conftest.er1
2456  ac_status=$?
2457  grep -v '^ *+' conftest.er1 >conftest.err
2458  rm -f conftest.er1
2459  cat conftest.err >&5
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); } &&
2462         { ac_try='test -z "$ac_c_werror_flag"
2463                         || test ! -s conftest.err'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; } &&
2469         { ac_try='test -s conftest.$ac_objext'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; }; then
2475  :
2476else
2477  echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480continue
2481fi
2482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483  cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h.  */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h.  */
2489$ac_declaration
2490int
2491main ()
2492{
2493exit (42);
2494  ;
2495  return 0;
2496}
2497_ACEOF
2498rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500  (eval $ac_compile) 2>conftest.er1
2501  ac_status=$?
2502  grep -v '^ *+' conftest.er1 >conftest.err
2503  rm -f conftest.er1
2504  cat conftest.err >&5
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); } &&
2507         { ac_try='test -z "$ac_c_werror_flag"
2508                         || test ! -s conftest.err'
2509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510  (eval $ac_try) 2>&5
2511  ac_status=$?
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); }; } &&
2514         { ac_try='test -s conftest.$ac_objext'
2515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516  (eval $ac_try) 2>&5
2517  ac_status=$?
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); }; }; then
2520  break
2521else
2522  echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525fi
2526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527done
2528rm -f conftest*
2529if test -n "$ac_declaration"; then
2530  echo '#ifdef __cplusplus' >>confdefs.h
2531  echo $ac_declaration      >>confdefs.h
2532  echo '#endif'             >>confdefs.h
2533fi
2534
2535else
2536  echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539fi
2540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547if test -z "$CC" ; then
2548  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2549echo "$as_me: error: Failed to find a C compiler!" >&2;}
2550   { (exit 1); exit 1; }; }
2551fi
2552# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2553case "$CC" in
2554  cl* | */cl*)
2555    if test "$ac_cv_prog_cc_g" = yes ; then
2556      ac_cv_prog_cc_g=no
2557      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2558echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2559    fi ;;
2560esac
2561CFLAGS="$save_cflags"
2562
2563# Check if a project specific CFLAGS variable has been set
2564if test x$COIN_PRJCT != x; then
2565  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2566  if test x$coin_tmp = xset; then
2567    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2568  fi
2569fi
2570
2571if test x"$CFLAGS" = x; then
2572
2573  coin_add_cflags=
2574  coin_opt_cflags=
2575  coin_dbg_cflags=
2576  coin_warn_cflags=
2577
2578  if test "$GCC" = "yes"; then
2579    case "$CC" in
2580      icc* | */icc*)
2581        ;;
2582      *)
2583        coin_opt_cflags="-O3 -fomit-frame-pointer"
2584        coin_add_cflags="-pipe"
2585        coin_dbg_cflags="-g"
2586        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2587        if test "$enable_doscompile" = yes; then
2588          case $build in
2589            *-cygwin*)
2590              CFLAGS="-mno-cygwin"
2591              cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h.  */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h.  */
2597
2598int
2599main ()
2600{
2601int i=0; i++;
2602  ;
2603  return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext conftest$ac_exeext
2607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2608  (eval $ac_link) 2>conftest.er1
2609  ac_status=$?
2610  grep -v '^ *+' conftest.er1 >conftest.err
2611  rm -f conftest.er1
2612  cat conftest.err >&5
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); } &&
2615         { ac_try='test -z "$ac_c_werror_flag"
2616                         || test ! -s conftest.err'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; } &&
2622         { ac_try='test -s conftest$ac_exeext'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; }; then
2628  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2629else
2630  echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633fi
2634rm -f conftest.err conftest.$ac_objext \
2635      conftest$ac_exeext conftest.$ac_ext
2636              CFLAGS=
2637            ;;
2638          esac
2639        fi
2640    esac
2641  fi
2642  if test -z "$coin_opt_cflags"; then
2643    case $build in
2644      *-cygwin* | *-mingw*)
2645        case "$CC" in
2646          cl* | */cl* | CL* | */CL*)
2647            coin_opt_cflags='-O2'
2648            coin_add_cflags='-nologo'
2649            coin_dbg_cflags='-MTd'
2650            ;;
2651        esac
2652        ;;
2653      *-linux-*)
2654        case "$CC" in
2655          icc* | */icc*)
2656            coin_opt_cflags="-O3 -ip"
2657            coin_add_cflags=""
2658            coin_dbg_cflags="-g"
2659            # Check if -i_dynamic is necessary (for new glibc library)
2660            CFLAGS=
2661            cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h.  */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h.  */
2667
2668int
2669main ()
2670{
2671int i=0; i++;
2672  ;
2673  return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext conftest$ac_exeext
2677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2678  (eval $ac_link) 2>conftest.er1
2679  ac_status=$?
2680  grep -v '^ *+' conftest.er1 >conftest.err
2681  rm -f conftest.er1
2682  cat conftest.err >&5
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); } &&
2685         { ac_try='test -z "$ac_c_werror_flag"
2686                         || test ! -s conftest.err'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; } &&
2692         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2698  :
2699else
2700  echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703coin_add_cflags="-i_dynamic $coin_add_cflags"
2704fi
2705rm -f conftest.err conftest.$ac_objext \
2706      conftest$ac_exeext conftest.$ac_ext
2707            ;;
2708          pgcc* | */pgcc*)
2709            coin_opt_cflags="-fast"
2710            coin_add_cflags="-Kieee -pc 64"
2711            coin_dbg_cflags="-g"
2712            ;;
2713        esac
2714        ;;
2715      *-ibm-*)
2716        case "$CC" in
2717          xlc* | */xlc* | mpxlc* | */mpxlc*)
2718            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2719            coin_add_cflags="-bmaxdata:0x80000000"
2720            coin_dbg_cflags="-g"
2721          ;;
2722        esac
2723        ;;
2724      *-hp-*)
2725        coin_opt_cflags="-O"
2726        coin_add_cflags="-Ae"
2727        coin_dbg_cflags="-g"
2728        ;;
2729      *-sun-*)
2730        coin_opt_cflags="-xO4"
2731        coin_dbg_cflags="-g"
2732        ;;
2733      *-sgi-*)
2734        coin_opt_cflags="-O -OPT:Olimit=0"
2735        coin_dbg_cflags="-g"
2736        ;;
2737    esac
2738  fi
2739
2740  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2741    coin_dbg_cflags="-g"
2742  fi
2743
2744  if test -z "$coin_opt_cflags"; then
2745    # Try if -O option works if nothing else is set
2746    CFLAGS="-O"
2747    cat >conftest.$ac_ext <<_ACEOF
2748/* confdefs.h.  */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h.  */
2753
2754int
2755main ()
2756{
2757int i=0; i++;
2758  ;
2759  return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext conftest$ac_exeext
2763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2764  (eval $ac_link) 2>conftest.er1
2765  ac_status=$?
2766  grep -v '^ *+' conftest.er1 >conftest.err
2767  rm -f conftest.er1
2768  cat conftest.err >&5
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); } &&
2771         { ac_try='test -z "$ac_c_werror_flag"
2772                         || test ! -s conftest.err'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; } &&
2778         { ac_try='test -s conftest$ac_exeext'
2779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780  (eval $ac_try) 2>&5
2781  ac_status=$?
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); }; }; then
2784  coin_opt_cflags="-O"
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext \
2791      conftest$ac_exeext conftest.$ac_ext
2792  fi
2793
2794  # if PM doesn't want the warning messages, take them out
2795  if test x"$coin_skip_warn_cflags" = xyes; then
2796    coin_warn_cflags=
2797  fi
2798
2799  if test x${DBG_CFLAGS+set} != xset; then
2800    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2801  fi
2802  if test x${OPT_CFLAGS+set} != xset; then
2803    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2804  fi
2805
2806  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2807  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2808
2809  if test "$coin_debug_compile" = "true"; then
2810    CFLAGS="$DBG_CFLAGS"
2811  else
2812    CFLAGS="$OPT_CFLAGS"
2813  fi
2814else
2815  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2816  if test x${DBG_CFLAGS+set} != xset; then
2817    DBG_CFLAGS="$CFLAGS"
2818  fi
2819  if test x${OPT_CFLAGS+set} != xset; then
2820    OPT_CFLAGS="$CFLAGS"
2821  fi
2822fi
2823
2824# Try if CFLAGS works
2825save_CFLAGS="$CFLAGS"
2826cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832
2833int
2834main ()
2835{
2836int i=0; i++;
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext conftest$ac_exeext
2842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2843  (eval $ac_link) 2>conftest.er1
2844  ac_status=$?
2845  grep -v '^ *+' conftest.er1 >conftest.err
2846  rm -f conftest.er1
2847  cat conftest.err >&5
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); } &&
2850         { ac_try='test -z "$ac_c_werror_flag"
2851                         || test ! -s conftest.err'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; } &&
2857         { ac_try='test -s conftest$ac_exeext'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; }; then
2863  :
2864else
2865  echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868CFLAGS=
2869fi
2870rm -f conftest.err conftest.$ac_objext \
2871      conftest$ac_exeext conftest.$ac_ext
2872if test -z "$CFLAGS"; then
2873  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
2874echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
2875  CFLAGS='-O'
2876  cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h.  */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
2881/* end confdefs.h.  */
2882
2883int
2884main ()
2885{
2886int i=0; i++;
2887  ;
2888  return 0;
2889}
2890_ACEOF
2891rm -f conftest.$ac_objext conftest$ac_exeext
2892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2893  (eval $ac_link) 2>conftest.er1
2894  ac_status=$?
2895  grep -v '^ *+' conftest.er1 >conftest.err
2896  rm -f conftest.er1
2897  cat conftest.err >&5
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); } &&
2900         { ac_try='test -z "$ac_c_werror_flag"
2901                         || test ! -s conftest.err'
2902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903  (eval $ac_try) 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; } &&
2907         { ac_try='test -s conftest$ac_exeext'
2908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909  (eval $ac_try) 2>&5
2910  ac_status=$?
2911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912  (exit $ac_status); }; }; then
2913  :
2914else
2915  echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
2918CFLAGS=
2919fi
2920rm -f conftest.err conftest.$ac_objext \
2921      conftest$ac_exeext conftest.$ac_ext
2922  if test -z "$CFLAGS"; then
2923    { 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
2924echo "$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;}
2925  fi
2926fi
2927
2928{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2929echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2930
2931
2932if test x"$MPICC" = x; then :; else
2933  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2934echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2935  CC="$MPICC"
2936fi
2937
2938# Correct ADDLIBS initialization if we are using the MS compiler
2939case "$CC" in
2940  cl* | */cl* | CL* | */CL*)
2941    ADDLIBS=
2942    case $build in
2943  *-mingw*)
2944    if test "${LD+set}" = set; then :; else
2945      LD=link
2946    fi
2947    ;;
2948esac
2949
2950    ;;
2951esac
2952
2953ac_ext=c
2954ac_cpp='$CPP $CPPFLAGS'
2955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958
2959
2960case $build in
2961  *-cygwin* | *-mingw*)
2962     coin_f77_comps="gfortran g77 ifort fl32" ;;
2963  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
2964esac
2965
2966
2967
2968
2969
2970
2971ac_ext=f
2972ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2973ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2975
2976
2977
2978
2979
2980
2981coin_has_f77=yes
2982
2983save_fflags="$FFLAGS"
2984comps="$coin_f77_comps" #This comes from AC_COIN_F77_COMPS
2985
2986# We delete the cached value, since the test might not have been
2987# performed with our choice of compilers earlier
2988$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
2989ac_ext=f
2990ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2991ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2993if test -n "$ac_tool_prefix"; then
2994  for ac_prog in $comps
2995  do
2996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998echo "$as_me:$LINENO: checking for $ac_word" >&5
2999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3000if test "${ac_cv_prog_F77+set}" = set; then
3001  echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003  if test -n "$F77"; then
3004  ac_cv_prog_F77="$F77" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009  IFS=$as_save_IFS
3010  test -z "$as_dir" && as_dir=.
3011  for ac_exec_ext in '' $ac_executable_extensions; do
3012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3015    break 2
3016  fi
3017done
3018done
3019
3020fi
3021fi
3022F77=$ac_cv_prog_F77
3023if test -n "$F77"; then
3024  echo "$as_me:$LINENO: result: $F77" >&5
3025echo "${ECHO_T}$F77" >&6
3026else
3027  echo "$as_me:$LINENO: result: no" >&5
3028echo "${ECHO_T}no" >&6
3029fi
3030
3031    test -n "$F77" && break
3032  done
3033fi
3034if test -z "$F77"; then
3035  ac_ct_F77=$F77
3036  for ac_prog in $comps
3037do
3038  # Extract the first word of "$ac_prog", so it can be a program name with args.
3039set dummy $ac_prog; ac_word=$2
3040echo "$as_me:$LINENO: checking for $ac_word" >&5
3041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3042if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3043  echo $ECHO_N "(cached) $ECHO_C" >&6
3044else
3045  if test -n "$ac_ct_F77"; then
3046  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3047else
3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH
3050do
3051  IFS=$as_save_IFS
3052  test -z "$as_dir" && as_dir=.
3053  for ac_exec_ext in '' $ac_executable_extensions; do
3054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055    ac_cv_prog_ac_ct_F77="$ac_prog"
3056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057    break 2
3058  fi
3059done
3060done
3061
3062fi
3063fi
3064ac_ct_F77=$ac_cv_prog_ac_ct_F77
3065if test -n "$ac_ct_F77"; then
3066  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3067echo "${ECHO_T}$ac_ct_F77" >&6
3068else
3069  echo "$as_me:$LINENO: result: no" >&5
3070echo "${ECHO_T}no" >&6
3071fi
3072
3073  test -n "$ac_ct_F77" && break
3074done
3075
3076  F77=$ac_ct_F77
3077fi
3078
3079
3080# Provide some information about the compiler.
3081echo "$as_me:3081:" \
3082     "checking for Fortran 77 compiler version" >&5
3083ac_compiler=`set X $ac_compile; echo $2`
3084{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3085  (eval $ac_compiler --version </dev/null >&5) 2>&5
3086  ac_status=$?
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); }
3089{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3090  (eval $ac_compiler -v </dev/null >&5) 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }
3094{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3095  (eval $ac_compiler -V </dev/null >&5) 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }
3099rm -f a.out
3100
3101# If we don't use `.F' as extension, the preprocessor is not run on the
3102# input file.  (Note that this only needs to work for GNU compilers.)
3103ac_save_ext=$ac_ext
3104ac_ext=F
3105echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3106echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3107if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3108  echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110  cat >conftest.$ac_ext <<_ACEOF
3111      program main
3112#ifndef __GNUC__
3113       choke me
3114#endif
3115
3116      end
3117_ACEOF
3118rm -f conftest.$ac_objext
3119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120  (eval $ac_compile) 2>conftest.er1
3121  ac_status=$?
3122  grep -v '^ *+' conftest.er1 >conftest.err
3123  rm -f conftest.er1
3124  cat conftest.err >&5
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); } &&
3127         { ac_try='test -z "$ac_f77_werror_flag"
3128                         || test ! -s conftest.err'
3129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130  (eval $ac_try) 2>&5
3131  ac_status=$?
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); }; } &&
3134         { ac_try='test -s conftest.$ac_objext'
3135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136  (eval $ac_try) 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }; }; then
3140  ac_compiler_gnu=yes
3141else
3142  echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145ac_compiler_gnu=no
3146fi
3147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3148ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3149
3150fi
3151echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3152echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3153ac_ext=$ac_save_ext
3154ac_test_FFLAGS=${FFLAGS+set}
3155ac_save_FFLAGS=$FFLAGS
3156FFLAGS=
3157echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3158echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3159if test "${ac_cv_prog_f77_g+set}" = set; then
3160  echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162  FFLAGS=-g
3163cat >conftest.$ac_ext <<_ACEOF
3164      program main
3165
3166      end
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170  (eval $ac_compile) 2>conftest.er1
3171  ac_status=$?
3172  grep -v '^ *+' conftest.er1 >conftest.err
3173  rm -f conftest.er1
3174  cat conftest.err >&5
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); } &&
3177         { ac_try='test -z "$ac_f77_werror_flag"
3178                         || test ! -s conftest.err'
3179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180  (eval $ac_try) 2>&5
3181  ac_status=$?
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }; } &&
3184         { ac_try='test -s conftest.$ac_objext'
3185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186  (eval $ac_try) 2>&5
3187  ac_status=$?
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }; }; then
3190  ac_cv_prog_f77_g=yes
3191else
3192  echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195ac_cv_prog_f77_g=no
3196fi
3197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3198
3199fi
3200echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3201echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3202if test "$ac_test_FFLAGS" = set; then
3203  FFLAGS=$ac_save_FFLAGS
3204elif test $ac_cv_prog_f77_g = yes; then
3205  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3206    FFLAGS="-g -O2"
3207  else
3208    FFLAGS="-g"
3209  fi
3210else
3211  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3212    FFLAGS="-O2"
3213  else
3214    FFLAGS=
3215  fi
3216fi
3217
3218G77=`test $ac_compiler_gnu = yes && echo yes`
3219ac_ext=f
3220ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3221ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3223
3224if test -z "$F77" ; then
3225  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3226echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3227fi
3228FFLAGS="$save_fflags"
3229
3230# Check if a project specific FFLAGS variable has been set
3231if test x$COIN_PRJCT != x; then
3232  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3233  if test x$coin_tmp = xset; then
3234    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3235  fi
3236fi
3237
3238if test x"$FFLAGS" = x; then
3239
3240  coin_add_fflags=
3241  coin_opt_fflags=
3242  coin_dbg_fflags=
3243  coin_warn_fflags=
3244
3245  if test "$G77" = "yes"; then
3246    coin_opt_fflags="-O3 -fomit-frame-pointer"
3247    coin_add_fflags="-pipe"
3248    coin_dbg_fflags="-g"
3249    if test "$enable_doscompile" = yes; then
3250      case $build in
3251        *-cygwin*)
3252          FFLAGS="-mno-cygwin"
3253          cat >conftest.$ac_ext <<_ACEOF
3254      program main
3255      write(*,*) 'Hello world'
3256      end
3257_ACEOF
3258rm -f conftest.$ac_objext conftest$ac_exeext
3259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3260  (eval $ac_link) 2>conftest.er1
3261  ac_status=$?
3262  grep -v '^ *+' conftest.er1 >conftest.err
3263  rm -f conftest.er1
3264  cat conftest.err >&5
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); } &&
3267         { ac_try='test -z "$ac_f77_werror_flag"
3268                         || test ! -s conftest.err'
3269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270  (eval $ac_try) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }; } &&
3274         { ac_try='test -s conftest$ac_exeext'
3275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276  (eval $ac_try) 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }; }; then
3280  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3281else
3282  echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
3285fi
3286rm -f conftest.err conftest.$ac_objext \
3287      conftest$ac_exeext conftest.$ac_ext
3288          FFLAGS=
3289        ;;
3290      esac
3291    fi
3292  else
3293    case $build in
3294      *-cygwin* | *-mingw*)
3295        case $F77 in
3296          ifort* | */ifort*)
3297            coin_opt_fflags='-O3'
3298            coin_add_fflags='-nologo -MT'
3299            coin_dbg_fflags='-debug'
3300          ;;
3301        esac
3302        ;;
3303      *-linux-*)
3304        case $F77 in
3305          ifc* | */ifc* | ifort* | */ifort*)
3306            coin_opt_fflags="-O3 -ip"
3307            coin_add_fflags="-cm -w90 -w95"
3308            coin_dbg_fflags="-g -CA -CB -CS"
3309            # Check if -i_dynamic is necessary (for new glibc library)
3310            FFLAGS=
3311            cat >conftest.$ac_ext <<_ACEOF
3312      program main
3313      write(*,*) 'Hello world'
3314      end
3315_ACEOF
3316rm -f conftest.$ac_objext conftest$ac_exeext
3317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3318  (eval $ac_link) 2>conftest.er1
3319  ac_status=$?
3320  grep -v '^ *+' conftest.er1 >conftest.err
3321  rm -f conftest.er1
3322  cat conftest.err >&5
3323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324  (exit $ac_status); } &&
3325         { ac_try='test -z "$ac_f77_werror_flag"
3326                         || test ! -s conftest.err'
3327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328  (eval $ac_try) 2>&5
3329  ac_status=$?
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); }; } &&
3332         { ac_try='test -s conftest$ac_exeext'
3333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334  (eval $ac_try) 2>&5
3335  ac_status=$?
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); }; }; then
3338  :
3339else
3340  echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343coin_add_fflags="-i_dynamic $coin_add_fflags"
3344fi
3345rm -f conftest.err conftest.$ac_objext \
3346      conftest$ac_exeext conftest.$ac_ext
3347            ;;
3348          pgf77* | */pgf77* | pgf90* | */pgf90*)
3349            coin_opt_fflags="-fast"
3350            coin_add_fflags="-Kieee -pc 64"
3351            coin_dbg_fflags="-g"
3352          ;;
3353        esac
3354        ;;
3355      *-ibm-*)
3356        case "$F77" in
3357          xlf* | */xlf* | mpxlf* | */mpxlf* )
3358            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3359            coin_add_fflags="-bmaxdata:0x80000000"
3360            coin_dbg_fflags="-g -C"
3361            ;;
3362        esac
3363        ;;
3364      *-hp-*)
3365        coin_opt_fflags="+O3"
3366        coin_add_fflags="+U77"
3367        coin_dbg_fflags="-C -g"
3368        ;;
3369      *-sun-*)
3370        coin_opt_fflags="-O4"
3371        coin_dbg_fflags="-g"
3372        ;;
3373      *-sgi-*)
3374        coin_opt_fflags="-O5 -OPT:Olimit=0"
3375        coin_dbg_fflags="-g"
3376        ;;
3377    esac
3378  fi
3379
3380  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3381    coin_dbg_fflags="-g"
3382  fi
3383
3384  if test -z "$coin_opt_fflags"; then
3385    # Try if -O option works if nothing else is set
3386    FFLAGS=-O
3387    cat >conftest.$ac_ext <<_ACEOF
3388      program main
3389      integer i
3390      end
3391_ACEOF
3392rm -f conftest.$ac_objext conftest$ac_exeext
3393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3394  (eval $ac_link) 2>conftest.er1
3395  ac_status=$?
3396  grep -v '^ *+' conftest.er1 >conftest.err
3397  rm -f conftest.er1
3398  cat conftest.err >&5
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); } &&
3401         { ac_try='test -z "$ac_f77_werror_flag"
3402                         || test ! -s conftest.err'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; } &&
3408         { ac_try='test -s conftest$ac_exeext'
3409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410  (eval $ac_try) 2>&5
3411  ac_status=$?
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); }; }; then
3414  coin_opt_fflags="-O"
3415else
3416  echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
3419fi
3420rm -f conftest.err conftest.$ac_objext \
3421      conftest$ac_exeext conftest.$ac_ext
3422  fi
3423
3424  # if PM doesn't want the warning messages, take them out
3425  if test x"$coin_skip_warn_fflags" = xyes; then
3426    coin_warn_fflags=
3427  fi
3428
3429  if test x${DBG_FFLAGS+set} != xset; then
3430    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3431  fi
3432  if test x${OPT_FFLAGS+set} != xset; then
3433    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3434  fi
3435
3436  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3437  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3438
3439  if test "$coin_debug_compile" = "true"; then
3440    FFLAGS="$DBG_FFLAGS"
3441  else
3442    FFLAGS="$OPT_FFLAGS"
3443  fi
3444else
3445  FFLAGS="$FFLAGS $ADD_FFLAGS"
3446  if test x${DBG_FFLAGS+set} != xset; then
3447    DBG_FFLAGS="$FFLAGS"
3448  fi
3449  if test x${OPT_FFLAGS+set} != xset; then
3450    OPT_FFLAGS="$FFLAGS"
3451  fi
3452fi
3453
3454# Try if FFLAGS works
3455cat >conftest.$ac_ext <<_ACEOF
3456      program main
3457      integer i
3458      end
3459_ACEOF
3460rm -f conftest.$ac_objext conftest$ac_exeext
3461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3462  (eval $ac_link) 2>conftest.er1
3463  ac_status=$?
3464  grep -v '^ *+' conftest.er1 >conftest.err
3465  rm -f conftest.er1
3466  cat conftest.err >&5
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); } &&
3469         { ac_try='test -z "$ac_f77_werror_flag"
3470                         || test ! -s conftest.err'
3471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472  (eval $ac_try) 2>&5
3473  ac_status=$?
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); }; } &&
3476         { ac_try='test -s conftest$ac_exeext'
3477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478  (eval $ac_try) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }; }; then
3482  :
3483else
3484  echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487FFLAGS=
3488fi
3489rm -f conftest.err conftest.$ac_objext \
3490      conftest$ac_exeext conftest.$ac_ext
3491if test -z "$FFLAGS"; then
3492  { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3493echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
3494  FFLAGS='-O'
3495  cat >conftest.$ac_ext <<_ACEOF
3496      program main
3497      integer i
3498      end
3499_ACEOF
3500rm -f conftest.$ac_objext conftest$ac_exeext
3501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502  (eval $ac_link) 2>conftest.er1
3503  ac_status=$?
3504  grep -v '^ *+' conftest.er1 >conftest.err
3505  rm -f conftest.er1
3506  cat conftest.err >&5
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); } &&
3509         { ac_try='test -z "$ac_f77_werror_flag"
3510                         || test ! -s conftest.err'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; } &&
3516         { ac_try='test -s conftest$ac_exeext'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; }; then
3522  :
3523else
3524  echo "$as_me: failed program was:" >&5
3525sed 's/^/| /' conftest.$ac_ext >&5
3526
3527FFLAGS=
3528fi
3529rm -f conftest.err conftest.$ac_objext \
3530      conftest$ac_exeext conftest.$ac_ext
3531  if test -z "$FFLAGS"; then
3532    { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
3533echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
3534  fi
3535fi
3536
3537{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3538echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3539
3540
3541if test x"$MPIF77" = x; then :; else
3542  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3543echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3544  F77="$MPIF77"
3545fi
3546
3547case "$F77" in
3548  ifort*)
3549    case $build in
3550  *-mingw*)
3551    if test "${LD+set}" = set; then :; else
3552      LD=link
3553    fi
3554    ;;
3555esac
3556
3557    ;;
3558esac
3559
3560ac_ext=c
3561ac_cpp='$CPP $CPPFLAGS'
3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566
3567
3568# Initialize automake
3569{
3570
3571
3572
3573# START
3574
3575# On Cygwin, building DLLs doesn't work
3576case $build in
3577  *-cygwin*)
3578    coin_disable_shared=yes
3579    platform=Cygwin
3580  ;;
3581  *-mingw*)
3582    coin_disable_shared=yes
3583    platform="Msys"
3584#    case "$CXX" in
3585#      cl*)
3586#        coin_disable_shared=yes
3587#        platform="Msys with cl"
3588#    ;;
3589#    esac
3590  ;;
3591esac
3592if test x"$coin_disable_shared" = xyes; then
3593  if test x"$enable_shared" = xyes; then
3594    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3595echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3596  fi
3597  enable_shared=no
3598fi
3599# By default, we only want the shared objects to be compiled
3600# Check whether --enable-static or --disable-static was given.
3601if test "${enable_static+set}" = set; then
3602  enableval="$enable_static"
3603  p=${PACKAGE-default}
3604    case $enableval in
3605    yes) enable_static=yes ;;
3606    no) enable_static=no ;;
3607    *)
3608     enable_static=no
3609      # Look at the argument we got.  We use all the common list separators.
3610      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3611      for pkg in $enableval; do
3612        IFS="$lt_save_ifs"
3613        if test "X$pkg" = "X$p"; then
3614          enable_static=yes
3615        fi
3616      done
3617      IFS="$lt_save_ifs"
3618      ;;
3619    esac
3620else
3621  enable_static=no
3622fi;
3623
3624
3625
3626
3627# Initialize automake
3628echo "$as_me:$LINENO: checking for egrep" >&5
3629echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3630if test "${ac_cv_prog_egrep+set}" = set; then
3631  echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3634    then ac_cv_prog_egrep='grep -E'
3635    else ac_cv_prog_egrep='egrep'
3636    fi
3637fi
3638echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3639echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3640 EGREP=$ac_cv_prog_egrep
3641
3642
3643am__api_version="1.9"
3644# Find a good install program.  We prefer a C program (faster),
3645# so one script is as good as another.  But avoid the broken or
3646# incompatible versions:
3647# SysV /etc/install, /usr/sbin/install
3648# SunOS /usr/etc/install
3649# IRIX /sbin/install
3650# AIX /bin/install
3651# AmigaOS /C/install, which installs bootblocks on floppy discs
3652# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3653# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3654# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3655# OS/2's system install, which has a completely different semantic
3656# ./install, which can be erroneously created by make from ./install.sh.
3657echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3658echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3659if test -z "$INSTALL"; then
3660if test "${ac_cv_path_install+set}" = set; then
3661  echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
3663  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH
3665do
3666  IFS=$as_save_IFS
3667  test -z "$as_dir" && as_dir=.
3668  # Account for people who put trailing slashes in PATH elements.
3669case $as_dir/ in
3670  ./ | .// | /cC/* | \
3671  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3672  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3673  /usr/ucb/* ) ;;
3674  *)
3675    # OSF1 and SCO ODT 3.0 have their own names for install.
3676    # Don't use installbsd from OSF since it installs stuff as root
3677    # by default.
3678    for ac_prog in ginstall scoinst install; do
3679      for ac_exec_ext in '' $ac_executable_extensions; do
3680        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3681          if test $ac_prog = install &&
3682            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683            # AIX install.  It has an incompatible calling convention.
3684            :
3685          elif test $ac_prog = install &&
3686            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687            # program-specific install script used by HP pwplus--don't use.
3688            :
3689          else
3690            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3691            break 3
3692          fi
3693        fi
3694      done
3695    done
3696    ;;
3697esac
3698done
3699
3700
3701fi
3702  if test "${ac_cv_path_install+set}" = set; then
3703    INSTALL=$ac_cv_path_install
3704  else
3705    # As a last resort, use the slow shell script.  We don't cache a
3706    # path for INSTALL within a source directory, because that will
3707    # break other packages using the cache if that directory is
3708    # removed, or if the path is relative.
3709    INSTALL=$ac_install_sh
3710  fi
3711fi
3712echo "$as_me:$LINENO: result: $INSTALL" >&5
3713echo "${ECHO_T}$INSTALL" >&6
3714
3715# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3716# It thinks the first close brace ends the variable substitution.
3717test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3718
3719test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3720
3721test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3722
3723echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3724echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3725# Just in case
3726sleep 1
3727echo timestamp > conftest.file
3728# Do `set' in a subshell so we don't clobber the current shell's
3729# arguments.  Must try -L first in case configure is actually a
3730# symlink; some systems play weird games with the mod time of symlinks
3731# (eg FreeBSD returns the mod time of the symlink's containing
3732# directory).
3733if (
3734   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3735   if test "$*" = "X"; then
3736      # -L didn't work.
3737      set X `ls -t $srcdir/configure conftest.file`
3738   fi
3739   rm -f conftest.file
3740   if test "$*" != "X $srcdir/configure conftest.file" \
3741      && test "$*" != "X conftest.file $srcdir/configure"; then
3742
3743      # If neither matched, then we have a broken ls.  This can happen
3744      # if, for instance, CONFIG_SHELL is bash and it inherits a
3745      # broken ls alias from the environment.  This has actually
3746      # happened.  Such a system could not be considered "sane".
3747      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3748alias in your environment" >&5
3749echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3750alias in your environment" >&2;}
3751   { (exit 1); exit 1; }; }
3752   fi
3753
3754   test "$2" = conftest.file
3755   )
3756then
3757   # Ok.
3758   :
3759else
3760   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3761Check your system clock" >&5
3762echo "$as_me: error: newly created file is older than distributed files!
3763Check your system clock" >&2;}
3764   { (exit 1); exit 1; }; }
3765fi
3766echo "$as_me:$LINENO: result: yes" >&5
3767echo "${ECHO_T}yes" >&6
3768test "$program_prefix" != NONE &&
3769  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3770# Use a double $ so make ignores it.
3771test "$program_suffix" != NONE &&
3772  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3773# Double any \ or $.  echo might interpret backslashes.
3774# By default was `s,x,x', remove it if useless.
3775cat <<\_ACEOF >conftest.sed
3776s/[\\$]/&&/g;s/;s,x,x,$//
3777_ACEOF
3778program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3779rm conftest.sed
3780
3781# expand $ac_aux_dir to an absolute path
3782am_aux_dir=`cd $ac_aux_dir && pwd`
3783
3784test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3785# Use eval to expand $SHELL
3786if eval "$MISSING --run true"; then
3787  am_missing_run="$MISSING --run "
3788else
3789  am_missing_run=
3790  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3791echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3792fi
3793
3794if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3795  # We used to keeping the `.' as first argument, in order to
3796  # allow $(mkdir_p) to be used without argument.  As in
3797  #   $(mkdir_p) $(somedir)
3798  # where $(somedir) is conditionally defined.  However this is wrong
3799  # for two reasons:
3800  #  1. if the package is installed by a user who cannot write `.'
3801  #     make install will fail,
3802  #  2. the above comment should most certainly read
3803  #     $(mkdir_p) $(DESTDIR)$(somedir)
3804  #     so it does not work when $(somedir) is undefined and
3805  #     $(DESTDIR) is not.
3806  #  To support the latter case, we have to write
3807  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3808  #  so the `.' trick is pointless.
3809  mkdir_p='mkdir -p --'
3810else
3811  # On NextStep and OpenStep, the `mkdir' command does not
3812  # recognize any option.  It will interpret all options as
3813  # directories to create, and then abort because `.' already
3814  # exists.
3815  for d in ./-p ./--version;
3816  do
3817    test -d $d && rmdir $d
3818  done
3819  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3820  if test -f "$ac_aux_dir/mkinstalldirs"; then
3821    mkdir_p='$(mkinstalldirs)'
3822  else
3823    mkdir_p='$(install_sh) -d'
3824  fi
3825fi
3826
3827for ac_prog in gawk mawk nawk awk
3828do
3829  # Extract the first word of "$ac_prog", so it can be a program name with args.
3830set dummy $ac_prog; ac_word=$2
3831echo "$as_me:$LINENO: checking for $ac_word" >&5
3832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833if test "${ac_cv_prog_AWK+set}" = set; then
3834  echo $ECHO_N "(cached) $ECHO_C" >&6
3835else
3836  if test -n "$AWK"; then
3837  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3838else
3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842  IFS=$as_save_IFS
3843  test -z "$as_dir" && as_dir=.
3844  for ac_exec_ext in '' $ac_executable_extensions; do
3845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846    ac_cv_prog_AWK="$ac_prog"
3847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848    break 2
3849  fi
3850done
3851done
3852
3853fi
3854fi
3855AWK=$ac_cv_prog_AWK
3856if test -n "$AWK"; then
3857  echo "$as_me:$LINENO: result: $AWK" >&5
3858echo "${ECHO_T}$AWK" >&6
3859else
3860  echo "$as_me:$LINENO: result: no" >&5
3861echo "${ECHO_T}no" >&6
3862fi
3863
3864  test -n "$AWK" && break
3865done
3866
3867echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3868echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3869set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3870if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3871  echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873  cat >conftest.make <<\_ACEOF
3874all:
3875        @echo 'ac_maketemp="$(MAKE)"'
3876_ACEOF
3877# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3878eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3879if test -n "$ac_maketemp"; then
3880  eval ac_cv_prog_make_${ac_make}_set=yes
3881else
3882  eval ac_cv_prog_make_${ac_make}_set=no
3883fi
3884rm -f conftest.make
3885fi
3886if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3887  echo "$as_me:$LINENO: result: yes" >&5
3888echo "${ECHO_T}yes" >&6
3889  SET_MAKE=
3890else
3891  echo "$as_me:$LINENO: result: no" >&5
3892echo "${ECHO_T}no" >&6
3893  SET_MAKE="MAKE=${MAKE-make}"
3894fi
3895
3896rm -rf .tst 2>/dev/null
3897mkdir .tst 2>/dev/null
3898if test -d .tst; then
3899  am__leading_dot=.
3900else
3901  am__leading_dot=_
3902fi
3903rmdir .tst 2>/dev/null
3904
3905DEPDIR="${am__leading_dot}deps"
3906
3907          ac_config_commands="$ac_config_commands depfiles"
3908
3909
3910am_make=${MAKE-make}
3911cat > confinc << 'END'
3912am__doit:
3913        @echo done
3914.PHONY: am__doit
3915END
3916# If we don't find an include directive, just comment out the code.
3917echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3918echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3919am__include="#"
3920am__quote=
3921_am_result=none
3922# First try GNU make style include.
3923echo "include confinc" > confmf
3924# We grep out `Entering directory' and `Leaving directory'
3925# messages which can occur if `w' ends up in MAKEFLAGS.
3926# In particular we don't look at `^make:' because GNU make might
3927# be invoked under some other name (usually "gmake"), in which
3928# case it prints its new name instead of `make'.
3929if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3930   am__include=include
3931   am__quote=
3932   _am_result=GNU
3933fi
3934# Now try BSD make style include.
3935if test "$am__include" = "#"; then
3936   echo '.include "confinc"' > confmf
3937   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3938      am__include=.include
3939      am__quote="\""
3940      _am_result=BSD
3941   fi
3942fi
3943
3944
3945echo "$as_me:$LINENO: result: $_am_result" >&5
3946echo "${ECHO_T}$_am_result" >&6
3947rm -f confinc confmf
3948
3949# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3950if test "${enable_dependency_tracking+set}" = set; then
3951  enableval="$enable_dependency_tracking"
3952
3953fi;
3954if test "x$enable_dependency_tracking" != xno; then
3955  am_depcomp="$ac_aux_dir/depcomp"
3956  AMDEPBACKSLASH='\'
3957fi
3958
3959
3960if test "x$enable_dependency_tracking" != xno; then
3961  AMDEP_TRUE=
3962  AMDEP_FALSE='#'
3963else
3964  AMDEP_TRUE='#'
3965  AMDEP_FALSE=
3966fi
3967
3968
3969
3970
3971# Stuff for automake
3972# test to see if srcdir already configured
3973if test "`cd $srcdir && pwd`" != "`pwd`" &&
3974   test -f $srcdir/config.status; then
3975  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3976echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3977   { (exit 1); exit 1; }; }
3978fi
3979
3980# test whether we have cygpath
3981if test -z "$CYGPATH_W"; then
3982  if (cygpath --version) >/dev/null 2>/dev/null; then
3983    CYGPATH_W='cygpath -w'
3984  else
3985    CYGPATH_W=echo
3986  fi
3987fi
3988
3989
3990# Define the identity of the package.
3991 PACKAGE='thirdpartyblas'
3992 VERSION='0.0'
3993
3994
3995cat >>confdefs.h <<_ACEOF
3996#define PACKAGE "$PACKAGE"
3997_ACEOF
3998
3999
4000cat >>confdefs.h <<_ACEOF
4001#define VERSION "$VERSION"
4002_ACEOF
4003
4004# Some tools Automake needs.
4005
4006ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4007
4008
4009AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4010
4011
4012AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4013
4014
4015AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4016
4017
4018MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4019
4020install_sh=${install_sh-"$am_aux_dir/install-sh"}
4021
4022# Installed binaries are usually stripped using `strip' when the user
4023# run `make install-strip'.  However `strip' might not be the right
4024# tool to use in cross-compilation environments, therefore Automake
4025# will honor the `STRIP' environment variable to overrule this program.
4026if test "$cross_compiling" != no; then
4027  if test -n "$ac_tool_prefix"; then
4028  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4029set dummy ${ac_tool_prefix}strip; ac_word=$2
4030echo "$as_me:$LINENO: checking for $ac_word" >&5
4031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032if test "${ac_cv_prog_STRIP+set}" = set; then
4033  echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035  if test -n "$STRIP"; then
4036  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4037else
4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH
4040do
4041  IFS=$as_save_IFS
4042  test -z "$as_dir" && as_dir=.
4043  for ac_exec_ext in '' $ac_executable_extensions; do
4044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047    break 2
4048  fi
4049done
4050done
4051
4052fi
4053fi
4054STRIP=$ac_cv_prog_STRIP
4055if test -n "$STRIP"; then
4056  echo "$as_me:$LINENO: result: $STRIP" >&5
4057echo "${ECHO_T}$STRIP" >&6
4058else
4059  echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061fi
4062
4063fi
4064if test -z "$ac_cv_prog_STRIP"; then
4065  ac_ct_STRIP=$STRIP
4066  # Extract the first word of "strip", so it can be a program name with args.
4067set dummy strip; ac_word=$2
4068echo "$as_me:$LINENO: checking for $ac_word" >&5
4069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4071  echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073  if test -n "$ac_ct_STRIP"; then
4074  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4075else
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079  IFS=$as_save_IFS
4080  test -z "$as_dir" && as_dir=.
4081  for ac_exec_ext in '' $ac_executable_extensions; do
4082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083    ac_cv_prog_ac_ct_STRIP="strip"
4084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087done
4088done
4089
4090  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4091fi
4092fi
4093ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4094if test -n "$ac_ct_STRIP"; then
4095  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4096echo "${ECHO_T}$ac_ct_STRIP" >&6
4097else
4098  echo "$as_me:$LINENO: result: no" >&5
4099echo "${ECHO_T}no" >&6
4100fi
4101
4102  STRIP=$ac_ct_STRIP
4103else
4104  STRIP="$ac_cv_prog_STRIP"
4105fi
4106
4107fi
4108INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4109
4110# We need awk for the "check" target.  The system "awk" is bad on
4111# some platforms.
4112# Always define AMTAR for backward compatibility.
4113
4114AMTAR=${AMTAR-"${am_missing_run}tar"}
4115
4116am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4117
4118
4119
4120
4121depcc="$CC"   am_compiler_list=
4122
4123echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4124echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4125if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4126  echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4129  # We make a subdir and do the tests there.  Otherwise we can end up
4130  # making bogus files that we don't know about and never remove.  For
4131  # instance it was reported that on HP-UX the gcc test will end up
4132  # making a dummy file named `D' -- because `-MD' means `put the output
4133  # in D'.
4134  mkdir conftest.dir
4135  # Copy depcomp to subdir because otherwise we won't find it if we're
4136  # using a relative directory.
4137  cp "$am_depcomp" conftest.dir
4138  cd conftest.dir
4139  # We will build objects and dependencies in a subdirectory because
4140  # it helps to detect inapplicable dependency modes.  For instance
4141  # both Tru64's cc and ICC support -MD to output dependencies as a
4142  # side effect of compilation, but ICC will put the dependencies in
4143  # the current directory while Tru64 will put them in the object
4144  # directory.
4145  mkdir sub
4146
4147  am_cv_CC_dependencies_compiler_type=none
4148  if test "$am_compiler_list" = ""; then
4149     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4150  fi
4151  for depmode in $am_compiler_list; do
4152    # Setup a source with many dependencies, because some compilers
4153    # like to wrap large dependency lists on column 80 (with \), and
4154    # we should not choose a depcomp mode which is confused by this.
4155    #
4156    # We need to recreate these files for each test, as the compiler may
4157    # overwrite some of them when testing with obscure command lines.
4158    # This happens at least with the AIX C compiler.
4159    : > sub/conftest.c
4160    for i in 1 2 3 4 5 6; do
4161      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4162      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4163      # Solaris 8's {/usr,}/bin/sh.
4164      touch sub/conftst$i.h
4165    done
4166    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4167
4168    case $depmode in
4169    nosideeffect)
4170      # after this tag, mechanisms are not by side-effect, so they'll
4171      # only be used when explicitly requested
4172      if test "x$enable_dependency_tracking" = xyes; then
4173        continue
4174      else
4175        break
4176      fi
4177      ;;
4178    none) break ;;
4179    esac
4180    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4181    # mode.  It turns out that the SunPro C++ compiler does not properly
4182    # handle `-M -o', and we need to detect this.
4183    if depmode=$depmode \
4184       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4185       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4186       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4187         >/dev/null 2>conftest.err &&
4188       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4189       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4190       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4191      # icc doesn't choke on unknown options, it will just issue warnings
4192      # or remarks (even with -Werror).  So we grep stderr for any message
4193      # that says an option was ignored or not supported.
4194      # When given -MP, icc 7.0 and 7.1 complain thusly:
4195      #   icc: Command line warning: ignoring option '-M'; no argument required
4196      # The diagnosis changed in icc 8.0:
4197      #   icc: Command line remark: option '-MP' not supported
4198      if (grep 'ignoring option' conftest.err ||
4199          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4200        am_cv_CC_dependencies_compiler_type=$depmode
4201        break
4202      fi
4203    fi
4204  done
4205
4206  cd ..
4207  rm -rf conftest.dir
4208else
4209  am_cv_CC_dependencies_compiler_type=none
4210fi
4211
4212fi
4213echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4214echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4215CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4216
4217
4218
4219if
4220  test "x$enable_dependency_tracking" != xno \
4221  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4222  am__fastdepCC_TRUE=
4223  am__fastdepCC_FALSE='#'
4224else
4225  am__fastdepCC_TRUE='#'
4226  am__fastdepCC_FALSE=
4227fi
4228
4229
4230
4231echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4232echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4233    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4234if test "${enable_maintainer_mode+set}" = set; then
4235  enableval="$enable_maintainer_mode"
4236  USE_MAINTAINER_MODE=$enableval
4237else
4238  USE_MAINTAINER_MODE=no
4239fi;
4240  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4241echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4242
4243
4244if test $USE_MAINTAINER_MODE = yes; then
4245  MAINTAINER_MODE_TRUE=
4246  MAINTAINER_MODE_FALSE='#'
4247else
4248  MAINTAINER_MODE_TRUE='#'
4249  MAINTAINER_MODE_FALSE=
4250fi
4251
4252  MAINT=$MAINTAINER_MODE_TRUE
4253
4254
4255
4256coin_have_externals=no
4257if test "$enable_maintainer_mode" = yes; then
4258
4259  # If maintainer mode is chosen, we make sure that the correct versions
4260  # of the tools are used, and that we know where libtool.m4 is (to
4261  # recreate acinclude.m4)
4262
4263
4264  LIBTOOLM4=
4265  # Normally, $HOME
4266  AUTOTOOLS_DFLT=$HOME
4267
4268  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4269echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4270if test "${ac_cv_use_correct_autotools+set}" = set; then
4271  echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273  ac_cv_use_correct_autotools=check
4274fi
4275echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4276echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4277
4278  if test $ac_cv_use_correct_autotools = check; then
4279    ac_cv_use_correct_autotools=yes
4280    # Check if we have autoconf
4281    # Extract the first word of "autoconf", so it can be a program name with args.
4282set dummy autoconf; ac_word=$2
4283echo "$as_me:$LINENO: checking for $ac_word" >&5
4284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285if test "${ac_cv_prog_have_autoconf+set}" = set; then
4286  echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288  if test -n "$have_autoconf"; then
4289  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4290else
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294  IFS=$as_save_IFS
4295  test -z "$as_dir" && as_dir=.
4296  for ac_exec_ext in '' $ac_executable_extensions; do
4297  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298    ac_cv_prog_have_autoconf="yes"
4299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300    break 2
4301  fi
4302done
4303done
4304
4305  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4306fi
4307fi
4308have_autoconf=$ac_cv_prog_have_autoconf
4309if test -n "$have_autoconf"; then
4310  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4311echo "${ECHO_T}$have_autoconf" >&6
4312else
4313  echo "$as_me:$LINENO: result: no" >&5
4314echo "${ECHO_T}no" >&6
4315fi
4316
4317    if test $have_autoconf = no; then
4318      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4319echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4320   { (exit 1); exit 1; }; }
4321    fi
4322
4323    # Check whether autoconf is the correct version
4324    correct_version='2.59'
4325    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4326    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4327echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4328    autoconf --version > confauto.out 2>&1
4329    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4330      echo "$as_me:$LINENO: result: yes" >&5
4331echo "${ECHO_T}yes" >&6
4332    else
4333      rm -f confauto.out
4334      echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4337echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4338   { (exit 1); exit 1; }; }
4339    fi
4340    rm -f confauto.out
4341
4342    # Check if the executable autoconf is picked up from the correct location
4343    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4344echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4345    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4346    autoconf_dir=`cd $autoconf_dir; pwd`
4347    if test x$AUTOTOOLS_DIR = x; then
4348      want_dir=$AUTOTOOLS_DFLT/bin
4349    else
4350      want_dir=$AUTOTOOLS_DIR/bin
4351    fi
4352    if test $autoconf_dir = `cd $want_dir; pwd`; then
4353      echo "$as_me:$LINENO: result: yes" >&5
4354echo "${ECHO_T}yes" >&6
4355    else
4356      rm -f confauto.out
4357      echo "$as_me:$LINENO: result: no" >&5
4358echo "${ECHO_T}no" >&6
4359      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4360echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4361   { (exit 1); exit 1; }; }
4362    fi
4363
4364    # Check if we have automake
4365    # Extract the first word of "automake", so it can be a program name with args.
4366set dummy automake; ac_word=$2
4367echo "$as_me:$LINENO: checking for $ac_word" >&5
4368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369if test "${ac_cv_prog_have_automake+set}" = set; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372  if test -n "$have_automake"; then
4373  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4374else
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380  for ac_exec_ext in '' $ac_executable_extensions; do
4381  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382    ac_cv_prog_have_automake="yes"
4383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384    break 2
4385  fi
4386done
4387done
4388
4389  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4390fi
4391fi
4392have_automake=$ac_cv_prog_have_automake
4393if test -n "$have_automake"; then
4394  echo "$as_me:$LINENO: result: $have_automake" >&5
4395echo "${ECHO_T}$have_automake" >&6
4396else
4397  echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399fi
4400
4401    if test $have_automake = no; then
4402      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4403echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4404   { (exit 1); exit 1; }; }
4405    fi
4406
4407    # Check whether automake is the correct version
4408    correct_version='1.9.6'
4409    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4410    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4411echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4412    automake --version > confauto.out 2>&1
4413    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4414      echo "$as_me:$LINENO: result: yes" >&5
4415echo "${ECHO_T}yes" >&6
4416    else
4417      rm -f confauto.out
4418      echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
4420      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4421echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4422   { (exit 1); exit 1; }; }
4423    fi
4424    rm -f confauto.out
4425
4426    # Check if the executable automake is picked up from the correct location
4427    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4428echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4429    automake_dir=`which automake | sed -e 's=/automake=='`
4430    automake_dir=`cd $automake_dir; pwd`
4431    if test x$AUTOTOOLS_DIR = x; then
4432      want_dir=$AUTOTOOLS_DFLT/bin
4433    else
4434      want_dir=$AUTOTOOLS_DIR/bin
4435    fi
4436    if test $automake_dir = `cd $want_dir; pwd`; then
4437      echo "$as_me:$LINENO: result: yes" >&5
4438echo "${ECHO_T}yes" >&6
4439    else
4440      rm -f confauto.out
4441      echo "$as_me:$LINENO: result: no" >&5
4442echo "${ECHO_T}no" >&6
4443      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4444echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4445   { (exit 1); exit 1; }; }
4446    fi
4447
4448    # Check if this is the correct version of libtool (with escaped dots)
4449    if test x$AUTOTOOLS_DIR = x; then
4450      want_dir=$AUTOTOOLS_DFLT/share
4451    else
4452      want_dir=$AUTOTOOLS_DIR/share
4453    fi
4454    correct_version='1.5.22'
4455    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4456    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4457echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4458echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4459if eval "test \"\${$as_ac_File+set}\" = set"; then
4460  echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462  test "$cross_compiling" = yes &&
4463  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4464echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4465   { (exit 1); exit 1; }; }
4466if test -r "$want_dir/libtool/ltmain.sh"; then
4467  eval "$as_ac_File=yes"
4468else
4469  eval "$as_ac_File=no"
4470fi
4471fi
4472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4473echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4474if test `eval echo '${'$as_ac_File'}'` = yes; then
4475  have_ltmain=yes
4476else
4477  have_ltmain=no
4478fi
4479
4480    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4481echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4482    if test $have_ltmain = yes; then
4483    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4484        echo "$as_me:$LINENO: result: yes" >&5
4485echo "${ECHO_T}yes" >&6
4486      else
4487        echo "$as_me:$LINENO: result: no" >&5
4488echo "${ECHO_T}no" >&6
4489        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4490echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4491   { (exit 1); exit 1; }; }
4492      fi
4493    else
4494      echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6
4496      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4497echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4498   { (exit 1); exit 1; }; }
4499    fi
4500  fi
4501
4502  # Check if we can find the libtool file
4503  if test x$AUTOTOOLS_DIR = x; then
4504    want_dir=$AUTOTOOLS_DFLT/share
4505  else
4506    want_dir=$AUTOTOOLS_DIR/share
4507  fi
4508  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4509echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4510echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4511if eval "test \"\${$as_ac_File+set}\" = set"; then
4512  echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514  test "$cross_compiling" = yes &&
4515  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4516echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4517   { (exit 1); exit 1; }; }
4518if test -r "$want_dir/aclocal/libtool.m4"; then
4519  eval "$as_ac_File=yes"
4520else
4521  eval "$as_ac_File=no"
4522fi
4523fi
4524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4525echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4526if test `eval echo '${'$as_ac_File'}'` = yes; then
4527  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4528else
4529  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4530echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4531   { (exit 1); exit 1; }; }
4532fi
4533
4534
4535  # Check if we have an Externals file
4536  if test -r $srcdir/Externals; then
4537    coin_have_externals=yes
4538  fi
4539  # Check if subversion is installed and understands https
4540  # Extract the first word of "svn", so it can be a program name with args.
4541set dummy svn; ac_word=$2
4542echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544if test "${ac_cv_prog_have_svn+set}" = set; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547  if test -n "$have_svn"; then
4548  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553  IFS=$as_save_IFS
4554  test -z "$as_dir" && as_dir=.
4555  for ac_exec_ext in '' $ac_executable_extensions; do
4556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557    ac_cv_prog_have_svn="yes"
4558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559    break 2
4560  fi
4561done
4562done
4563
4564  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4565fi
4566fi
4567have_svn=$ac_cv_prog_have_svn
4568if test -n "$have_svn"; then
4569  echo "$as_me:$LINENO: result: $have_svn" >&5
4570echo "${ECHO_T}$have_svn" >&6
4571else
4572  echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574fi
4575
4576  if test x$have_svn = xyes; then
4577    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4578echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4579if test "${ac_cv_svn_understands_https+set}" = set; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582  svn --version > confauto.out 2>&1
4583                    if $EGREP https confauto.out >/dev/null 2>&1; then
4584                      ac_cv_svn_understands_https=yes
4585                    else
4586                      ac_cv_svn_understands_https=no
4587                      have_svn=no
4588                      ac_cv_prog_have_svn=no
4589                    fi
4590                    rm -f confauto.out
4591fi
4592echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4593echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4594  fi
4595
4596  # Find the location of the BuildTools directory
4597  BUILDTOOLSDIR=
4598  if test -r $srcdir/BuildTools/coin.m4; then
4599    BUILDTOOLSDIR=$srcdir/BuildTools
4600  else
4601    if test -r $srcdir/../BuildTools/coin.m4; then
4602      BUILDTOOLSDIR=$srcdir/../BuildTools
4603    else
4604      if test -r $srcdir/../../BuildTools/coin.m4; then
4605        BUILDTOOLSDIR=$srcdir/../../BuildTools
4606      else
4607        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4608echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4609   { (exit 1); exit 1; }; }
4610      fi
4611    fi
4612  fi
4613
4614
4615  # The following variable is set to the name of the directory where
4616  # the autotool scripts are located
4617
4618  AUX_DIR=$ac_aux_dir
4619fi
4620
4621# helpful variable for the base directory of this package
4622abs_source_dir=`cd $srcdir; pwd`
4623
4624
4625# Stuff for example Makefiles
4626if test x$prefix = xNONE; then
4627  full_prefix=$ac_default_prefix
4628else
4629  full_prefix=$prefix
4630fi
4631full_prefix=`cd $full_prefix ; pwd`
4632
4633abs_lib_dir=$full_prefix/lib
4634
4635abs_include_dir=$full_prefix/include
4636
4637abs_bin_dir=$full_prefix/bin
4638
4639
4640
4641if test $coin_have_externals = yes && test x$have_svn = xyes; then
4642  HAVE_EXTERNALS_TRUE=
4643  HAVE_EXTERNALS_FALSE='#'
4644else
4645  HAVE_EXTERNALS_TRUE='#'
4646  HAVE_EXTERNALS_FALSE=
4647fi
4648
4649
4650
4651unset ac_cv_file__________libtool
4652unset ac_cv_file_______libtool
4653unset ac_cv_file____libtool
4654
4655LIBTOOL=
4656echo "$as_me:$LINENO: checking for ../libtool" >&5
4657echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
4658if test "${ac_cv_file____libtool+set}" = set; then
4659  echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661  test "$cross_compiling" = yes &&
4662  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4663echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4664   { (exit 1); exit 1; }; }
4665if test -r "../libtool"; then
4666  ac_cv_file____libtool=yes
4667else
4668  ac_cv_file____libtool=no
4669fi
4670fi
4671echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
4672echo "${ECHO_T}$ac_cv_file____libtool" >&6
4673if test $ac_cv_file____libtool = yes; then
4674  coin_config_dir=..
4675               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4676fi
4677
4678if test "x$LIBTOOL" = x; then
4679  echo "$as_me:$LINENO: checking for ../../libtool" >&5
4680echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
4681if test "${ac_cv_file_______libtool+set}" = set; then
4682  echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684  test "$cross_compiling" = yes &&
4685  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4686echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4687   { (exit 1); exit 1; }; }
4688if test -r "../../libtool"; then
4689  ac_cv_file_______libtool=yes
4690else
4691  ac_cv_file_______libtool=no
4692fi
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
4695echo "${ECHO_T}$ac_cv_file_______libtool" >&6
4696if test $ac_cv_file_______libtool = yes; then
4697  coin_config_dir=../..
4698                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4699fi
4700
4701fi
4702#if test "x$LIBTOOL" = x; then
4703#  AC_CHECK_FILE([../../../libtool],
4704#                [coin_config_dir=../../..
4705#                 LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
4706#fi
4707
4708if test "x$LIBTOOL" = x; then
4709
4710  # Stuff for libtool
4711  ac_ext=c
4712ac_cpp='$CPP $CPPFLAGS'
4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717if test x"" = x; then
4718  hdr="#include <dlfcn.h>"
4719else
4720  hdr=""
4721fi
4722
4723for ac_header in dlfcn.h
4724do
4725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726echo "$as_me:$LINENO: checking for $ac_header" >&5
4727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4728if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729  echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731  cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h.  */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h.  */
4737$hdr
4738
4739#include <$ac_header>
4740_ACEOF
4741rm -f conftest.$ac_objext
4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743  (eval $ac_compile) 2>conftest.er1
4744  ac_status=$?
4745  grep -v '^ *+' conftest.er1 >conftest.err
4746  rm -f conftest.er1
4747  cat conftest.err >&5
4748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749  (exit $ac_status); } &&
4750         { ac_try='test -z "$ac_c_werror_flag"
4751                         || test ! -s conftest.err'
4752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753  (eval $ac_try) 2>&5
4754  ac_status=$?
4755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756  (exit $ac_status); }; } &&
4757         { ac_try='test -s conftest.$ac_objext'
4758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759  (eval $ac_try) 2>&5
4760  ac_status=$?
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); }; }; then
4763  eval "$as_ac_Header=yes"
4764else
4765  echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768eval "$as_ac_Header=no"
4769fi
4770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771fi
4772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4774if test `eval echo '${'$as_ac_Header'}'` = yes; then
4775  cat >>confdefs.h <<_ACEOF
4776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777_ACEOF
4778
4779fi
4780
4781done
4782
4783
4784ac_ext=c
4785ac_cpp='$CPP $CPPFLAGS'
4786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789
4790
4791# Check whether --enable-shared or --disable-shared was given.
4792if test "${enable_shared+set}" = set; then
4793  enableval="$enable_shared"
4794  p=${PACKAGE-default}
4795    case $enableval in
4796    yes) enable_shared=yes ;;
4797    no) enable_shared=no ;;
4798    *)
4799      enable_shared=no
4800      # Look at the argument we got.  We use all the common list separators.
4801      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4802      for pkg in $enableval; do
4803        IFS="$lt_save_ifs"
4804        if test "X$pkg" = "X$p"; then
4805          enable_shared=yes
4806        fi
4807      done
4808      IFS="$lt_save_ifs"
4809      ;;
4810    esac
4811else
4812  enable_shared=yes
4813fi;
4814
4815# Check whether --enable-fast-install or --disable-fast-install was given.
4816if test "${enable_fast_install+set}" = set; then
4817  enableval="$enable_fast_install"
4818  p=${PACKAGE-default}
4819    case $enableval in
4820    yes) enable_fast_install=yes ;;
4821    no) enable_fast_install=no ;;
4822    *)
4823      enable_fast_install=no
4824      # Look at the argument we got.  We use all the common list separators.
4825      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4826      for pkg in $enableval; do
4827        IFS="$lt_save_ifs"
4828        if test "X$pkg" = "X$p"; then
4829          enable_fast_install=yes
4830        fi
4831      done
4832      IFS="$lt_save_ifs"
4833      ;;
4834    esac
4835else
4836  enable_fast_install=yes
4837fi;
4838
4839echo "$as_me:$LINENO: checking host system type" >&5
4840echo $ECHO_N "checking host system type... $ECHO_C" >&6
4841if test "${ac_cv_host+set}" = set; then
4842  echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844  ac_cv_host_alias=$host_alias
4845test -z "$ac_cv_host_alias" &&
4846  ac_cv_host_alias=$ac_cv_build_alias
4847ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4848  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4849echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4850   { (exit 1); exit 1; }; }
4851
4852fi
4853echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4854echo "${ECHO_T}$ac_cv_host" >&6
4855host=$ac_cv_host
4856host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4857host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4858host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4859
4860
4861echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4862echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4863if test "${lt_cv_path_SED+set}" = set; then
4864  echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866  # Loop through the user's path and test for sed and gsed.
4867# Then use that list of sed's as ones to test for truncation.
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871  IFS=$as_save_IFS
4872  test -z "$as_dir" && as_dir=.
4873  for lt_ac_prog in sed gsed; do
4874    for ac_exec_ext in '' $ac_executable_extensions; do
4875      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4876        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4877      fi
4878    done
4879  done
4880done
4881lt_ac_max=0
4882lt_ac_count=0
4883# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4884# along with /bin/sed that truncates output.
4885for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4886  test ! -f $lt_ac_sed && continue
4887  cat /dev/null > conftest.in
4888  lt_ac_count=0
4889  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4890  # Check for GNU sed and select it if it is found.
4891  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4892    lt_cv_path_SED=$lt_ac_sed
4893    break
4894  fi
4895  while true; do
4896    cat conftest.in conftest.in >conftest.tmp
4897    mv conftest.tmp conftest.in
4898    cp conftest.in conftest.nl
4899    echo >>conftest.nl
4900    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4901    cmp -s conftest.out conftest.nl || break
4902    # 10000 chars as input seems more than enough
4903    test $lt_ac_count -gt 10 && break
4904    lt_ac_count=`expr $lt_ac_count + 1`
4905    if test $lt_ac_count -gt $lt_ac_max; then
4906      lt_ac_max=$lt_ac_count
4907      lt_cv_path_SED=$lt_ac_sed
4908    fi
4909  done
4910done
4911
4912fi
4913
4914SED=$lt_cv_path_SED
4915echo "$as_me:$LINENO: result: $SED" >&5
4916echo "${ECHO_T}$SED" >&6
4917
4918
4919# Check whether --with-gnu-ld or --without-gnu-ld was given.
4920if test "${with_gnu_ld+set}" = set; then
4921  withval="$with_gnu_ld"
4922  test "$withval" = no || with_gnu_ld=yes
4923else
4924  with_gnu_ld=no
4925fi;
4926ac_prog=ld
4927if test "$GCC" = yes; then
4928  # Check if gcc -print-prog-name=ld gives a path.
4929  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4930echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4931  case $host in
4932  *-*-mingw*)
4933    # gcc leaves a trailing carriage return which upsets mingw
4934    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4935  *)
4936    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4937  esac
4938  case $ac_prog in
4939    # Accept absolute paths.
4940    [\\/]* | ?:[\\/]*)
4941      re_direlt='/[^/][^/]*/\.\./'
4942      # Canonicalize the pathname of ld
4943      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4944      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4945        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4946      done
4947      test -z "$LD" && LD="$ac_prog"
4948      ;;
4949  "")
4950    # If it fails, then pretend we aren't using GCC.
4951    ac_prog=ld
4952    ;;
4953  *)
4954    # If it is relative, then search for the first ld in PATH.
4955    with_gnu_ld=unknown
4956    ;;
4957  esac
4958elif test "$with_gnu_ld" = yes; then
4959  echo "$as_me:$LINENO: checking for GNU ld" >&5
4960echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4961else
4962  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4963echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4964fi
4965if test "${lt_cv_path_LD+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  if test -z "$LD"; then
4969  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4970  for ac_dir in $PATH; do
4971    IFS="$lt_save_ifs"
4972    test -z "$ac_dir" && ac_dir=.
4973    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4974      lt_cv_path_LD="$ac_dir/$ac_prog"
4975      # Check to see if the program is GNU ld.  I'd rather use --version,
4976      # but apparently some variants of GNU ld only accept -v.
4977      # Break only if it was the GNU/non-GNU ld that we prefer.
4978      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4979      *GNU* | *'with BFD'*)
4980        test "$with_gnu_ld" != no && break
4981        ;;
4982      *)
4983        test "$with_gnu_ld" != yes && break
4984        ;;
4985      esac
4986    fi
4987  done
4988  IFS="$lt_save_ifs"
4989else
4990  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4991fi
4992fi
4993
4994LD="$lt_cv_path_LD"
4995if test -n "$LD"; then
4996  echo "$as_me:$LINENO: result: $LD" >&5
4997echo "${ECHO_T}$LD" >&6
4998else
4999  echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6
5001fi
5002test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5003echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5004   { (exit 1); exit 1; }; }
5005echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5006echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5007if test "${lt_cv_prog_gnu_ld+set}" = set; then
5008  echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5011case `$LD -v 2>&1 </dev/null` in
5012*GNU* | *'with BFD'*)
5013  lt_cv_prog_gnu_ld=yes
5014  ;;
5015*)
5016  lt_cv_prog_gnu_ld=no
5017  ;;
5018esac
5019fi
5020echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5021echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5022with_gnu_ld=$lt_cv_prog_gnu_ld
5023
5024
5025echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5026echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5027if test "${lt_cv_ld_reload_flag+set}" = set; then
5028  echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030  lt_cv_ld_reload_flag='-r'
5031fi
5032echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5033echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5034reload_flag=$lt_cv_ld_reload_flag
5035case $reload_flag in
5036"" | " "*) ;;
5037*) reload_flag=" $reload_flag" ;;
5038esac
5039reload_cmds='$LD$reload_flag -o $output$reload_objs'
5040case $host_os in
5041  darwin*)
5042    if test "$GCC" = yes; then
5043      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5044    else
5045      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5046    fi
5047    ;;
5048esac
5049
5050echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5051echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5052if test "${lt_cv_path_NM+set}" = set; then
5053  echo $ECHO_N "(cached) $ECHO_C" >&6
5054else
5055  if test -n "$NM"; then
5056  # Let the user override the test.
5057  lt_cv_path_NM="$NM"
5058else
5059  lt_nm_to_check="${ac_tool_prefix}nm"
5060  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5061    lt_nm_to_check="$lt_nm_to_check nm"
5062  fi
5063  for lt_tmp_nm in $lt_nm_to_check; do
5064    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5065    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5066      IFS="$lt_save_ifs"
5067      test -z "$ac_dir" && ac_dir=.
5068      tmp_nm="$ac_dir/$lt_tmp_nm"
5069      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5070        # Check to see if the nm accepts a BSD-compat flag.
5071        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5072        #   nm: unknown option "B" ignored
5073        # Tru64's nm complains that /dev/null is an invalid object file
5074        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5075        */dev/null* | *'Invalid file or object type'*)
5076          lt_cv_path_NM="$tmp_nm -B"
5077          break
5078          ;;
5079        *)
5080          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5081          */dev/null*)
5082            lt_cv_path_NM="$tmp_nm -p"
5083            break
5084            ;;
5085          *)
5086            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5087            continue # so that we can try to find one that supports BSD flags
5088            ;;
5089          esac
5090          ;;
5091        esac
5092      fi
5093    done
5094    IFS="$lt_save_ifs"
5095  done
5096  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5097fi
5098fi
5099echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5100echo "${ECHO_T}$lt_cv_path_NM" >&6
5101NM="$lt_cv_path_NM"
5102
5103echo "$as_me:$LINENO: checking whether ln -s works" >&5
5104echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5105LN_S=$as_ln_s
5106if test "$LN_S" = "ln -s"; then
5107  echo "$as_me:$LINENO: result: yes" >&5
5108echo "${ECHO_T}yes" >&6
5109else
5110  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5111echo "${ECHO_T}no, using $LN_S" >&6
5112fi
5113
5114echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5115echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5116if test "${lt_cv_deplibs_check_method+set}" = set; then
5117  echo $ECHO_N "(cached) $ECHO_C" >&6
5118else
5119  lt_cv_file_magic_cmd='$MAGIC_CMD'
5120lt_cv_file_magic_test_file=
5121lt_cv_deplibs_check_method='unknown'
5122# Need to set the preceding variable on all platforms that support
5123# interlibrary dependencies.
5124# 'none' -- dependencies not supported.
5125# `unknown' -- same as none, but documents that we really don't know.
5126# 'pass_all' -- all dependencies passed with no checks.
5127# 'test_compile' -- check by making test program.
5128# 'file_magic [[regex]]' -- check by looking for files in library path
5129# which responds to the $file_magic_cmd with a given extended regex.
5130# If you have `file' or equivalent on your system and you're not sure
5131# whether `pass_all' will *always* work, you probably want this one.
5132
5133case $host_os in
5134aix4* | aix5*)
5135  lt_cv_deplibs_check_method=pass_all
5136  ;;
5137
5138beos*)
5139  lt_cv_deplibs_check_method=pass_all
5140  ;;
5141
5142bsdi[45]*)
5143  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5144  lt_cv_file_magic_cmd='/usr/bin/file -L'
5145  lt_cv_file_magic_test_file=/shlib/libc.so
5146  ;;
5147
5148cygwin*)
5149  # func_win32_libid is a shell function defined in ltmain.sh
5150  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5151  lt_cv_file_magic_cmd='func_win32_libid'
5152  ;;
5153
5154mingw* | pw32*)
5155  # Base MSYS/MinGW do not provide the 'file' command needed by
5156  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5157  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5158  lt_cv_file_magic_cmd='$OBJDUMP -f'
5159  ;;
5160
5161darwin* | rhapsody*)
5162  lt_cv_deplibs_check_method=pass_all
5163  ;;
5164
5165freebsd* | kfreebsd*-gnu | dragonfly*)
5166  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5167    case $host_cpu in
5168    i*86 )
5169      # Not sure whether the presence of OpenBSD here was a mistake.
5170      # Let's accept both of them until this is cleared up.
5171      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5172      lt_cv_file_magic_cmd=/usr/bin/file
5173      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5174      ;;
5175    esac
5176  else
5177    lt_cv_deplibs_check_method=pass_all
5178  fi
5179  ;;
5180
5181gnu*)
5182  lt_cv_deplibs_check_method=pass_all
5183  ;;
5184
5185hpux10.20* | hpux11*)
5186  lt_cv_file_magic_cmd=/usr/bin/file
5187  case $host_cpu in
5188  ia64*)
5189    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5190    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5191    ;;
5192  hppa*64*)
5193    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]'
5194    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5195    ;;
5196  *)
5197    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5198    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5199    ;;
5200  esac
5201  ;;
5202
5203interix3*)
5204  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5205  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5206  ;;
5207
5208irix5* | irix6* | nonstopux*)
5209  case $LD in
5210  *-32|*"-32 ") libmagic=32-bit;;
5211  *-n32|*"-n32 ") libmagic=N32;;
5212  *-64|*"-64 ") libmagic=64-bit;;
5213  *) libmagic=never-match;;
5214  esac
5215  lt_cv_deplibs_check_method=pass_all
5216  ;;
5217
5218# This must be Linux ELF.
5219linux*)
5220  lt_cv_deplibs_check_method=pass_all
5221  ;;
5222
5223netbsd*)
5224  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5225    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5226  else
5227    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5228  fi
5229  ;;
5230
5231newos6*)
5232  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5233  lt_cv_file_magic_cmd=/usr/bin/file
5234  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5235  ;;
5236
5237nto-qnx*)
5238  lt_cv_deplibs_check_method=unknown
5239  ;;
5240
5241openbsd*)
5242  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5243    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5244  else
5245    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5246  fi
5247  ;;
5248
5249osf3* | osf4* | osf5*)
5250  lt_cv_deplibs_check_method=pass_all
5251  ;;
5252
5253solaris*)
5254  lt_cv_deplibs_check_method=pass_all
5255  ;;
5256
5257sysv4 | sysv4.3*)
5258  case $host_vendor in
5259  motorola)
5260    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]'
5261    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5262    ;;
5263  ncr)
5264    lt_cv_deplibs_check_method=pass_all
5265    ;;
5266  sequent)
5267    lt_cv_file_magic_cmd='/bin/file'
5268    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5269    ;;
5270  sni)
5271    lt_cv_file_magic_cmd='/bin/file'
5272    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5273    lt_cv_file_magic_test_file=/lib/libc.so
5274    ;;
5275  siemens)
5276    lt_cv_deplibs_check_method=pass_all
5277    ;;
5278  pc)
5279    lt_cv_deplibs_check_method=pass_all
5280    ;;
5281  esac
5282  ;;
5283
5284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5285  lt_cv_deplibs_check_method=pass_all
5286  ;;
5287esac
5288
5289fi
5290echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5291echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5292file_magic_cmd=$lt_cv_file_magic_cmd
5293deplibs_check_method=$lt_cv_deplibs_check_method
5294test -z "$deplibs_check_method" && deplibs_check_method=unknown
5295
5296
5297
5298
5299# If no C compiler was specified, use CC.
5300LTCC=${LTCC-"$CC"}
5301
5302# If no C compiler flags were specified, use CFLAGS.
5303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5304
5305# Allow CC to be a program name with arguments.
5306compiler=$CC
5307
5308# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5309if test "${enable_libtool_lock+set}" = set; then
5310  enableval="$enable_libtool_lock"
5311
5312fi;
5313test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5314
5315# Some flags need to be propagated to the compiler or linker for good
5316# libtool support.
5317case $host in
5318ia64-*-hpux*)
5319  # Find out which ABI we are using.
5320  echo 'int i;' > conftest.$ac_ext
5321  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322  (eval $ac_compile) 2>&5
5323  ac_status=$?
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); }; then
5326    case `/usr/bin/file conftest.$ac_objext` in
5327    *ELF-32*)
5328      HPUX_IA64_MODE="32"
5329      ;;
5330    *ELF-64*)
5331      HPUX_IA64_MODE="64"
5332      ;;
5333    esac
5334  fi
5335  rm -rf conftest*
5336  ;;
5337*-*-irix6*)
5338  # Find out which ABI we are using.
5339  echo '#line 5339 "configure"' > conftest.$ac_ext
5340  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341  (eval $ac_compile) 2>&5
5342  ac_status=$?
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); }; then
5345   if test "$lt_cv_prog_gnu_ld" = yes; then
5346    case `/usr/bin/file conftest.$ac_objext` in
5347    *32-bit*)
5348      LD="${LD-ld} -melf32bsmip"
5349      ;;
5350    *N32*)
5351      LD="${LD-ld} -melf32bmipn32"
5352      ;;
5353    *64-bit*)
5354      LD="${LD-ld} -melf64bmip"
5355      ;;
5356    esac
5357   else
5358    case `/usr/bin/file conftest.$ac_objext` in
5359    *32-bit*)
5360      LD="${LD-ld} -32"
5361      ;;
5362    *N32*)
5363      LD="${LD-ld} -n32"
5364      ;;
5365    *64-bit*)
5366      LD="${LD-ld} -64"
5367      ;;
5368    esac
5369   fi
5370  fi
5371  rm -rf conftest*
5372  ;;
5373
5374x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5375  # Find out which ABI we are using.
5376  echo 'int i;' > conftest.$ac_ext
5377  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378  (eval $ac_compile) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }; then
5382    case `/usr/bin/file conftest.o` in
5383    *32-bit*)
5384      case $host in
5385        x86_64-*linux*)
5386          LD="${LD-ld} -m elf_i386"
5387          ;;
5388        ppc64-*linux*|powerpc64-*linux*)
5389          LD="${LD-ld} -m elf32ppclinux"
5390          ;;
5391        s390x-*linux*)
5392          LD="${LD-ld} -m elf_s390"
5393          ;;
5394        sparc64-*linux*)
5395          LD="${LD-ld} -m elf32_sparc"
5396          ;;
5397      esac
5398      ;;
5399    *64-bit*)
5400      case $host in
5401        x86_64-*linux*)
5402          LD="${LD-ld} -m elf_x86_64"
5403          ;;
5404        ppc*-*linux*|powerpc*-*linux*)
5405          LD="${LD-ld} -m elf64ppc"
5406          ;;
5407        s390*-*linux*)
5408          LD="${LD-ld} -m elf64_s390"
5409          ;;
5410        sparc*-*linux*)
5411          LD="${LD-ld} -m elf64_sparc"
5412          ;;
5413      esac
5414      ;;
5415    esac
5416  fi
5417  rm -rf conftest*
5418  ;;
5419
5420*-*-sco3.2v5*)
5421  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5422  SAVE_CFLAGS="$CFLAGS"
5423  CFLAGS="$CFLAGS -belf"
5424  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5425echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5426if test "${lt_cv_cc_needs_belf+set}" = set; then
5427  echo $ECHO_N "(cached) $ECHO_C" >&6
5428else
5429  ac_ext=c
5430ac_cpp='$CPP $CPPFLAGS'
5431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434
5435     cat >conftest.$ac_ext <<_ACEOF
5436/* confdefs.h.  */
5437_ACEOF
5438cat confdefs.h >>conftest.$ac_ext
5439cat >>conftest.$ac_ext <<_ACEOF
5440/* end confdefs.h.  */
5441
5442int
5443main ()
5444{
5445
5446  ;
5447  return 0;
5448}
5449_ACEOF
5450rm -f conftest.$ac_objext conftest$ac_exeext
5451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452  (eval $ac_link) 2>conftest.er1
5453  ac_status=$?
5454  grep -v '^ *+' conftest.er1 >conftest.err
5455  rm -f conftest.er1
5456  cat conftest.err >&5
5457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458  (exit $ac_status); } &&
5459         { ac_try='test -z "$ac_c_werror_flag"
5460                         || test ! -s conftest.err'
5461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462  (eval $ac_try) 2>&5
5463  ac_status=$?
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); }; } &&
5466         { ac_try='test -s conftest$ac_exeext'
5467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468  (eval $ac_try) 2>&5
5469  ac_status=$?
5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471  (exit $ac_status); }; }; then
5472  lt_cv_cc_needs_belf=yes
5473else
5474  echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
5477lt_cv_cc_needs_belf=no
5478fi
5479rm -f conftest.err conftest.$ac_objext \
5480      conftest$ac_exeext conftest.$ac_ext
5481     ac_ext=c
5482ac_cpp='$CPP $CPPFLAGS'
5483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486
5487fi
5488echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5489echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5490  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5491    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5492    CFLAGS="$SAVE_CFLAGS"
5493  fi
5494  ;;
5495sparc*-*solaris*)
5496  # Find out which ABI we are using.
5497  echo 'int i;' > conftest.$ac_ext
5498  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5499  (eval $ac_compile) 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }; then
5503    case `/usr/bin/file conftest.o` in
5504    *64-bit*)
5505      case $lt_cv_prog_gnu_ld in
5506      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5507      *)    LD="${LD-ld} -64" ;;
5508      esac
5509      ;;
5510    esac
5511  fi
5512  rm -rf conftest*
5513  ;;
5514
5515
5516esac
5517
5518need_locks="$enable_libtool_lock"
5519
5520
5521ac_ext=c
5522ac_cpp='$CPP $CPPFLAGS'
5523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525ac_compiler_gnu=$ac_cv_c_compiler_gnu
5526echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5527echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5528# On Suns, sometimes $CPP names a directory.
5529if test -n "$CPP" && test -d "$CPP"; then
5530  CPP=
5531fi
5532if test -z "$CPP"; then
5533  if test "${ac_cv_prog_CPP+set}" = set; then
5534  echo $ECHO_N "(cached) $ECHO_C" >&6
5535else
5536      # Double quotes because CPP needs to be expanded
5537    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5538    do
5539      ac_preproc_ok=false
5540for ac_c_preproc_warn_flag in '' yes
5541do
5542  # Use a header file that comes with gcc, so configuring glibc
5543  # with a fresh cross-compiler works.
5544  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5545  # <limits.h> exists even on freestanding compilers.
5546  # On the NeXT, cc -E runs the code through the compiler's parser,
5547  # not just through cpp. "Syntax error" is here to catch this case.
5548  cat >conftest.$ac_ext <<_ACEOF
5549/* confdefs.h.  */
5550_ACEOF
5551cat confdefs.h >>conftest.$ac_ext
5552cat >>conftest.$ac_ext <<_ACEOF
5553/* end confdefs.h.  */
5554#ifdef __STDC__
5555# include <limits.h>
5556#else
5557# include <assert.h>
5558#endif
5559                     Syntax error
5560_ACEOF
5561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5562  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5563  ac_status=$?
5564  grep -v '^ *+' conftest.er1 >conftest.err
5565  rm -f conftest.er1
5566  cat conftest.err >&5
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); } >/dev/null; then
5569  if test -s conftest.err; then
5570    ac_cpp_err=$ac_c_preproc_warn_flag
5571    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5572  else
5573    ac_cpp_err=
5574  fi
5575else
5576  ac_cpp_err=yes
5577fi
5578if test -z "$ac_cpp_err"; then
5579  :
5580else
5581  echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
5584  # Broken: fails on valid input.
5585continue
5586fi
5587rm -f conftest.err conftest.$ac_ext
5588
5589  # OK, works on sane cases.  Now check whether non-existent headers
5590  # can be detected and how.
5591  cat >conftest.$ac_ext <<_ACEOF
5592/* confdefs.h.  */
5593_ACEOF
5594cat confdefs.h >>conftest.$ac_ext
5595cat >>conftest.$ac_ext <<_ACEOF
5596/* end confdefs.h.  */
5597#include <ac_nonexistent.h>
5598_ACEOF
5599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5600  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5601  ac_status=$?
5602  grep -v '^ *+' conftest.er1 >conftest.err
5603  rm -f conftest.er1
5604  cat conftest.err >&5
5605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606  (exit $ac_status); } >/dev/null; then
5607  if test -s conftest.err; then
5608    ac_cpp_err=$ac_c_preproc_warn_flag
5609    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5610  else
5611    ac_cpp_err=
5612  fi
5613else
5614  ac_cpp_err=yes
5615fi
5616if test -z "$ac_cpp_err"; then
5617  # Broken: success on invalid input.
5618continue
5619else
5620  echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623  # Passes both tests.
5624ac_preproc_ok=:
5625break
5626fi
5627rm -f conftest.err conftest.$ac_ext
5628
5629done
5630# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5631rm -f conftest.err conftest.$ac_ext
5632if $ac_preproc_ok; then
5633  break
5634fi
5635
5636    done
5637    ac_cv_prog_CPP=$CPP
5638
5639fi
5640  CPP=$ac_cv_prog_CPP
5641else
5642  ac_cv_prog_CPP=$CPP
5643fi
5644echo "$as_me:$LINENO: result: $CPP" >&5
5645echo "${ECHO_T}$CPP" >&6
5646ac_preproc_ok=false
5647for ac_c_preproc_warn_flag in '' yes
5648do
5649  # Use a header file that comes with gcc, so configuring glibc
5650  # with a fresh cross-compiler works.
5651  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652  # <limits.h> exists even on freestanding compilers.
5653  # On the NeXT, cc -E runs the code through the compiler's parser,
5654  # not just through cpp. "Syntax error" is here to catch this case.
5655  cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h.  */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h.  */
5661#ifdef __STDC__
5662# include <limits.h>
5663#else
5664# include <assert.h>
5665#endif
5666                     Syntax error
5667_ACEOF
5668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5669  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5670  ac_status=$?
5671  grep -v '^ *+' conftest.er1 >conftest.err
5672  rm -f conftest.er1
5673  cat conftest.err >&5
5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); } >/dev/null; then
5676  if test -s conftest.err; then
5677    ac_cpp_err=$ac_c_preproc_warn_flag
5678    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5679  else
5680    ac_cpp_err=
5681  fi
5682else
5683  ac_cpp_err=yes
5684fi
5685if test -z "$ac_cpp_err"; then
5686  :
5687else
5688  echo "$as_me: failed program was:" >&5
5689sed 's/^/| /' conftest.$ac_ext >&5
5690
5691  # Broken: fails on valid input.
5692continue
5693fi
5694rm -f conftest.err conftest.$ac_ext
5695
5696  # OK, works on sane cases.  Now check whether non-existent headers
5697  # can be detected and how.
5698  cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h.  */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h.  */
5704#include <ac_nonexistent.h>
5705_ACEOF
5706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5707  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5708  ac_status=$?
5709  grep -v '^ *+' conftest.er1 >conftest.err
5710  rm -f conftest.er1
5711  cat conftest.err >&5
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); } >/dev/null; then
5714  if test -s conftest.err; then
5715    ac_cpp_err=$ac_c_preproc_warn_flag
5716    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5717  else
5718    ac_cpp_err=
5719  fi
5720else
5721  ac_cpp_err=yes
5722fi
5723if test -z "$ac_cpp_err"; then
5724  # Broken: success on invalid input.
5725continue
5726else
5727  echo "$as_me: failed program was:" >&5
5728sed 's/^/| /' conftest.$ac_ext >&5
5729
5730  # Passes both tests.
5731ac_preproc_ok=:
5732break
5733fi
5734rm -f conftest.err conftest.$ac_ext
5735
5736done
5737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5738rm -f conftest.err conftest.$ac_ext
5739if $ac_preproc_ok; then
5740  :
5741else
5742  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5743See \`config.log' for more details." >&5
5744echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5745See \`config.log' for more details." >&2;}
5746   { (exit 1); exit 1; }; }
5747fi
5748
5749ac_ext=c
5750ac_cpp='$CPP $CPPFLAGS'
5751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754
5755
5756echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5757echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5758if test "${ac_cv_header_stdc+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h.  */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h.  */
5767#include <stdlib.h>
5768#include <stdarg.h>
5769#include <string.h>
5770#include <float.h>
5771
5772int
5773main ()
5774{
5775
5776  ;
5777  return 0;
5778}
5779_ACEOF
5780rm -f conftest.$ac_objext
5781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782  (eval $ac_compile) 2>conftest.er1
5783  ac_status=$?
5784  grep -v '^ *+' conftest.er1 >conftest.err
5785  rm -f conftest.er1
5786  cat conftest.err >&5
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); } &&
5789         { ac_try='test -z "$ac_c_werror_flag"
5790                         || test ! -s conftest.err'
5791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792  (eval $ac_try) 2>&5
5793  ac_status=$?
5794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795  (exit $ac_status); }; } &&
5796         { ac_try='test -s conftest.$ac_objext'
5797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798  (eval $ac_try) 2>&5
5799  ac_status=$?
5800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801  (exit $ac_status); }; }; then
5802  ac_cv_header_stdc=yes
5803else
5804  echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
5806
5807ac_cv_header_stdc=no
5808fi
5809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5810
5811if test $ac_cv_header_stdc = yes; then
5812  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5813  cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h.  */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h.  */
5819#include <string.h>
5820
5821_ACEOF
5822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5823  $EGREP "memchr" >/dev/null 2>&1; then
5824  :
5825else
5826  ac_cv_header_stdc=no
5827fi
5828rm -f conftest*
5829
5830fi
5831
5832if test $ac_cv_header_stdc = yes; then
5833  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5834  cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h.  */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h.  */
5840#include <stdlib.h>
5841
5842_ACEOF
5843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844  $EGREP "free" >/dev/null 2>&1; then
5845  :
5846else
5847  ac_cv_header_stdc=no
5848fi
5849rm -f conftest*
5850
5851fi
5852
5853if test $ac_cv_header_stdc = yes; then
5854  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5855  if test "$cross_compiling" = yes; then
5856  :
5857else
5858  cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h.  */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h.  */
5864#include <ctype.h>
5865#if ((' ' & 0x0FF) == 0x020)
5866# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5867# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5868#else
5869# define ISLOWER(c) \
5870                   (('a' <= (c) && (c) <= 'i') \
5871                     || ('j' <= (c) && (c) <= 'r') \
5872                     || ('s' <= (c) && (c) <= 'z'))
5873# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5874#endif
5875
5876#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5877int
5878main ()
5879{
5880  int i;
5881  for (i = 0; i < 256; i++)
5882    if (XOR (islower (i), ISLOWER (i))
5883        || toupper (i) != TOUPPER (i))
5884      exit(2);
5885  exit (0);
5886}
5887_ACEOF
5888rm -f conftest$ac_exeext
5889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890  (eval $ac_link) 2>&5
5891  ac_status=$?
5892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895  (eval $ac_try) 2>&5
5896  ac_status=$?
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); }; }; then
5899  :
5900else
5901  echo "$as_me: program exited with status $ac_status" >&5
5902echo "$as_me: failed program was:" >&5
5903sed 's/^/| /' conftest.$ac_ext >&5
5904
5905( exit $ac_status )
5906ac_cv_header_stdc=no
5907fi
5908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5909fi
5910fi
5911fi
5912echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5913echo "${ECHO_T}$ac_cv_header_stdc" >&6
5914if test $ac_cv_header_stdc = yes; then
5915
5916cat >>confdefs.h <<\_ACEOF
5917#define STDC_HEADERS 1
5918_ACEOF
5919
5920fi
5921
5922# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5933                  inttypes.h stdint.h unistd.h
5934do
5935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936echo "$as_me:$LINENO: checking for $ac_header" >&5
5937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5938if eval "test \"\${$as_ac_Header+set}\" = set"; then
5939  echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941  cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h.  */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h.  */
5947$ac_includes_default
5948
5949#include <$ac_header>
5950_ACEOF
5951rm -f conftest.$ac_objext
5952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5953  (eval $ac_compile) 2>conftest.er1
5954  ac_status=$?
5955  grep -v '^ *+' conftest.er1 >conftest.err
5956  rm -f conftest.er1
5957  cat conftest.err >&5
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); } &&
5960         { ac_try='test -z "$ac_c_werror_flag"
5961                         || test ! -s conftest.err'
5962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963  (eval $ac_try) 2>&5
5964  ac_status=$?
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); }; } &&
5967         { ac_try='test -s conftest.$ac_objext'
5968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969  (eval $ac_try) 2>&5
5970  ac_status=$?
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); }; }; then
5973  eval "$as_ac_Header=yes"
5974else
5975  echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978eval "$as_ac_Header=no"
5979fi
5980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5981fi
5982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5984if test `eval echo '${'$as_ac_Header'}'` = yes; then
5985  cat >>confdefs.h <<_ACEOF
5986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5987_ACEOF
5988
5989fi
5990
5991done
5992
5993
5994
5995for ac_header in dlfcn.h
5996do
5997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999  echo "$as_me:$LINENO: checking for $ac_header" >&5
6000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002  echo $ECHO_N "(cached) $ECHO_C" >&6
6003fi
6004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6006else
6007  # Is the header compilable?
6008echo "$as_me:$LINENO: checking $ac_header usability" >&5
6009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6010cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h.  */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h.  */
6016$ac_includes_default
6017#include <$ac_header>
6018_ACEOF
6019rm -f conftest.$ac_objext
6020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021  (eval $ac_compile) 2>conftest.er1
6022  ac_status=$?
6023  grep -v '^ *+' conftest.er1 >conftest.err
6024  rm -f conftest.er1
6025  cat conftest.err >&5
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); } &&
6028         { ac_try='test -z "$ac_c_werror_flag"
6029                         || test ! -s conftest.err'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; } &&
6035         { ac_try='test -s conftest.$ac_objext'
6036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037  (eval $ac_try) 2>&5
6038  ac_status=$?
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); }; }; then
6041  ac_header_compiler=yes
6042else
6043  echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046ac_header_compiler=no
6047fi
6048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6050echo "${ECHO_T}$ac_header_compiler" >&6
6051
6052# Is the header present?
6053echo "$as_me:$LINENO: checking $ac_header presence" >&5
6054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6055cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h.  */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h.  */
6061#include <$ac_header>
6062_ACEOF
6063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6065  ac_status=$?
6066  grep -v '^ *+' conftest.er1 >conftest.err
6067  rm -f conftest.er1
6068  cat conftest.err >&5
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); } >/dev/null; then
6071  if test -s conftest.err; then
6072    ac_cpp_err=$ac_c_preproc_warn_flag
6073    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6074  else
6075    ac_cpp_err=
6076  fi
6077else
6078  ac_cpp_err=yes
6079fi
6080if test -z "$ac_cpp_err"; then
6081  ac_header_preproc=yes
6082else
6083  echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086  ac_header_preproc=no
6087fi
6088rm -f conftest.err conftest.$ac_ext
6089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6090echo "${ECHO_T}$ac_header_preproc" >&6
6091
6092# So?  What about this header?
6093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6094  yes:no: )
6095    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6097    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6099    ac_header_preproc=yes
6100    ;;
6101  no:yes:* )
6102    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6104    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6105echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6106    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6108    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6109echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6110    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6112    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6114    (
6115      cat <<\_ASBOX
6116## --------------------------------------------------------------- ##
6117## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6118## --------------------------------------------------------------- ##
6119_ASBOX
6120    ) |
6121      sed "s/^/$as_me: WARNING:     /" >&2
6122    ;;
6123esac
6124echo "$as_me:$LINENO: checking for $ac_header" >&5
6125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6126if eval "test \"\${$as_ac_Header+set}\" = set"; then
6127  echo $ECHO_N "(cached) $ECHO_C" >&6
6128else
6129  eval "$as_ac_Header=\$ac_header_preproc"
6130fi
6131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6133
6134fi
6135if test `eval echo '${'$as_ac_Header'}'` = yes; then
6136  cat >>confdefs.h <<_ACEOF
6137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6138_ACEOF
6139
6140fi
6141
6142done
6143
6144ac_ext=cc
6145ac_cpp='$CXXCPP $CPPFLAGS'
6146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6149if test -n "$ac_tool_prefix"; then
6150  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6151  do
6152    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6154echo "$as_me:$LINENO: checking for $ac_word" >&5
6155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156if test "${ac_cv_prog_CXX+set}" = set; then
6157  echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159  if test -n "$CXX"; then
6160  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6161else
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165  IFS=$as_save_IFS
6166  test -z "$as_dir" && as_dir=.
6167  for ac_exec_ext in '' $ac_executable_extensions; do
6168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171    break 2
6172  fi
6173done
6174done
6175
6176fi
6177fi
6178CXX=$ac_cv_prog_CXX
6179if test -n "$CXX"; then
6180  echo "$as_me:$LINENO: result: $CXX" >&5
6181echo "${ECHO_T}$CXX" >&6
6182else
6183  echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6
6185fi
6186
6187    test -n "$CXX" && break
6188  done
6189fi
6190if test -z "$CXX"; then
6191  ac_ct_CXX=$CXX
6192  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6193do
6194  # Extract the first word of "$ac_prog", so it can be a program name with args.
6195set dummy $ac_prog; ac_word=$2
6196echo "$as_me:$LINENO: checking for $ac_word" >&5
6197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6198if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6199  echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201  if test -n "$ac_ct_CXX"; then
6202  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207  IFS=$as_save_IFS
6208  test -z "$as_dir" && as_dir=.
6209  for ac_exec_ext in '' $ac_executable_extensions; do
6210  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211    ac_cv_prog_ac_ct_CXX="$ac_prog"
6212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213    break 2
6214  fi
6215done
6216done
6217
6218fi
6219fi
6220ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6221if test -n "$ac_ct_CXX"; then
6222  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6223echo "${ECHO_T}$ac_ct_CXX" >&6
6224else
6225  echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6
6227fi
6228
6229  test -n "$ac_ct_CXX" && break
6230done
6231test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6232
6233  CXX=$ac_ct_CXX
6234fi
6235
6236
6237# Provide some information about the compiler.
6238echo "$as_me:$LINENO:" \
6239     "checking for C++ compiler version" >&5
6240ac_compiler=`set X $ac_compile; echo $2`
6241{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6242  (eval $ac_compiler --version </dev/null >&5) 2>&5
6243  ac_status=$?
6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); }
6246{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6247  (eval $ac_compiler -v </dev/null >&5) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }
6251{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6252  (eval $ac_compiler -V </dev/null >&5) 2>&5
6253  ac_status=$?
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); }
6256
6257echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6258echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6259if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6260  echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
6262  cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h.  */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h.  */
6268
6269int
6270main ()
6271{
6272#ifndef __GNUC__
6273       choke me
6274#endif
6275
6276  ;
6277  return 0;
6278}
6279_ACEOF
6280rm -f conftest.$ac_objext
6281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282  (eval $ac_compile) 2>conftest.er1
6283  ac_status=$?
6284  grep -v '^ *+' conftest.er1 >conftest.err
6285  rm -f conftest.er1
6286  cat conftest.err >&5
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); } &&
6289         { ac_try='test -z "$ac_cxx_werror_flag"
6290                         || test ! -s conftest.err'
6291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292  (eval $ac_try) 2>&5
6293  ac_status=$?
6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); }; } &&
6296         { ac_try='test -s conftest.$ac_objext'
6297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298  (eval $ac_try) 2>&5
6299  ac_status=$?
6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); }; }; then
6302  ac_compiler_gnu=yes
6303else
6304  echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307ac_compiler_gnu=no
6308fi
6309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6311
6312fi
6313echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6314echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6315GXX=`test $ac_compiler_gnu = yes && echo yes`
6316ac_test_CXXFLAGS=${CXXFLAGS+set}
6317ac_save_CXXFLAGS=$CXXFLAGS
6318CXXFLAGS="-g"
6319echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6320echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6321if test "${ac_cv_prog_cxx_g+set}" = set; then
6322  echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324  cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h.  */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h.  */
6330
6331int
6332main ()
6333{
6334
6335  ;
6336  return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext
6340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341  (eval $ac_compile) 2>conftest.er1
6342  ac_status=$?
6343  grep -v '^ *+' conftest.er1 >conftest.err
6344  rm -f conftest.er1
6345  cat conftest.err >&5
6346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347  (exit $ac_status); } &&
6348         { ac_try='test -z "$ac_cxx_werror_flag"
6349                         || test ! -s conftest.err'
6350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351  (eval $ac_try) 2>&5
6352  ac_status=$?
6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354  (exit $ac_status); }; } &&
6355         { ac_try='test -s conftest.$ac_objext'
6356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357  (eval $ac_try) 2>&5
6358  ac_status=$?
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); }; }; then
6361  ac_cv_prog_cxx_g=yes
6362else
6363  echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366ac_cv_prog_cxx_g=no
6367fi
6368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369fi
6370echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6371echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6372if test "$ac_test_CXXFLAGS" = set; then
6373  CXXFLAGS=$ac_save_CXXFLAGS
6374elif test $ac_cv_prog_cxx_g = yes; then
6375  if test "$GXX" = yes; then
6376    CXXFLAGS="-g -O2"
6377  else
6378    CXXFLAGS="-g"
6379  fi
6380else
6381  if test "$GXX" = yes; then
6382    CXXFLAGS="-O2"
6383  else
6384    CXXFLAGS=
6385  fi
6386fi
6387for ac_declaration in \
6388   '' \
6389   'extern "C" void std::exit (int) throw (); using std::exit;' \
6390   'extern "C" void std::exit (int); using std::exit;' \
6391   'extern "C" void exit (int) throw ();' \
6392   'extern "C" void exit (int);' \
6393   'void exit (int);'
6394do
6395  cat >conftest.$ac_ext <<_ACEOF
6396/* confdefs.h.  */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
6400/* end confdefs.h.  */
6401$ac_declaration
6402#include <stdlib.h>
6403int
6404main ()
6405{
6406exit (42);
6407  ;
6408  return 0;
6409}
6410_ACEOF
6411rm -f conftest.$ac_objext
6412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413  (eval $ac_compile) 2>conftest.er1
6414  ac_status=$?
6415  grep -v '^ *+' conftest.er1 >conftest.err
6416  rm -f conftest.er1
6417  cat conftest.err >&5
6418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); } &&
6420         { ac_try='test -z "$ac_cxx_werror_flag"
6421                         || test ! -s conftest.err'
6422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423  (eval $ac_try) 2>&5
6424  ac_status=$?
6425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); }; } &&
6427         { ac_try='test -s conftest.$ac_objext'
6428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429  (eval $ac_try) 2>&5
6430  ac_status=$?
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); }; }; then
6433  :
6434else
6435  echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5
6437
6438continue
6439fi
6440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441  cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h.  */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h.  */
6447$ac_declaration
6448int
6449main ()
6450{
6451exit (42);
6452  ;
6453  return 0;
6454}
6455_ACEOF
6456rm -f conftest.$ac_objext
6457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458  (eval $ac_compile) 2>conftest.er1
6459  ac_status=$?
6460  grep -v '^ *+' conftest.er1 >conftest.err
6461  rm -f conftest.er1
6462  cat conftest.err >&5
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); } &&
6465         { ac_try='test -z "$ac_cxx_werror_flag"
6466                         || test ! -s conftest.err'
6467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468  (eval $ac_try) 2>&5
6469  ac_status=$?
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); }; } &&
6472         { ac_try='test -s conftest.$ac_objext'
6473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474  (eval $ac_try) 2>&5
6475  ac_status=$?
6476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477  (exit $ac_status); }; }; then
6478  break
6479else
6480  echo "$as_me: failed program was:" >&5
6481sed 's/^/| /' conftest.$ac_ext >&5
6482
6483fi
6484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485done
6486rm -f conftest*
6487if test -n "$ac_declaration"; then
6488  echo '#ifdef __cplusplus' >>confdefs.h
6489  echo $ac_declaration      >>confdefs.h
6490  echo '#endif'             >>confdefs.h
6491fi
6492
6493ac_ext=cc
6494ac_cpp='$CXXCPP $CPPFLAGS'
6495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6498
6499depcc="$CXX"  am_compiler_list=
6500
6501echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6502echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6503if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6504  echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6507  # We make a subdir and do the tests there.  Otherwise we can end up
6508  # making bogus files that we don't know about and never remove.  For
6509  # instance it was reported that on HP-UX the gcc test will end up
6510  # making a dummy file named `D' -- because `-MD' means `put the output
6511  # in D'.
6512  mkdir conftest.dir
6513  # Copy depcomp to subdir because otherwise we won't find it if we're
6514  # using a relative directory.
6515  cp "$am_depcomp" conftest.dir
6516  cd conftest.dir
6517  # We will build objects and dependencies in a subdirectory because
6518  # it helps to detect inapplicable dependency modes.  For instance
6519  # both Tru64's cc and ICC support -MD to output dependencies as a
6520  # side effect of compilation, but ICC will put the dependencies in
6521  # the current directory while Tru64 will put them in the object
6522  # directory.
6523  mkdir sub
6524
6525  am_cv_CXX_dependencies_compiler_type=none
6526  if test "$am_compiler_list" = ""; then
6527     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6528  fi
6529  for depmode in $am_compiler_list; do
6530    # Setup a source with many dependencies, because some compilers
6531    # like to wrap large dependency lists on column 80 (with \), and
6532    # we should not choose a depcomp mode which is confused by this.
6533    #
6534    # We need to recreate these files for each test, as the compiler may
6535    # overwrite some of them when testing with obscure command lines.
6536    # This happens at least with the AIX C compiler.
6537    : > sub/conftest.c
6538    for i in 1 2 3 4 5 6; do
6539      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6540      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6541      # Solaris 8's {/usr,}/bin/sh.
6542      touch sub/conftst$i.h
6543    done
6544    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6545
6546    case $depmode in
6547    nosideeffect)
6548      # after this tag, mechanisms are not by side-effect, so they'll
6549      # only be used when explicitly requested
6550      if test "x$enable_dependency_tracking" = xyes; then
6551        continue
6552      else
6553        break
6554      fi
6555      ;;
6556    none) break ;;
6557    esac
6558    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6559    # mode.  It turns out that the SunPro C++ compiler does not properly
6560    # handle `-M -o', and we need to detect this.
6561    if depmode=$depmode \
6562       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6563       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6564       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6565         >/dev/null 2>conftest.err &&
6566       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6567       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6568       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6569      # icc doesn't choke on unknown options, it will just issue warnings
6570      # or remarks (even with -Werror).  So we grep stderr for any message
6571      # that says an option was ignored or not supported.
6572      # When given -MP, icc 7.0 and 7.1 complain thusly:
6573      #   icc: Command line warning: ignoring option '-M'; no argument required
6574      # The diagnosis changed in icc 8.0:
6575      #   icc: Command line remark: option '-MP' not supported
6576      if (grep 'ignoring option' conftest.err ||
6577          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6578        am_cv_CXX_dependencies_compiler_type=$depmode
6579        break
6580      fi
6581    fi
6582  done
6583
6584  cd ..
6585  rm -rf conftest.dir
6586else
6587  am_cv_CXX_dependencies_compiler_type=none
6588fi
6589
6590fi
6591echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6592echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6593CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6594
6595
6596
6597if
6598  test "x$enable_dependency_tracking" != xno \
6599  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6600  am__fastdepCXX_TRUE=
6601  am__fastdepCXX_FALSE='#'
6602else
6603  am__fastdepCXX_TRUE='#'
6604  am__fastdepCXX_FALSE=
6605fi
6606
6607
6608
6609
6610if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6611    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6612    (test "X$CXX" != "Xg++"))) ; then
6613  ac_ext=cc
6614ac_cpp='$CXXCPP $CPPFLAGS'
6615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6618echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6619echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6620if test -z "$CXXCPP"; then
6621  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6622  echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624      # Double quotes because CXXCPP needs to be expanded
6625    for CXXCPP in "$CXX -E" "/lib/cpp"
6626    do
6627      ac_preproc_ok=false
6628for ac_cxx_preproc_warn_flag in '' yes
6629do
6630  # Use a header file that comes with gcc, so configuring glibc
6631  # with a fresh cross-compiler works.
6632  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6633  # <limits.h> exists even on freestanding compilers.
6634  # On the NeXT, cc -E runs the code through the compiler's parser,
6635  # not just through cpp. "Syntax error" is here to catch this case.
6636  cat >conftest.$ac_ext <<_ACEOF
6637/* confdefs.h.  */
6638_ACEOF
6639cat confdefs.h >>conftest.$ac_ext
6640cat >>conftest.$ac_ext <<_ACEOF
6641/* end confdefs.h.  */
6642#ifdef __STDC__
6643# include <limits.h>
6644#else
6645# include <assert.h>
6646#endif
6647                     Syntax error
6648_ACEOF
6649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6650  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6651  ac_status=$?
6652  grep -v '^ *+' conftest.er1 >conftest.err
6653  rm -f conftest.er1
6654  cat conftest.err >&5
6655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656  (exit $ac_status); } >/dev/null; then
6657  if test -s conftest.err; then
6658    ac_cpp_err=$ac_cxx_preproc_warn_flag
6659    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6660  else
6661    ac_cpp_err=
6662  fi
6663else
6664  ac_cpp_err=yes
6665fi
6666if test -z "$ac_cpp_err"; then
6667  :
6668else
6669  echo "$as_me: failed program was:" >&5
6670sed 's/^/| /' conftest.$ac_ext >&5
6671
6672  # Broken: fails on valid input.
6673continue
6674fi
6675rm -f conftest.err conftest.$ac_ext
6676
6677  # OK, works on sane cases.  Now check whether non-existent headers
6678  # can be detected and how.
6679  cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h.  */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h.  */
6685#include <ac_nonexistent.h>
6686_ACEOF
6687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6688  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6689  ac_status=$?
6690  grep -v '^ *+' conftest.er1 >conftest.err
6691  rm -f conftest.er1
6692  cat conftest.err >&5
6693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694  (exit $ac_status); } >/dev/null; then
6695  if test -s conftest.err; then
6696    ac_cpp_err=$ac_cxx_preproc_warn_flag
6697    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6698  else
6699    ac_cpp_err=
6700  fi
6701else
6702  ac_cpp_err=yes
6703fi
6704if test -z "$ac_cpp_err"; then
6705  # Broken: success on invalid input.
6706continue
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711  # Passes both tests.
6712ac_preproc_ok=:
6713break
6714fi
6715rm -f conftest.err conftest.$ac_ext
6716
6717done
6718# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6719rm -f conftest.err conftest.$ac_ext
6720if $ac_preproc_ok; then
6721  break
6722fi
6723
6724    done
6725    ac_cv_prog_CXXCPP=$CXXCPP
6726
6727fi
6728  CXXCPP=$ac_cv_prog_CXXCPP
6729else
6730  ac_cv_prog_CXXCPP=$CXXCPP
6731fi
6732echo "$as_me:$LINENO: result: $CXXCPP" >&5
6733echo "${ECHO_T}$CXXCPP" >&6
6734ac_preproc_ok=false
6735for ac_cxx_preproc_warn_flag in '' yes
6736do
6737  # Use a header file that comes with gcc, so configuring glibc
6738  # with a fresh cross-compiler works.
6739  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6740  # <limits.h> exists even on freestanding compilers.
6741  # On the NeXT, cc -E runs the code through the compiler's parser,
6742  # not just through cpp. "Syntax error" is here to catch this case.
6743  cat >conftest.$ac_ext <<_ACEOF
6744/* confdefs.h.  */
6745_ACEOF
6746cat confdefs.h >>conftest.$ac_ext
6747cat >>conftest.$ac_ext <<_ACEOF
6748/* end confdefs.h.  */
6749#ifdef __STDC__
6750# include <limits.h>
6751#else
6752# include <assert.h>
6753#endif
6754                     Syntax error
6755_ACEOF
6756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6757  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6758  ac_status=$?
6759  grep -v '^ *+' conftest.er1 >conftest.err
6760  rm -f conftest.er1
6761  cat conftest.err >&5
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); } >/dev/null; then
6764  if test -s conftest.err; then
6765    ac_cpp_err=$ac_cxx_preproc_warn_flag
6766    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6767  else
6768    ac_cpp_err=
6769  fi
6770else
6771  ac_cpp_err=yes
6772fi
6773if test -z "$ac_cpp_err"; then
6774  :
6775else
6776  echo "$as_me: failed program was:" >&5
6777sed 's/^/| /' conftest.$ac_ext >&5
6778
6779  # Broken: fails on valid input.
6780continue
6781fi
6782rm -f conftest.err conftest.$ac_ext
6783
6784  # OK, works on sane cases.  Now check whether non-existent headers
6785  # can be detected and how.
6786  cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h.  */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h.  */
6792#include <ac_nonexistent.h>
6793_ACEOF
6794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796  ac_status=$?
6797  grep -v '^ *+' conftest.er1 >conftest.err
6798  rm -f conftest.er1
6799  cat conftest.err >&5
6800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801  (exit $ac_status); } >/dev/null; then
6802  if test -s conftest.err; then
6803    ac_cpp_err=$ac_cxx_preproc_warn_flag
6804    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6805  else
6806    ac_cpp_err=
6807  fi
6808else
6809  ac_cpp_err=yes
6810fi
6811if test -z "$ac_cpp_err"; then
6812  # Broken: success on invalid input.
6813continue
6814else
6815  echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818  # Passes both tests.
6819ac_preproc_ok=:
6820break
6821fi
6822rm -f conftest.err conftest.$ac_ext
6823
6824done
6825# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6826rm -f conftest.err conftest.$ac_ext
6827if $ac_preproc_ok; then
6828  :
6829else
6830  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6831See \`config.log' for more details." >&5
6832echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6833See \`config.log' for more details." >&2;}
6834   { (exit 1); exit 1; }; }
6835fi
6836
6837ac_ext=cc
6838ac_cpp='$CXXCPP $CPPFLAGS'
6839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6842
6843fi
6844
6845
6846
6847# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6848
6849# find the maximum length of command line arguments
6850echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6851echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6852if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6853  echo $ECHO_N "(cached) $ECHO_C" >&6
6854else
6855    i=0
6856  teststring="ABCD"
6857
6858  case $build_os in
6859  msdosdjgpp*)
6860    # On DJGPP, this test can blow up pretty badly due to problems in libc
6861    # (any single argument exceeding 2000 bytes causes a buffer overrun
6862    # during glob expansion).  Even if it were fixed, the result of this
6863    # check would be larger than it should be.
6864    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6865    ;;
6866
6867  gnu*)
6868    # Under GNU Hurd, this test is not required because there is
6869    # no limit to the length of command line arguments.
6870    # Libtool will interpret -1 as no limit whatsoever
6871    lt_cv_sys_max_cmd_len=-1;
6872    ;;
6873
6874  cygwin* | mingw*)
6875    # On Win9x/ME, this test blows up -- it succeeds, but takes
6876    # about 5 minutes as the teststring grows exponentially.
6877    # Worse, since 9x/ME are not pre-emptively multitasking,
6878    # you end up with a "frozen" computer, even though with patience
6879    # the test eventually succeeds (with a max line length of 256k).
6880    # Instead, let's just punt: use the minimum linelength reported by
6881    # all of the supported platforms: 8192 (on NT/2K/XP).
6882    lt_cv_sys_max_cmd_len=8192;
6883    ;;
6884
6885  amigaos*)
6886    # On AmigaOS with pdksh, this test takes hours, literally.
6887    # So we just punt and use a minimum line length of 8192.
6888    lt_cv_sys_max_cmd_len=8192;
6889    ;;
6890
6891  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6892    # This has been around since 386BSD, at least.  Likely further.
6893    if test -x /sbin/sysctl; then
6894      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6895    elif test -x /usr/sbin/sysctl; then
6896      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6897    else
6898      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6899    fi
6900    # And add a safety zone
6901    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6902    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6903    ;;
6904
6905  interix*)
6906    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6907    lt_cv_sys_max_cmd_len=196608
6908    ;;
6909
6910  osf*)
6911    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6912    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6913    # nice to cause kernel panics so lets avoid the loop below.
6914    # First set a reasonable default.
6915    lt_cv_sys_max_cmd_len=16384
6916    #
6917    if test -x /sbin/sysconfig; then
6918      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6919        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6920      esac
6921    fi
6922    ;;
6923  sco3.2v5*)
6924    lt_cv_sys_max_cmd_len=102400
6925    ;;
6926  sysv5* | sco5v6* | sysv4.2uw2*)
6927    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6928    if test -n "$kargmax"; then
6929      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6930    else
6931      lt_cv_sys_max_cmd_len=32768
6932    fi
6933    ;;
6934  *)
6935    # If test is not a shell built-in, we'll probably end up computing a
6936    # maximum length that is only half of the actual maximum length, but
6937    # we can't tell.
6938    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6939    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6940               = "XX$teststring") >/dev/null 2>&1 &&
6941            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6942            lt_cv_sys_max_cmd_len=$new_result &&
6943            test $i != 17 # 1/2 MB should be enough
6944    do
6945      i=`expr $i + 1`
6946      teststring=$teststring$teststring
6947    done
6948    teststring=
6949    # Add a significant safety factor because C++ compilers can tack on massive
6950    # amounts of additional arguments before passing them to the linker.
6951    # It appears as though 1/2 is a usable value.
6952    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6953    ;;
6954  esac
6955
6956fi
6957
6958if test -n $lt_cv_sys_max_cmd_len ; then
6959  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6960echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6961else
6962  echo "$as_me:$LINENO: result: none" >&5
6963echo "${ECHO_T}none" >&6
6964fi
6965
6966
6967
6968
6969# Check for command to grab the raw symbol name followed by C symbol from nm.
6970echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6971echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6972if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975
6976# These are sane defaults that work on at least a few old systems.
6977# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6978
6979# Character class describing NM global symbol codes.
6980symcode='[BCDEGRST]'
6981
6982# Regexp to match symbols that can be accessed directly from C.
6983sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6984
6985# Transform an extracted symbol line into a proper C declaration
6986lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6987
6988# Transform an extracted symbol line into symbol name and symbol address
6989lt_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'"
6990
6991# Define system-specific variables.
6992case $host_os in
6993aix*)
6994  symcode='[BCDT]'
6995  ;;
6996cygwin* | mingw* | pw32*)
6997  symcode='[ABCDGISTW]'
6998  ;;
6999hpux*) # Its linker distinguishes data from code symbols
7000  if test "$host_cpu" = ia64; then
7001    symcode='[ABCDEGRST]'
7002  fi
7003  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004  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'"
7005  ;;
7006linux*)
7007  if test "$host_cpu" = ia64; then
7008    symcode='[ABCDGIRSTW]'
7009    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7010    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'"
7011  fi
7012  ;;
7013irix* | nonstopux*)
7014  symcode='[BCDEGRST]'
7015  ;;
7016osf*)
7017  symcode='[BCDEGQRST]'
7018  ;;
7019solaris*)
7020  symcode='[BDRT]'
7021  ;;
7022sco3.2v5*)
7023  symcode='[DT]'
7024  ;;
7025sysv4.2uw2*)
7026  symcode='[DT]'
7027  ;;
7028sysv5* | sco5v6* | unixware* | OpenUNIX*)
7029  symcode='[ABDT]'
7030  ;;
7031sysv4)
7032  symcode='[DFNSTU]'
7033  ;;
7034esac
7035
7036# Handle CRLF in mingw tool chain
7037opt_cr=
7038case $build_os in
7039mingw*)
7040  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7041  ;;
7042esac
7043
7044# If we're using GNU nm, then use its standard symbol codes.
7045case `$NM -V 2>&1` in
7046*GNU* | *'with BFD'*)
7047  symcode='[ABCDGIRSTW]' ;;
7048esac
7049
7050# Try without a prefix undercore, then with it.
7051for ac_symprfx in "" "_"; do
7052
7053  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7054  symxfrm="\\1 $ac_symprfx\\2 \\2"
7055
7056  # Write the raw and C identifiers.
7057  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7058
7059  # Check to see that the pipe works correctly.
7060  pipe_works=no
7061
7062  rm -f conftest*
7063  cat > conftest.$ac_ext <<EOF
7064#ifdef __cplusplus
7065extern "C" {
7066#endif
7067char nm_test_var;
7068void nm_test_func(){}
7069#ifdef __cplusplus
7070}
7071#endif
7072int main(){nm_test_var='a';nm_test_func();return(0);}
7073EOF
7074
7075  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076  (eval $ac_compile) 2>&5
7077  ac_status=$?
7078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079  (exit $ac_status); }; then
7080    # Now try to grab the symbols.
7081    nlist=conftest.nm
7082    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7083  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7084  ac_status=$?
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); } && test -s "$nlist"; then
7087      # Try sorting and uniquifying the output.
7088      if sort "$nlist" | uniq > "$nlist"T; then
7089        mv -f "$nlist"T "$nlist"
7090      else
7091        rm -f "$nlist"T
7092      fi
7093
7094      # Make sure that we snagged all the symbols we need.
7095      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7096        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7097          cat <<EOF > conftest.$ac_ext
7098#ifdef __cplusplus
7099extern "C" {
7100#endif
7101
7102EOF
7103          # Now generate the symbol file.
7104          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7105
7106          cat <<EOF >> conftest.$ac_ext
7107#if defined (__STDC__) && __STDC__
7108# define lt_ptr_t void *
7109#else
7110# define lt_ptr_t char *
7111# define const
7112#endif
7113
7114/* The mapping between symbol names and symbols. */
7115const struct {
7116  const char *name;
7117  lt_ptr_t address;
7118}
7119lt_preloaded_symbols[] =
7120{
7121EOF
7122          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7123          cat <<\EOF >> conftest.$ac_ext
7124  {0, (lt_ptr_t) 0}
7125};
7126
7127#ifdef __cplusplus
7128}
7129#endif
7130EOF
7131          # Now try linking the two files.
7132          mv conftest.$ac_objext conftstm.$ac_objext
7133          lt_save_LIBS="$LIBS"
7134          lt_save_CFLAGS="$CFLAGS"
7135          LIBS="conftstm.$ac_objext"
7136          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7137          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7138  (eval $ac_link) 2>&5
7139  ac_status=$?
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7142            pipe_works=yes
7143          fi
7144          LIBS="$lt_save_LIBS"
7145          CFLAGS="$lt_save_CFLAGS"
7146        else
7147          echo "cannot find nm_test_func in $nlist" >&5
7148        fi
7149      else
7150        echo "cannot find nm_test_var in $nlist" >&5
7151      fi
7152    else
7153      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7154    fi
7155  else
7156    echo "$progname: failed program was:" >&5
7157    cat conftest.$ac_ext >&5
7158  fi
7159  rm -f conftest* conftst*
7160
7161  # Do not use the global_symbol_pipe unless it works.
7162  if test "$pipe_works" = yes; then
7163    break
7164  else
7165    lt_cv_sys_global_symbol_pipe=
7166  fi
7167done
7168
7169fi
7170
7171if test -z "$lt_cv_sys_global_symbol_pipe"; then
7172  lt_cv_sys_global_symbol_to_cdecl=
7173fi
7174if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7175  echo "$as_me:$LINENO: result: failed" >&5
7176echo "${ECHO_T}failed" >&6
7177else
7178  echo "$as_me:$LINENO: result: ok" >&5
7179echo "${ECHO_T}ok" >&6
7180fi
7181
7182echo "$as_me:$LINENO: checking for objdir" >&5
7183echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7184if test "${lt_cv_objdir+set}" = set; then
7185  echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187  rm -f .libs 2>/dev/null
7188mkdir .libs 2>/dev/null
7189if test -d .libs; then
7190  lt_cv_objdir=.libs
7191else
7192  # MS-DOS does not allow filenames that begin with a dot.
7193  lt_cv_objdir=_libs
7194fi
7195rmdir .libs 2>/dev/null
7196fi
7197echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7198echo "${ECHO_T}$lt_cv_objdir" >&6
7199objdir=$lt_cv_objdir
7200
7201
7202
7203
7204
7205case $host_os in
7206aix3*)
7207  # AIX sometimes has problems with the GCC collect2 program.  For some
7208  # reason, if we set the COLLECT_NAMES environment variable, the problems
7209  # vanish in a puff of smoke.
7210  if test "X${COLLECT_NAMES+set}" != Xset; then
7211    COLLECT_NAMES=
7212    export COLLECT_NAMES
7213  fi
7214  ;;
7215esac
7216
7217# Sed substitution that helps us do robust quoting.  It backslashifies
7218# metacharacters that are still active within double-quoted strings.
7219Xsed='sed -e 1s/^X//'
7220sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7221
7222# Same as above, but do not quote variable references.
7223double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7224
7225# Sed substitution to delay expansion of an escaped shell variable in a
7226# double_quote_subst'ed string.
7227delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7228
7229# Sed substitution to avoid accidental globbing in evaled expressions
7230no_glob_subst='s/\*/\\\*/g'
7231
7232# Constants:
7233rm="rm -f"
7234
7235# Global variables:
7236default_ofile=libtool
7237can_build_shared=yes
7238
7239# All known linkers require a `.a' archive for static linking (except MSVC,
7240# which needs '.lib').
7241libext=a
7242ltmain="$ac_aux_dir/ltmain.sh"
7243ofile="$default_ofile"
7244with_gnu_ld="$lt_cv_prog_gnu_ld"
7245
7246if test -n "$ac_tool_prefix"; then
7247  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7248set dummy ${ac_tool_prefix}ar; ac_word=$2
7249echo "$as_me:$LINENO: checking for $ac_word" >&5
7250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7251if test "${ac_cv_prog_AR+set}" = set; then
7252  echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254  if test -n "$AR"; then
7255  ac_cv_prog_AR="$AR" # Let the user override the test.
7256else
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260  IFS=$as_save_IFS
7261  test -z "$as_dir" && as_dir=.
7262  for ac_exec_ext in '' $ac_executable_extensions; do
7263  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264    ac_cv_prog_AR="${ac_tool_prefix}ar"
7265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266    break 2
7267  fi
7268done
7269done
7270
7271fi
7272fi
7273AR=$ac_cv_prog_AR
7274if test -n "$AR"; then
7275  echo "$as_me:$LINENO: result: $AR" >&5
7276echo "${ECHO_T}$AR" >&6
7277else
7278  echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6
7280fi
7281
7282fi
7283if test -z "$ac_cv_prog_AR"; then
7284  ac_ct_AR=$AR
7285  # Extract the first word of "ar", so it can be a program name with args.
7286set dummy ar; ac_word=$2
7287echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7289if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7290  echo $ECHO_N "(cached) $ECHO_C" >&6
7291else
7292  if test -n "$ac_ct_AR"; then
7293  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7294else
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298  IFS=$as_save_IFS
7299  test -z "$as_dir" && as_dir=.
7300  for ac_exec_ext in '' $ac_executable_extensions; do
7301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302    ac_cv_prog_ac_ct_AR="ar"
7303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307done
7308
7309  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7310fi
7311fi
7312ac_ct_AR=$ac_cv_prog_ac_ct_AR
7313if test -n "$ac_ct_AR"; then
7314  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7315echo "${ECHO_T}$ac_ct_AR" >&6
7316else
7317  echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6
7319fi
7320
7321  AR=$ac_ct_AR
7322else
7323  AR="$ac_cv_prog_AR"
7324fi
7325
7326if test -n "$ac_tool_prefix"; then
7327  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7328set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7329echo "$as_me:$LINENO: checking for $ac_word" >&5
7330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7331if test "${ac_cv_prog_RANLIB+set}" = set; then
7332  echo $ECHO_N "(cached) $ECHO_C" >&6
7333else
7334  if test -n "$RANLIB"; then
7335  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340  IFS=$as_save_IFS
7341  test -z "$as_dir" && as_dir=.
7342  for ac_exec_ext in '' $ac_executable_extensions; do
7343  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346    break 2
7347  fi
7348done
7349done
7350
7351fi
7352fi
7353RANLIB=$ac_cv_prog_RANLIB
7354if test -n "$RANLIB"; then
7355  echo "$as_me:$LINENO: result: $RANLIB" >&5
7356echo "${ECHO_T}$RANLIB" >&6
7357else
7358  echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6
7360fi
7361
7362fi
7363if test -z "$ac_cv_prog_RANLIB"; then
7364  ac_ct_RANLIB=$RANLIB
7365  # Extract the first word of "ranlib", so it can be a program name with args.
7366set dummy ranlib; ac_word=$2
7367echo "$as_me:$LINENO: checking for $ac_word" >&5
7368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7369if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7370  echo $ECHO_N "(cached) $ECHO_C" >&6
7371else
7372  if test -n "$ac_ct_RANLIB"; then
7373  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7374else
7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378  IFS=$as_save_IFS
7379  test -z "$as_dir" && as_dir=.
7380  for ac_exec_ext in '' $ac_executable_extensions; do
7381  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382    ac_cv_prog_ac_ct_RANLIB="ranlib"
7383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384    break 2
7385  fi
7386done
7387done
7388
7389  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7390fi
7391fi
7392ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7393if test -n "$ac_ct_RANLIB"; then
7394  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7395echo "${ECHO_T}$ac_ct_RANLIB" >&6
7396else
7397  echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6
7399fi
7400
7401  RANLIB=$ac_ct_RANLIB
7402else
7403  RANLIB="$ac_cv_prog_RANLIB"
7404fi
7405
7406if test -n "$ac_tool_prefix"; then
7407  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7408set dummy ${ac_tool_prefix}strip; ac_word=$2
7409echo "$as_me:$LINENO: checking for $ac_word" >&5
7410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7411if test "${ac_cv_prog_STRIP+set}" = set; then
7412  echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414  if test -n "$STRIP"; then
7415  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7416else
7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420  IFS=$as_save_IFS
7421  test -z "$as_dir" && as_dir=.
7422  for ac_exec_ext in '' $ac_executable_extensions; do
7423  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7425    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426    break 2
7427  fi
7428done
7429done
7430
7431fi
7432fi
7433STRIP=$ac_cv_prog_STRIP
7434if test -n "$STRIP"; then
7435  echo "$as_me:$LINENO: result: $STRIP" >&5
7436echo "${ECHO_T}$STRIP" >&6
7437else
7438  echo "$as_me:$LINENO: result: no" >&5
7439echo "${ECHO_T}no" >&6
7440fi
7441
7442fi
7443if test -z "$ac_cv_prog_STRIP"; then
7444  ac_ct_STRIP=$STRIP
7445  # Extract the first word of "strip", so it can be a program name with args.
7446set dummy strip; ac_word=$2
7447echo "$as_me:$LINENO: checking for $ac_word" >&5
7448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7449if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7450  echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452  if test -n "$ac_ct_STRIP"; then
7453  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458  IFS=$as_save_IFS
7459  test -z "$as_dir" && as_dir=.
7460  for ac_exec_ext in '' $ac_executable_extensions; do
7461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462    ac_cv_prog_ac_ct_STRIP="strip"
7463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464    break 2
7465  fi
7466done
7467done
7468
7469  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7470fi
7471fi
7472ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7473if test -n "$ac_ct_STRIP"; then
7474  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7475echo "${ECHO_T}$ac_ct_STRIP" >&6
7476else
7477  echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6
7479fi
7480
7481  STRIP=$ac_ct_STRIP
7482else
7483  STRIP="$ac_cv_prog_STRIP"
7484fi
7485
7486
7487old_CC="$CC"
7488old_CFLAGS="$CFLAGS"
7489
7490# Set sane defaults for various variables
7491test -z "$AR" && AR=ar
7492test -z "$AR_FLAGS" && AR_FLAGS=cru
7493test -z "$AS" && AS=as
7494test -z "$CC" && CC=cc
7495test -z "$LTCC" && LTCC=$CC
7496test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7497test -z "$DLLTOOL" && DLLTOOL=dlltool
7498test -z "$LD" && LD=ld
7499test -z "$LN_S" && LN_S="ln -s"
7500test -z "$MAGIC_CMD" && MAGIC_CMD=file
7501test -z "$NM" && NM=nm
7502test -z "$SED" && SED=sed
7503test -z "$OBJDUMP" && OBJDUMP=objdump
7504test -z "$RANLIB" && RANLIB=:
7505test -z "$STRIP" && STRIP=:
7506test -z "$ac_objext" && ac_objext=o
7507
7508# Determine commands to create old-style static archives.
7509old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7510old_postinstall_cmds='chmod 644 $oldlib'
7511old_postuninstall_cmds=
7512
7513if test -n "$RANLIB"; then
7514  case $host_os in
7515  openbsd*)
7516    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7517    ;;
7518  *)
7519    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7520    ;;
7521  esac
7522  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7523fi
7524
7525for cc_temp in $compiler""; do
7526  case $cc_temp in
7527    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7528    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7529    \-*) ;;
7530    *) break;;
7531  esac
7532done
7533cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7534
7535
7536# Only perform the check for file, if the check method requires it
7537case $deplibs_check_method in
7538file_magic*)
7539  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7540    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7541echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7542if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7543  echo $ECHO_N "(cached) $ECHO_C" >&6
7544else
7545  case $MAGIC_CMD in
7546[\\/*] |  ?:[\\/]*)
7547  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7548  ;;
7549*)
7550  lt_save_MAGIC_CMD="$MAGIC_CMD"
7551  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7552  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7553  for ac_dir in $ac_dummy; do
7554    IFS="$lt_save_ifs"
7555    test -z "$ac_dir" && ac_dir=.
7556    if test -f $ac_dir/${ac_tool_prefix}file; then
7557      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7558      if test -n "$file_magic_test_file"; then
7559        case $deplibs_check_method in
7560        "file_magic "*)
7561          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7562          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7563          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7564            $EGREP "$file_magic_regex" > /dev/null; then
7565            :
7566          else
7567            cat <<EOF 1>&2
7568
7569*** Warning: the command libtool uses to detect shared libraries,
7570*** $file_magic_cmd, produces output that libtool cannot recognize.
7571*** The result is that libtool may fail to recognize shared libraries
7572*** as such.  This will affect the creation of libtool libraries that
7573*** depend on shared libraries, but programs linked with such libtool
7574*** libraries will work regardless of this problem.  Nevertheless, you
7575*** may want to report the problem to your system manager and/or to
7576*** bug-libtool@gnu.org
7577
7578EOF
7579          fi ;;
7580        esac
7581      fi
7582      break
7583    fi
7584  done
7585  IFS="$lt_save_ifs"
7586  MAGIC_CMD="$lt_save_MAGIC_CMD"
7587  ;;
7588esac
7589fi
7590
7591MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592if test -n "$MAGIC_CMD"; then
7593  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7594echo "${ECHO_T}$MAGIC_CMD" >&6
7595else
7596  echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598fi
7599
7600if test -z "$lt_cv_path_MAGIC_CMD"; then
7601  if test -n "$ac_tool_prefix"; then
7602    echo "$as_me:$LINENO: checking for file" >&5
7603echo $ECHO_N "checking for file... $ECHO_C" >&6
7604if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7605  echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607  case $MAGIC_CMD in
7608[\\/*] |  ?:[\\/]*)
7609  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7610  ;;
7611*)
7612  lt_save_MAGIC_CMD="$MAGIC_CMD"
7613  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7614  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7615  for ac_dir in $ac_dummy; do
7616    IFS="$lt_save_ifs"
7617    test -z "$ac_dir" && ac_dir=.
7618    if test -f $ac_dir/file; then
7619      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7620      if test -n "$file_magic_test_file"; then
7621        case $deplibs_check_method in
7622        "file_magic "*)
7623          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7624          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7625          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7626            $EGREP "$file_magic_regex" > /dev/null; then
7627            :
7628          else
7629            cat <<EOF 1>&2
7630
7631*** Warning: the command libtool uses to detect shared libraries,
7632*** $file_magic_cmd, produces output that libtool cannot recognize.
7633*** The result is that libtool may fail to recognize shared libraries
7634*** as such.  This will affect the creation of libtool libraries that
7635*** depend on shared libraries, but programs linked with such libtool
7636*** libraries will work regardless of this problem.  Nevertheless, you
7637*** may want to report the problem to your system manager and/or to
7638*** bug-libtool@gnu.org
7639
7640EOF
7641          fi ;;
7642        esac
7643      fi
7644      break
7645    fi
7646  done
7647  IFS="$lt_save_ifs"
7648  MAGIC_CMD="$lt_save_MAGIC_CMD"
7649  ;;
7650esac
7651fi
7652
7653MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7654if test -n "$MAGIC_CMD"; then
7655  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7656echo "${ECHO_T}$MAGIC_CMD" >&6
7657else
7658  echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6
7660fi
7661
7662  else
7663    MAGIC_CMD=:
7664  fi
7665fi
7666
7667  fi
7668  ;;
7669esac
7670
7671enable_dlopen=no
7672enable_win32_dll=no
7673
7674# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7675if test "${enable_libtool_lock+set}" = set; then
7676  enableval="$enable_libtool_lock"
7677
7678fi;
7679test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7680
7681
7682# Check whether --with-pic or --without-pic was given.
7683if test "${with_pic+set}" = set; then
7684  withval="$with_pic"
7685  pic_mode="$withval"
7686else
7687  pic_mode=default
7688fi;
7689test -z "$pic_mode" && pic_mode=default
7690
7691# Use C for the default configuration in the libtool script
7692tagname=
7693lt_save_CC="$CC"
7694ac_ext=c
7695ac_cpp='$CPP $CPPFLAGS'
7696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7698ac_compiler_gnu=$ac_cv_c_compiler_gnu
7699
7700
7701# Source file extension for C test sources.
7702ac_ext=c
7703
7704# Object file extension for compiled C test sources.
7705objext=o
7706objext=$objext
7707
7708# Code to be used in simple compile tests
7709lt_simple_compile_test_code="int some_variable = 0;\n"
7710
7711# Code to be used in simple link tests
7712lt_simple_link_test_code='int main(){return(0);}\n'
7713
7714
7715# If no C compiler was specified, use CC.
7716LTCC=${LTCC-"$CC"}
7717
7718# If no C compiler flags were specified, use CFLAGS.
7719LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7720
7721# Allow CC to be a program name with arguments.
7722compiler=$CC
7723
7724
7725# save warnings/boilerplate of simple test code
7726ac_outfile=conftest.$ac_objext
7727printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7728eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7729_lt_compiler_boilerplate=`cat conftest.err`
7730$rm conftest*
7731
7732ac_outfile=conftest.$ac_objext
7733printf "$lt_simple_link_test_code" >conftest.$ac_ext
7734eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7735_lt_linker_boilerplate=`cat conftest.err`
7736$rm conftest*
7737
7738
7739## CAVEAT EMPTOR:
7740## There is no encapsulation within the following macros, do not change
7741## the running order or otherwise move them around unless you know exactly
7742## what you are doing...
7743
7744lt_prog_compiler_no_builtin_flag=
7745
7746if test "$GCC" = yes; then
7747  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7748
7749
7750echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7751echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7752if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7753  echo $ECHO_N "(cached) $ECHO_C" >&6
7754else
7755  lt_cv_prog_compiler_rtti_exceptions=no
7756  ac_outfile=conftest.$ac_objext
7757   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7758   lt_compiler_flag="-fno-rtti -fno-exceptions"
7759   # Insert the option either (1) after the last *FLAGS variable, or
7760   # (2) before a word containing "conftest.", or (3) at the end.
7761   # Note that $ac_compile itself does not contain backslashes and begins
7762   # with a dollar sign (not a hyphen), so the echo should work correctly.
7763   # The option is referenced via a variable to avoid confusing sed.
7764   lt_compile=`echo "$ac_compile" | $SED \
7765   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7766   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7767   -e 's:$: $lt_compiler_flag:'`
7768   (eval echo "\"\$as_me:7768: $lt_compile\"" >&5)
7769   (eval "$lt_compile" 2>conftest.err)
7770   ac_status=$?
7771   cat conftest.err >&5
7772   echo "$as_me:7772: \$? = $ac_status" >&5
7773   if (exit $ac_status) && test -s "$ac_outfile"; then
7774     # The compiler can only warn and ignore the option if not recognized
7775     # So say no if there are warnings other than the usual output.
7776     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7777     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7778     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7779       lt_cv_prog_compiler_rtti_exceptions=yes
7780     fi
7781   fi
7782   $rm conftest*
7783
7784fi
7785echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7786echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7787
7788if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7789    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7790else
7791    :
7792fi
7793
7794fi
7795
7796lt_prog_compiler_wl=
7797lt_prog_compiler_pic=
7798lt_prog_compiler_static=
7799
7800echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7801echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7802
7803  if test "$GCC" = yes; then
7804    lt_prog_compiler_wl='-Wl,'
7805    lt_prog_compiler_static='-static'
7806
7807    case $host_os in
7808      aix*)
7809      # All AIX code is PIC.
7810      if test "$host_cpu" = ia64; then
7811        # AIX 5 now supports IA64 processor
7812        lt_prog_compiler_static='-Bstatic'
7813      fi
7814      ;;
7815
7816    amigaos*)
7817      # FIXME: we need at least 68020 code to build shared libraries, but
7818      # adding the `-m68020' flag to GCC prevents building anything better,
7819      # like `-m68040'.
7820      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7821      ;;
7822
7823    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7824      # PIC is the default for these OSes.
7825      ;;
7826
7827    mingw* | pw32* | os2*)
7828      # This hack is so that the source file can tell whether it is being
7829      # built for inclusion in a dll (and should export symbols for example).
7830      lt_prog_compiler_pic='-DDLL_EXPORT'
7831      ;;
7832
7833    darwin* | rhapsody*)
7834      # PIC is the default on this platform
7835      # Common symbols not allowed in MH_DYLIB files
7836      lt_prog_compiler_pic='-fno-common'
7837      ;;
7838
7839    interix3*)
7840      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7841      # Instead, we relocate shared libraries at runtime.
7842      ;;
7843
7844    msdosdjgpp*)
7845      # Just because we use GCC doesn't mean we suddenly get shared libraries
7846      # on systems that don't support them.
7847      lt_prog_compiler_can_build_shared=no
7848      enable_shared=no
7849      ;;
7850
7851    sysv4*MP*)
7852      if test -d /usr/nec; then
7853        lt_prog_compiler_pic=-Kconform_pic
7854      fi
7855      ;;
7856
7857    hpux*)
7858      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7859      # not for PA HP-UX.
7860      case $host_cpu in
7861      hppa*64*|ia64*)
7862        # +Z the default
7863        ;;
7864      *)
7865        lt_prog_compiler_pic='-fPIC'
7866        ;;
7867      esac
7868      ;;
7869
7870    *)
7871      lt_prog_compiler_pic='-fPIC'
7872      ;;
7873    esac
7874  else
7875    # PORTME Check for flag to pass linker flags through the system compiler.
7876    case $host_os in
7877    aix*)
7878      lt_prog_compiler_wl='-Wl,'
7879      if test "$host_cpu" = ia64; then
7880        # AIX 5 now supports IA64 processor
7881        lt_prog_compiler_static='-Bstatic'
7882      else
7883        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7884      fi
7885      ;;
7886      darwin*)
7887        # PIC is the default on this platform
7888        # Common symbols not allowed in MH_DYLIB files
7889       case $cc_basename in
7890         xlc*)
7891         lt_prog_compiler_pic='-qnocommon'
7892         lt_prog_compiler_wl='-Wl,'
7893         ;;
7894       esac
7895       ;;
7896
7897    mingw* | pw32* | os2*)
7898      # This hack is so that the source file can tell whether it is being
7899      # built for inclusion in a dll (and should export symbols for example).
7900      lt_prog_compiler_pic='-DDLL_EXPORT'
7901      ;;
7902
7903    hpux9* | hpux10* | hpux11*)
7904      lt_prog_compiler_wl='-Wl,'
7905      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7906      # not for PA HP-UX.
7907      case $host_cpu in
7908      hppa*64*|ia64*)
7909        # +Z the default
7910        ;;
7911      *)
7912        lt_prog_compiler_pic='+Z'
7913        ;;
7914      esac
7915      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7916      lt_prog_compiler_static='${wl}-a ${wl}archive'
7917      ;;
7918
7919    irix5* | irix6* | nonstopux*)
7920      lt_prog_compiler_wl='-Wl,'
7921      # PIC (with -KPIC) is the default.
7922      lt_prog_compiler_static='-non_shared'
7923      ;;
7924
7925    newsos6)
7926      lt_prog_compiler_pic='-KPIC'
7927      lt_prog_compiler_static='-Bstatic'
7928      ;;
7929
7930    linux*)
7931      case $cc_basename in
7932      icc* | ecc*)
7933        lt_prog_compiler_wl='-Wl,'
7934        lt_prog_compiler_pic='-KPIC'
7935        lt_prog_compiler_static='-static'
7936        ;;
7937      pgcc* | pgf77* | pgf90* | pgf95*)
7938        # Portland Group compilers (*not* the Pentium gcc compiler,
7939        # which looks to be a dead project)
7940        lt_prog_compiler_wl='-Wl,'
7941        lt_prog_compiler_pic='-fpic'
7942        lt_prog_compiler_static='-Bstatic'
7943        ;;
7944      ccc*)
7945        lt_prog_compiler_wl='-Wl,'
7946        # All Alpha code is PIC.
7947        lt_prog_compiler_static='-non_shared'
7948        ;;
7949      esac
7950      ;;
7951
7952    osf3* | osf4* | osf5*)
7953      lt_prog_compiler_wl='-Wl,'
7954      # All OSF/1 code is PIC.
7955      lt_prog_compiler_static='-non_shared'
7956      ;;
7957
7958    solaris*)
7959      lt_prog_compiler_pic='-KPIC'
7960      lt_prog_compiler_static='-Bstatic'
7961      case $cc_basename in
7962      f77* | f90* | f95*)
7963        lt_prog_compiler_wl='-Qoption ld ';;
7964      *)
7965        lt_prog_compiler_wl='-Wl,';;
7966      esac
7967      ;;
7968
7969    sunos4*)
7970      lt_prog_compiler_wl='-Qoption ld '
7971      lt_prog_compiler_pic='-PIC'
7972      lt_prog_compiler_static='-Bstatic'
7973      ;;
7974
7975    sysv4 | sysv4.2uw2* | sysv4.3*)
7976      lt_prog_compiler_wl='-Wl,'
7977      lt_prog_compiler_pic='-KPIC'
7978      lt_prog_compiler_static='-Bstatic'
7979      ;;
7980
7981    sysv4*MP*)
7982      if test -d /usr/nec ;then
7983        lt_prog_compiler_pic='-Kconform_pic'
7984        lt_prog_compiler_static='-Bstatic'
7985      fi
7986      ;;
7987
7988    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7989      lt_prog_compiler_wl='-Wl,'
7990      lt_prog_compiler_pic='-KPIC'
7991      lt_prog_compiler_static='-Bstatic'
7992      ;;
7993
7994    unicos*)
7995      lt_prog_compiler_wl='-Wl,'
7996      lt_prog_compiler_can_build_shared=no
7997      ;;
7998
7999    uts4*)
8000      lt_prog_compiler_pic='-pic'
8001      lt_prog_compiler_static='-Bstatic'
8002      ;;
8003
8004    *)
8005      lt_prog_compiler_can_build_shared=no
8006      ;;
8007    esac
8008  fi
8009
8010echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8011echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8012
8013#
8014# Check to make sure the PIC flag actually works.
8015#
8016if test -n "$lt_prog_compiler_pic"; then
8017
8018echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8019echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8020if test "${lt_prog_compiler_pic_works+set}" = set; then
8021  echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023  lt_prog_compiler_pic_works=no
8024  ac_outfile=conftest.$ac_objext
8025   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8026   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8027   # Insert the option either (1) after the last *FLAGS variable, or
8028   # (2) before a word containing "conftest.", or (3) at the end.
8029   # Note that $ac_compile itself does not contain backslashes and begins
8030   # with a dollar sign (not a hyphen), so the echo should work correctly.
8031   # The option is referenced via a variable to avoid confusing sed.
8032   lt_compile=`echo "$ac_compile" | $SED \
8033   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8034   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8035   -e 's:$: $lt_compiler_flag:'`
8036   (eval echo "\"\$as_me:8036: $lt_compile\"" >&5)
8037   (eval "$lt_compile" 2>conftest.err)
8038   ac_status=$?
8039   cat conftest.err >&5
8040   echo "$as_me:8040: \$? = $ac_status" >&5
8041   if (exit $ac_status) && test -s "$ac_outfile"; then
8042     # The compiler can only warn and ignore the option if not recognized
8043     # So say no if there are warnings other than the usual output.
8044     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8045     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8046     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8047       lt_prog_compiler_pic_works=yes
8048     fi
8049   fi
8050   $rm conftest*
8051
8052fi
8053echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8054echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8055
8056if test x"$lt_prog_compiler_pic_works" = xyes; then
8057    case $lt_prog_compiler_pic in
8058     "" | " "*) ;;
8059     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8060     esac
8061else
8062    lt_prog_compiler_pic=
8063     lt_prog_compiler_can_build_shared=no
8064fi
8065
8066fi
8067case $host_os in
8068  # For platforms which do not support PIC, -DPIC is meaningless:
8069  *djgpp*)
8070    lt_prog_compiler_pic=
8071    ;;
8072  *)
8073    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8074    ;;
8075esac
8076
8077#
8078# Check to make sure the static flag actually works.
8079#
8080wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8081echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8082echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8083if test "${lt_prog_compiler_static_works+set}" = set; then
8084  echo $ECHO_N "(cached) $ECHO_C" >&6
8085else
8086  lt_prog_compiler_static_works=no
8087   save_LDFLAGS="$LDFLAGS"
8088   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8089   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8090   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8091     # The linker can only warn and ignore the option if not recognized
8092     # So say no if there are warnings
8093     if test -s conftest.err; then
8094       # Append any errors to the config.log.
8095       cat conftest.err 1>&5
8096       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8097       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8098       if diff conftest.exp conftest.er2 >/dev/null; then
8099         lt_prog_compiler_static_works=yes
8100       fi
8101     else
8102       lt_prog_compiler_static_works=yes
8103     fi
8104   fi
8105   $rm conftest*
8106   LDFLAGS="$save_LDFLAGS"
8107
8108fi
8109echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8110echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8111
8112if test x"$lt_prog_compiler_static_works" = xyes; then
8113    :
8114else
8115    lt_prog_compiler_static=
8116fi
8117
8118
8119echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8120echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8121if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8122  echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124  lt_cv_prog_compiler_c_o=no
8125   $rm -r conftest 2>/dev/null
8126   mkdir conftest
8127   cd conftest
8128   mkdir out
8129   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8130
8131   lt_compiler_flag="-o out/conftest2.$ac_objext"
8132   # Insert the option either (1) after the last *FLAGS variable, or
8133   # (2) before a word containing "conftest.", or (3) at the end.
8134   # Note that $ac_compile itself does not contain backslashes and begins
8135   # with a dollar sign (not a hyphen), so the echo should work correctly.
8136   lt_compile=`echo "$ac_compile" | $SED \
8137   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8138   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8139   -e 's:$: $lt_compiler_flag:'`
8140   (eval echo "\"\$as_me:8140: $lt_compile\"" >&5)
8141   (eval "$lt_compile" 2>out/conftest.err)
8142   ac_status=$?
8143   cat out/conftest.err >&5
8144   echo "$as_me:8144: \$? = $ac_status" >&5
8145   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8146   then
8147     # The compiler can only warn and ignore the option if not recognized
8148     # So say no if there are warnings
8149     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8150     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8151     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8152       lt_cv_prog_compiler_c_o=yes
8153     fi
8154   fi
8155   chmod u+w . 2>&5
8156   $rm conftest*
8157   # SGI C++ compiler will create directory out/ii_files/ for
8158   # template instantiation
8159   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8160   $rm out/* && rmdir out
8161   cd ..
8162   rmdir conftest
8163   $rm conftest*
8164
8165fi
8166echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8167echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8168
8169
8170hard_links="nottested"
8171if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8172  # do not overwrite the value of need_locks provided by the user
8173  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8174echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8175  hard_links=yes
8176  $rm conftest*
8177  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8178  touch conftest.a
8179  ln conftest.a conftest.b 2>&5 || hard_links=no
8180  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8181  echo "$as_me:$LINENO: result: $hard_links" >&5
8182echo "${ECHO_T}$hard_links" >&6
8183  if test "$hard_links" = no; then
8184    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8185echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8186    need_locks=warn
8187  fi
8188else
8189  need_locks=no
8190fi
8191
8192echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8193echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8194
8195  runpath_var=
8196  allow_undefined_flag=
8197  enable_shared_with_static_runtimes=no
8198  archive_cmds=
8199  archive_expsym_cmds=
8200  old_archive_From_new_cmds=
8201  old_archive_from_expsyms_cmds=
8202  export_dynamic_flag_spec=
8203  whole_archive_flag_spec=
8204  thread_safe_flag_spec=
8205  hardcode_libdir_flag_spec=
8206  hardcode_libdir_flag_spec_ld=
8207  hardcode_libdir_separator=
8208  hardcode_direct=no
8209  hardcode_minus_L=no
8210  hardcode_shlibpath_var=unsupported
8211  link_all_deplibs=unknown
8212  hardcode_automatic=no
8213  module_cmds=
8214  module_expsym_cmds=
8215  always_export_symbols=no
8216  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8217  # include_expsyms should be a list of space-separated symbols to be *always*
8218  # included in the symbol list
8219  include_expsyms=
8220  # exclude_expsyms can be an extended regexp of symbols to exclude
8221  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8222  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8223  # as well as any symbol that contains `d'.
8224  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8225  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8226  # platforms (ab)use it in PIC code, but their linkers get confused if
8227  # the symbol is explicitly referenced.  Since portable code cannot
8228  # rely on this symbol name, it's probably fine to never include it in
8229  # preloaded symbol tables.
8230  extract_expsyms_cmds=
8231  # Just being paranoid about ensuring that cc_basename is set.
8232  for cc_temp in $compiler""; do
8233  case $cc_temp in
8234    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8235    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8236    \-*) ;;
8237    *) break;;
8238  esac
8239done
8240cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8241
8242  case $host_os in
8243  cygwin* | mingw* | pw32*)
8244    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8245    # When not using gcc, we currently assume that we are using
8246    # Microsoft Visual C++.
8247    if test "$GCC" != yes; then
8248      with_gnu_ld=no
8249    fi
8250    ;;
8251  interix*)
8252    # we just hope/assume this is gcc and not c89 (= MSVC++)
8253    with_gnu_ld=yes
8254    ;;
8255  openbsd*)
8256    with_gnu_ld=no
8257    ;;
8258  esac
8259
8260  ld_shlibs=yes
8261  if test "$with_gnu_ld" = yes; then
8262    # If archive_cmds runs LD, not CC, wlarc should be empty
8263    wlarc='${wl}'
8264
8265    # Set some defaults for GNU ld with shared library support. These
8266    # are reset later if shared libraries are not supported. Putting them
8267    # here allows them to be overridden if necessary.
8268    runpath_var=LD_RUN_PATH
8269    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8270    export_dynamic_flag_spec='${wl}--export-dynamic'
8271    # ancient GNU ld didn't support --whole-archive et. al.
8272    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8273        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8274      else
8275        whole_archive_flag_spec=
8276    fi
8277    supports_anon_versioning=no
8278    case `$LD -v 2>/dev/null` in
8279      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8280      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8281      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8282      *\ 2.11.*) ;; # other 2.11 versions
8283      *) supports_anon_versioning=yes ;;
8284    esac
8285
8286    # See if GNU ld supports shared libraries.
8287    case $host_os in
8288    aix3* | aix4* | aix5*)
8289      # On AIX/PPC, the GNU linker is very broken
8290      if test "$host_cpu" != ia64; then
8291        ld_shlibs=no
8292        cat <<EOF 1>&2
8293
8294*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8295*** to be unable to reliably create shared libraries on AIX.
8296*** Therefore, libtool is disabling shared libraries support.  If you
8297*** really care for shared libraries, you may want to modify your PATH
8298*** so that a non-GNU linker is found, and then restart.
8299
8300EOF
8301      fi
8302      ;;
8303
8304    amigaos*)
8305      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)'
8306      hardcode_libdir_flag_spec='-L$libdir'
8307      hardcode_minus_L=yes
8308
8309      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8310      # that the semantics of dynamic libraries on AmigaOS, at least up
8311      # to version 4, is to share data among multiple programs linked
8312      # with the same dynamic library.  Since this doesn't match the
8313      # behavior of shared libraries on other platforms, we can't use
8314      # them.
8315      ld_shlibs=no
8316      ;;
8317
8318    beos*)
8319      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8320        allow_undefined_flag=unsupported
8321        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8322        # support --undefined.  This deserves some investigation.  FIXME
8323        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8324      else
8325        ld_shlibs=no
8326      fi
8327      ;;
8328
8329    cygwin* | mingw* | pw32*)
8330      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8331      # as there is no search path for DLLs.
8332      hardcode_libdir_flag_spec='-L$libdir'
8333      allow_undefined_flag=unsupported
8334      always_export_symbols=no
8335      enable_shared_with_static_runtimes=yes
8336      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8337
8338      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8339        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8340        # If the export-symbols file already is a .def file (1st line
8341        # is EXPORTS), use it as is; otherwise, prepend...
8342        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8343          cp $export_symbols $output_objdir/$soname.def;
8344        else
8345          echo EXPORTS > $output_objdir/$soname.def;
8346          cat $export_symbols >> $output_objdir/$soname.def;
8347        fi~
8348        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8349      else
8350        ld_shlibs=no
8351      fi
8352      ;;
8353
8354    interix3*)
8355      hardcode_direct=no
8356      hardcode_shlibpath_var=no
8357      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8358      export_dynamic_flag_spec='${wl}-E'
8359      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8360      # Instead, shared libraries are loaded at an image base (0x10000000 by
8361      # default) and relocated if they conflict, which is a slow very memory
8362      # consuming and fragmenting process.  To avoid this, we pick a random,
8363      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8364      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8365      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8366      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'
8367      ;;
8368
8369    linux*)
8370      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8371        tmp_addflag=
8372        case $cc_basename,$host_cpu in
8373        pgcc*)                          # Portland Group C compiler
8374          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'
8375          tmp_addflag=' $pic_flag'
8376          ;;
8377        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8378          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'
8379          tmp_addflag=' $pic_flag -Mnomain' ;;
8380        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8381          tmp_addflag=' -i_dynamic' ;;
8382        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8383          tmp_addflag=' -i_dynamic -nofor_main' ;;
8384        ifc* | ifort*)                  # Intel Fortran compiler
8385          tmp_addflag=' -nofor_main' ;;
8386        esac
8387        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8388
8389        if test $supports_anon_versioning = yes; then
8390          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8391  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8392  $echo "local: *; };" >> $output_objdir/$libname.ver~
8393          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8394        fi
8395      else
8396        ld_shlibs=no
8397      fi
8398      ;;
8399
8400    netbsd*)
8401      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8402        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8403        wlarc=
8404      else
8405        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8406        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8407      fi
8408      ;;
8409
8410    solaris*)
8411      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8412        ld_shlibs=no
8413        cat <<EOF 1>&2
8414
8415*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8416*** create shared libraries on Solaris systems.  Therefore, libtool
8417*** is disabling shared libraries support.  We urge you to upgrade GNU
8418*** binutils to release 2.9.1 or newer.  Another option is to modify
8419*** your PATH or compiler configuration so that the native linker is
8420*** used, and then restart.
8421
8422EOF
8423      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8424        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8425        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8426      else
8427        ld_shlibs=no
8428      fi
8429      ;;
8430
8431    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8432      case `$LD -v 2>&1` in
8433        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8434        ld_shlibs=no
8435        cat <<_LT_EOF 1>&2
8436
8437*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8438*** reliably create shared libraries on SCO systems.  Therefore, libtool
8439*** is disabling shared libraries support.  We urge you to upgrade GNU
8440*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8441*** your PATH or compiler configuration so that the native linker is
8442*** used, and then restart.
8443
8444_LT_EOF
8445        ;;
8446        *)
8447          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8448            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8449            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8450            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8451          else
8452            ld_shlibs=no
8453          fi
8454        ;;
8455      esac
8456      ;;
8457
8458    sunos4*)
8459      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8460      wlarc=
8461      hardcode_direct=yes
8462      hardcode_shlibpath_var=no
8463      ;;
8464
8465    *)
8466      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8467        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8469      else
8470        ld_shlibs=no
8471      fi
8472      ;;
8473    esac
8474
8475    if test "$ld_shlibs" = no; then
8476      runpath_var=
8477      hardcode_libdir_flag_spec=
8478      export_dynamic_flag_spec=
8479      whole_archive_flag_spec=
8480    fi
8481  else
8482    # PORTME fill in a description of your system's linker (not GNU ld)
8483    case $host_os in
8484    aix3*)
8485      allow_undefined_flag=unsupported
8486      always_export_symbols=yes
8487      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'
8488      # Note: this linker hardcodes the directories in LIBPATH if there
8489      # are no directories specified by -L.
8490      hardcode_minus_L=yes
8491      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8492        # Neither direct hardcoding nor static linking is supported with a
8493        # broken collect2.
8494        hardcode_direct=unsupported
8495      fi
8496      ;;
8497
8498    aix4* | aix5*)
8499      if test "$host_cpu" = ia64; then
8500        # On IA64, the linker does run time linking by default, so we don't
8501        # have to do anything special.
8502        aix_use_runtimelinking=no
8503        exp_sym_flag='-Bexport'
8504        no_entry_flag=""
8505      else
8506        # If we're using GNU nm, then we don't want the "-C" option.
8507        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8508        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8509          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'
8510        else
8511          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'
8512        fi
8513        aix_use_runtimelinking=no
8514
8515        # Test if we are trying to use run time linking or normal
8516        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8517        # need to do runtime linking.
8518        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8519          for ld_flag in $LDFLAGS; do
8520          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8521            aix_use_runtimelinking=yes
8522            break
8523          fi
8524          done
8525          ;;
8526        esac
8527
8528        exp_sym_flag='-bexport'
8529        no_entry_flag='-bnoentry'
8530      fi
8531
8532      # When large executables or shared objects are built, AIX ld can
8533      # have problems creating the table of contents.  If linking a library
8534      # or program results in "error TOC overflow" add -mminimal-toc to
8535      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8536      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8537
8538      archive_cmds=''
8539      hardcode_direct=yes
8540      hardcode_libdir_separator=':'
8541      link_all_deplibs=yes
8542
8543      if test "$GCC" = yes; then
8544        case $host_os in aix4.[012]|aix4.[012].*)
8545        # We only want to do this on AIX 4.2 and lower, the check
8546        # below for broken collect2 doesn't work under 4.3+
8547          collect2name=`${CC} -print-prog-name=collect2`
8548          if test -f "$collect2name" && \
8549           strings "$collect2name" | grep resolve_lib_name >/dev/null
8550          then
8551          # We have reworked collect2
8552          hardcode_direct=yes
8553          else
8554          # We have old collect2
8555          hardcode_direct=unsupported
8556          # It fails to find uninstalled libraries when the uninstalled
8557          # path is not listed in the libpath.  Setting hardcode_minus_L
8558          # to unsupported forces relinking
8559          hardcode_minus_L=yes
8560          hardcode_libdir_flag_spec='-L$libdir'
8561          hardcode_libdir_separator=
8562          fi
8563          ;;
8564        esac
8565        shared_flag='-shared'
8566        if test "$aix_use_runtimelinking" = yes; then
8567          shared_flag="$shared_flag "'${wl}-G'
8568        fi
8569      else
8570        # not using gcc
8571        if test "$host_cpu" = ia64; then
8572        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8573        # chokes on -Wl,-G. The following line is correct:
8574          shared_flag='-G'
8575        else
8576          if test "$aix_use_runtimelinking" = yes; then
8577            shared_flag='${wl}-G'
8578          else
8579            shared_flag='${wl}-bM:SRE'
8580          fi
8581        fi
8582      fi
8583
8584      # It seems that -bexpall does not export symbols beginning with
8585      # underscore (_), so it is better to generate a list of symbols to export.
8586      always_export_symbols=yes
8587      if test "$aix_use_runtimelinking" = yes; then
8588        # Warning - without using the other runtime loading flags (-brtl),
8589        # -berok will link without error, but may produce a broken library.
8590        allow_undefined_flag='-berok'
8591       # Determine the default libpath from the value encoded in an empty executable.
8592       cat >conftest.$ac_ext <<_ACEOF
8593/* confdefs.h.  */
8594_ACEOF
8595cat confdefs.h >>conftest.$ac_ext
8596cat >>conftest.$ac_ext <<_ACEOF
8597/* end confdefs.h.  */
8598
8599int
8600main ()
8601{
8602
8603  ;
8604  return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext conftest$ac_exeext
8608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609  (eval $ac_link) 2>conftest.er1
8610  ac_status=$?
8611  grep -v '^ *+' conftest.er1 >conftest.err
8612  rm -f conftest.er1
8613  cat conftest.err >&5
8614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615  (exit $ac_status); } &&
8616         { ac_try='test -z "$ac_c_werror_flag"
8617                         || test ! -s conftest.err'
8618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619  (eval $ac_try) 2>&5
8620  ac_status=$?
8621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622  (exit $ac_status); }; } &&
8623         { ac_try='test -s conftest$ac_exeext'
8624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625  (eval $ac_try) 2>&5
8626  ac_status=$?
8627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628  (exit $ac_status); }; }; then
8629
8630aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8631}'`
8632# Check for a 64-bit object if we didn't find anything.
8633if 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; }
8634}'`; fi
8635else
8636  echo "$as_me: failed program was:" >&5
8637sed 's/^/| /' conftest.$ac_ext >&5
8638
8639fi
8640rm -f conftest.err conftest.$ac_objext \
8641      conftest$ac_exeext conftest.$ac_ext
8642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8643
8644       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8645        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"
8646       else
8647        if test "$host_cpu" = ia64; then
8648          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8649          allow_undefined_flag="-z nodefs"
8650          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"
8651        else
8652         # Determine the default libpath from the value encoded in an empty executable.
8653         cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h.  */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h.  */
8659
8660int
8661main ()
8662{
8663
8664  ;
8665  return 0;
8666}
8667_ACEOF
8668rm -f conftest.$ac_objext conftest$ac_exeext
8669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8670  (eval $ac_link) 2>conftest.er1
8671  ac_status=$?
8672  grep -v '^ *+' conftest.er1 >conftest.err
8673  rm -f conftest.er1
8674  cat conftest.err >&5
8675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676  (exit $ac_status); } &&
8677         { ac_try='test -z "$ac_c_werror_flag"
8678                         || test ! -s conftest.err'
8679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680  (eval $ac_try) 2>&5
8681  ac_status=$?
8682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683  (exit $ac_status); }; } &&
8684         { ac_try='test -s conftest$ac_exeext'
8685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686  (eval $ac_try) 2>&5
8687  ac_status=$?
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); }; }; then
8690
8691aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8692}'`
8693# Check for a 64-bit object if we didn't find anything.
8694if 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; }
8695}'`; fi
8696else
8697  echo "$as_me: failed program was:" >&5
8698sed 's/^/| /' conftest.$ac_ext >&5
8699
8700fi
8701rm -f conftest.err conftest.$ac_objext \
8702      conftest$ac_exeext conftest.$ac_ext
8703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8704
8705         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8706          # Warning - without using the other run time loading flags,
8707          # -berok will link without error, but may produce a broken library.
8708          no_undefined_flag=' ${wl}-bernotok'
8709          allow_undefined_flag=' ${wl}-berok'
8710          # Exported symbols can be pulled into shared objects from archives
8711          whole_archive_flag_spec='$convenience'
8712          archive_cmds_need_lc=yes
8713          # This is similar to how AIX traditionally builds its shared libraries.
8714          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'
8715        fi
8716      fi
8717      ;;
8718
8719    amigaos*)
8720      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)'
8721      hardcode_libdir_flag_spec='-L$libdir'
8722      hardcode_minus_L=yes
8723      # see comment about different semantics on the GNU ld section
8724      ld_shlibs=no
8725      ;;
8726
8727    bsdi[45]*)
8728      export_dynamic_flag_spec=-rdynamic
8729      ;;
8730
8731    cygwin* | mingw* | pw32*)
8732      # When not using gcc, we currently assume that we are using
8733      # Microsoft Visual C++.
8734      # hardcode_libdir_flag_spec is actually meaningless, as there is
8735      # no search path for DLLs.
8736      hardcode_libdir_flag_spec=' '
8737      allow_undefined_flag=unsupported
8738      # Tell ltmain to make .lib files, not .a files.
8739      libext=lib
8740      # Tell ltmain to make .dll files, not .so files.
8741      shrext_cmds=".dll"
8742      # FIXME: Setting linknames here is a bad hack.
8743      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8744      # The linker will automatically build a .lib file if we build a DLL.
8745      old_archive_From_new_cmds='true'
8746      # FIXME: Should let the user specify the lib program.
8747      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8748      fix_srcfile_path='`cygpath -w "$srcfile"`'
8749      enable_shared_with_static_runtimes=yes
8750      ;;
8751
8752    darwin* | rhapsody*)
8753      case $host_os in
8754        rhapsody* | darwin1.[012])
8755         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8756         ;;
8757       *) # Darwin 1.3 on
8758         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8759           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8760         else
8761           case ${MACOSX_DEPLOYMENT_TARGET} in
8762             10.[012])
8763               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8764               ;;
8765             10.*)
8766               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8767               ;;
8768           esac
8769         fi
8770         ;;
8771      esac
8772      archive_cmds_need_lc=no
8773      hardcode_direct=no
8774      hardcode_automatic=yes
8775      hardcode_shlibpath_var=unsupported
8776      whole_archive_flag_spec=''
8777      link_all_deplibs=yes
8778    if test "$GCC" = yes ; then
8779        output_verbose_link_cmd='echo'
8780        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8781      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8782      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8783      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}'
8784      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}'
8785    else
8786      case $cc_basename in
8787        xlc*)
8788         output_verbose_link_cmd='echo'
8789         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8790         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8791          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8792         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}'
8793          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}'
8794          ;;
8795       *)
8796         ld_shlibs=no
8797          ;;
8798      esac
8799    fi
8800      ;;
8801
8802    dgux*)
8803      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804      hardcode_libdir_flag_spec='-L$libdir'
8805      hardcode_shlibpath_var=no
8806      ;;
8807
8808    freebsd1*)
8809      ld_shlibs=no
8810      ;;
8811
8812    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8813    # support.  Future versions do this automatically, but an explicit c++rt0.o
8814    # does not break anything, and helps significantly (at the cost of a little
8815    # extra space).
8816    freebsd2.2*)
8817      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8818      hardcode_libdir_flag_spec='-R$libdir'
8819      hardcode_direct=yes
8820      hardcode_shlibpath_var=no
8821      ;;
8822
8823    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8824    freebsd2*)
8825      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8826      hardcode_direct=yes
8827      hardcode_minus_L=yes
8828      hardcode_shlibpath_var=no
8829      ;;
8830
8831    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8832    freebsd* | kfreebsd*-gnu | dragonfly*)
8833      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8834      hardcode_libdir_flag_spec='-R$libdir'
8835      hardcode_direct=yes
8836      hardcode_shlibpath_var=no
8837      ;;
8838
8839    hpux9*)
8840      if test "$GCC" = yes; then
8841        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'
8842      else
8843        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'
8844      fi
8845      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8846      hardcode_libdir_separator=:
8847      hardcode_direct=yes
8848
8849      # hardcode_minus_L: Not really in the search PATH,
8850      # but as the default location of the library.
8851      hardcode_minus_L=yes
8852      export_dynamic_flag_spec='${wl}-E'
8853      ;;
8854
8855    hpux10*)
8856      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8857        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8858      else
8859        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8860      fi
8861      if test "$with_gnu_ld" = no; then
8862        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8863        hardcode_libdir_separator=:
8864
8865        hardcode_direct=yes
8866        export_dynamic_flag_spec='${wl}-E'
8867
8868        # hardcode_minus_L: Not really in the search PATH,
8869        # but as the default location of the library.
8870        hardcode_minus_L=yes
8871      fi
8872      ;;
8873
8874    hpux11*)
8875      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8876        case $host_cpu in
8877        hppa*64*)
8878          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8879          ;;
8880        ia64*)
8881          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8882          ;;
8883        *)
8884          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8885          ;;
8886        esac
8887      else
8888        case $host_cpu in
8889        hppa*64*)
8890          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891          ;;
8892        ia64*)
8893          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8894          ;;
8895        *)
8896          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8897          ;;
8898        esac
8899      fi
8900      if test "$with_gnu_ld" = no; then
8901        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8902        hardcode_libdir_separator=:
8903
8904        case $host_cpu in
8905        hppa*64*|ia64*)
8906          hardcode_libdir_flag_spec_ld='+b $libdir'
8907          hardcode_direct=no
8908          hardcode_shlibpath_var=no
8909          ;;
8910        *)
8911          hardcode_direct=yes
8912          export_dynamic_flag_spec='${wl}-E'
8913
8914          # hardcode_minus_L: Not really in the search PATH,
8915          # but as the default location of the library.
8916          hardcode_minus_L=yes
8917          ;;
8918        esac
8919      fi
8920      ;;
8921
8922    irix5* | irix6* | nonstopux*)
8923      if test "$GCC" = yes; then
8924        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'
8925      else
8926        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'
8927        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8928      fi
8929      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930      hardcode_libdir_separator=:
8931      link_all_deplibs=yes
8932      ;;
8933
8934    netbsd*)
8935      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8936        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8937      else
8938        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8939      fi
8940      hardcode_libdir_flag_spec='-R$libdir'
8941      hardcode_direct=yes
8942      hardcode_shlibpath_var=no
8943      ;;
8944
8945    newsos6)
8946      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947      hardcode_direct=yes
8948      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8949      hardcode_libdir_separator=:
8950      hardcode_shlibpath_var=no
8951      ;;
8952
8953    openbsd*)
8954      hardcode_direct=yes
8955      hardcode_shlibpath_var=no
8956      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8957        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8958        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8959        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8960        export_dynamic_flag_spec='${wl}-E'
8961      else
8962       case $host_os in
8963         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8964           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8965           hardcode_libdir_flag_spec='-R$libdir'
8966           ;;
8967         *)
8968           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8969           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8970           ;;
8971       esac
8972      fi
8973      ;;
8974
8975    os2*)
8976      hardcode_libdir_flag_spec='-L$libdir'
8977      hardcode_minus_L=yes
8978      allow_undefined_flag=unsupported
8979      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'
8980      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8981      ;;
8982
8983    osf3*)
8984      if test "$GCC" = yes; then
8985        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8986        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'
8987      else
8988        allow_undefined_flag=' -expect_unresolved \*'
8989        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'
8990      fi
8991      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992      hardcode_libdir_separator=:
8993      ;;
8994
8995    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8996      if test "$GCC" = yes; then
8997        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8998        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'
8999        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000      else
9001        allow_undefined_flag=' -expect_unresolved \*'
9002        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'
9003        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9004        $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'
9005
9006        # Both c and cxx compiler support -rpath directly
9007        hardcode_libdir_flag_spec='-rpath $libdir'
9008      fi
9009      hardcode_libdir_separator=:
9010      ;;
9011
9012    solaris*)
9013      no_undefined_flag=' -z text'
9014      if test "$GCC" = yes; then
9015        wlarc='${wl}'
9016        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9018          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9019      else
9020        wlarc=''
9021        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9023        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9024      fi
9025      hardcode_libdir_flag_spec='-R$libdir'
9026      hardcode_shlibpath_var=no
9027      case $host_os in
9028      solaris2.[0-5] | solaris2.[0-5].*) ;;
9029      *)
9030        # The compiler driver will combine linker options so we
9031        # cannot just pass the convience library names through
9032        # without $wl, iff we do not link with $LD.
9033        # Luckily, gcc supports the same syntax we need for Sun Studio.
9034        # Supported since Solaris 2.6 (maybe 2.5.1?)
9035        case $wlarc in
9036        '')
9037          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9038        *)
9039          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' ;;
9040        esac ;;
9041      esac
9042      link_all_deplibs=yes
9043      ;;
9044
9045    sunos4*)
9046      if test "x$host_vendor" = xsequent; then
9047        # Use $CC to link under sequent, because it throws in some extra .o
9048        # files that make .init and .fini sections work.
9049        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9050      else
9051        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9052      fi
9053      hardcode_libdir_flag_spec='-L$libdir'
9054      hardcode_direct=yes
9055      hardcode_minus_L=yes
9056      hardcode_shlibpath_var=no
9057      ;;
9058
9059    sysv4)
9060      case $host_vendor in
9061        sni)
9062          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063          hardcode_direct=yes # is this really true???
9064        ;;
9065        siemens)
9066          ## LD is ld it makes a PLAMLIB
9067          ## CC just makes a GrossModule.
9068          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9069          reload_cmds='$CC -r -o $output$reload_objs'
9070          hardcode_direct=no
9071        ;;
9072        motorola)
9073          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9075        ;;
9076      esac
9077      runpath_var='LD_RUN_PATH'
9078      hardcode_shlibpath_var=no
9079      ;;
9080
9081    sysv4.3*)
9082      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083      hardcode_shlibpath_var=no
9084      export_dynamic_flag_spec='-Bexport'
9085      ;;
9086
9087    sysv4*MP*)
9088      if test -d /usr/nec; then
9089        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9090        hardcode_shlibpath_var=no
9091        runpath_var=LD_RUN_PATH
9092        hardcode_runpath_var=yes
9093        ld_shlibs=yes
9094      fi
9095      ;;
9096
9097    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9098      no_undefined_flag='${wl}-z,text'
9099      archive_cmds_need_lc=no
9100      hardcode_shlibpath_var=no
9101      runpath_var='LD_RUN_PATH'
9102
9103      if test "$GCC" = yes; then
9104        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9105        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9106      else
9107        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9108        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9109      fi
9110      ;;
9111
9112    sysv5* | sco3.2v5* | sco5v6*)
9113      # Note: We can NOT use -z defs as we might desire, because we do not
9114      # link with -lc, and that would cause any symbols used from libc to
9115      # always be unresolved, which means just about no library would
9116      # ever link correctly.  If we're not using GNU ld we use -z text
9117      # though, which does catch some bad symbols but isn't as heavy-handed
9118      # as -z defs.
9119      no_undefined_flag='${wl}-z,text'
9120      allow_undefined_flag='${wl}-z,nodefs'
9121      archive_cmds_need_lc=no
9122      hardcode_shlibpath_var=no
9123      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9124      hardcode_libdir_separator=':'
9125      link_all_deplibs=yes
9126      export_dynamic_flag_spec='${wl}-Bexport'
9127      runpath_var='LD_RUN_PATH'
9128
9129      if test "$GCC" = yes; then
9130        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9131        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9132      else
9133        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9134        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9135      fi
9136      ;;
9137
9138    uts4*)
9139      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140      hardcode_libdir_flag_spec='-L$libdir'
9141      hardcode_shlibpath_var=no
9142      ;;
9143
9144    *)
9145      ld_shlibs=no
9146      ;;
9147    esac
9148  fi
9149
9150echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9151echo "${ECHO_T}$ld_shlibs" >&6
9152test "$ld_shlibs" = no && can_build_shared=no
9153
9154#
9155# Do we need to explicitly link libc?
9156#
9157case "x$archive_cmds_need_lc" in
9158x|xyes)
9159  # Assume -lc should be added
9160  archive_cmds_need_lc=yes
9161
9162  if test "$enable_shared" = yes && test "$GCC" = yes; then
9163    case $archive_cmds in
9164    *'~'*)
9165      # FIXME: we may have to deal with multi-command sequences.
9166      ;;
9167    '$CC '*)
9168      # Test whether the compiler implicitly links with -lc since on some
9169      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9170      # to ld, don't add -lc before -lgcc.
9171      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9172echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9173      $rm conftest*
9174      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9175
9176      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9177  (eval $ac_compile) 2>&5
9178  ac_status=$?
9179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180  (exit $ac_status); } 2>conftest.err; then
9181        soname=conftest
9182        lib=conftest
9183        libobjs=conftest.$ac_objext
9184        deplibs=
9185        wl=$lt_prog_compiler_wl
9186        pic_flag=$lt_prog_compiler_pic
9187        compiler_flags=-v
9188        linker_flags=-v
9189        verstring=
9190        output_objdir=.
9191        libname=conftest
9192        lt_save_allow_undefined_flag=$allow_undefined_flag
9193        allow_undefined_flag=
9194        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9195  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9196  ac_status=$?
9197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198  (exit $ac_status); }
9199        then
9200          archive_cmds_need_lc=no
9201        else
9202          archive_cmds_need_lc=yes
9203        fi
9204        allow_undefined_flag=$lt_save_allow_undefined_flag
9205      else
9206        cat conftest.err 1>&5
9207      fi
9208      $rm conftest*
9209      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9210echo "${ECHO_T}$archive_cmds_need_lc" >&6
9211      ;;
9212    esac
9213  fi
9214  ;;
9215esac
9216
9217echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9218echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9219library_names_spec=
9220libname_spec='lib$name'
9221soname_spec=
9222shrext_cmds=".so"
9223postinstall_cmds=
9224postuninstall_cmds=
9225finish_cmds=
9226finish_eval=
9227shlibpath_var=
9228shlibpath_overrides_runpath=unknown
9229version_type=none
9230dynamic_linker="$host_os ld.so"
9231sys_lib_dlsearch_path_spec="/lib /usr/lib"
9232if test "$GCC" = yes; then
9233  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9234  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9235    # if the path contains ";" then we assume it to be the separator
9236    # otherwise default to the standard path separator (i.e. ":") - it is
9237    # assumed that no part of a normal pathname contains ";" but that should
9238    # okay in the real world where ";" in dirpaths is itself problematic.
9239    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9240  else
9241    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9242  fi
9243else
9244  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9245fi
9246need_lib_prefix=unknown
9247hardcode_into_libs=no
9248
9249# when you set need_version to no, make sure it does not cause -set_version
9250# flags to be left without arguments
9251need_version=unknown
9252
9253case $host_os in
9254aix3*)
9255  version_type=linux
9256  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9257  shlibpath_var=LIBPATH
9258
9259  # AIX 3 has no versioning support, so we append a major version to the name.
9260  soname_spec='${libname}${release}${shared_ext}$major'
9261  ;;
9262
9263aix4* | aix5*)
9264  version_type=linux
9265  need_lib_prefix=no
9266  need_version=no
9267  hardcode_into_libs=yes
9268  if test "$host_cpu" = ia64; then
9269    # AIX 5 supports IA64
9270    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9271    shlibpath_var=LD_LIBRARY_PATH
9272  else
9273    # With GCC up to 2.95.x, collect2 would create an import file
9274    # for dependence libraries.  The import file would start with
9275    # the line `#! .'.  This would cause the generated library to
9276    # depend on `.', always an invalid library.  This was fixed in
9277    # development snapshots of GCC prior to 3.0.
9278    case $host_os in
9279      aix4 | aix4.[01] | aix4.[01].*)
9280      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9281           echo ' yes '
9282           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9283        :
9284      else
9285        can_build_shared=no
9286      fi
9287      ;;
9288    esac
9289    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9290    # soname into executable. Probably we can add versioning support to
9291    # collect2, so additional links can be useful in future.
9292    if test "$aix_use_runtimelinking" = yes; then
9293      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9294      # instead of lib<name>.a to let people know that these are not
9295      # typical AIX shared libraries.
9296      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297    else
9298      # We preserve .a as extension for shared libraries through AIX4.2
9299      # and later when we are not doing run time linking.
9300      library_names_spec='${libname}${release}.a $libname.a'
9301      soname_spec='${libname}${release}${shared_ext}$major'
9302    fi
9303    shlibpath_var=LIBPATH
9304  fi
9305  ;;
9306
9307amigaos*)
9308  library_names_spec='$libname.ixlibrary $libname.a'
9309  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310  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'
9311  ;;
9312
9313beos*)
9314  library_names_spec='${libname}${shared_ext}'
9315  dynamic_linker="$host_os ld.so"
9316  shlibpath_var=LIBRARY_PATH
9317  ;;
9318
9319bsdi[45]*)
9320  version_type=linux
9321  need_version=no
9322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323  soname_spec='${libname}${release}${shared_ext}$major'
9324  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9325  shlibpath_var=LD_LIBRARY_PATH
9326  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9327  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9328  # the default ld.so.conf also contains /usr/contrib/lib and
9329  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9330  # libtool to hard-code these into programs
9331  ;;
9332
9333cygwin* | mingw* | pw32*)
9334  version_type=windows
9335  shrext_cmds=".dll"
9336  need_version=no
9337  need_lib_prefix=no
9338
9339  case $GCC,$host_os in
9340  yes,cygwin* | yes,mingw* | yes,pw32*)
9341    library_names_spec='$libname.dll.a'
9342    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9343    postinstall_cmds='base_file=`basename \${file}`~
9344      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9345      dldir=$destdir/`dirname \$dlpath`~
9346      test -d \$dldir || mkdir -p \$dldir~
9347      $install_prog $dir/$dlname \$dldir/$dlname~
9348      chmod a+x \$dldir/$dlname'
9349    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9350      dlpath=$dir/\$dldll~
9351       $rm \$dlpath'
9352    shlibpath_overrides_runpath=yes
9353
9354    case $host_os in
9355    cygwin*)
9356      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9357      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9359      ;;
9360    mingw*)
9361      # MinGW DLLs use traditional 'lib' prefix
9362      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9364      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9365        # It is most probably a Windows format PATH printed by
9366        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9367        # path with ; separators, and with drive letters. We can handle the
9368        # drive letters (cygwin fileutils understands them), so leave them,
9369        # especially as we might pass files found there to a mingw objdump,
9370        # which wouldn't understand a cygwinified path. Ahh.
9371        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9372      else
9373        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9374      fi
9375      ;;
9376    pw32*)
9377      # pw32 DLLs use 'pw' prefix rather than 'lib'
9378      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379      ;;
9380    esac
9381    ;;
9382
9383  *)
9384    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9385    ;;
9386  esac
9387  dynamic_linker='Win32 ld.exe'
9388  # FIXME: first we should search . and the directory the executable is in
9389  shlibpath_var=PATH
9390  ;;
9391
9392darwin* | rhapsody*)
9393  dynamic_linker="$host_os dyld"
9394  version_type=darwin
9395  need_lib_prefix=no
9396  need_version=no
9397  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9398  soname_spec='${libname}${release}${major}$shared_ext'
9399  shlibpath_overrides_runpath=yes
9400  shlibpath_var=DYLD_LIBRARY_PATH
9401  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9402  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9403  if test "$GCC" = yes; then
9404    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"`
9405  else
9406    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9407  fi
9408  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9409  ;;
9410
9411dgux*)
9412  version_type=linux
9413  need_lib_prefix=no
9414  need_version=no
9415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9416  soname_spec='${libname}${release}${shared_ext}$major'
9417  shlibpath_var=LD_LIBRARY_PATH
9418  ;;
9419
9420freebsd1*)
9421  dynamic_linker=no
9422  ;;
9423
9424kfreebsd*-gnu)
9425  version_type=linux
9426  need_lib_prefix=no
9427  need_version=no
9428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9429  soname_spec='${libname}${release}${shared_ext}$major'
9430  shlibpath_var=LD_LIBRARY_PATH
9431  shlibpath_overrides_runpath=no
9432  hardcode_into_libs=yes
9433  dynamic_linker='GNU ld.so'
9434  ;;
9435
9436freebsd* | dragonfly*)
9437  # DragonFly does not have aout.  When/if they implement a new
9438  # versioning mechanism, adjust this.
9439  if test -x /usr/bin/objformat; then
9440    objformat=`/usr/bin/objformat`
9441  else
9442    case $host_os in
9443    freebsd[123]*) objformat=aout ;;
9444    *) objformat=elf ;;
9445    esac
9446  fi
9447  version_type=freebsd-$objformat
9448  case $version_type in
9449    freebsd-elf*)
9450      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451      need_version=no
9452      need_lib_prefix=no
9453      ;;
9454    freebsd-*)
9455      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9456      need_version=yes
9457      ;;
9458  esac
9459  shlibpath_var=LD_LIBRARY_PATH
9460  case $host_os in
9461  freebsd2*)
9462    shlibpath_overrides_runpath=yes
9463    ;;
9464  freebsd3.[01]* | freebsdelf3.[01]*)
9465    shlibpath_overrides_runpath=yes
9466    hardcode_into_libs=yes
9467    ;;
9468  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470    shlibpath_overrides_runpath=no
9471    hardcode_into_libs=yes
9472    ;;
9473  freebsd*) # from 4.6 on
9474    shlibpath_overrides_runpath=yes
9475    hardcode_into_libs=yes
9476    ;;
9477  esac
9478  ;;
9479
9480gnu*)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  shlibpath_var=LD_LIBRARY_PATH
9487  hardcode_into_libs=yes
9488  ;;
9489
9490hpux9* | hpux10* | hpux11*)
9491  # Give a soname corresponding to the major version so that dld.sl refuses to
9492  # link against other versions.
9493  version_type=sunos
9494  need_lib_prefix=no
9495  need_version=no
9496  case $host_cpu in
9497  ia64*)
9498    shrext_cmds='.so'
9499    hardcode_into_libs=yes
9500    dynamic_linker="$host_os dld.so"
9501    shlibpath_var=LD_LIBRARY_PATH
9502    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504    soname_spec='${libname}${release}${shared_ext}$major'
9505    if test "X$HPUX_IA64_MODE" = X32; then
9506      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9507    else
9508      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9509    fi
9510    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9511    ;;
9512   hppa*64*)
9513     shrext_cmds='.sl'
9514     hardcode_into_libs=yes
9515     dynamic_linker="$host_os dld.sl"
9516     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9517     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519     soname_spec='${libname}${release}${shared_ext}$major'
9520     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9521     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9522     ;;
9523   *)
9524    shrext_cmds='.sl'
9525    dynamic_linker="$host_os dld.sl"
9526    shlibpath_var=SHLIB_PATH
9527    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529    soname_spec='${libname}${release}${shared_ext}$major'
9530    ;;
9531  esac
9532  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9533  postinstall_cmds='chmod 555 $lib'
9534  ;;
9535
9536interix3*)
9537  version_type=linux
9538  need_lib_prefix=no
9539  need_version=no
9540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541  soname_spec='${libname}${release}${shared_ext}$major'
9542  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9543  shlibpath_var=LD_LIBRARY_PATH
9544  shlibpath_overrides_runpath=no
9545  hardcode_into_libs=yes
9546  ;;
9547
9548irix5* | irix6* | nonstopux*)
9549  case $host_os in
9550    nonstopux*) version_type=nonstopux ;;
9551    *)
9552        if test "$lt_cv_prog_gnu_ld" = yes; then
9553                version_type=linux
9554        else
9555                version_type=irix
9556        fi ;;
9557  esac
9558  need_lib_prefix=no
9559  need_version=no
9560  soname_spec='${libname}${release}${shared_ext}$major'
9561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9562  case $host_os in
9563  irix5* | nonstopux*)
9564    libsuff= shlibsuff=
9565    ;;
9566  *)
9567    case $LD in # libtool.m4 will add one of these switches to LD
9568    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9569      libsuff= shlibsuff= libmagic=32-bit;;
9570    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9571      libsuff=32 shlibsuff=N32 libmagic=N32;;
9572    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9573      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9574    *) libsuff= shlibsuff= libmagic=never-match;;
9575    esac
9576    ;;
9577  esac
9578  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9579  shlibpath_overrides_runpath=no
9580  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9581  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9582  hardcode_into_libs=yes
9583  ;;
9584
9585# No shared lib support for Linux oldld, aout, or coff.
9586linux*oldld* | linux*aout* | linux*coff*)
9587  dynamic_linker=no
9588  ;;
9589
9590# This must be Linux ELF.
9591linux*)
9592  version_type=linux
9593  need_lib_prefix=no
9594  need_version=no
9595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596  soname_spec='${libname}${release}${shared_ext}$major'
9597  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9598  shlibpath_var=LD_LIBRARY_PATH
9599  shlibpath_overrides_runpath=no
9600  # This implies no fast_install, which is unacceptable.
9601  # Some rework will be needed to allow for fast_install
9602  # before this can be enabled.
9603  hardcode_into_libs=yes
9604
9605  # Append ld.so.conf contents to the search path
9606  if test -f /etc/ld.so.conf; then
9607    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' ' '`
9608    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9609  fi
9610
9611  # We used to test for /lib/ld.so.1 and disable shared libraries on
9612  # powerpc, because MkLinux only supported shared libraries with the
9613  # GNU dynamic linker.  Since this was broken with cross compilers,
9614  # most powerpc-linux boxes support dynamic linking these days and
9615  # people can always --disable-shared, the test was removed, and we
9616  # assume the GNU/Linux dynamic linker is in use.
9617  dynamic_linker='GNU/Linux ld.so'
9618  ;;
9619
9620knetbsd*-gnu)
9621  version_type=linux
9622  need_lib_prefix=no
9623  need_version=no
9624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9625  soname_spec='${libname}${release}${shared_ext}$major'
9626  shlibpath_var=LD_LIBRARY_PATH
9627  shlibpath_overrides_runpath=no
9628  hardcode_into_libs=yes
9629  dynamic_linker='GNU ld.so'
9630  ;;
9631
9632netbsd*)
9633  version_type=sunos
9634  need_lib_prefix=no
9635  need_version=no
9636  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639    dynamic_linker='NetBSD (a.out) ld.so'
9640  else
9641    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9642    soname_spec='${libname}${release}${shared_ext}$major'
9643    dynamic_linker='NetBSD ld.elf_so'
9644  fi
9645  shlibpath_var=LD_LIBRARY_PATH
9646  shlibpath_overrides_runpath=yes
9647  hardcode_into_libs=yes
9648  ;;
9649
9650newsos6)
9651  version_type=linux
9652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  shlibpath_overrides_runpath=yes
9655  ;;
9656
9657nto-qnx*)
9658  version_type=linux
9659  need_lib_prefix=no
9660  need_version=no
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  shlibpath_overrides_runpath=yes
9665  ;;
9666
9667openbsd*)
9668  version_type=sunos
9669  sys_lib_dlsearch_path_spec="/usr/lib"
9670  need_lib_prefix=no
9671  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9672  case $host_os in
9673    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9674    *)                         need_version=no  ;;
9675  esac
9676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9678  shlibpath_var=LD_LIBRARY_PATH
9679  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9680    case $host_os in
9681      openbsd2.[89] | openbsd2.[89].*)
9682        shlibpath_overrides_runpath=no
9683        ;;
9684      *)
9685        shlibpath_overrides_runpath=yes
9686        ;;
9687      esac
9688  else
9689    shlibpath_overrides_runpath=yes
9690  fi
9691  ;;
9692
9693os2*)
9694  libname_spec='$name'
9695  shrext_cmds=".dll"
9696  need_lib_prefix=no
9697  library_names_spec='$libname${shared_ext} $libname.a'
9698  dynamic_linker='OS/2 ld.exe'
9699  shlibpath_var=LIBPATH
9700  ;;
9701
9702osf3* | osf4* | osf5*)
9703  version_type=osf
9704  need_lib_prefix=no
9705  need_version=no
9706  soname_spec='${libname}${release}${shared_ext}$major'
9707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708  shlibpath_var=LD_LIBRARY_PATH
9709  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9710  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9711  ;;
9712
9713solaris*)
9714  version_type=linux
9715  need_lib_prefix=no
9716  need_version=no
9717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718  soname_spec='${libname}${release}${shared_ext}$major'
9719  shlibpath_var=LD_LIBRARY_PATH
9720  shlibpath_overrides_runpath=yes
9721  hardcode_into_libs=yes
9722  # ldd complains unless libraries are executable
9723  postinstall_cmds='chmod +x $lib'
9724  ;;
9725
9726sunos4*)
9727  version_type=sunos
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  shlibpath_overrides_runpath=yes
9732  if test "$with_gnu_ld" = yes; then
9733    need_lib_prefix=no
9734  fi
9735  need_version=yes
9736  ;;
9737
9738sysv4 | sysv4.3*)
9739  version_type=linux
9740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741  soname_spec='${libname}${release}${shared_ext}$major'
9742  shlibpath_var=LD_LIBRARY_PATH
9743  case $host_vendor in
9744    sni)
9745      shlibpath_overrides_runpath=no
9746      need_lib_prefix=no
9747      export_dynamic_flag_spec='${wl}-Blargedynsym'
9748      runpath_var=LD_RUN_PATH
9749      ;;
9750    siemens)
9751      need_lib_prefix=no
9752      ;;
9753    motorola)
9754      need_lib_prefix=no
9755      need_version=no
9756      shlibpath_overrides_runpath=no
9757      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9758      ;;
9759  esac
9760  ;;
9761
9762sysv4*MP*)
9763  if test -d /usr/nec ;then
9764    version_type=linux
9765    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9766    soname_spec='$libname${shared_ext}.$major'
9767    shlibpath_var=LD_LIBRARY_PATH
9768  fi
9769  ;;
9770
9771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9772  version_type=freebsd-elf
9773  need_lib_prefix=no
9774  need_version=no
9775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9776  soname_spec='${libname}${release}${shared_ext}$major'
9777  shlibpath_var=LD_LIBRARY_PATH
9778  hardcode_into_libs=yes
9779  if test "$with_gnu_ld" = yes; then
9780    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9781    shlibpath_overrides_runpath=no
9782  else
9783    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9784    shlibpath_overrides_runpath=yes
9785    case $host_os in
9786      sco3.2v5*)
9787        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9788        ;;
9789    esac
9790  fi
9791  sys_lib_dlsearch_path_spec='/usr/lib'
9792  ;;
9793
9794uts4*)
9795  version_type=linux
9796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797  soname_spec='${libname}${release}${shared_ext}$major'
9798  shlibpath_var=LD_LIBRARY_PATH
9799  ;;
9800
9801*)
9802  dynamic_linker=no
9803  ;;
9804esac
9805echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9806echo "${ECHO_T}$dynamic_linker" >&6
9807test "$dynamic_linker" = no && can_build_shared=no
9808
9809variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9810if test "$GCC" = yes; then
9811  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9812fi
9813
9814echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9815echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9816hardcode_action=
9817if test -n "$hardcode_libdir_flag_spec" || \
9818   test -n "$runpath_var" || \
9819   test "X$hardcode_automatic" = "Xyes" ; then
9820
9821  # We can hardcode non-existant directories.
9822  if test "$hardcode_direct" != no &&
9823     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9824     # have to relink, otherwise we might link with an installed library
9825     # when we should be linking with a yet-to-be-installed one
9826     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9827     test "$hardcode_minus_L" != no; then
9828    # Linking always hardcodes the temporary library directory.
9829    hardcode_action=relink
9830  else
9831    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9832    hardcode_action=immediate
9833  fi
9834else
9835  # We cannot hardcode anything, or else we can only hardcode existing
9836  # directories.
9837  hardcode_action=unsupported
9838fi
9839echo "$as_me:$LINENO: result: $hardcode_action" >&5
9840echo "${ECHO_T}$hardcode_action" >&6
9841
9842if test "$hardcode_action" = relink; then
9843  # Fast installation is not supported
9844  enable_fast_install=no
9845elif test "$shlibpath_overrides_runpath" = yes ||
9846     test "$enable_shared" = no; then
9847  # Fast installation is not necessary
9848  enable_fast_install=needless
9849fi
9850
9851striplib=
9852old_striplib=
9853echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9854echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9855if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9856  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9857  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9858  echo "$as_me:$LINENO: result: yes" >&5
9859echo "${ECHO_T}yes" >&6
9860else
9861# FIXME - insert some real tests, host_os isn't really good enough
9862  case $host_os in
9863   darwin*)
9864       if test -n "$STRIP" ; then
9865         striplib="$STRIP -x"
9866         echo "$as_me:$LINENO: result: yes" >&5
9867echo "${ECHO_T}yes" >&6
9868       else
9869  echo "$as_me:$LINENO: result: no" >&5
9870echo "${ECHO_T}no" >&6
9871fi
9872       ;;
9873   *)
9874  echo "$as_me:$LINENO: result: no" >&5
9875echo "${ECHO_T}no" >&6
9876    ;;
9877  esac
9878fi
9879
9880if test "x$enable_dlopen" != xyes; then
9881  enable_dlopen=unknown
9882  enable_dlopen_self=unknown
9883  enable_dlopen_self_static=unknown
9884else
9885  lt_cv_dlopen=no
9886  lt_cv_dlopen_libs=
9887
9888  case $host_os in
9889  beos*)
9890    lt_cv_dlopen="load_add_on"
9891    lt_cv_dlopen_libs=
9892    lt_cv_dlopen_self=yes
9893    ;;
9894
9895  mingw* | pw32*)
9896    lt_cv_dlopen="LoadLibrary"
9897    lt_cv_dlopen_libs=
9898   ;;
9899
9900  cygwin*)
9901    lt_cv_dlopen="dlopen"
9902    lt_cv_dlopen_libs=
9903   ;;
9904
9905  darwin*)
9906  # if libdl is installed we need to link against it
9907    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9908echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9909if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9910  echo $ECHO_N "(cached) $ECHO_C" >&6
9911else
9912  ac_check_lib_save_LIBS=$LIBS
9913LIBS="-ldl  $LIBS"
9914cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h.  */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
9919/* end confdefs.h.  */
9920
9921/* Override any gcc2 internal prototype to avoid an error.  */
9922#ifdef __cplusplus
9923extern "C"
9924#endif
9925/* We use char because int might match the return type of a gcc2
9926   builtin and then its argument prototype would still apply.  */
9927char dlopen ();
9928int
9929main ()
9930{
9931dlopen ();
9932  ;
9933  return 0;
9934}
9935_ACEOF
9936rm -f conftest.$ac_objext conftest$ac_exeext
9937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938  (eval $ac_link) 2>conftest.er1
9939  ac_status=$?
9940  grep -v '^ *+' conftest.er1 >conftest.err
9941  rm -f conftest.er1
9942  cat conftest.err >&5
9943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944  (exit $ac_status); } &&
9945         { ac_try='test -z "$ac_c_werror_flag"
9946                         || test ! -s conftest.err'
9947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948  (eval $ac_try) 2>&5
9949  ac_status=$?
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); }; } &&
9952         { ac_try='test -s conftest$ac_exeext'
9953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954  (eval $ac_try) 2>&5
9955  ac_status=$?
9956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); }; }; then
9958  ac_cv_lib_dl_dlopen=yes
9959else
9960  echo "$as_me: failed program was:" >&5
9961sed 's/^/| /' conftest.$ac_ext >&5
9962
9963ac_cv_lib_dl_dlopen=no
9964fi
9965rm -f conftest.err conftest.$ac_objext \
9966      conftest$ac_exeext conftest.$ac_ext
9967LIBS=$ac_check_lib_save_LIBS
9968fi
9969echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9970echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9971if test $ac_cv_lib_dl_dlopen = yes; then
9972  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9973else
9974
9975    lt_cv_dlopen="dyld"
9976    lt_cv_dlopen_libs=
9977    lt_cv_dlopen_self=yes
9978
9979fi
9980
9981   ;;
9982
9983  *)
9984    echo "$as_me:$LINENO: checking for shl_load" >&5
9985echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9986if test "${ac_cv_func_shl_load+set}" = set; then
9987  echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989  cat >conftest.$ac_ext <<_ACEOF
9990/* confdefs.h.  */
9991_ACEOF
9992cat confdefs.h >>conftest.$ac_ext
9993cat >>conftest.$ac_ext <<_ACEOF
9994/* end confdefs.h.  */
9995/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9996   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9997#define shl_load innocuous_shl_load
9998
9999/* System header to define __stub macros and hopefully few prototypes,
10000    which can conflict with char shl_load (); below.
10001    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10002    <limits.h> exists even on freestanding compilers.  */
10003
10004#ifdef __STDC__
10005# include <limits.h>
10006#else
10007# include <assert.h>
10008#endif
10009
10010#undef shl_load
10011
10012/* Override any gcc2 internal prototype to avoid an error.  */
10013#ifdef __cplusplus
10014extern "C"
10015{
10016#endif
10017/* We use char because int might match the return type of a gcc2
10018   builtin and then its argument prototype would still apply.  */
10019char shl_load ();
10020/* The GNU C library defines this for functions which it implements
10021    to always fail with ENOSYS.  Some functions are actually named
10022    something starting with __ and the normal name is an alias.  */
10023#if defined (__stub_shl_load) || defined (__stub___shl_load)
10024choke me
10025#else
10026char (*f) () = shl_load;
10027#endif
10028#ifdef __cplusplus
10029}
10030#endif
10031
10032int
10033main ()
10034{
10035return f != shl_load;
10036  ;
10037  return 0;
10038}
10039_ACEOF
10040rm -f conftest.$ac_objext conftest$ac_exeext
10041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042  (eval $ac_link) 2>conftest.er1
10043  ac_status=$?
10044  grep -v '^ *+' conftest.er1 >conftest.err
10045  rm -f conftest.er1
10046  cat conftest.err >&5
10047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048  (exit $ac_status); } &&
10049         { ac_try='test -z "$ac_c_werror_flag"
10050                         || test ! -s conftest.err'
10051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052  (eval $ac_try) 2>&5
10053  ac_status=$?
10054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055  (exit $ac_status); }; } &&
10056         { ac_try='test -s conftest$ac_exeext'
10057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058  (eval $ac_try) 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; }; then
10062  ac_cv_func_shl_load=yes
10063else
10064  echo "$as_me: failed program was:" >&5
10065sed 's/^/| /' conftest.$ac_ext >&5
10066
10067ac_cv_func_shl_load=no
10068fi
10069rm -f conftest.err conftest.$ac_objext \
10070      conftest$ac_exeext conftest.$ac_ext
10071fi
10072echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10073echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10074if test $ac_cv_func_shl_load = yes; then
10075  lt_cv_dlopen="shl_load"
10076else
10077  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10078echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10079if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10080  echo $ECHO_N "(cached) $ECHO_C" >&6
10081else
10082  ac_check_lib_save_LIBS=$LIBS
10083LIBS="-ldld  $LIBS"
10084cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h.  */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h.  */
10090
10091/* Override any gcc2 internal prototype to avoid an error.  */
10092#ifdef __cplusplus
10093extern "C"
10094#endif
10095/* We use char because int might match the return type of a gcc2
10096   builtin and then its argument prototype would still apply.  */
10097char shl_load ();
10098int
10099main ()
10100{
10101shl_load ();
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
10107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108  (eval $ac_link) 2>conftest.er1
10109  ac_status=$?
10110  grep -v '^ *+' conftest.er1 >conftest.err
10111  rm -f conftest.er1
10112  cat conftest.err >&5
10113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114  (exit $ac_status); } &&
10115         { ac_try='test -z "$ac_c_werror_flag"
10116                         || test ! -s conftest.err'
10117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118  (eval $ac_try) 2>&5
10119  ac_status=$?
10120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121  (exit $ac_status); }; } &&
10122         { ac_try='test -s conftest$ac_exeext'
10123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124  (eval $ac_try) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); }; }; then
10128  ac_cv_lib_dld_shl_load=yes
10129else
10130  echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133ac_cv_lib_dld_shl_load=no
10134fi
10135rm -f conftest.err conftest.$ac_objext \
10136      conftest$ac_exeext conftest.$ac_ext
10137LIBS=$ac_check_lib_save_LIBS
10138fi
10139echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10140echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10141if test $ac_cv_lib_dld_shl_load = yes; then
10142  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10143else
10144  echo "$as_me:$LINENO: checking for dlopen" >&5
10145echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10146if test "${ac_cv_func_dlopen+set}" = set; then
10147  echo $ECHO_N "(cached) $ECHO_C" >&6
10148else
10149  cat >conftest.$ac_ext <<_ACEOF
10150/* confdefs.h.  */
10151_ACEOF
10152cat confdefs.h >>conftest.$ac_ext
10153cat >>conftest.$ac_ext <<_ACEOF
10154/* end confdefs.h.  */
10155/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10156   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10157#define dlopen innocuous_dlopen
10158
10159/* System header to define __stub macros and hopefully few prototypes,
10160    which can conflict with char dlopen (); below.
10161    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10162    <limits.h> exists even on freestanding compilers.  */
10163
10164#ifdef __STDC__
10165# include <limits.h>
10166#else
10167# include <assert.h>
10168#endif
10169
10170#undef dlopen
10171
10172/* Override any gcc2 internal prototype to avoid an error.  */
10173#ifdef __cplusplus
10174extern "C"
10175{
10176#endif
10177/* We use char because int might match the return type of a gcc2
10178   builtin and then its argument prototype would still apply.  */
10179char dlopen ();
10180/* The GNU C library defines this for functions which it implements
10181    to always fail with ENOSYS.  Some functions are actually named
10182    something starting with __ and the normal name is an alias.  */
10183#if defined (__stub_dlopen) || defined (__stub___dlopen)
10184choke me
10185#else
10186char (*f) () = dlopen;
10187#endif
10188#ifdef __cplusplus
10189}
10190#endif
10191
10192int
10193main ()
10194{
10195return f != dlopen;
10196  ;
10197  return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext conftest$ac_exeext
10201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202  (eval $ac_link) 2>conftest.er1
10203  ac_status=$?
10204  grep -v '^ *+' conftest.er1 >conftest.err
10205  rm -f conftest.er1
10206  cat conftest.err >&5
10207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208  (exit $ac_status); } &&
10209         { ac_try='test -z "$ac_c_werror_flag"
10210                         || test ! -s conftest.err'
10211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212  (eval $ac_try) 2>&5
10213  ac_status=$?
10214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215  (exit $ac_status); }; } &&
10216         { ac_try='test -s conftest$ac_exeext'
10217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218  (eval $ac_try) 2>&5
10219  ac_status=$?
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); }; }; then
10222  ac_cv_func_dlopen=yes
10223else
10224  echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
10227ac_cv_func_dlopen=no
10228fi
10229rm -f conftest.err conftest.$ac_objext \
10230      conftest$ac_exeext conftest.$ac_ext
10231fi
10232echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10233echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10234if test $ac_cv_func_dlopen = yes; then
10235  lt_cv_dlopen="dlopen"
10236else
10237  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10238echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10239if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10240  echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242  ac_check_lib_save_LIBS=$LIBS
10243LIBS="-ldl  $LIBS"
10244cat >conftest.$ac_ext <<_ACEOF
10245/* confdefs.h.  */
10246_ACEOF
10247cat confdefs.h >>conftest.$ac_ext
10248cat >>conftest.$ac_ext <<_ACEOF
10249/* end confdefs.h.  */
10250
10251/* Override any gcc2 internal prototype to avoid an error.  */
10252#ifdef __cplusplus
10253extern "C"
10254#endif
10255/* We use char because int might match the return type of a gcc2
10256   builtin and then its argument prototype would still apply.  */
10257char dlopen ();
10258int
10259main ()
10260{
10261dlopen ();
10262  ;
10263  return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
10267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268  (eval $ac_link) 2>conftest.er1
10269  ac_status=$?
10270  grep -v '^ *+' conftest.er1 >conftest.err
10271  rm -f conftest.er1
10272  cat conftest.err >&5
10273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274  (exit $ac_status); } &&
10275         { ac_try='test -z "$ac_c_werror_flag"
10276                         || test ! -s conftest.err'
10277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278  (eval $ac_try) 2>&5
10279  ac_status=$?
10280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281  (exit $ac_status); }; } &&
10282         { ac_try='test -s conftest$ac_exeext'
10283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284  (eval $ac_try) 2>&5
10285  ac_status=$?
10286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287  (exit $ac_status); }; }; then
10288  ac_cv_lib_dl_dlopen=yes
10289else
10290  echo "$as_me: failed program was:" >&5
10291sed 's/^/| /' conftest.$ac_ext >&5
10292
10293ac_cv_lib_dl_dlopen=no
10294fi
10295rm -f conftest.err conftest.$ac_objext \
10296      conftest$ac_exeext conftest.$ac_ext
10297LIBS=$ac_check_lib_save_LIBS
10298fi
10299echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10300echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10301if test $ac_cv_lib_dl_dlopen = yes; then
10302  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10303else
10304  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10305echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10306if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10307  echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309  ac_check_lib_save_LIBS=$LIBS
10310LIBS="-lsvld  $LIBS"
10311cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h.  */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h.  */
10317
10318/* Override any gcc2 internal prototype to avoid an error.  */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322/* We use char because int might match the return type of a gcc2
10323   builtin and then its argument prototype would still apply.  */
10324char dlopen ();
10325int
10326main ()
10327{
10328dlopen ();
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333rm -f conftest.$ac_objext conftest$ac_exeext
10334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335  (eval $ac_link) 2>conftest.er1
10336  ac_status=$?
10337  grep -v '^ *+' conftest.er1 >conftest.err
10338  rm -f conftest.er1
10339  cat conftest.err >&5
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); } &&
10342         { ac_try='test -z "$ac_c_werror_flag"
10343                         || test ! -s conftest.err'
10344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345  (eval $ac_try) 2>&5
10346  ac_status=$?
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); }; } &&
10349         { ac_try='test -s conftest$ac_exeext'
10350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351  (eval $ac_try) 2>&5
10352  ac_status=$?
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); }; }; then
10355  ac_cv_lib_svld_dlopen=yes
10356else
10357  echo "$as_me: failed program was:" >&5
10358sed 's/^/| /' conftest.$ac_ext >&5
10359
10360ac_cv_lib_svld_dlopen=no
10361fi
10362rm -f conftest.err conftest.$ac_objext \
10363      conftest$ac_exeext conftest.$ac_ext
10364LIBS=$ac_check_lib_save_LIBS
10365fi
10366echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10367echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10368if test $ac_cv_lib_svld_dlopen = yes; then
10369  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10370else
10371  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10372echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10373if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10374  echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376  ac_check_lib_save_LIBS=$LIBS
10377LIBS="-ldld  $LIBS"
10378cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h.  */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h.  */
10384
10385/* Override any gcc2 internal prototype to avoid an error.  */
10386#ifdef __cplusplus
10387extern "C"
10388#endif
10389/* We use char because int might match the return type of a gcc2
10390   builtin and then its argument prototype would still apply.  */
10391char dld_link ();
10392int
10393main ()
10394{
10395dld_link ();
10396  ;
10397  return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext conftest$ac_exeext
10401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402  (eval $ac_link) 2>conftest.er1
10403  ac_status=$?
10404  grep -v '^ *+' conftest.er1 >conftest.err
10405  rm -f conftest.er1
10406  cat conftest.err >&5
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); } &&
10409         { ac_try='test -z "$ac_c_werror_flag"
10410                         || test ! -s conftest.err'
10411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412  (eval $ac_try) 2>&5
10413  ac_status=$?
10414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415  (exit $ac_status); }; } &&
10416         { ac_try='test -s conftest$ac_exeext'
10417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418  (eval $ac_try) 2>&5
10419  ac_status=$?
10420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421  (exit $ac_status); }; }; then
10422  ac_cv_lib_dld_dld_link=yes
10423else
10424  echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427ac_cv_lib_dld_dld_link=no
10428fi
10429rm -f conftest.err conftest.$ac_objext \
10430      conftest$ac_exeext conftest.$ac_ext
10431LIBS=$ac_check_lib_save_LIBS
10432fi
10433echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10434echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10435if test $ac_cv_lib_dld_dld_link = yes; then
10436  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10437fi
10438
10439
10440fi
10441
10442
10443fi
10444
10445
10446fi
10447
10448
10449fi
10450
10451
10452fi
10453
10454    ;;
10455  esac
10456
10457  if test "x$lt_cv_dlopen" != xno; then
10458    enable_dlopen=yes
10459  else
10460    enable_dlopen=no
10461  fi
10462
10463  case $lt_cv_dlopen in
10464  dlopen)
10465    save_CPPFLAGS="$CPPFLAGS"
10466    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10467
10468    save_LDFLAGS="$LDFLAGS"
10469    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10470
10471    save_LIBS="$LIBS"
10472    LIBS="$lt_cv_dlopen_libs $LIBS"
10473
10474    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10475echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10476if test "${lt_cv_dlopen_self+set}" = set; then
10477  echo $ECHO_N "(cached) $ECHO_C" >&6
10478else
10479          if test "$cross_compiling" = yes; then :
10480  lt_cv_dlopen_self=cross
10481else
10482  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10483  lt_status=$lt_dlunknown
10484  cat > conftest.$ac_ext <<EOF
10485#line 10485 "configure"
10486#include "confdefs.h"
10487
10488#if HAVE_DLFCN_H
10489#include <dlfcn.h>
10490#endif
10491
10492#include <stdio.h>
10493
10494#ifdef RTLD_GLOBAL
10495#  define LT_DLGLOBAL           RTLD_GLOBAL
10496#else
10497#  ifdef DL_GLOBAL
10498#    define LT_DLGLOBAL         DL_GLOBAL
10499#  else
10500#    define LT_DLGLOBAL         0
10501#  endif
10502#endif
10503
10504/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10505   find out it does not work in some platform. */
10506#ifndef LT_DLLAZY_OR_NOW
10507#  ifdef RTLD_LAZY
10508#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10509#  else
10510#    ifdef DL_LAZY
10511#      define LT_DLLAZY_OR_NOW          DL_LAZY
10512#    else
10513#      ifdef RTLD_NOW
10514#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10515#      else
10516#        ifdef DL_NOW
10517#          define LT_DLLAZY_OR_NOW      DL_NOW
10518#        else
10519#          define LT_DLLAZY_OR_NOW      0
10520#        endif
10521#      endif
10522#    endif
10523#  endif
10524#endif
10525
10526#ifdef __cplusplus
10527extern "C" void exit (int);
10528#endif
10529
10530void fnord() { int i=42;}
10531int main ()
10532{
10533  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10534  int status = $lt_dlunknown;
10535
10536  if (self)
10537    {
10538      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10539      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10540      /* dlclose (self); */
10541    }
10542  else
10543    puts (dlerror ());
10544
10545    exit (status);
10546}
10547EOF
10548  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549  (eval $ac_link) 2>&5
10550  ac_status=$?
10551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10553    (./conftest; exit; ) >&5 2>/dev/null
10554    lt_status=$?
10555    case x$lt_status in
10556      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10557      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10558      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10559    esac
10560  else :
10561    # compilation failed
10562    lt_cv_dlopen_self=no
10563  fi
10564fi
10565rm -fr conftest*
10566
10567
10568fi
10569echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10570echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10571
10572    if test "x$lt_cv_dlopen_self" = xyes; then
10573      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10574      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10575echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10576if test "${lt_cv_dlopen_self_static+set}" = set; then
10577  echo $ECHO_N "(cached) $ECHO_C" >&6
10578else
10579          if test "$cross_compiling" = yes; then :
10580  lt_cv_dlopen_self_static=cross
10581else
10582  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10583  lt_status=$lt_dlunknown
10584  cat > conftest.$ac_ext <<EOF
10585#line 10585 "configure"
10586#include "confdefs.h"
10587
10588#if HAVE_DLFCN_H
10589#include <dlfcn.h>
10590#endif
10591
10592#include <stdio.h>
10593
10594#ifdef RTLD_GLOBAL
10595#  define LT_DLGLOBAL           RTLD_GLOBAL
10596#else
10597#  ifdef DL_GLOBAL
10598#    define LT_DLGLOBAL         DL_GLOBAL
10599#  else
10600#    define LT_DLGLOBAL         0
10601#  endif
10602#endif
10603
10604/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10605   find out it does not work in some platform. */
10606#ifndef LT_DLLAZY_OR_NOW
10607#  ifdef RTLD_LAZY
10608#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10609#  else
10610#    ifdef DL_LAZY
10611#      define LT_DLLAZY_OR_NOW          DL_LAZY
10612#    else
10613#      ifdef RTLD_NOW
10614#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10615#      else
10616#        ifdef DL_NOW
10617#          define LT_DLLAZY_OR_NOW      DL_NOW
10618#        else
10619#          define LT_DLLAZY_OR_NOW      0
10620#        endif
10621#      endif
10622#    endif
10623#  endif
10624#endif
10625
10626#ifdef __cplusplus
10627extern "C" void exit (int);
10628#endif
10629
10630void fnord() { int i=42;}
10631int main ()
10632{
10633  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10634  int status = $lt_dlunknown;
10635
10636  if (self)
10637    {
10638      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10639      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10640      /* dlclose (self); */
10641    }
10642  else
10643    puts (dlerror ());
10644
10645    exit (status);
10646}
10647EOF
10648  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649  (eval $ac_link) 2>&5
10650  ac_status=$?
10651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10653    (./conftest; exit; ) >&5 2>/dev/null
10654    lt_status=$?
10655    case x$lt_status in
10656      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10657      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10658      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10659    esac
10660  else :
10661    # compilation failed
10662    lt_cv_dlopen_self_static=no
10663  fi
10664fi
10665rm -fr conftest*
10666
10667
10668fi
10669echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10670echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10671    fi
10672
10673    CPPFLAGS="$save_CPPFLAGS"
10674    LDFLAGS="$save_LDFLAGS"
10675    LIBS="$save_LIBS"
10676    ;;
10677  esac
10678
10679  case $lt_cv_dlopen_self in
10680  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10681  *) enable_dlopen_self=unknown ;;
10682  esac
10683
10684  case $lt_cv_dlopen_self_static in
10685  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10686  *) enable_dlopen_self_static=unknown ;;
10687  esac
10688fi
10689
10690
10691# Report which library types will actually be built
10692echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10693echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10694echo "$as_me:$LINENO: result: $can_build_shared" >&5
10695echo "${ECHO_T}$can_build_shared" >&6
10696
10697echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10698echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10699test "$can_build_shared" = "no" && enable_shared=no
10700
10701# On AIX, shared libraries and static libraries use the same namespace, and
10702# are all built from PIC.
10703case $host_os in
10704aix3*)
10705  test "$enable_shared" = yes && enable_static=no
10706  if test -n "$RANLIB"; then
10707    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10708    postinstall_cmds='$RANLIB $lib'
10709  fi
10710  ;;
10711
10712aix4* | aix5*)
10713  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10714    test "$enable_shared" = yes && enable_static=no
10715  fi
10716    ;;
10717esac
10718echo "$as_me:$LINENO: result: $enable_shared" >&5
10719echo "${ECHO_T}$enable_shared" >&6
10720
10721echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10722echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10723# Make sure either enable_shared or enable_static is yes.
10724test "$enable_shared" = yes || enable_static=yes
10725echo "$as_me:$LINENO: result: $enable_static" >&5
10726echo "${ECHO_T}$enable_static" >&6
10727
10728# The else clause should only fire when bootstrapping the
10729# libtool distribution, otherwise you forgot to ship ltmain.sh
10730# with your package, and you will get complaints that there are
10731# no rules to generate ltmain.sh.
10732if test -f "$ltmain"; then
10733  # See if we are running on zsh, and set the options which allow our commands through
10734  # without removal of \ escapes.
10735  if test -n "${ZSH_VERSION+set}" ; then
10736    setopt NO_GLOB_SUBST
10737  fi
10738  # Now quote all the things that may contain metacharacters while being
10739  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10740  # variables and quote the copies for generation of the libtool script.
10741  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10742    SED SHELL STRIP \
10743    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10744    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10745    deplibs_check_method reload_flag reload_cmds need_locks \
10746    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10747    lt_cv_sys_global_symbol_to_c_name_address \
10748    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10749    old_postinstall_cmds old_postuninstall_cmds \
10750    compiler \
10751    CC \
10752    LD \
10753    lt_prog_compiler_wl \
10754    lt_prog_compiler_pic \
10755    lt_prog_compiler_static \
10756    lt_prog_compiler_no_builtin_flag \
10757    export_dynamic_flag_spec \
10758    thread_safe_flag_spec \
10759    whole_archive_flag_spec \
10760    enable_shared_with_static_runtimes \
10761    old_archive_cmds \
10762    old_archive_from_new_cmds \
10763    predep_objects \
10764    postdep_objects \
10765    predeps \
10766    postdeps \
10767    compiler_lib_search_path \
10768    archive_cmds \
10769    archive_expsym_cmds \
10770    postinstall_cmds \
10771    postuninstall_cmds \
10772    old_archive_from_expsyms_cmds \
10773    allow_undefined_flag \
10774    no_undefined_flag \
10775    export_symbols_cmds \
10776    hardcode_libdir_flag_spec \
10777    hardcode_libdir_flag_spec_ld \
10778    hardcode_libdir_separator \
10779    hardcode_automatic \
10780    module_cmds \
10781    module_expsym_cmds \
10782    lt_cv_prog_compiler_c_o \
10783    exclude_expsyms \
10784    include_expsyms; do
10785
10786    case $var in
10787    old_archive_cmds | \
10788    old_archive_from_new_cmds | \
10789    archive_cmds | \