source: ThirdParty/Blas/releases/1.0.9/configure @ 882

Last change on this file since 882 was 881, checked in by andreasw, 12 years ago

temporarily committing release candidate to stable

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