source: ThirdParty/Blas/trunk/configure @ 172

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

corrected minor issue with RPATH_FLAGS detection

  • Property svn:executable set to *
File size: 696.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-blas compile this project (Blas) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS (default: disabled)
1077  --enable-static[=PKGS]
1078                          build static libraries [default=no]
1079  --disable-dependency-tracking  speeds up one-time build
1080  --enable-dependency-tracking   do not reject slow dependency extractors
1081  --enable-maintainer-mode  enable make rules and dependencies not useful
1082                          (and sometimes confusing) to the casual installer
1083  --enable-shared[=PKGS]
1084                          build shared libraries [default=yes]
1085  --enable-fast-install[=PKGS]
1086                          optimize for fast installation [default=yes]
1087  --disable-libtool-lock  avoid locking (might break parallel builds)
1088
1089Optional Packages:
1090  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1091  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1092  --with-blas-verbosity specify the debug verbosity level for project Blas
1093  --with-blas-checklevel specify the sanity check level for project Blas
1094  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1095  --with-pic              try to use only PIC/non-PIC objects [default=use
1096                          both]
1097  --with-tags[=TAGS]
1098                          include additional configurations [automatic]
1099
1100Some influential environment variables:
1101  CDEFS       Additional -D flags to be used when compiling C code.
1102  ADD_CFLAGS  Additional C compiler options
1103  DBG_CFLAGS  Debug C compiler options
1104  OPT_CFLAGS  Optimize C compiler options
1105  CC          C compiler command
1106  CFLAGS      C compiler flags
1107  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1108              nonstandard directory <lib dir>
1109  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1110              headers in a nonstandard directory <include dir>
1111  MPICC       C MPI Compiler
1112  ADD_FFLAGS  Additional Fortran compiler options
1113  DBG_FFLAGS  Debug Fortran compiler options
1114  OPT_FFLAGS  Optimize Fortran compiler options
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117  MPIF77      Fortran MPI Compiler
1118  CPP         C preprocessor
1119  CXX         C++ compiler command
1120  CXXFLAGS    C++ compiler flags
1121  CXXCPP      C++ preprocessor
1122
1123Use these variables to override the choices made by `configure' or to help
1124it to find libraries and programs with nonstandard names/locations.
1125
1126Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1127_ACEOF
1128fi
1129
1130if test "$ac_init_help" = "recursive"; then
1131  # If there are subdirs, report their specific --help.
1132  ac_popdir=`pwd`
1133  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1134    test -d $ac_dir || continue
1135    ac_builddir=.
1136
1137if test "$ac_dir" != .; then
1138  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1139  # A "../" for each directory in $ac_dir_suffix.
1140  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1141else
1142  ac_dir_suffix= ac_top_builddir=
1143fi
1144
1145case $srcdir in
1146  .)  # No --srcdir option.  We are building in place.
1147    ac_srcdir=.
1148    if test -z "$ac_top_builddir"; then
1149       ac_top_srcdir=.
1150    else
1151       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1152    fi ;;
1153  [\\/]* | ?:[\\/]* )  # Absolute path.
1154    ac_srcdir=$srcdir$ac_dir_suffix;
1155    ac_top_srcdir=$srcdir ;;
1156  *) # Relative path.
1157    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1158    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1159esac
1160
1161# Do not use `cd foo && pwd` to compute absolute paths, because
1162# the directories may not exist.
1163case `pwd` in
1164.) ac_abs_builddir="$ac_dir";;
1165*)
1166  case "$ac_dir" in
1167  .) ac_abs_builddir=`pwd`;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1169  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1170  esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_top_builddir=${ac_top_builddir}.;;
1174*)
1175  case ${ac_top_builddir}. in
1176  .) ac_abs_top_builddir=$ac_abs_builddir;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1178  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_srcdir=$ac_srcdir;;
1183*)
1184  case $ac_srcdir in
1185  .) ac_abs_srcdir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1187  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_top_srcdir=$ac_top_srcdir;;
1192*)
1193  case $ac_top_srcdir in
1194  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1196  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1197  esac;;
1198esac
1199
1200    cd $ac_dir
1201    # Check for guested configure; otherwise get Cygnus style configure.
1202    if test -f $ac_srcdir/configure.gnu; then
1203      echo
1204      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1205    elif test -f $ac_srcdir/configure; then
1206      echo
1207      $SHELL $ac_srcdir/configure  --help=recursive
1208    elif test -f $ac_srcdir/configure.ac ||
1209           test -f $ac_srcdir/configure.in; then
1210      echo
1211      $ac_configure --help
1212    else
1213      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1214    fi
1215    cd $ac_popdir
1216  done
1217fi
1218
1219test -n "$ac_init_help" && exit 0
1220if $ac_init_version; then
1221  cat <<\_ACEOF
1222ThirdPartyBlas configure 0.0
1223generated by GNU Autoconf 2.59
1224
1225Copyright (C) 2003 Free Software Foundation, Inc.
1226This configure script is free software; the Free Software Foundation
1227gives unlimited permission to copy, distribute and modify it.
1228
1229
1230Copyright 2006 International Business Machines and others.
1231All Rights Reserved.
1232This file is part of the open source package Coin which is distributed
1233under the Common Public License.
1234_ACEOF
1235  exit 0
1236fi
1237exec 5>config.log
1238cat >&5 <<_ACEOF
1239This file contains any messages produced by compilers while
1240running configure, to aid debugging if configure makes a mistake.
1241
1242It was created by ThirdPartyBlas $as_me 0.0, which was
1243generated by GNU Autoconf 2.59.  Invocation command line was
1244
1245  $ $0 $@
1246
1247_ACEOF
1248{
1249cat <<_ASUNAME
1250## --------- ##
1251## Platform. ##
1252## --------- ##
1253
1254hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258uname -v = `(uname -v) 2>/dev/null || echo unknown`
1259
1260/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1262
1263/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1264/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1265/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1267/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1268/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1269/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1270
1271_ASUNAME
1272
1273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274for as_dir in $PATH
1275do
1276  IFS=$as_save_IFS
1277  test -z "$as_dir" && as_dir=.
1278  echo "PATH: $as_dir"
1279done
1280
1281} >&5
1282
1283cat >&5 <<_ACEOF
1284
1285
1286## ----------- ##
1287## Core tests. ##
1288## ----------- ##
1289
1290_ACEOF
1291
1292
1293# Keep a trace of the command line.
1294# Strip out --no-create and --no-recursion so they do not pile up.
1295# Strip out --silent because we don't want to record it for future runs.
1296# Also quote any args containing shell meta-characters.
1297# Make two passes to allow for proper duplicate-argument suppression.
1298ac_configure_args=
1299ac_configure_args0=
1300ac_configure_args1=
1301ac_sep=
1302ac_must_keep_next=false
1303for ac_pass in 1 2
1304do
1305  for ac_arg
1306  do
1307    case $ac_arg in
1308    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310    | -silent | --silent | --silen | --sile | --sil)
1311      continue ;;
1312    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1314    esac
1315    case $ac_pass in
1316    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1317    2)
1318      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319      if test $ac_must_keep_next = true; then
1320        ac_must_keep_next=false # Got value, back to normal.
1321      else
1322        case $ac_arg in
1323          *=* | --config-cache | -C | -disable-* | --disable-* \
1324          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326          | -with-* | --with-* | -without-* | --without-* | --x)
1327            case "$ac_configure_args0 " in
1328              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1329            esac
1330            ;;
1331          -* ) ac_must_keep_next=true ;;
1332        esac
1333      fi
1334      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335      # Get rid of the leading space.
1336      ac_sep=" "
1337      ;;
1338    esac
1339  done
1340done
1341$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1343
1344# When interrupted or exit'd, cleanup temporary files, and complete
1345# config.log.  We remove comments because anyway the quotes in there
1346# would cause problems or look ugly.
1347# WARNING: Be sure not to use single quotes in there, as some shells,
1348# such as our DU 5.0 friend, will then `close' the trap.
1349trap 'exit_status=$?
1350  # Save into config.log some information that might help in debugging.
1351  {
1352    echo
1353
1354    cat <<\_ASBOX
1355## ---------------- ##
1356## Cache variables. ##
1357## ---------------- ##
1358_ASBOX
1359    echo
1360    # The following way of writing the cache mishandles newlines in values,
1361{
1362  (set) 2>&1 |
1363    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1364    *ac_space=\ *)
1365      sed -n \
1366        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1368      ;;
1369    *)
1370      sed -n \
1371        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1372      ;;
1373    esac;
1374}
1375    echo
1376
1377    cat <<\_ASBOX
1378## ----------------- ##
1379## Output variables. ##
1380## ----------------- ##
1381_ASBOX
1382    echo
1383    for ac_var in $ac_subst_vars
1384    do
1385      eval ac_val=$`echo $ac_var`
1386      echo "$ac_var='"'"'$ac_val'"'"'"
1387    done | sort
1388    echo
1389
1390    if test -n "$ac_subst_files"; then
1391      cat <<\_ASBOX
1392## ------------- ##
1393## Output files. ##
1394## ------------- ##
1395_ASBOX
1396      echo
1397      for ac_var in $ac_subst_files
1398      do
1399        eval ac_val=$`echo $ac_var`
1400        echo "$ac_var='"'"'$ac_val'"'"'"
1401      done | sort
1402      echo
1403    fi
1404
1405    if test -s confdefs.h; then
1406      cat <<\_ASBOX
1407## ----------- ##
1408## confdefs.h. ##
1409## ----------- ##
1410_ASBOX
1411      echo
1412      sed "/^$/d" confdefs.h | sort
1413      echo
1414    fi
1415    test "$ac_signal" != 0 &&
1416      echo "$as_me: caught signal $ac_signal"
1417    echo "$as_me: exit $exit_status"
1418  } >&5
1419  rm -f core *.core &&
1420  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1421    exit $exit_status
1422     ' 0
1423for ac_signal in 1 2 13 15; do
1424  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425done
1426ac_signal=0
1427
1428# confdefs.h avoids OS command line length limits that DEFS can exceed.
1429rm -rf conftest* confdefs.h
1430# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1431echo >confdefs.h
1432
1433# Predefined preprocessor variables.
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_NAME "$PACKAGE_NAME"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_VERSION "$PACKAGE_VERSION"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_STRING "$PACKAGE_STRING"
1452_ACEOF
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457_ACEOF
1458
1459
1460# Let the site file select an alternate cache file if it wants to.
1461# Prefer explicitly selected file to automatically selected ones.
1462if test -z "$CONFIG_SITE"; then
1463  if test "x$prefix" != xNONE; then
1464    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1465  else
1466    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1467  fi
1468fi
1469for ac_site_file in $CONFIG_SITE; do
1470  if test -r "$ac_site_file"; then
1471    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472echo "$as_me: loading site script $ac_site_file" >&6;}
1473    sed 's/^/| /' "$ac_site_file" >&5
1474    . "$ac_site_file"
1475  fi
1476done
1477
1478if test -r "$cache_file"; then
1479  # Some versions of bash will fail to source /dev/null (special
1480  # files actually), so we avoid doing that.
1481  if test -f "$cache_file"; then
1482    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1483echo "$as_me: loading cache $cache_file" >&6;}
1484    case $cache_file in
1485      [\\/]* | ?:[\\/]* ) . $cache_file;;
1486      *)                      . ./$cache_file;;
1487    esac
1488  fi
1489else
1490  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1491echo "$as_me: creating cache $cache_file" >&6;}
1492  >$cache_file
1493fi
1494
1495# Check that the precious variables saved in the cache have kept the same
1496# value.
1497ac_cache_corrupted=false
1498for ac_var in `(set) 2>&1 |
1499               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1500  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1501  eval ac_new_set=\$ac_env_${ac_var}_set
1502  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1503  eval ac_new_val="\$ac_env_${ac_var}_value"
1504  case $ac_old_set,$ac_new_set in
1505    set,)
1506      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1507echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1508      ac_cache_corrupted=: ;;
1509    ,set)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,);;
1514    *)
1515      if test "x$ac_old_val" != "x$ac_new_val"; then
1516        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1517echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1518        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1519echo "$as_me:   former value:  $ac_old_val" >&2;}
1520        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1521echo "$as_me:   current value: $ac_new_val" >&2;}
1522        ac_cache_corrupted=:
1523      fi;;
1524  esac
1525  # Pass precious variables to config.status.
1526  if test "$ac_new_set" = set; then
1527    case $ac_new_val in
1528    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1529      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1530    *) ac_arg=$ac_var=$ac_new_val ;;
1531    esac
1532    case " $ac_configure_args " in
1533      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1534      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1535    esac
1536  fi
1537done
1538if $ac_cache_corrupted; then
1539  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543   { (exit 1); exit 1; }; }
1544fi
1545
1546ac_ext=c
1547ac_cpp='$CPP $CPPFLAGS'
1548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550ac_compiler_gnu=$ac_cv_c_compiler_gnu
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581# List one file in the package so that the configure script can test
1582# whether the package is actually there
1583
1584
1585# Where should everything be installed by default?  Here, we want it
1586# to be installed directly in 'bin', 'lib', 'include' subdirectories
1587# of the directory where configure is run.  The default would be
1588# /usr/local.
1589
1590
1591# Initialize the ADDLIBS variable
1592ADDLIBS="-lm $LIBS"
1593
1594
1595# Initialize the FADDLIBS variable (which is to be used with a fortran
1596# compiler and will not include FLIBS)
1597FADDLIBS="$LIBS"
1598
1599
1600# A useful makefile conditional that is always false
1601
1602
1603if false; then
1604  ALWAYS_FALSE_TRUE=
1605  ALWAYS_FALSE_FALSE='#'
1606else
1607  ALWAYS_FALSE_TRUE='#'
1608  ALWAYS_FALSE_FALSE=
1609fi
1610
1611
1612# We set the following variable so that we know later in AC_COIN_FINALIZE
1613# that we are in a project main directory
1614coin_projectdir=yes
1615
1616
1617#############################################################################
1618#                         Standard build tool stuff                         #
1619#############################################################################
1620
1621# Get the system type
1622ac_aux_dir=
1623for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1624  if test -f $ac_dir/install-sh; then
1625    ac_aux_dir=$ac_dir
1626    ac_install_sh="$ac_aux_dir/install-sh -c"
1627    break
1628  elif test -f $ac_dir/install.sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install.sh -c"
1631    break
1632  elif test -f $ac_dir/shtool; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/shtool install -c"
1635    break
1636  fi
1637done
1638if test -z "$ac_aux_dir"; then
1639  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1640echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1641   { (exit 1); exit 1; }; }
1642fi
1643ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1644ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1645ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1646
1647# Make sure we can run config.sub.
1648$ac_config_sub sun4 >/dev/null 2>&1 ||
1649  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1650echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1651   { (exit 1); exit 1; }; }
1652
1653echo "$as_me:$LINENO: checking build system type" >&5
1654echo $ECHO_N "checking build system type... $ECHO_C" >&6
1655if test "${ac_cv_build+set}" = set; then
1656  echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658  ac_cv_build_alias=$build_alias
1659test -z "$ac_cv_build_alias" &&
1660  ac_cv_build_alias=`$ac_config_guess`
1661test -z "$ac_cv_build_alias" &&
1662  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1663echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1664   { (exit 1); exit 1; }; }
1665ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1666  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1667echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1668   { (exit 1); exit 1; }; }
1669
1670fi
1671echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1672echo "${ECHO_T}$ac_cv_build" >&6
1673build=$ac_cv_build
1674build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1675build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1676build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677
1678
1679
1680# Check if user wants to produce debugging code
1681
1682echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1683echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1684
1685# Check whether --enable-debug or --disable-debug was given.
1686if test "${enable_debug+set}" = set; then
1687  enableval="$enable_debug"
1688  case "${enableval}" in
1689   yes) coin_debug_compile=true
1690        enable_shared=no
1691        ;;
1692   no)  coin_debug_compile=false
1693        ;;
1694   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1695echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1696   { (exit 1); exit 1; }; }
1697        ;;
1698esac
1699else
1700  coin_debug_compile=false
1701fi;
1702
1703# Check whether --enable-debug-blas or --disable-debug-blas was given.
1704if test "${enable_debug_blas+set}" = set; then
1705  enableval="$enable_debug_blas"
1706  case "${enableval}" in
1707    yes) coin_debug_compile=true
1708         enable_shared=no
1709         ;;
1710    no)  coin_debug_compile=false
1711         ;;
1712    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1713echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1714   { (exit 1); exit 1; }; }
1715         ;;
1716 esac
1717else
1718  :
1719fi;
1720
1721 # m4_ifvaln([Blas],
1722
1723if test $coin_debug_compile = true; then
1724  echo "$as_me:$LINENO: result: yes" >&5
1725echo "${ECHO_T}yes" >&6
1726else
1727  echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
1729fi
1730
1731
1732# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1733if test "${with_blas_verbosity+set}" = set; then
1734  withval="$with_blas_verbosity"
1735  coin_blas_verbosity=$withval
1736else
1737  coin_blas_verbosity=0
1738fi;
1739
1740cat >>confdefs.h <<_ACEOF
1741#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1742_ACEOF
1743
1744
1745
1746# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1747if test "${with_blas_checklevel+set}" = set; then
1748  withval="$with_blas_checklevel"
1749  coin_blas_checklevel=$withval
1750else
1751  coin_blas_checklevel=0
1752fi;
1753
1754cat >>confdefs.h <<_ACEOF
1755#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1756_ACEOF
1757
1758
1759# We use the following variable to have a string with the upper case
1760# version of the project name
1761COIN_PRJCT=BLAS
1762
1763
1764 # m4_ifvaln([Blas],
1765
1766
1767
1768# Get the name of the Fortran compiler and appropriate compiler options
1769case $build in
1770  *-mingw*)
1771    if test "${LD+set}" = set; then :; else
1772      LD=link
1773    fi
1774    ;;
1775esac
1776
1777# Check whether --enable-doscompile or --disable-doscompile was given.
1778if test "${enable_doscompile+set}" = set; then
1779  enableval="$enable_doscompile"
1780  if test "$enable_doscompile = yes"; then
1781  case $build in
1782    *-cygwin*) ;;
1783    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
1784echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
1785   { (exit 1); exit 1; }; } ;;
1786  esac
1787fi
1788else
1789  enable_doscompile=no
1790fi;
1791
1792
1793
1794
1795ac_ext=c
1796ac_cpp='$CPP $CPPFLAGS'
1797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800
1801
1802# For consistency, we set the C compiler to the same value of the C++
1803# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1804if test x"$CXX" != x; then
1805  case "$CXX" in
1806    cl* | */cl*)
1807      if test x"$CC" = x; then
1808        CC="$CXX"
1809        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1810echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1811      fi
1812      ;;
1813  esac
1814fi
1815
1816
1817
1818
1819
1820
1821coin_has_cc=yes
1822
1823save_cflags="$CFLAGS"
1824case $build in
1825  *-cygwin* | *-mingw*)
1826             comps="gcc cl" ;;
1827  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1828  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1829esac
1830
1831# We delete the cached value, since the test might not have been
1832# performed with our choice of compilers earlier
1833$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1834ac_ext=c
1835ac_cpp='$CPP $CPPFLAGS'
1836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839if test -n "$ac_tool_prefix"; then
1840  for ac_prog in $comps
1841  do
1842    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1843set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1844echo "$as_me:$LINENO: checking for $ac_word" >&5
1845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846if test "${ac_cv_prog_CC+set}" = set; then
1847  echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849  if test -n "$CC"; then
1850  ac_cv_prog_CC="$CC" # Let the user override the test.
1851else
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855  IFS=$as_save_IFS
1856  test -z "$as_dir" && as_dir=.
1857  for ac_exec_ext in '' $ac_executable_extensions; do
1858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861    break 2
1862  fi
1863done
1864done
1865
1866fi
1867fi
1868CC=$ac_cv_prog_CC
1869if test -n "$CC"; then
1870  echo "$as_me:$LINENO: result: $CC" >&5
1871echo "${ECHO_T}$CC" >&6
1872else
1873  echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6
1875fi
1876
1877    test -n "$CC" && break
1878  done
1879fi
1880if test -z "$CC"; then
1881  ac_ct_CC=$CC
1882  for ac_prog in $comps
1883do
1884  # Extract the first word of "$ac_prog", so it can be a program name with args.
1885set dummy $ac_prog; ac_word=$2
1886echo "$as_me:$LINENO: checking for $ac_word" >&5
1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889  echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891  if test -n "$ac_ct_CC"; then
1892  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893else
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897  IFS=$as_save_IFS
1898  test -z "$as_dir" && as_dir=.
1899  for ac_exec_ext in '' $ac_executable_extensions; do
1900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901    ac_cv_prog_ac_ct_CC="$ac_prog"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907
1908fi
1909fi
1910ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911if test -n "$ac_ct_CC"; then
1912  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913echo "${ECHO_T}$ac_ct_CC" >&6
1914else
1915  echo "$as_me:$LINENO: result: no" >&5
1916echo "${ECHO_T}no" >&6
1917fi
1918
1919  test -n "$ac_ct_CC" && break
1920done
1921
1922  CC=$ac_ct_CC
1923fi
1924
1925
1926test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1927See \`config.log' for more details." >&5
1928echo "$as_me: error: no acceptable C compiler found in \$PATH
1929See \`config.log' for more details." >&2;}
1930   { (exit 1); exit 1; }; }
1931
1932# Provide some information about the compiler.
1933echo "$as_me:$LINENO:" \
1934     "checking for C compiler version" >&5
1935ac_compiler=`set X $ac_compile; echo $2`
1936{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1937  (eval $ac_compiler --version </dev/null >&5) 2>&5
1938  ac_status=$?
1939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940  (exit $ac_status); }
1941{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1942  (eval $ac_compiler -v </dev/null >&5) 2>&5
1943  ac_status=$?
1944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945  (exit $ac_status); }
1946{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1947  (eval $ac_compiler -V </dev/null >&5) 2>&5
1948  ac_status=$?
1949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950  (exit $ac_status); }
1951
1952cat >conftest.$ac_ext <<_ACEOF
1953/* confdefs.h.  */
1954_ACEOF
1955cat confdefs.h >>conftest.$ac_ext
1956cat >>conftest.$ac_ext <<_ACEOF
1957/* end confdefs.h.  */
1958
1959int
1960main ()
1961{
1962
1963  ;
1964  return 0;
1965}
1966_ACEOF
1967ac_clean_files_save=$ac_clean_files
1968ac_clean_files="$ac_clean_files a.out a.exe b.out"
1969# Try to create an executable without -o first, disregard a.out.
1970# It will help us diagnose broken compilers, and finding out an intuition
1971# of exeext.
1972echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1973echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1974ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1975if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1976  (eval $ac_link_default) 2>&5
1977  ac_status=$?
1978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979  (exit $ac_status); }; then
1980  # Find the output, starting from the most likely.  This scheme is
1981# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1982# resort.
1983
1984# Be careful to initialize this variable, since it used to be cached.
1985# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1986ac_cv_exeext=
1987# b.out is created by i960 compilers.
1988for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1989do
1990  test -f "$ac_file" || continue
1991  case $ac_file in
1992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1993        ;;
1994    conftest.$ac_ext )
1995        # This is the source file.
1996        ;;
1997    [ab].out )
1998        # We found the default executable, but exeext='' is most
1999        # certainly right.
2000        break;;
2001    *.* )
2002        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2003        # FIXME: I believe we export ac_cv_exeext for Libtool,
2004        # but it would be cool to find out if it's true.  Does anybody
2005        # maintain Libtool? --akim.
2006        export ac_cv_exeext
2007        break;;
2008    * )
2009        break;;
2010  esac
2011done
2012else
2013  echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2017See \`config.log' for more details." >&5
2018echo "$as_me: error: C compiler cannot create executables
2019See \`config.log' for more details." >&2;}
2020   { (exit 77); exit 77; }; }
2021fi
2022
2023ac_exeext=$ac_cv_exeext
2024echo "$as_me:$LINENO: result: $ac_file" >&5
2025echo "${ECHO_T}$ac_file" >&6
2026
2027# Check the compiler produces executables we can run.  If not, either
2028# the compiler is broken, or we cross compile.
2029echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2030echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2031# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2032# If not cross compiling, check that we can run a simple program.
2033if test "$cross_compiling" != yes; then
2034  if { ac_try='./$ac_file'
2035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036  (eval $ac_try) 2>&5
2037  ac_status=$?
2038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039  (exit $ac_status); }; }; then
2040    cross_compiling=no
2041  else
2042    if test "$cross_compiling" = maybe; then
2043        cross_compiling=yes
2044    else
2045        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2046If you meant to cross compile, use \`--host'.
2047See \`config.log' for more details." >&5
2048echo "$as_me: error: cannot run C compiled programs.
2049If you meant to cross compile, use \`--host'.
2050See \`config.log' for more details." >&2;}
2051   { (exit 1); exit 1; }; }
2052    fi
2053  fi
2054fi
2055echo "$as_me:$LINENO: result: yes" >&5
2056echo "${ECHO_T}yes" >&6
2057
2058rm -f a.out a.exe conftest$ac_cv_exeext b.out
2059ac_clean_files=$ac_clean_files_save
2060# Check the compiler produces executables we can run.  If not, either
2061# the compiler is broken, or we cross compile.
2062echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2063echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2064echo "$as_me:$LINENO: result: $cross_compiling" >&5
2065echo "${ECHO_T}$cross_compiling" >&6
2066
2067echo "$as_me:$LINENO: checking for suffix of executables" >&5
2068echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2070  (eval $ac_link) 2>&5
2071  ac_status=$?
2072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073  (exit $ac_status); }; then
2074  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2075# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2076# work properly (i.e., refer to `conftest.exe'), while it won't with
2077# `rm'.
2078for ac_file in conftest.exe conftest conftest.*; do
2079  test -f "$ac_file" || continue
2080  case $ac_file in
2081    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2082    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2083          export ac_cv_exeext
2084          break;;
2085    * ) break;;
2086  esac
2087done
2088else
2089  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092See \`config.log' for more details." >&2;}
2093   { (exit 1); exit 1; }; }
2094fi
2095
2096rm -f conftest$ac_cv_exeext
2097echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100rm -f conftest.$ac_ext
2101EXEEXT=$ac_cv_exeext
2102ac_exeext=$EXEEXT
2103echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105if test "${ac_cv_objext+set}" = set; then
2106  echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108  cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h.  */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
2113/* end confdefs.h.  */
2114
2115int
2116main ()
2117{
2118
2119  ;
2120  return 0;
2121}
2122_ACEOF
2123rm -f conftest.o conftest.obj
2124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125  (eval $ac_compile) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }; then
2129  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130  case $ac_file in
2131    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133       break;;
2134  esac
2135done
2136else
2137  echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
2140{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2141See \`config.log' for more details." >&5
2142echo "$as_me: error: cannot compute suffix of object files: cannot compile
2143See \`config.log' for more details." >&2;}
2144   { (exit 1); exit 1; }; }
2145fi
2146
2147rm -f conftest.$ac_cv_objext conftest.$ac_ext
2148fi
2149echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2150echo "${ECHO_T}$ac_cv_objext" >&6
2151OBJEXT=$ac_cv_objext
2152ac_objext=$OBJEXT
2153echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2154echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2155if test "${ac_cv_c_compiler_gnu+set}" = set; then
2156  echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158  cat >conftest.$ac_ext <<_ACEOF
2159/* confdefs.h.  */
2160_ACEOF
2161cat confdefs.h >>conftest.$ac_ext
2162cat >>conftest.$ac_ext <<_ACEOF
2163/* end confdefs.h.  */
2164
2165int
2166main ()
2167{
2168#ifndef __GNUC__
2169       choke me
2170#endif
2171
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176rm -f conftest.$ac_objext
2177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178  (eval $ac_compile) 2>conftest.er1
2179  ac_status=$?
2180  grep -v '^ *+' conftest.er1 >conftest.err
2181  rm -f conftest.er1
2182  cat conftest.err >&5
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); } &&
2185         { ac_try='test -z "$ac_c_werror_flag"
2186                         || test ! -s conftest.err'
2187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188  (eval $ac_try) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; } &&
2192         { ac_try='test -s conftest.$ac_objext'
2193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194  (eval $ac_try) 2>&5
2195  ac_status=$?
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); }; }; then
2198  ac_compiler_gnu=yes
2199else
2200  echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203ac_compiler_gnu=no
2204fi
2205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206ac_cv_c_compiler_gnu=$ac_compiler_gnu
2207
2208fi
2209echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2210echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2211GCC=`test $ac_compiler_gnu = yes && echo yes`
2212ac_test_CFLAGS=${CFLAGS+set}
2213ac_save_CFLAGS=$CFLAGS
2214CFLAGS="-g"
2215echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2216echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2217if test "${ac_cv_prog_cc_g+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.$ac_ext <<_ACEOF
2221/* confdefs.h.  */
2222_ACEOF
2223cat confdefs.h >>conftest.$ac_ext
2224cat >>conftest.$ac_ext <<_ACEOF
2225/* end confdefs.h.  */
2226
2227int
2228main ()
2229{
2230
2231  ;
2232  return 0;
2233}
2234_ACEOF
2235rm -f conftest.$ac_objext
2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237  (eval $ac_compile) 2>conftest.er1
2238  ac_status=$?
2239  grep -v '^ *+' conftest.er1 >conftest.err
2240  rm -f conftest.er1
2241  cat conftest.err >&5
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); } &&
2244         { ac_try='test -z "$ac_c_werror_flag"
2245                         || test ! -s conftest.err'
2246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247  (eval $ac_try) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; } &&
2251         { ac_try='test -s conftest.$ac_objext'
2252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253  (eval $ac_try) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; }; then
2257  ac_cv_prog_cc_g=yes
2258else
2259  echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262ac_cv_prog_cc_g=no
2263fi
2264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2265fi
2266echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2267echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2268if test "$ac_test_CFLAGS" = set; then
2269  CFLAGS=$ac_save_CFLAGS
2270elif test $ac_cv_prog_cc_g = yes; then
2271  if test "$GCC" = yes; then
2272    CFLAGS="-g -O2"
2273  else
2274    CFLAGS="-g"
2275  fi
2276else
2277  if test "$GCC" = yes; then
2278    CFLAGS="-O2"
2279  else
2280    CFLAGS=
2281  fi
2282fi
2283echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2284echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2285if test "${ac_cv_prog_cc_stdc+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  ac_cv_prog_cc_stdc=no
2289ac_save_CC=$CC
2290cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h.  */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h.  */
2296#include <stdarg.h>
2297#include <stdio.h>
2298#include <sys/types.h>
2299#include <sys/stat.h>
2300/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2301struct buf { int x; };
2302FILE * (*rcsopen) (struct buf *, struct stat *, int);
2303static char *e (p, i)
2304     char **p;
2305     int i;
2306{
2307  return p[i];
2308}
2309static char *f (char * (*g) (char **, int), char **p, ...)
2310{
2311  char *s;
2312  va_list v;
2313  va_start (v,p);
2314  s = g (p, va_arg (v,int));
2315  va_end (v);
2316  return s;
2317}
2318
2319/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2320   function prototypes and stuff, but not '\xHH' hex character constants.
2321   These don't provoke an error unfortunately, instead are silently treated
2322   as 'x'.  The following induces an error, until -std1 is added to get
2323   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2324   array size at least.  It's necessary to write '\x00'==0 to get something
2325   that's true only with -std1.  */
2326int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2327
2328int test (int i, double x);
2329struct s1 {int (*f) (int a);};
2330struct s2 {int (*f) (double a);};
2331int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2332int argc;
2333char **argv;
2334int
2335main ()
2336{
2337return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342# Don't try gcc -ansi; that turns off useful extensions and
2343# breaks some systems' header files.
2344# AIX                   -qlanglvl=ansi
2345# Ultrix and OSF/1      -std1
2346# HP-UX 10.20 and later -Ae
2347# HP-UX older versions  -Aa -D_HPUX_SOURCE
2348# SVR4                  -Xc -D__EXTENSIONS__
2349for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2350do
2351  CC="$ac_save_CC $ac_arg"
2352  rm -f conftest.$ac_objext
2353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354  (eval $ac_compile) 2>conftest.er1
2355  ac_status=$?
2356  grep -v '^ *+' conftest.er1 >conftest.err
2357  rm -f conftest.er1
2358  cat conftest.err >&5
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } &&
2361         { ac_try='test -z "$ac_c_werror_flag"
2362                         || test ! -s conftest.err'
2363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364  (eval $ac_try) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; } &&
2368         { ac_try='test -s conftest.$ac_objext'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; }; then
2374  ac_cv_prog_cc_stdc=$ac_arg
2375break
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380fi
2381rm -f conftest.err conftest.$ac_objext
2382done
2383rm -f conftest.$ac_ext conftest.$ac_objext
2384CC=$ac_save_CC
2385
2386fi
2387
2388case "x$ac_cv_prog_cc_stdc" in
2389  x|xno)
2390    echo "$as_me:$LINENO: result: none needed" >&5
2391echo "${ECHO_T}none needed" >&6 ;;
2392  *)
2393    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2394echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2395    CC="$CC $ac_cv_prog_cc_stdc" ;;
2396esac
2397
2398# Some people use a C++ compiler to compile C.  Since we use `exit',
2399# in C++ we need to declare it.  In case someone uses the same compiler
2400# for both compiling C and C++ we need to have the C++ compiler decide
2401# the declaration of exit, since it's the most demanding environment.
2402cat >conftest.$ac_ext <<_ACEOF
2403#ifndef __cplusplus
2404  choke me
2405#endif
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409  (eval $ac_compile) 2>conftest.er1
2410  ac_status=$?
2411  grep -v '^ *+' conftest.er1 >conftest.err
2412  rm -f conftest.er1
2413  cat conftest.err >&5
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); } &&
2416         { ac_try='test -z "$ac_c_werror_flag"
2417                         || test ! -s conftest.err'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; } &&
2423         { ac_try='test -s conftest.$ac_objext'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; }; then
2429  for ac_declaration in \
2430   '' \
2431   'extern "C" void std::exit (int) throw (); using std::exit;' \
2432   'extern "C" void std::exit (int); using std::exit;' \
2433   'extern "C" void exit (int) throw ();' \
2434   'extern "C" void exit (int);' \
2435   'void exit (int);'
2436do
2437  cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h.  */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h.  */
2443$ac_declaration
2444#include <stdlib.h>
2445int
2446main ()
2447{
2448exit (42);
2449  ;
2450  return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455  (eval $ac_compile) 2>conftest.er1
2456  ac_status=$?
2457  grep -v '^ *+' conftest.er1 >conftest.err
2458  rm -f conftest.er1
2459  cat conftest.err >&5
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); } &&
2462         { ac_try='test -z "$ac_c_werror_flag"
2463                         || test ! -s conftest.err'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; } &&
2469         { ac_try='test -s conftest.$ac_objext'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; }; then
2475  :
2476else
2477  echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480continue
2481fi
2482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483  cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h.  */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h.  */
2489$ac_declaration
2490int
2491main ()
2492{
2493exit (42);
2494  ;
2495  return 0;
2496}
2497_ACEOF
2498rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500  (eval $ac_compile) 2>conftest.er1
2501  ac_status=$?
2502  grep -v '^ *+' conftest.er1 >conftest.err
2503  rm -f conftest.er1
2504  cat conftest.err >&5
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); } &&
2507         { ac_try='test -z "$ac_c_werror_flag"
2508                         || test ! -s conftest.err'
2509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510  (eval $ac_try) 2>&5
2511  ac_status=$?
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); }; } &&
2514         { ac_try='test -s conftest.$ac_objext'
2515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516  (eval $ac_try) 2>&5
2517  ac_status=$?
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); }; }; then
2520  break
2521else
2522  echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525fi
2526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527done
2528rm -f conftest*
2529if test -n "$ac_declaration"; then
2530  echo '#ifdef __cplusplus' >>confdefs.h
2531  echo $ac_declaration      >>confdefs.h
2532  echo '#endif'             >>confdefs.h
2533fi
2534
2535else
2536  echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539fi
2540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547if test -z "$CC" ; then
2548  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2549echo "$as_me: error: Failed to find a C compiler!" >&2;}
2550   { (exit 1); exit 1; }; }
2551fi
2552# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2553case "$CC" in
2554  cl* | */cl*)
2555    if test "$ac_cv_prog_cc_g" = yes ; then
2556      ac_cv_prog_cc_g=no
2557      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2558echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2559    fi ;;
2560esac
2561CFLAGS="$save_cflags"
2562
2563# Check if a project specific CFLAGS variable has been set
2564if test x$COIN_PRJCT != x; then
2565  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2566  if test x$coin_tmp = xset; then
2567    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2568  fi
2569fi
2570
2571if test x"$CFLAGS" = x; then
2572
2573  coin_add_cflags=
2574  coin_opt_cflags=
2575  coin_dbg_cflags=
2576  coin_warn_cflags=
2577
2578  if test "$GCC" = "yes"; then
2579    case "$CC" in
2580      icc* | */icc*)
2581        ;;
2582      *)
2583        coin_opt_cflags="-O3 -fomit-frame-pointer"
2584        coin_add_cflags="-pipe"
2585        coin_dbg_cflags="-g"
2586        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2587        if test "$enable_doscompile" = yes; then
2588          case $build in
2589            *-cygwin*)
2590              CFLAGS="-mno-cygwin"
2591              cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h.  */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h.  */
2597
2598int
2599main ()
2600{
2601int i=0; i++;
2602  ;
2603  return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext conftest$ac_exeext
2607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2608  (eval $ac_link) 2>conftest.er1
2609  ac_status=$?
2610  grep -v '^ *+' conftest.er1 >conftest.err
2611  rm -f conftest.er1
2612  cat conftest.err >&5
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); } &&
2615         { ac_try='test -z "$ac_c_werror_flag"
2616                         || test ! -s conftest.err'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; } &&
2622         { ac_try='test -s conftest$ac_exeext'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; }; then
2628  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2629else
2630  echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633fi
2634rm -f conftest.err conftest.$ac_objext \
2635      conftest$ac_exeext conftest.$ac_ext
2636              CFLAGS=
2637            ;;
2638          esac
2639        fi
2640    esac
2641  fi
2642  if test -z "$coin_opt_cflags"; then
2643    case $build in
2644      *-cygwin* | *-mingw*)
2645        case "$CC" in
2646          cl* | */cl*)
2647            coin_opt_cflags='-O2'
2648            coin_add_cflags='-nologo'
2649            coin_dbg_cflags='-Yd'
2650            ;;
2651        esac
2652        ;;
2653      *-linux-*)
2654        case "$CC" in
2655          icc* | */icc*)
2656            coin_opt_cflags="-O3 -ip"
2657            coin_add_cflags=""
2658            coin_dbg_cflags="-g"
2659            # Check if -i_dynamic is necessary (for new glibc library)
2660            CFLAGS=
2661            cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h.  */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h.  */
2667
2668int
2669main ()
2670{
2671int i=0; i++;
2672  ;
2673  return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext conftest$ac_exeext
2677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2678  (eval $ac_link) 2>conftest.er1
2679  ac_status=$?
2680  grep -v '^ *+' conftest.er1 >conftest.err
2681  rm -f conftest.er1
2682  cat conftest.err >&5
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); } &&
2685         { ac_try='test -z "$ac_c_werror_flag"
2686                         || test ! -s conftest.err'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; } &&
2692         { ac_try='test -s conftest$ac_exeext'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; }; then
2698  :
2699else
2700  echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703coin_add_cflags="-i_dynamic $coin_add_cflags"
2704fi
2705rm -f conftest.err conftest.$ac_objext \
2706      conftest$ac_exeext conftest.$ac_ext
2707            ;;
2708          pgcc* | */pgcc*)
2709            coin_opt_cflags="-fast"
2710            coin_add_cflags="-Kieee -pc 64"
2711            coin_dbg_cflags="-g"
2712            ;;
2713        esac
2714        ;;
2715      *-ibm-*)
2716        case "$CC" in
2717          xlc* | */xlc* | mpxlc* | */mpxlc*)
2718            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2719            coin_add_cflags="-bmaxdata:0x80000000"
2720            coin_dbg_cflags="-g"
2721          ;;
2722        esac
2723        ;;
2724      *-hp-*)
2725        coin_opt_cflags="-O"
2726        coin_add_cflags="-Ae"
2727        coin_dbg_cflags="-g"
2728        ;;
2729      *-sun-*)
2730        coin_opt_cflags="-xO4"
2731        coin_dbg_cflags="-g"
2732        ;;
2733      *-sgi-*)
2734        coin_opt_cflags="-O -OPT:Olimit=0"
2735        coin_dbg_cflags="-g"
2736        ;;
2737    esac
2738  fi
2739
2740  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2741    coin_dbg_cflags="-g"
2742  fi
2743
2744  if test -z "$coin_opt_cflags"; then
2745    # Try if -O option works if nothing else is set
2746    CFLAGS="-O"
2747    cat >conftest.$ac_ext <<_ACEOF
2748/* confdefs.h.  */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h.  */
2753
2754int
2755main ()
2756{
2757int i=0; i++;
2758  ;
2759  return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext conftest$ac_exeext
2763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2764  (eval $ac_link) 2>conftest.er1
2765  ac_status=$?
2766  grep -v '^ *+' conftest.er1 >conftest.err
2767  rm -f conftest.er1
2768  cat conftest.err >&5
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); } &&
2771         { ac_try='test -z "$ac_c_werror_flag"
2772                         || test ! -s conftest.err'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; } &&
2778         { ac_try='test -s conftest$ac_exeext'
2779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780  (eval $ac_try) 2>&5
2781  ac_status=$?
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); }; }; then
2784  coin_opt_cflags="-O"
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext \
2791      conftest$ac_exeext conftest.$ac_ext
2792  fi
2793
2794  # if PM doesn't want the warning messages, take them out
2795  if test x"$coin_skip_warn_cflags" = xyes; then
2796    coin_warn_cflags=
2797  fi
2798
2799  if test x${DBG_CFLAGS+set} != xset; then
2800    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2801  fi
2802  if test x${OPT_CFLAGS+set} != xset; then
2803    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2804  fi
2805
2806  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2807  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2808
2809  if test "$coin_debug_compile" = "true"; then
2810    CFLAGS="$DBG_CFLAGS"
2811  else
2812    CFLAGS="$OPT_CFLAGS"
2813  fi
2814else
2815  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2816  if test x${DBG_CFLAGS+set} != xset; then
2817    DBG_CFLAGS="$CFLAGS"
2818  fi
2819  if test x${OPT_CFLAGS+set} != xset; then
2820    OPT_CFLAGS="$CFLAGS"
2821  fi
2822fi
2823
2824# Check if user wants to have additional CFLAGS options
2825
2826if test x"$ADD_CFLAGS" != x; then
2827  CFLAGS="$CFLAGS $ADD_CFLAGS"
2828fi
2829
2830# Try if CFLAGS works
2831save_CFLAGS="$CFLAGS"
2832cat >conftest.$ac_ext <<_ACEOF
2833/* confdefs.h.  */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h.  */
2838
2839int
2840main ()
2841{
2842int i=0; i++;
2843  ;
2844  return 0;
2845}
2846_ACEOF
2847rm -f conftest.$ac_objext conftest$ac_exeext
2848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2849  (eval $ac_link) 2>conftest.er1
2850  ac_status=$?
2851  grep -v '^ *+' conftest.er1 >conftest.err
2852  rm -f conftest.er1
2853  cat conftest.err >&5
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); } &&
2856         { ac_try='test -z "$ac_c_werror_flag"
2857                         || test ! -s conftest.err'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; } &&
2863         { ac_try='test -s conftest$ac_exeext'
2864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865  (eval $ac_try) 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); }; }; then
2869  :
2870else
2871  echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874CFLAGS=
2875fi
2876rm -f conftest.err conftest.$ac_objext \
2877      conftest$ac_exeext conftest.$ac_ext
2878if test -z "$CFLAGS"; then
2879  { 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
2880echo "$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;}
2881  CFLAGS='-O'
2882  cat >conftest.$ac_ext <<_ACEOF
2883/* confdefs.h.  */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h.  */
2888
2889int
2890main ()
2891{
2892int i=0; i++;
2893  ;
2894  return 0;
2895}
2896_ACEOF
2897rm -f conftest.$ac_objext conftest$ac_exeext
2898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2899  (eval $ac_link) 2>conftest.er1
2900  ac_status=$?
2901  grep -v '^ *+' conftest.er1 >conftest.err
2902  rm -f conftest.er1
2903  cat conftest.err >&5
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); } &&
2906         { ac_try='test -z "$ac_c_werror_flag"
2907                         || test ! -s conftest.err'
2908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909  (eval $ac_try) 2>&5
2910  ac_status=$?
2911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912  (exit $ac_status); }; } &&
2913         { ac_try='test -s conftest$ac_exeext'
2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915  (eval $ac_try) 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }; }; then
2919  :
2920else
2921  echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924CFLAGS=
2925fi
2926rm -f conftest.err conftest.$ac_objext \
2927      conftest$ac_exeext conftest.$ac_ext
2928  if test -z "$CFLAGS"; then
2929    { 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
2930echo "$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;}
2931  fi
2932fi
2933
2934{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2935echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2936
2937
2938if test x"$MPICC" = x; then :; else
2939  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2940echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2941  CC="$MPICC"
2942fi
2943
2944# Correct ADDLIBS initialization if we are using the MS compiler
2945case "$CC" in
2946  cl* | */cl*)
2947    ADDLIBS=
2948    case $build in
2949  *-mingw*)
2950    if test "${LD+set}" = set; then :; else
2951      LD=link
2952    fi
2953    ;;
2954esac
2955
2956    ;;
2957esac
2958
2959ac_ext=c
2960ac_cpp='$CPP $CPPFLAGS'
2961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964
2965
2966case $build in
2967  *-cygwin* | *-mingw*)
2968     coin_f77_comps="gfortran g77 ifort fl32" ;;
2969  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
2970esac
2971
2972
2973
2974
2975
2976
2977ac_ext=f
2978ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2979ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2981
2982
2983
2984
2985
2986
2987coin_has_f77=yes
2988
2989save_fflags="$FFLAGS"
2990comps="$coin_f77_comps" #This comes from AC_COIN_F77_COMPS
2991
2992# We delete the cached value, since the test might not have been
2993# performed with our choice of compilers earlier
2994$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
2995ac_ext=f
2996ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2997ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2999if test -n "$ac_tool_prefix"; then
3000  for ac_prog in $comps
3001  do
3002    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006if test "${ac_cv_prog_F77+set}" = set; then
3007  echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009  if test -n "$F77"; then
3010  ac_cv_prog_F77="$F77" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017  for ac_exec_ext in '' $ac_executable_extensions; do
3018  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024done
3025
3026fi
3027fi
3028F77=$ac_cv_prog_F77
3029if test -n "$F77"; then
3030  echo "$as_me:$LINENO: result: $F77" >&5
3031echo "${ECHO_T}$F77" >&6
3032else
3033  echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035fi
3036
3037    test -n "$F77" && break
3038  done
3039fi
3040if test -z "$F77"; then
3041  ac_ct_F77=$F77
3042  for ac_prog in $comps
3043do
3044  # Extract the first word of "$ac_prog", so it can be a program name with args.
3045set dummy $ac_prog; ac_word=$2
3046echo "$as_me:$LINENO: checking for $ac_word" >&5
3047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3048if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3049  echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051  if test -n "$ac_ct_F77"; then
3052  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057  IFS=$as_save_IFS
3058  test -z "$as_dir" && as_dir=.
3059  for ac_exec_ext in '' $ac_executable_extensions; do
3060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061    ac_cv_prog_ac_ct_F77="$ac_prog"
3062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063    break 2
3064  fi
3065done
3066done
3067
3068fi
3069fi
3070ac_ct_F77=$ac_cv_prog_ac_ct_F77
3071if test -n "$ac_ct_F77"; then
3072  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3073echo "${ECHO_T}$ac_ct_F77" >&6
3074else
3075  echo "$as_me:$LINENO: result: no" >&5
3076echo "${ECHO_T}no" >&6
3077fi
3078
3079  test -n "$ac_ct_F77" && break
3080done
3081
3082  F77=$ac_ct_F77
3083fi
3084
3085
3086# Provide some information about the compiler.
3087echo "$as_me:3087:" \
3088     "checking for Fortran 77 compiler version" >&5
3089ac_compiler=`set X $ac_compile; echo $2`
3090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3091  (eval $ac_compiler --version </dev/null >&5) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }
3095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3096  (eval $ac_compiler -v </dev/null >&5) 2>&5
3097  ac_status=$?
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); }
3100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3101  (eval $ac_compiler -V </dev/null >&5) 2>&5
3102  ac_status=$?
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); }
3105rm -f a.out
3106
3107# If we don't use `.F' as extension, the preprocessor is not run on the
3108# input file.  (Note that this only needs to work for GNU compilers.)
3109ac_save_ext=$ac_ext
3110ac_ext=F
3111echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3112echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3113if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3114  echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
3116  cat >conftest.$ac_ext <<_ACEOF
3117      program main
3118#ifndef __GNUC__
3119       choke me
3120#endif
3121
3122      end
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126  (eval $ac_compile) 2>conftest.er1
3127  ac_status=$?
3128  grep -v '^ *+' conftest.er1 >conftest.err
3129  rm -f conftest.er1
3130  cat conftest.err >&5
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); } &&
3133         { ac_try='test -z "$ac_f77_werror_flag"
3134                         || test ! -s conftest.err'
3135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136  (eval $ac_try) 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }; } &&
3140         { ac_try='test -s conftest.$ac_objext'
3141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142  (eval $ac_try) 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; }; then
3146  ac_compiler_gnu=yes
3147else
3148  echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151ac_compiler_gnu=no
3152fi
3153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3154ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3155
3156fi
3157echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3158echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3159ac_ext=$ac_save_ext
3160ac_test_FFLAGS=${FFLAGS+set}
3161ac_save_FFLAGS=$FFLAGS
3162FFLAGS=
3163echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3164echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3165if test "${ac_cv_prog_f77_g+set}" = set; then
3166  echo $ECHO_N "(cached) $ECHO_C" >&6
3167else
3168  FFLAGS=-g
3169cat >conftest.$ac_ext <<_ACEOF
3170      program main
3171
3172      end
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176  (eval $ac_compile) 2>conftest.er1
3177  ac_status=$?
3178  grep -v '^ *+' conftest.er1 >conftest.err
3179  rm -f conftest.er1
3180  cat conftest.err >&5
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); } &&
3183         { ac_try='test -z "$ac_f77_werror_flag"
3184                         || test ! -s conftest.err'
3185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186  (eval $ac_try) 2>&5
3187  ac_status=$?
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }; } &&
3190         { ac_try='test -s conftest.$ac_objext'
3191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192  (eval $ac_try) 2>&5
3193  ac_status=$?
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); }; }; then
3196  ac_cv_prog_f77_g=yes
3197else
3198  echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201ac_cv_prog_f77_g=no
3202fi
3203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3204
3205fi
3206echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3207echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3208if test "$ac_test_FFLAGS" = set; then
3209  FFLAGS=$ac_save_FFLAGS
3210elif test $ac_cv_prog_f77_g = yes; then
3211  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3212    FFLAGS="-g -O2"
3213  else
3214    FFLAGS="-g"
3215  fi
3216else
3217  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3218    FFLAGS="-O2"
3219  else
3220    FFLAGS=
3221  fi
3222fi
3223
3224G77=`test $ac_compiler_gnu = yes && echo yes`
3225ac_ext=f
3226ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3227ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3229
3230if test -z "$F77" ; then
3231  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3232echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3233fi
3234FFLAGS="$save_fflags"
3235
3236# Check if a project specific FFLAGS variable has been set
3237if test x$COIN_PRJCT != x; then
3238  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3239  if test x$coin_tmp = xset; then
3240    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3241  fi
3242fi
3243
3244if test x"$FFLAGS" = x; then
3245
3246  coin_add_fflags=
3247  coin_opt_fflags=
3248  coin_dbg_fflags=
3249  coin_warn_fflags=
3250
3251  if test "$G77" = "yes"; then
3252    coin_opt_fflags="-O3 -fomit-frame-pointer"
3253    coin_add_fflags="-pipe"
3254    coin_dbg_fflags="-g"
3255    if test "$enable_doscompile" = yes; then
3256      case $build in
3257        *-cygwin*)
3258          FFLAGS="-mno-cygwin"
3259          cat >conftest.$ac_ext <<_ACEOF
3260      program main
3261      write(*,*) 'Hello world'
3262      end
3263_ACEOF
3264rm -f conftest.$ac_objext conftest$ac_exeext
3265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3266  (eval $ac_link) 2>conftest.er1
3267  ac_status=$?
3268  grep -v '^ *+' conftest.er1 >conftest.err
3269  rm -f conftest.er1
3270  cat conftest.err >&5
3271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272  (exit $ac_status); } &&
3273         { ac_try='test -z "$ac_f77_werror_flag"
3274                         || test ! -s conftest.err'
3275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276  (eval $ac_try) 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }; } &&
3280         { ac_try='test -s conftest$ac_exeext'
3281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282  (eval $ac_try) 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }; }; then
3286  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3287else
3288  echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291fi
3292rm -f conftest.err conftest.$ac_objext \
3293      conftest$ac_exeext conftest.$ac_ext
3294          FFLAGS=
3295        ;;
3296      esac
3297    fi
3298  else
3299    case $build in
3300      *-cygwin* | *-mingw*)
3301        case $F77 in
3302          ifort* | */ifort*)
3303            coin_opt_fflags='-O3'
3304            coin_add_fflags='-nologo -MT'
3305            coin_dbg_fflags='-debug'
3306          ;;
3307        esac
3308        ;;
3309      *-linux-*)
3310        case $F77 in
3311          ifc* | */ifc* | ifort* | */ifort*)
3312            coin_opt_fflags="-O3 -ip"
3313            coin_add_fflags="-cm -w90 -w95"
3314            coin_dbg_fflags="-g -CA -CB -CS"
3315            # Check if -i_dynamic is necessary (for new glibc library)
3316            FFLAGS=
3317            cat >conftest.$ac_ext <<_ACEOF
3318      program main
3319      write(*,*) 'Hello world'
3320      end
3321_ACEOF
3322rm -f conftest.$ac_objext conftest$ac_exeext
3323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3324  (eval $ac_link) 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } &&
3331         { ac_try='test -z "$ac_f77_werror_flag"
3332                         || test ! -s conftest.err'
3333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334  (eval $ac_try) 2>&5
3335  ac_status=$?
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); }; } &&
3338         { ac_try='test -s conftest$ac_exeext'
3339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340  (eval $ac_try) 2>&5
3341  ac_status=$?
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); }; }; then
3344  :
3345else
3346  echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349coin_add_fflags="-i_dynamic $coin_add_fflags"
3350fi
3351rm -f conftest.err conftest.$ac_objext \
3352      conftest$ac_exeext conftest.$ac_ext
3353            ;;
3354          pgf77* | */pgf77* | pgf90* | */pgf90*)
3355            coin_opt_fflags="-fast"
3356            coin_add_fflags="-Kieee -pc 64"
3357            coin_dbg_fflags="-g"
3358          ;;
3359        esac
3360        ;;
3361      *-ibm-*)
3362        case "$F77" in
3363          xlf* | */xlf* | mpxlf* | */mpxlf* )
3364            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3365            coin_add_fflags="-bmaxdata:0x80000000"
3366            coin_dbg_fflags="-g -C"
3367            ;;
3368        esac
3369        ;;
3370      *-hp-*)
3371        coin_opt_fflags="+O3"
3372        coin_add_fflags="+U77"
3373        coin_dbg_fflags="-C -g"
3374        ;;
3375      *-sun-*)
3376        coin_opt_fflags="-O4"
3377        coin_dbg_fflags="-g"
3378        ;;
3379      *-sgi-*)
3380        coin_opt_fflags="-O5 -OPT:Olimit=0"
3381        coin_dbg_fflags="-g"
3382        ;;
3383    esac
3384  fi
3385
3386  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3387    coin_dbg_fflags="-g"
3388  fi
3389
3390  if test -z "$coin_opt_fflags"; then
3391    # Try if -O option works if nothing else is set
3392    FFLAGS=-O
3393    cat >conftest.$ac_ext <<_ACEOF
3394      program main
3395      integer i
3396      end
3397_ACEOF
3398rm -f conftest.$ac_objext conftest$ac_exeext
3399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3400  (eval $ac_link) 2>conftest.er1
3401  ac_status=$?
3402  grep -v '^ *+' conftest.er1 >conftest.err
3403  rm -f conftest.er1
3404  cat conftest.err >&5
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); } &&
3407         { ac_try='test -z "$ac_f77_werror_flag"
3408                         || test ! -s conftest.err'
3409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410  (eval $ac_try) 2>&5
3411  ac_status=$?
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); }; } &&
3414         { ac_try='test -s conftest$ac_exeext'
3415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416  (eval $ac_try) 2>&5
3417  ac_status=$?
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); }; }; then
3420  coin_opt_fflags="-O"
3421else
3422  echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425fi
3426rm -f conftest.err conftest.$ac_objext \
3427      conftest$ac_exeext conftest.$ac_ext
3428  fi
3429
3430  # if PM doesn't want the warning messages, take them out
3431  if test x"$coin_skip_warn_fflags" = xyes; then
3432    coin_warn_fflags=
3433  fi
3434
3435  if test x${DBG_FFLAGS+set} != xset; then
3436    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3437  fi
3438  if test x${OPT_FFLAGS+set} != xset; then
3439    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3440  fi
3441
3442  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3443  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3444
3445  if test "$coin_debug_compile" = "true"; then
3446    FFLAGS="$DBG_FFLAGS"
3447  else
3448    FFLAGS="$OPT_FFLAGS"
3449  fi
3450else
3451  FFLAGS="$FFLAGS $ADD_FFLAGS"
3452  if test x${DBG_FFLAGS+set} != xset; then
3453    DBG_FFLAGS="$FFLAGS"
3454  fi
3455  if test x${OPT_FFLAGS+set} != xset; then
3456    OPT_FFLAGS="$FFLAGS"
3457  fi
3458fi
3459
3460# Try if FFLAGS works
3461cat >conftest.$ac_ext <<_ACEOF
3462      program main
3463      integer i
3464      end
3465_ACEOF
3466rm -f conftest.$ac_objext conftest$ac_exeext
3467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3468  (eval $ac_link) 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } &&
3475         { ac_try='test -z "$ac_f77_werror_flag"
3476                         || test ! -s conftest.err'
3477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478  (eval $ac_try) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }; } &&
3482         { ac_try='test -s conftest$ac_exeext'
3483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484  (eval $ac_try) 2>&5
3485  ac_status=$?
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); }; }; then
3488  :
3489else
3490  echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493FFLAGS=
3494fi
3495rm -f conftest.err conftest.$ac_objext \
3496      conftest$ac_exeext conftest.$ac_ext
3497if test -z "$FFLAGS"; then
3498  { 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
3499echo "$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;}
3500  FFLAGS='-O'
3501  cat >conftest.$ac_ext <<_ACEOF
3502      program main
3503      integer i
3504      end
3505_ACEOF
3506rm -f conftest.$ac_objext conftest$ac_exeext
3507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508  (eval $ac_link) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } &&
3515         { ac_try='test -z "$ac_f77_werror_flag"
3516                         || test ! -s conftest.err'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; } &&
3522         { ac_try='test -s conftest$ac_exeext'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; }; then
3528  :
3529else
3530  echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533FFLAGS=
3534fi
3535rm -f conftest.err conftest.$ac_objext \
3536      conftest$ac_exeext conftest.$ac_ext
3537  if test -z "$FFLAGS"; then
3538    { 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
3539echo "$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;}
3540  fi
3541fi
3542
3543{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3544echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3545
3546
3547if test x"$MPIF77" = x; then :; else
3548  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3549echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3550  F77="$MPIF77"
3551fi
3552
3553case "$F77" in
3554  ifort*)
3555    case $build in
3556  *-mingw*)
3557    if test "${LD+set}" = set; then :; else
3558      LD=link
3559    fi
3560    ;;
3561esac
3562
3563    ;;
3564esac
3565
3566ac_ext=c
3567ac_cpp='$CPP $CPPFLAGS'
3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
3572
3573
3574# Initialize automake
3575{
3576
3577
3578
3579# START
3580
3581# On Cygwin, building DLLs doesn't work
3582case $build in
3583  *-cygwin*)
3584    coin_disable_shared=yes
3585    platform=Cygwin
3586  ;;
3587  *-mingw*)
3588    coin_disable_shared=yes
3589    platform="Msys"
3590#    case "$CXX" in
3591#      cl*)
3592#        coin_disable_shared=yes
3593#        platform="Msys with cl"
3594#    ;;
3595#    esac
3596  ;;
3597esac
3598if test x"$coin_disable_shared" = xyes; then
3599  if test x"$enable_shared" = xyes; then
3600    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3601echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3602  fi
3603  enable_shared=no
3604fi
3605# By default, we only want the shared objects to be compiled
3606# Check whether --enable-static or --disable-static was given.
3607if test "${enable_static+set}" = set; then
3608  enableval="$enable_static"
3609  p=${PACKAGE-default}
3610    case $enableval in
3611    yes) enable_static=yes ;;
3612    no) enable_static=no ;;
3613    *)
3614     enable_static=no
3615      # Look at the argument we got.  We use all the common list separators.
3616      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617      for pkg in $enableval; do
3618        IFS="$lt_save_ifs"
3619        if test "X$pkg" = "X$p"; then
3620          enable_static=yes
3621        fi
3622      done
3623      IFS="$lt_save_ifs"
3624      ;;
3625    esac
3626else
3627  enable_static=no
3628fi;
3629
3630
3631
3632
3633# Initialize automake
3634echo "$as_me:$LINENO: checking for egrep" >&5
3635echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3636if test "${ac_cv_prog_egrep+set}" = set; then
3637  echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3640    then ac_cv_prog_egrep='grep -E'
3641    else ac_cv_prog_egrep='egrep'
3642    fi
3643fi
3644echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3645echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3646 EGREP=$ac_cv_prog_egrep
3647
3648
3649am__api_version="1.9"
3650# Find a good install program.  We prefer a C program (faster),
3651# so one script is as good as another.  But avoid the broken or
3652# incompatible versions:
3653# SysV /etc/install, /usr/sbin/install
3654# SunOS /usr/etc/install
3655# IRIX /sbin/install
3656# AIX /bin/install
3657# AmigaOS /C/install, which installs bootblocks on floppy discs
3658# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3659# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3660# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3661# OS/2's system install, which has a completely different semantic
3662# ./install, which can be erroneously created by make from ./install.sh.
3663echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3664echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3665if test -z "$INSTALL"; then
3666if test "${ac_cv_path_install+set}" = set; then
3667  echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672  IFS=$as_save_IFS
3673  test -z "$as_dir" && as_dir=.
3674  # Account for people who put trailing slashes in PATH elements.
3675case $as_dir/ in
3676  ./ | .// | /cC/* | \
3677  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3678  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3679  /usr/ucb/* ) ;;
3680  *)
3681    # OSF1 and SCO ODT 3.0 have their own names for install.
3682    # Don't use installbsd from OSF since it installs stuff as root
3683    # by default.
3684    for ac_prog in ginstall scoinst install; do
3685      for ac_exec_ext in '' $ac_executable_extensions; do
3686        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3687          if test $ac_prog = install &&
3688            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3689            # AIX install.  It has an incompatible calling convention.
3690            :
3691          elif test $ac_prog = install &&
3692            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3693            # program-specific install script used by HP pwplus--don't use.
3694            :
3695          else
3696            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3697            break 3
3698          fi
3699        fi
3700      done
3701    done
3702    ;;
3703esac
3704done
3705
3706
3707fi
3708  if test "${ac_cv_path_install+set}" = set; then
3709    INSTALL=$ac_cv_path_install
3710  else
3711    # As a last resort, use the slow shell script.  We don't cache a
3712    # path for INSTALL within a source directory, because that will
3713    # break other packages using the cache if that directory is
3714    # removed, or if the path is relative.
3715    INSTALL=$ac_install_sh
3716  fi
3717fi
3718echo "$as_me:$LINENO: result: $INSTALL" >&5
3719echo "${ECHO_T}$INSTALL" >&6
3720
3721# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3722# It thinks the first close brace ends the variable substitution.
3723test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3724
3725test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3726
3727test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3728
3729echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3730echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3731# Just in case
3732sleep 1
3733echo timestamp > conftest.file
3734# Do `set' in a subshell so we don't clobber the current shell's
3735# arguments.  Must try -L first in case configure is actually a
3736# symlink; some systems play weird games with the mod time of symlinks
3737# (eg FreeBSD returns the mod time of the symlink's containing
3738# directory).
3739if (
3740   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3741   if test "$*" = "X"; then
3742      # -L didn't work.
3743      set X `ls -t $srcdir/configure conftest.file`
3744   fi
3745   rm -f conftest.file
3746   if test "$*" != "X $srcdir/configure conftest.file" \
3747      && test "$*" != "X conftest.file $srcdir/configure"; then
3748
3749      # If neither matched, then we have a broken ls.  This can happen
3750      # if, for instance, CONFIG_SHELL is bash and it inherits a
3751      # broken ls alias from the environment.  This has actually
3752      # happened.  Such a system could not be considered "sane".
3753      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3754alias in your environment" >&5
3755echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3756alias in your environment" >&2;}
3757   { (exit 1); exit 1; }; }
3758   fi
3759
3760   test "$2" = conftest.file
3761   )
3762then
3763   # Ok.
3764   :
3765else
3766   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3767Check your system clock" >&5
3768echo "$as_me: error: newly created file is older than distributed files!
3769Check your system clock" >&2;}
3770   { (exit 1); exit 1; }; }
3771fi
3772echo "$as_me:$LINENO: result: yes" >&5
3773echo "${ECHO_T}yes" >&6
3774test "$program_prefix" != NONE &&
3775  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3776# Use a double $ so make ignores it.
3777test "$program_suffix" != NONE &&
3778  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3779# Double any \ or $.  echo might interpret backslashes.
3780# By default was `s,x,x', remove it if useless.
3781cat <<\_ACEOF >conftest.sed
3782s/[\\$]/&&/g;s/;s,x,x,$//
3783_ACEOF
3784program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3785rm conftest.sed
3786
3787# expand $ac_aux_dir to an absolute path
3788am_aux_dir=`cd $ac_aux_dir && pwd`
3789
3790test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3791# Use eval to expand $SHELL
3792if eval "$MISSING --run true"; then
3793  am_missing_run="$MISSING --run "
3794else
3795  am_missing_run=
3796  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3797echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3798fi
3799
3800if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3801  # We used to keeping the `.' as first argument, in order to
3802  # allow $(mkdir_p) to be used without argument.  As in
3803  #   $(mkdir_p) $(somedir)
3804  # where $(somedir) is conditionally defined.  However this is wrong
3805  # for two reasons:
3806  #  1. if the package is installed by a user who cannot write `.'
3807  #     make install will fail,
3808  #  2. the above comment should most certainly read
3809  #     $(mkdir_p) $(DESTDIR)$(somedir)
3810  #     so it does not work when $(somedir) is undefined and
3811  #     $(DESTDIR) is not.
3812  #  To support the latter case, we have to write
3813  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3814  #  so the `.' trick is pointless.
3815  mkdir_p='mkdir -p --'
3816else
3817  # On NextStep and OpenStep, the `mkdir' command does not
3818  # recognize any option.  It will interpret all options as
3819  # directories to create, and then abort because `.' already
3820  # exists.
3821  for d in ./-p ./--version;
3822  do
3823    test -d $d && rmdir $d
3824  done
3825  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3826  if test -f "$ac_aux_dir/mkinstalldirs"; then
3827    mkdir_p='$(mkinstalldirs)'
3828  else
3829    mkdir_p='$(install_sh) -d'
3830  fi
3831fi
3832
3833for ac_prog in gawk mawk nawk awk
3834do
3835  # Extract the first word of "$ac_prog", so it can be a program name with args.
3836set dummy $ac_prog; ac_word=$2
3837echo "$as_me:$LINENO: checking for $ac_word" >&5
3838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839if test "${ac_cv_prog_AWK+set}" = set; then
3840  echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842  if test -n "$AWK"; then
3843  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3844else
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848  IFS=$as_save_IFS
3849  test -z "$as_dir" && as_dir=.
3850  for ac_exec_ext in '' $ac_executable_extensions; do
3851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852    ac_cv_prog_AWK="$ac_prog"
3853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3854    break 2
3855  fi
3856done
3857done
3858
3859fi
3860fi
3861AWK=$ac_cv_prog_AWK
3862if test -n "$AWK"; then
3863  echo "$as_me:$LINENO: result: $AWK" >&5
3864echo "${ECHO_T}$AWK" >&6
3865else
3866  echo "$as_me:$LINENO: result: no" >&5
3867echo "${ECHO_T}no" >&6
3868fi
3869
3870  test -n "$AWK" && break
3871done
3872
3873echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3874echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3875set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3876if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3877  echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879  cat >conftest.make <<\_ACEOF
3880all:
3881        @echo 'ac_maketemp="$(MAKE)"'
3882_ACEOF
3883# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3884eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3885if test -n "$ac_maketemp"; then
3886  eval ac_cv_prog_make_${ac_make}_set=yes
3887else
3888  eval ac_cv_prog_make_${ac_make}_set=no
3889fi
3890rm -f conftest.make
3891fi
3892if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3893  echo "$as_me:$LINENO: result: yes" >&5
3894echo "${ECHO_T}yes" >&6
3895  SET_MAKE=
3896else
3897  echo "$as_me:$LINENO: result: no" >&5
3898echo "${ECHO_T}no" >&6
3899  SET_MAKE="MAKE=${MAKE-make}"
3900fi
3901
3902rm -rf .tst 2>/dev/null
3903mkdir .tst 2>/dev/null
3904if test -d .tst; then
3905  am__leading_dot=.
3906else
3907  am__leading_dot=_
3908fi
3909rmdir .tst 2>/dev/null
3910
3911DEPDIR="${am__leading_dot}deps"
3912
3913          ac_config_commands="$ac_config_commands depfiles"
3914
3915
3916am_make=${MAKE-make}
3917cat > confinc << 'END'
3918am__doit:
3919        @echo done
3920.PHONY: am__doit
3921END
3922# If we don't find an include directive, just comment out the code.
3923echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3924echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3925am__include="#"
3926am__quote=
3927_am_result=none
3928# First try GNU make style include.
3929echo "include confinc" > confmf
3930# We grep out `Entering directory' and `Leaving directory'
3931# messages which can occur if `w' ends up in MAKEFLAGS.
3932# In particular we don't look at `^make:' because GNU make might
3933# be invoked under some other name (usually "gmake"), in which
3934# case it prints its new name instead of `make'.
3935if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3936   am__include=include
3937   am__quote=
3938   _am_result=GNU
3939fi
3940# Now try BSD make style include.
3941if test "$am__include" = "#"; then
3942   echo '.include "confinc"' > confmf
3943   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3944      am__include=.include
3945      am__quote="\""
3946      _am_result=BSD
3947   fi
3948fi
3949
3950
3951echo "$as_me:$LINENO: result: $_am_result" >&5
3952echo "${ECHO_T}$_am_result" >&6
3953rm -f confinc confmf
3954
3955# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3956if test "${enable_dependency_tracking+set}" = set; then
3957  enableval="$enable_dependency_tracking"
3958
3959fi;
3960if test "x$enable_dependency_tracking" != xno; then
3961  am_depcomp="$ac_aux_dir/depcomp"
3962  AMDEPBACKSLASH='\'
3963fi
3964
3965
3966if test "x$enable_dependency_tracking" != xno; then
3967  AMDEP_TRUE=
3968  AMDEP_FALSE='#'
3969else
3970  AMDEP_TRUE='#'
3971  AMDEP_FALSE=
3972fi
3973
3974
3975
3976
3977# Stuff for automake
3978# test to see if srcdir already configured
3979if test "`cd $srcdir && pwd`" != "`pwd`" &&
3980   test -f $srcdir/config.status; then
3981  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3982echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3983   { (exit 1); exit 1; }; }
3984fi
3985
3986# test whether we have cygpath
3987if test -z "$CYGPATH_W"; then
3988  if (cygpath --version) >/dev/null 2>/dev/null; then
3989    CYGPATH_W='cygpath -w'
3990  else
3991    CYGPATH_W=echo
3992  fi
3993fi
3994
3995
3996# Define the identity of the package.
3997 PACKAGE='thirdpartyblas'
3998 VERSION='0.0'
3999
4000
4001cat >>confdefs.h <<_ACEOF
4002#define PACKAGE "$PACKAGE"
4003_ACEOF
4004
4005
4006cat >>confdefs.h <<_ACEOF
4007#define VERSION "$VERSION"
4008_ACEOF
4009
4010# Some tools Automake needs.
4011
4012ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4013
4014
4015AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4016
4017
4018AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4019
4020
4021AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4022
4023
4024MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4025
4026install_sh=${install_sh-"$am_aux_dir/install-sh"}
4027
4028# Installed binaries are usually stripped using `strip' when the user
4029# run `make install-strip'.  However `strip' might not be the right
4030# tool to use in cross-compilation environments, therefore Automake
4031# will honor the `STRIP' environment variable to overrule this program.
4032if test "$cross_compiling" != no; then
4033  if test -n "$ac_tool_prefix"; then
4034  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4035set dummy ${ac_tool_prefix}strip; ac_word=$2
4036echo "$as_me:$LINENO: checking for $ac_word" >&5
4037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038if test "${ac_cv_prog_STRIP+set}" = set; then
4039  echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041  if test -n "$STRIP"; then
4042  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4043else
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047  IFS=$as_save_IFS
4048  test -z "$as_dir" && as_dir=.
4049  for ac_exec_ext in '' $ac_executable_extensions; do
4050  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053    break 2
4054  fi
4055done
4056done
4057
4058fi
4059fi
4060STRIP=$ac_cv_prog_STRIP
4061if test -n "$STRIP"; then
4062  echo "$as_me:$LINENO: result: $STRIP" >&5
4063echo "${ECHO_T}$STRIP" >&6
4064else
4065  echo "$as_me:$LINENO: result: no" >&5
4066echo "${ECHO_T}no" >&6
4067fi
4068
4069fi
4070if test -z "$ac_cv_prog_STRIP"; then
4071  ac_ct_STRIP=$STRIP
4072  # Extract the first word of "strip", so it can be a program name with args.
4073set dummy strip; ac_word=$2
4074echo "$as_me:$LINENO: checking for $ac_word" >&5
4075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4077  echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079  if test -n "$ac_ct_STRIP"; then
4080  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087  for ac_exec_ext in '' $ac_executable_extensions; do
4088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089    ac_cv_prog_ac_ct_STRIP="strip"
4090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094done
4095
4096  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4097fi
4098fi
4099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4100if test -n "$ac_ct_STRIP"; then
4101  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4102echo "${ECHO_T}$ac_ct_STRIP" >&6
4103else
4104  echo "$as_me:$LINENO: result: no" >&5
4105echo "${ECHO_T}no" >&6
4106fi
4107
4108  STRIP=$ac_ct_STRIP
4109else
4110  STRIP="$ac_cv_prog_STRIP"
4111fi
4112
4113fi
4114INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4115
4116# We need awk for the "check" target.  The system "awk" is bad on
4117# some platforms.
4118# Always define AMTAR for backward compatibility.
4119
4120AMTAR=${AMTAR-"${am_missing_run}tar"}
4121
4122am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4123
4124
4125
4126
4127depcc="$CC"   am_compiler_list=
4128
4129echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4130echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4131if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4132  echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4135  # We make a subdir and do the tests there.  Otherwise we can end up
4136  # making bogus files that we don't know about and never remove.  For
4137  # instance it was reported that on HP-UX the gcc test will end up
4138  # making a dummy file named `D' -- because `-MD' means `put the output
4139  # in D'.
4140  mkdir conftest.dir
4141  # Copy depcomp to subdir because otherwise we won't find it if we're
4142  # using a relative directory.
4143  cp "$am_depcomp" conftest.dir
4144  cd conftest.dir
4145  # We will build objects and dependencies in a subdirectory because
4146  # it helps to detect inapplicable dependency modes.  For instance
4147  # both Tru64's cc and ICC support -MD to output dependencies as a
4148  # side effect of compilation, but ICC will put the dependencies in
4149  # the current directory while Tru64 will put them in the object
4150  # directory.
4151  mkdir sub
4152
4153  am_cv_CC_dependencies_compiler_type=none
4154  if test "$am_compiler_list" = ""; then
4155     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4156  fi
4157  for depmode in $am_compiler_list; do
4158    # Setup a source with many dependencies, because some compilers
4159    # like to wrap large dependency lists on column 80 (with \), and
4160    # we should not choose a depcomp mode which is confused by this.
4161    #
4162    # We need to recreate these files for each test, as the compiler may
4163    # overwrite some of them when testing with obscure command lines.
4164    # This happens at least with the AIX C compiler.
4165    : > sub/conftest.c
4166    for i in 1 2 3 4 5 6; do
4167      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4168      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4169      # Solaris 8's {/usr,}/bin/sh.
4170      touch sub/conftst$i.h
4171    done
4172    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4173
4174    case $depmode in
4175    nosideeffect)
4176      # after this tag, mechanisms are not by side-effect, so they'll
4177      # only be used when explicitly requested
4178      if test "x$enable_dependency_tracking" = xyes; then
4179        continue
4180      else
4181        break
4182      fi
4183      ;;
4184    none) break ;;
4185    esac
4186    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4187    # mode.  It turns out that the SunPro C++ compiler does not properly
4188    # handle `-M -o', and we need to detect this.
4189    if depmode=$depmode \
4190       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4191       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4192       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4193         >/dev/null 2>conftest.err &&
4194       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4195       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4196       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4197      # icc doesn't choke on unknown options, it will just issue warnings
4198      # or remarks (even with -Werror).  So we grep stderr for any message
4199      # that says an option was ignored or not supported.
4200      # When given -MP, icc 7.0 and 7.1 complain thusly:
4201      #   icc: Command line warning: ignoring option '-M'; no argument required
4202      # The diagnosis changed in icc 8.0:
4203      #   icc: Command line remark: option '-MP' not supported
4204      if (grep 'ignoring option' conftest.err ||
4205          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4206        am_cv_CC_dependencies_compiler_type=$depmode
4207        break
4208      fi
4209    fi
4210  done
4211
4212  cd ..
4213  rm -rf conftest.dir
4214else
4215  am_cv_CC_dependencies_compiler_type=none
4216fi
4217
4218fi
4219echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4220echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4221CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4222
4223
4224
4225if
4226  test "x$enable_dependency_tracking" != xno \
4227  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4228  am__fastdepCC_TRUE=
4229  am__fastdepCC_FALSE='#'
4230else
4231  am__fastdepCC_TRUE='#'
4232  am__fastdepCC_FALSE=
4233fi
4234
4235
4236
4237echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4238echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4239    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4240if test "${enable_maintainer_mode+set}" = set; then
4241  enableval="$enable_maintainer_mode"
4242  USE_MAINTAINER_MODE=$enableval
4243else
4244  USE_MAINTAINER_MODE=no
4245fi;
4246  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4247echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4248
4249
4250if test $USE_MAINTAINER_MODE = yes; then
4251  MAINTAINER_MODE_TRUE=
4252  MAINTAINER_MODE_FALSE='#'
4253else
4254  MAINTAINER_MODE_TRUE='#'
4255  MAINTAINER_MODE_FALSE=
4256fi
4257
4258  MAINT=$MAINTAINER_MODE_TRUE
4259
4260
4261
4262coin_have_externals=no
4263if test "$enable_maintainer_mode" = yes; then
4264
4265  # If maintainer mode is chosen, we make sure that the correct versions
4266  # of the tools are used, and that we know where libtool.m4 is (to
4267  # recreate acinclude.m4)
4268
4269
4270  LIBTOOLM4=
4271  # Normally, $HOME
4272  AUTOTOOLS_DFLT=$HOME
4273
4274  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4275echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4276if test "${ac_cv_use_correct_autotools+set}" = set; then
4277  echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279  ac_cv_use_correct_autotools=check
4280fi
4281echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4282echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4283
4284  if test $ac_cv_use_correct_autotools = check; then
4285    ac_cv_use_correct_autotools=yes
4286    # Check if we have autoconf
4287    # Extract the first word of "autoconf", so it can be a program name with args.
4288set dummy autoconf; ac_word=$2
4289echo "$as_me:$LINENO: checking for $ac_word" >&5
4290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291if test "${ac_cv_prog_have_autoconf+set}" = set; then
4292  echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294  if test -n "$have_autoconf"; then
4295  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4296else
4297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH
4299do
4300  IFS=$as_save_IFS
4301  test -z "$as_dir" && as_dir=.
4302  for ac_exec_ext in '' $ac_executable_extensions; do
4303  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304    ac_cv_prog_have_autoconf="yes"
4305    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306    break 2
4307  fi
4308done
4309done
4310
4311  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4312fi
4313fi
4314have_autoconf=$ac_cv_prog_have_autoconf
4315if test -n "$have_autoconf"; then
4316  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4317echo "${ECHO_T}$have_autoconf" >&6
4318else
4319  echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321fi
4322
4323    if test $have_autoconf = no; then
4324      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4325echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4326   { (exit 1); exit 1; }; }
4327    fi
4328
4329    # Check whether autoconf is the correct version
4330    correct_version='2.59'
4331    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4332    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4333echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4334    autoconf --version > confauto.out 2>&1
4335    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4336      echo "$as_me:$LINENO: result: yes" >&5
4337echo "${ECHO_T}yes" >&6
4338    else
4339      rm -f confauto.out
4340      echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
4342      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4343echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4344   { (exit 1); exit 1; }; }
4345    fi
4346    rm -f confauto.out
4347
4348    # Check if the executable autoconf is picked up from the correct location
4349    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4350echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4351    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4352    autoconf_dir=`cd $autoconf_dir; pwd`
4353    if test x$AUTOTOOLS_DIR = x; then
4354      want_dir=$AUTOTOOLS_DFLT/bin
4355    else
4356      want_dir=$AUTOTOOLS_DIR/bin
4357    fi
4358    if test $autoconf_dir = `cd $want_dir; pwd`; then
4359      echo "$as_me:$LINENO: result: yes" >&5
4360echo "${ECHO_T}yes" >&6
4361    else
4362      rm -f confauto.out
4363      echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
4365      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4366echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4367   { (exit 1); exit 1; }; }
4368    fi
4369
4370    # Check if we have automake
4371    # Extract the first word of "automake", so it can be a program name with args.
4372set dummy automake; ac_word=$2
4373echo "$as_me:$LINENO: checking for $ac_word" >&5
4374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375if test "${ac_cv_prog_have_automake+set}" = set; then
4376  echo $ECHO_N "(cached) $ECHO_C" >&6
4377else
4378  if test -n "$have_automake"; then
4379  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4380else
4381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384  IFS=$as_save_IFS
4385  test -z "$as_dir" && as_dir=.
4386  for ac_exec_ext in '' $ac_executable_extensions; do
4387  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388    ac_cv_prog_have_automake="yes"
4389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390    break 2
4391  fi
4392done
4393done
4394
4395  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4396fi
4397fi
4398have_automake=$ac_cv_prog_have_automake
4399if test -n "$have_automake"; then
4400  echo "$as_me:$LINENO: result: $have_automake" >&5
4401echo "${ECHO_T}$have_automake" >&6
4402else
4403  echo "$as_me:$LINENO: result: no" >&5
4404echo "${ECHO_T}no" >&6
4405fi
4406
4407    if test $have_automake = no; then
4408      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4409echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4410   { (exit 1); exit 1; }; }
4411    fi
4412
4413    # Check whether automake is the correct version
4414    correct_version='1.9.6'
4415    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4416    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4417echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4418    automake --version > confauto.out 2>&1
4419    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4420      echo "$as_me:$LINENO: result: yes" >&5
4421echo "${ECHO_T}yes" >&6
4422    else
4423      rm -f confauto.out
4424      echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4427echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4428   { (exit 1); exit 1; }; }
4429    fi
4430    rm -f confauto.out
4431
4432    # Check if the executable automake is picked up from the correct location
4433    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4434echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4435    automake_dir=`which automake | sed -e 's=/automake=='`
4436    automake_dir=`cd $automake_dir; pwd`
4437    if test x$AUTOTOOLS_DIR = x; then
4438      want_dir=$AUTOTOOLS_DFLT/bin
4439    else
4440      want_dir=$AUTOTOOLS_DIR/bin
4441    fi
4442    if test $automake_dir = `cd $want_dir; pwd`; then
4443      echo "$as_me:$LINENO: result: yes" >&5
4444echo "${ECHO_T}yes" >&6
4445    else
4446      rm -f confauto.out
4447      echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4450echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4451   { (exit 1); exit 1; }; }
4452    fi
4453
4454    # Check if this is the correct version of libtool (with escaped dots)
4455    if test x$AUTOTOOLS_DIR = x; then
4456      want_dir=$AUTOTOOLS_DFLT/share
4457    else
4458      want_dir=$AUTOTOOLS_DIR/share
4459    fi
4460    correct_version='1.5.22'
4461    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4462    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4463echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4464echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4465if eval "test \"\${$as_ac_File+set}\" = set"; then
4466  echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468  test "$cross_compiling" = yes &&
4469  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4470echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4471   { (exit 1); exit 1; }; }
4472if test -r "$want_dir/libtool/ltmain.sh"; then
4473  eval "$as_ac_File=yes"
4474else
4475  eval "$as_ac_File=no"
4476fi
4477fi
4478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4479echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4480if test `eval echo '${'$as_ac_File'}'` = yes; then
4481  have_ltmain=yes
4482else
4483  have_ltmain=no
4484fi
4485
4486    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4487echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4488    if test $have_ltmain = yes; then
4489    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4490        echo "$as_me:$LINENO: result: yes" >&5
4491echo "${ECHO_T}yes" >&6
4492      else
4493        echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6
4495        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4496echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4497   { (exit 1); exit 1; }; }
4498      fi
4499    else
4500      echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4503echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4504   { (exit 1); exit 1; }; }
4505    fi
4506  fi
4507
4508  # Check if we can find the libtool file
4509  if test x$AUTOTOOLS_DIR = x; then
4510    want_dir=$AUTOTOOLS_DFLT/share
4511  else
4512    want_dir=$AUTOTOOLS_DIR/share
4513  fi
4514  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4515echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4516echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4517if eval "test \"\${$as_ac_File+set}\" = set"; then
4518  echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520  test "$cross_compiling" = yes &&
4521  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4522echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4523   { (exit 1); exit 1; }; }
4524if test -r "$want_dir/aclocal/libtool.m4"; then
4525  eval "$as_ac_File=yes"
4526else
4527  eval "$as_ac_File=no"
4528fi
4529fi
4530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4531echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4532if test `eval echo '${'$as_ac_File'}'` = yes; then
4533  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4534else
4535  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4536echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4537   { (exit 1); exit 1; }; }
4538fi
4539
4540
4541  # Check if we have an Externals file
4542  if test -r $srcdir/Externals; then
4543    coin_have_externals=yes
4544  fi
4545  # Check if subversion is installed and understands https
4546  # Extract the first word of "svn", so it can be a program name with args.
4547set dummy svn; ac_word=$2
4548echo "$as_me:$LINENO: checking for $ac_word" >&5
4549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550if test "${ac_cv_prog_have_svn+set}" = set; then
4551  echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553  if test -n "$have_svn"; then
4554  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559  IFS=$as_save_IFS
4560  test -z "$as_dir" && as_dir=.
4561  for ac_exec_ext in '' $ac_executable_extensions; do
4562  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563    ac_cv_prog_have_svn="yes"
4564    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565    break 2
4566  fi
4567done
4568done
4569
4570  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4571fi
4572fi
4573have_svn=$ac_cv_prog_have_svn
4574if test -n "$have_svn"; then
4575  echo "$as_me:$LINENO: result: $have_svn" >&5
4576echo "${ECHO_T}$have_svn" >&6
4577else
4578  echo "$as_me:$LINENO: result: no" >&5
4579echo "${ECHO_T}no" >&6
4580fi
4581
4582  if test x$have_svn = xyes; then
4583    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4584echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4585if test "${ac_cv_svn_understands_https+set}" = set; then
4586  echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588  svn --version > confauto.out 2>&1
4589                    if $EGREP https confauto.out >/dev/null 2>&1; then
4590                      ac_cv_svn_understands_https=yes
4591                    else
4592                      ac_cv_svn_understands_https=no
4593                      have_svn=no
4594                      ac_cv_prog_have_svn=no
4595                    fi
4596                    rm -f confauto.out
4597fi
4598echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4599echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4600  fi
4601
4602  # Find the location of the BuildTools directory
4603  BUILDTOOLSDIR=
4604  if test -r $srcdir/BuildTools/coin.m4; then
4605    BUILDTOOLSDIR=$srcdir/BuildTools
4606  else
4607    if test -r $srcdir/../BuildTools/coin.m4; then
4608      BUILDTOOLSDIR=$srcdir/../BuildTools
4609    else
4610      if test -r $srcdir/../../BuildTools/coin.m4; then
4611        BUILDTOOLSDIR=$srcdir/../../BuildTools
4612      else
4613        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4614echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4615   { (exit 1); exit 1; }; }
4616      fi
4617    fi
4618  fi
4619
4620
4621  # The following variable is set to the name of the directory where
4622  # the autotool scripts are located
4623
4624  AUX_DIR=$ac_aux_dir
4625fi
4626
4627# helpful variable for the base directory of this package
4628abs_source_dir=`cd $srcdir; pwd`
4629
4630
4631# Stuff for example Makefiles
4632if test x$prefix = xNONE; then
4633  full_prefix=$ac_default_prefix
4634else
4635  full_prefix=$prefix
4636fi
4637full_prefix=`cd $full_prefix ; pwd`
4638
4639abs_lib_dir=$full_prefix/lib
4640
4641abs_include_dir=$full_prefix/include
4642
4643abs_bin_dir=$full_prefix/bin
4644
4645
4646
4647if test $coin_have_externals = yes && test x$have_svn = xyes; then
4648  HAVE_EXTERNALS_TRUE=
4649  HAVE_EXTERNALS_FALSE='#'
4650else
4651  HAVE_EXTERNALS_TRUE='#'
4652  HAVE_EXTERNALS_FALSE=
4653fi
4654
4655
4656
4657unset ac_cv_file__________libtool
4658unset ac_cv_file_______libtool
4659unset ac_cv_file____libtool
4660
4661LIBTOOL=
4662echo "$as_me:$LINENO: checking for ../libtool" >&5
4663echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
4664if test "${ac_cv_file____libtool+set}" = set; then
4665  echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
4667  test "$cross_compiling" = yes &&
4668  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4669echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4670   { (exit 1); exit 1; }; }
4671if test -r "../libtool"; then
4672  ac_cv_file____libtool=yes
4673else
4674  ac_cv_file____libtool=no
4675fi
4676fi
4677echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
4678echo "${ECHO_T}$ac_cv_file____libtool" >&6
4679if test $ac_cv_file____libtool = yes; then
4680  coin_config_dir=..
4681               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4682fi
4683
4684if test "x$LIBTOOL" = x; then
4685  echo "$as_me:$LINENO: checking for ../../libtool" >&5
4686echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
4687if test "${ac_cv_file_______libtool+set}" = set; then
4688  echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690  test "$cross_compiling" = yes &&
4691  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4692echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4693   { (exit 1); exit 1; }; }
4694if test -r "../../libtool"; then
4695  ac_cv_file_______libtool=yes
4696else
4697  ac_cv_file_______libtool=no
4698fi
4699fi
4700echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
4701echo "${ECHO_T}$ac_cv_file_______libtool" >&6
4702if test $ac_cv_file_______libtool = yes; then
4703  coin_config_dir=../..
4704                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4705fi
4706
4707fi
4708if test "x$LIBTOOL" = x; then
4709  echo "$as_me:$LINENO: checking for ../../../libtool" >&5
4710echo $ECHO_N "checking for ../../../libtool... $ECHO_C" >&6
4711if test "${ac_cv_file__________libtool+set}" = set; then
4712  echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714  test "$cross_compiling" = yes &&
4715  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4716echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4717   { (exit 1); exit 1; }; }
4718if test -r "../../../libtool"; then
4719  ac_cv_file__________libtool=yes
4720else
4721  ac_cv_file__________libtool=no
4722fi
4723fi
4724echo "$as_me:$LINENO: result: $ac_cv_file__________libtool" >&5
4725echo "${ECHO_T}$ac_cv_file__________libtool" >&6
4726if test $ac_cv_file__________libtool = yes; then
4727  coin_config_dir=../../..
4728                 LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'
4729fi
4730
4731fi
4732
4733if test "x$LIBTOOL" = x; then
4734
4735  # Stuff for libtool
4736  ac_ext=c
4737ac_cpp='$CPP $CPPFLAGS'
4738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741
4742if test x"" = x; then
4743  hdr="#include <dlfcn.h>"
4744else
4745  hdr=""
4746fi
4747
4748for ac_header in dlfcn.h
4749do
4750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4751echo "$as_me:$LINENO: checking for $ac_header" >&5
4752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4753if eval "test \"\${$as_ac_Header+set}\" = set"; then
4754  echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756  cat >conftest.$ac_ext <<_ACEOF
4757/* confdefs.h.  */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h.  */
4762$hdr
4763
4764#include <$ac_header>
4765_ACEOF
4766rm -f conftest.$ac_objext
4767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768  (eval $ac_compile) 2>conftest.er1
4769  ac_status=$?
4770  grep -v '^ *+' conftest.er1 >conftest.err
4771  rm -f conftest.er1
4772  cat conftest.err >&5
4773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774  (exit $ac_status); } &&
4775         { ac_try='test -z "$ac_c_werror_flag"
4776                         || test ! -s conftest.err'
4777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778  (eval $ac_try) 2>&5
4779  ac_status=$?
4780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781  (exit $ac_status); }; } &&
4782         { ac_try='test -s conftest.$ac_objext'
4783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784  (eval $ac_try) 2>&5
4785  ac_status=$?
4786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787  (exit $ac_status); }; }; then
4788  eval "$as_ac_Header=yes"
4789else
4790  echo "$as_me: failed program was:" >&5
4791sed 's/^/| /' conftest.$ac_ext >&5
4792
4793eval "$as_ac_Header=no"
4794fi
4795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4796fi
4797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4799if test `eval echo '${'$as_ac_Header'}'` = yes; then
4800  cat >>confdefs.h <<_ACEOF
4801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4802_ACEOF
4803
4804fi
4805
4806done
4807
4808
4809ac_ext=c
4810ac_cpp='$CPP $CPPFLAGS'
4811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814
4815
4816# Check whether --enable-shared or --disable-shared was given.
4817if test "${enable_shared+set}" = set; then
4818  enableval="$enable_shared"
4819  p=${PACKAGE-default}
4820    case $enableval in
4821    yes) enable_shared=yes ;;
4822    no) enable_shared=no ;;
4823    *)
4824      enable_shared=no
4825      # Look at the argument we got.  We use all the common list separators.
4826      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4827      for pkg in $enableval; do
4828        IFS="$lt_save_ifs"
4829        if test "X$pkg" = "X$p"; then
4830          enable_shared=yes
4831        fi
4832      done
4833      IFS="$lt_save_ifs"
4834      ;;
4835    esac
4836else
4837  enable_shared=yes
4838fi;
4839
4840# Check whether --enable-fast-install or --disable-fast-install was given.
4841if test "${enable_fast_install+set}" = set; then
4842  enableval="$enable_fast_install"
4843  p=${PACKAGE-default}
4844    case $enableval in
4845    yes) enable_fast_install=yes ;;
4846    no) enable_fast_install=no ;;
4847    *)
4848      enable_fast_install=no
4849      # Look at the argument we got.  We use all the common list separators.
4850      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4851      for pkg in $enableval; do
4852        IFS="$lt_save_ifs"
4853        if test "X$pkg" = "X$p"; then
4854          enable_fast_install=yes
4855        fi
4856      done
4857      IFS="$lt_save_ifs"
4858      ;;
4859    esac
4860else
4861  enable_fast_install=yes
4862fi;
4863
4864echo "$as_me:$LINENO: checking host system type" >&5
4865echo $ECHO_N "checking host system type... $ECHO_C" >&6
4866if test "${ac_cv_host+set}" = set; then
4867  echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869  ac_cv_host_alias=$host_alias
4870test -z "$ac_cv_host_alias" &&
4871  ac_cv_host_alias=$ac_cv_build_alias
4872ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4873  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4874echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4875   { (exit 1); exit 1; }; }
4876
4877fi
4878echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4879echo "${ECHO_T}$ac_cv_host" >&6
4880host=$ac_cv_host
4881host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4882host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4883host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4884
4885
4886echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4887echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4888if test "${lt_cv_path_SED+set}" = set; then
4889  echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891  # Loop through the user's path and test for sed and gsed.
4892# Then use that list of sed's as ones to test for truncation.
4893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896  IFS=$as_save_IFS
4897  test -z "$as_dir" && as_dir=.
4898  for lt_ac_prog in sed gsed; do
4899    for ac_exec_ext in '' $ac_executable_extensions; do
4900      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4901        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4902      fi
4903    done
4904  done
4905done
4906lt_ac_max=0
4907lt_ac_count=0
4908# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4909# along with /bin/sed that truncates output.
4910for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4911  test ! -f $lt_ac_sed && continue
4912  cat /dev/null > conftest.in
4913  lt_ac_count=0
4914  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4915  # Check for GNU sed and select it if it is found.
4916  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4917    lt_cv_path_SED=$lt_ac_sed
4918    break
4919  fi
4920  while true; do
4921    cat conftest.in conftest.in >conftest.tmp
4922    mv conftest.tmp conftest.in
4923    cp conftest.in conftest.nl
4924    echo >>conftest.nl
4925    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4926    cmp -s conftest.out conftest.nl || break
4927    # 10000 chars as input seems more than enough
4928    test $lt_ac_count -gt 10 && break
4929    lt_ac_count=`expr $lt_ac_count + 1`
4930    if test $lt_ac_count -gt $lt_ac_max; then
4931      lt_ac_max=$lt_ac_count
4932      lt_cv_path_SED=$lt_ac_sed
4933    fi
4934  done
4935done
4936
4937fi
4938
4939SED=$lt_cv_path_SED
4940echo "$as_me:$LINENO: result: $SED" >&5
4941echo "${ECHO_T}$SED" >&6
4942
4943
4944# Check whether --with-gnu-ld or --without-gnu-ld was given.
4945if test "${with_gnu_ld+set}" = set; then
4946  withval="$with_gnu_ld"
4947  test "$withval" = no || with_gnu_ld=yes
4948else
4949  with_gnu_ld=no
4950fi;
4951ac_prog=ld
4952if test "$GCC" = yes; then
4953  # Check if gcc -print-prog-name=ld gives a path.
4954  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4955echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4956  case $host in
4957  *-*-mingw*)
4958    # gcc leaves a trailing carriage return which upsets mingw
4959    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4960  *)
4961    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4962  esac
4963  case $ac_prog in
4964    # Accept absolute paths.
4965    [\\/]* | ?:[\\/]*)
4966      re_direlt='/[^/][^/]*/\.\./'
4967      # Canonicalize the pathname of ld
4968      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4969      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4970        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4971      done
4972      test -z "$LD" && LD="$ac_prog"
4973      ;;
4974  "")
4975    # If it fails, then pretend we aren't using GCC.
4976    ac_prog=ld
4977    ;;
4978  *)
4979    # If it is relative, then search for the first ld in PATH.
4980    with_gnu_ld=unknown
4981    ;;
4982  esac
4983elif test "$with_gnu_ld" = yes; then
4984  echo "$as_me:$LINENO: checking for GNU ld" >&5
4985echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4986else
4987  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4988echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4989fi
4990if test "${lt_cv_path_LD+set}" = set; then
4991  echo $ECHO_N "(cached) $ECHO_C" >&6
4992else
4993  if test -z "$LD"; then
4994  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4995  for ac_dir in $PATH; do
4996    IFS="$lt_save_ifs"
4997    test -z "$ac_dir" && ac_dir=.
4998    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4999      lt_cv_path_LD="$ac_dir/$ac_prog"
5000      # Check to see if the program is GNU ld.  I'd rather use --version,
5001      # but apparently some variants of GNU ld only accept -v.
5002      # Break only if it was the GNU/non-GNU ld that we prefer.
5003      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5004      *GNU* | *'with BFD'*)
5005        test "$with_gnu_ld" != no && break
5006        ;;
5007      *)
5008        test "$with_gnu_ld" != yes && break
5009        ;;
5010      esac
5011    fi
5012  done
5013  IFS="$lt_save_ifs"
5014else
5015  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5016fi
5017fi
5018
5019LD="$lt_cv_path_LD"
5020if test -n "$LD"; then
5021  echo "$as_me:$LINENO: result: $LD" >&5
5022echo "${ECHO_T}$LD" >&6
5023else
5024  echo "$as_me:$LINENO: result: no" >&5
5025echo "${ECHO_T}no" >&6
5026fi
5027test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5028echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5029   { (exit 1); exit 1; }; }
5030echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5031echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5032if test "${lt_cv_prog_gnu_ld+set}" = set; then
5033  echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5036case `$LD -v 2>&1 </dev/null` in
5037*GNU* | *'with BFD'*)
5038  lt_cv_prog_gnu_ld=yes
5039  ;;
5040*)
5041  lt_cv_prog_gnu_ld=no
5042  ;;
5043esac
5044fi
5045echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5046echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5047with_gnu_ld=$lt_cv_prog_gnu_ld
5048
5049
5050echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5051echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5052if test "${lt_cv_ld_reload_flag+set}" = set; then
5053  echo $ECHO_N "(cached) $ECHO_C" >&6
5054else
5055  lt_cv_ld_reload_flag='-r'
5056fi
5057echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5058echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5059reload_flag=$lt_cv_ld_reload_flag
5060case $reload_flag in
5061"" | " "*) ;;
5062*) reload_flag=" $reload_flag" ;;
5063esac
5064reload_cmds='$LD$reload_flag -o $output$reload_objs'
5065case $host_os in
5066  darwin*)
5067    if test "$GCC" = yes; then
5068      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5069    else
5070      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5071    fi
5072    ;;
5073esac
5074
5075echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5076echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5077if test "${lt_cv_path_NM+set}" = set; then
5078  echo $ECHO_N "(cached) $ECHO_C" >&6
5079else
5080  if test -n "$NM"; then
5081  # Let the user override the test.
5082  lt_cv_path_NM="$NM"
5083else
5084  lt_nm_to_check="${ac_tool_prefix}nm"
5085  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5086    lt_nm_to_check="$lt_nm_to_check nm"
5087  fi
5088  for lt_tmp_nm in $lt_nm_to_check; do
5089    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5090    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5091      IFS="$lt_save_ifs"
5092      test -z "$ac_dir" && ac_dir=.
5093      tmp_nm="$ac_dir/$lt_tmp_nm"
5094      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5095        # Check to see if the nm accepts a BSD-compat flag.
5096        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5097        #   nm: unknown option "B" ignored
5098        # Tru64's nm complains that /dev/null is an invalid object file
5099        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5100        */dev/null* | *'Invalid file or object type'*)
5101          lt_cv_path_NM="$tmp_nm -B"
5102          break
5103          ;;
5104        *)
5105          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5106          */dev/null*)
5107            lt_cv_path_NM="$tmp_nm -p"
5108            break
5109            ;;
5110          *)
5111            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5112            continue # so that we can try to find one that supports BSD flags
5113            ;;
5114          esac
5115          ;;
5116        esac
5117      fi
5118    done
5119    IFS="$lt_save_ifs"
5120  done
5121  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5122fi
5123fi
5124echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5125echo "${ECHO_T}$lt_cv_path_NM" >&6
5126NM="$lt_cv_path_NM"
5127
5128echo "$as_me:$LINENO: checking whether ln -s works" >&5
5129echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5130LN_S=$as_ln_s
5131if test "$LN_S" = "ln -s"; then
5132  echo "$as_me:$LINENO: result: yes" >&5
5133echo "${ECHO_T}yes" >&6
5134else
5135  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5136echo "${ECHO_T}no, using $LN_S" >&6
5137fi
5138
5139echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5140echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5141if test "${lt_cv_deplibs_check_method+set}" = set; then
5142  echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
5144  lt_cv_file_magic_cmd='$MAGIC_CMD'
5145lt_cv_file_magic_test_file=
5146lt_cv_deplibs_check_method='unknown'
5147# Need to set the preceding variable on all platforms that support
5148# interlibrary dependencies.
5149# 'none' -- dependencies not supported.
5150# `unknown' -- same as none, but documents that we really don't know.
5151# 'pass_all' -- all dependencies passed with no checks.
5152# 'test_compile' -- check by making test program.
5153# 'file_magic [[regex]]' -- check by looking for files in library path
5154# which responds to the $file_magic_cmd with a given extended regex.
5155# If you have `file' or equivalent on your system and you're not sure
5156# whether `pass_all' will *always* work, you probably want this one.
5157
5158case $host_os in
5159aix4* | aix5*)
5160  lt_cv_deplibs_check_method=pass_all
5161  ;;
5162
5163beos*)
5164  lt_cv_deplibs_check_method=pass_all
5165  ;;
5166
5167bsdi[45]*)
5168  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5169  lt_cv_file_magic_cmd='/usr/bin/file -L'
5170  lt_cv_file_magic_test_file=/shlib/libc.so
5171  ;;
5172
5173cygwin*)
5174  # func_win32_libid is a shell function defined in ltmain.sh
5175  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5176  lt_cv_file_magic_cmd='func_win32_libid'
5177  ;;
5178
5179mingw* | pw32*)
5180  # Base MSYS/MinGW do not provide the 'file' command needed by
5181  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5182  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5183  lt_cv_file_magic_cmd='$OBJDUMP -f'
5184  ;;
5185
5186darwin* | rhapsody*)
5187  lt_cv_deplibs_check_method=pass_all
5188  ;;
5189
5190freebsd* | kfreebsd*-gnu | dragonfly*)
5191  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5192    case $host_cpu in
5193    i*86 )
5194      # Not sure whether the presence of OpenBSD here was a mistake.
5195      # Let's accept both of them until this is cleared up.
5196      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5197      lt_cv_file_magic_cmd=/usr/bin/file
5198      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5199      ;;
5200    esac
5201  else
5202    lt_cv_deplibs_check_method=pass_all
5203  fi
5204  ;;
5205
5206gnu*)
5207  lt_cv_deplibs_check_method=pass_all
5208  ;;
5209
5210hpux10.20* | hpux11*)
5211  lt_cv_file_magic_cmd=/usr/bin/file
5212  case $host_cpu in
5213  ia64*)
5214    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5215    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5216    ;;
5217  hppa*64*)
5218    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]'
5219    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5220    ;;
5221  *)
5222    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5223    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5224    ;;
5225  esac
5226  ;;
5227
5228interix3*)
5229  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5230  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5231  ;;
5232
5233irix5* | irix6* | nonstopux*)
5234  case $LD in
5235  *-32|*"-32 ") libmagic=32-bit;;
5236  *-n32|*"-n32 ") libmagic=N32;;
5237  *-64|*"-64 ") libmagic=64-bit;;
5238  *) libmagic=never-match;;
5239  esac
5240  lt_cv_deplibs_check_method=pass_all
5241  ;;
5242
5243# This must be Linux ELF.
5244linux*)
5245  lt_cv_deplibs_check_method=pass_all
5246  ;;
5247
5248netbsd*)
5249  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5251  else
5252    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5253  fi
5254  ;;
5255
5256newos6*)
5257  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5258  lt_cv_file_magic_cmd=/usr/bin/file
5259  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5260  ;;
5261
5262nto-qnx*)
5263  lt_cv_deplibs_check_method=unknown
5264  ;;
5265
5266openbsd*)
5267  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5269  else
5270    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5271  fi
5272  ;;
5273
5274osf3* | osf4* | osf5*)
5275  lt_cv_deplibs_check_method=pass_all
5276  ;;
5277
5278solaris*)
5279  lt_cv_deplibs_check_method=pass_all
5280  ;;
5281
5282sysv4 | sysv4.3*)
5283  case $host_vendor in
5284  motorola)
5285    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]'
5286    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5287    ;;
5288  ncr)
5289    lt_cv_deplibs_check_method=pass_all
5290    ;;
5291  sequent)
5292    lt_cv_file_magic_cmd='/bin/file'
5293    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5294    ;;
5295  sni)
5296    lt_cv_file_magic_cmd='/bin/file'
5297    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5298    lt_cv_file_magic_test_file=/lib/libc.so
5299    ;;
5300  siemens)
5301    lt_cv_deplibs_check_method=pass_all
5302    ;;
5303  pc)
5304    lt_cv_deplibs_check_method=pass_all
5305    ;;
5306  esac
5307  ;;
5308
5309sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5310  lt_cv_deplibs_check_method=pass_all
5311  ;;
5312esac
5313
5314fi
5315echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5316echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5317file_magic_cmd=$lt_cv_file_magic_cmd
5318deplibs_check_method=$lt_cv_deplibs_check_method
5319test -z "$deplibs_check_method" && deplibs_check_method=unknown
5320
5321
5322
5323
5324# If no C compiler was specified, use CC.
5325LTCC=${LTCC-"$CC"}
5326
5327# If no C compiler flags were specified, use CFLAGS.
5328LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5329
5330# Allow CC to be a program name with arguments.
5331compiler=$CC
5332
5333# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5334if test "${enable_libtool_lock+set}" = set; then
5335  enableval="$enable_libtool_lock"
5336
5337fi;
5338test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5339
5340# Some flags need to be propagated to the compiler or linker for good
5341# libtool support.
5342case $host in
5343ia64-*-hpux*)
5344  # Find out which ABI we are using.
5345  echo 'int i;' > conftest.$ac_ext
5346  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347  (eval $ac_compile) 2>&5
5348  ac_status=$?
5349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350  (exit $ac_status); }; then
5351    case `/usr/bin/file conftest.$ac_objext` in
5352    *ELF-32*)
5353      HPUX_IA64_MODE="32"
5354      ;;
5355    *ELF-64*)
5356      HPUX_IA64_MODE="64"
5357      ;;
5358    esac
5359  fi
5360  rm -rf conftest*
5361  ;;
5362*-*-irix6*)
5363  # Find out which ABI we are using.
5364  echo '#line 5364 "configure"' > conftest.$ac_ext
5365  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366  (eval $ac_compile) 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; then
5370   if test "$lt_cv_prog_gnu_ld" = yes; then
5371    case `/usr/bin/file conftest.$ac_objext` in
5372    *32-bit*)
5373      LD="${LD-ld} -melf32bsmip"
5374      ;;
5375    *N32*)
5376      LD="${LD-ld} -melf32bmipn32"
5377      ;;
5378    *64-bit*)
5379      LD="${LD-ld} -melf64bmip"
5380      ;;
5381    esac
5382   else
5383    case `/usr/bin/file conftest.$ac_objext` in
5384    *32-bit*)
5385      LD="${LD-ld} -32"
5386      ;;
5387    *N32*)
5388      LD="${LD-ld} -n32"
5389      ;;
5390    *64-bit*)
5391      LD="${LD-ld} -64"
5392      ;;
5393    esac
5394   fi
5395  fi
5396  rm -rf conftest*
5397  ;;
5398
5399x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5400  # Find out which ABI we are using.
5401  echo 'int i;' > conftest.$ac_ext
5402  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403  (eval $ac_compile) 2>&5
5404  ac_status=$?
5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406  (exit $ac_status); }; then
5407    case `/usr/bin/file conftest.o` in
5408    *32-bit*)
5409      case $host in
5410        x86_64-*linux*)
5411          LD="${LD-ld} -m elf_i386"
5412          ;;
5413        ppc64-*linux*|powerpc64-*linux*)
5414          LD="${LD-ld} -m elf32ppclinux"
5415          ;;
5416        s390x-*linux*)
5417          LD="${LD-ld} -m elf_s390"
5418          ;;
5419        sparc64-*linux*)
5420          LD="${LD-ld} -m elf32_sparc"
5421          ;;
5422      esac
5423      ;;
5424    *64-bit*)
5425      case $host in
5426        x86_64-*linux*)
5427          LD="${LD-ld} -m elf_x86_64"
5428          ;;
5429        ppc*-*linux*|powerpc*-*linux*)
5430          LD="${LD-ld} -m elf64ppc"
5431          ;;
5432        s390*-*linux*)
5433          LD="${LD-ld} -m elf64_s390"
5434          ;;
5435        sparc*-*linux*)
5436          LD="${LD-ld} -m elf64_sparc"
5437          ;;
5438      esac
5439      ;;
5440    esac
5441  fi
5442  rm -rf conftest*
5443  ;;
5444
5445*-*-sco3.2v5*)
5446  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5447  SAVE_CFLAGS="$CFLAGS"
5448  CFLAGS="$CFLAGS -belf"
5449  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5450echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5451if test "${lt_cv_cc_needs_belf+set}" = set; then
5452  echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
5454  ac_ext=c
5455ac_cpp='$CPP $CPPFLAGS'
5456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459
5460     cat >conftest.$ac_ext <<_ACEOF
5461/* confdefs.h.  */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h.  */
5466
5467int
5468main ()
5469{
5470
5471  ;
5472  return 0;
5473}
5474_ACEOF
5475rm -f conftest.$ac_objext conftest$ac_exeext
5476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477  (eval $ac_link) 2>conftest.er1
5478  ac_status=$?
5479  grep -v '^ *+' conftest.er1 >conftest.err
5480  rm -f conftest.er1
5481  cat conftest.err >&5
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); } &&
5484         { ac_try='test -z "$ac_c_werror_flag"
5485                         || test ! -s conftest.err'
5486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487  (eval $ac_try) 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }; } &&
5491         { ac_try='test -s conftest$ac_exeext'
5492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493  (eval $ac_try) 2>&5
5494  ac_status=$?
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); }; }; then
5497  lt_cv_cc_needs_belf=yes
5498else
5499  echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502lt_cv_cc_needs_belf=no
5503fi
5504rm -f conftest.err conftest.$ac_objext \
5505      conftest$ac_exeext conftest.$ac_ext
5506     ac_ext=c
5507ac_cpp='$CPP $CPPFLAGS'
5508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511
5512fi
5513echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5514echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5515  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5516    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5517    CFLAGS="$SAVE_CFLAGS"
5518  fi
5519  ;;
5520sparc*-*solaris*)
5521  # Find out which ABI we are using.
5522  echo 'int i;' > conftest.$ac_ext
5523  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524  (eval $ac_compile) 2>&5
5525  ac_status=$?
5526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527  (exit $ac_status); }; then
5528    case `/usr/bin/file conftest.o` in
5529    *64-bit*)
5530      case $lt_cv_prog_gnu_ld in
5531      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5532      *)    LD="${LD-ld} -64" ;;
5533      esac
5534      ;;
5535    esac
5536  fi
5537  rm -rf conftest*
5538  ;;
5539
5540
5541esac
5542
5543need_locks="$enable_libtool_lock"
5544
5545
5546ac_ext=c
5547ac_cpp='$CPP $CPPFLAGS'
5548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5552echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5553# On Suns, sometimes $CPP names a directory.
5554if test -n "$CPP" && test -d "$CPP"; then
5555  CPP=
5556fi
5557if test -z "$CPP"; then
5558  if test "${ac_cv_prog_CPP+set}" = set; then
5559  echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561      # Double quotes because CPP needs to be expanded
5562    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5563    do
5564      ac_preproc_ok=false
5565for ac_c_preproc_warn_flag in '' yes
5566do
5567  # Use a header file that comes with gcc, so configuring glibc
5568  # with a fresh cross-compiler works.
5569  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5570  # <limits.h> exists even on freestanding compilers.
5571  # On the NeXT, cc -E runs the code through the compiler's parser,
5572  # not just through cpp. "Syntax error" is here to catch this case.
5573  cat >conftest.$ac_ext <<_ACEOF
5574/* confdefs.h.  */
5575_ACEOF
5576cat confdefs.h >>conftest.$ac_ext
5577cat >>conftest.$ac_ext <<_ACEOF
5578/* end confdefs.h.  */
5579#ifdef __STDC__
5580# include <limits.h>
5581#else
5582# include <assert.h>
5583#endif
5584                     Syntax error
5585_ACEOF
5586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5587  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5588  ac_status=$?
5589  grep -v '^ *+' conftest.er1 >conftest.err
5590  rm -f conftest.er1
5591  cat conftest.err >&5
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); } >/dev/null; then
5594  if test -s conftest.err; then
5595    ac_cpp_err=$ac_c_preproc_warn_flag
5596    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5597  else
5598    ac_cpp_err=
5599  fi
5600else
5601  ac_cpp_err=yes
5602fi
5603if test -z "$ac_cpp_err"; then
5604  :
5605else
5606  echo "$as_me: failed program was:" >&5
5607sed 's/^/| /' conftest.$ac_ext >&5
5608
5609  # Broken: fails on valid input.
5610continue
5611fi
5612rm -f conftest.err conftest.$ac_ext
5613
5614  # OK, works on sane cases.  Now check whether non-existent headers
5615  # can be detected and how.
5616  cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h.  */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h.  */
5622#include <ac_nonexistent.h>
5623_ACEOF
5624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5625  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5626  ac_status=$?
5627  grep -v '^ *+' conftest.er1 >conftest.err
5628  rm -f conftest.er1
5629  cat conftest.err >&5
5630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631  (exit $ac_status); } >/dev/null; then
5632  if test -s conftest.err; then
5633    ac_cpp_err=$ac_c_preproc_warn_flag
5634    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5635  else
5636    ac_cpp_err=
5637  fi
5638else
5639  ac_cpp_err=yes
5640fi
5641if test -z "$ac_cpp_err"; then
5642  # Broken: success on invalid input.
5643continue
5644else
5645  echo "$as_me: failed program was:" >&5
5646sed 's/^/| /' conftest.$ac_ext >&5
5647
5648  # Passes both tests.
5649ac_preproc_ok=:
5650break
5651fi
5652rm -f conftest.err conftest.$ac_ext
5653
5654done
5655# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5656rm -f conftest.err conftest.$ac_ext
5657if $ac_preproc_ok; then
5658  break
5659fi
5660
5661    done
5662    ac_cv_prog_CPP=$CPP
5663
5664fi
5665  CPP=$ac_cv_prog_CPP
5666else
5667  ac_cv_prog_CPP=$CPP
5668fi
5669echo "$as_me:$LINENO: result: $CPP" >&5
5670echo "${ECHO_T}$CPP" >&6
5671ac_preproc_ok=false
5672for ac_c_preproc_warn_flag in '' yes
5673do
5674  # Use a header file that comes with gcc, so configuring glibc
5675  # with a fresh cross-compiler works.
5676  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5677  # <limits.h> exists even on freestanding compilers.
5678  # On the NeXT, cc -E runs the code through the compiler's parser,
5679  # not just through cpp. "Syntax error" is here to catch this case.
5680  cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h.  */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h.  */
5686#ifdef __STDC__
5687# include <limits.h>
5688#else
5689# include <assert.h>
5690#endif
5691                     Syntax error
5692_ACEOF
5693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5694  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5695  ac_status=$?
5696  grep -v '^ *+' conftest.er1 >conftest.err
5697  rm -f conftest.er1
5698  cat conftest.err >&5
5699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700  (exit $ac_status); } >/dev/null; then
5701  if test -s conftest.err; then
5702    ac_cpp_err=$ac_c_preproc_warn_flag
5703    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5704  else
5705    ac_cpp_err=
5706  fi
5707else
5708  ac_cpp_err=yes
5709fi
5710if test -z "$ac_cpp_err"; then
5711  :
5712else
5713  echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716  # Broken: fails on valid input.
5717continue
5718fi
5719rm -f conftest.err conftest.$ac_ext
5720
5721  # OK, works on sane cases.  Now check whether non-existent headers
5722  # can be detected and how.
5723  cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h.  */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h.  */
5729#include <ac_nonexistent.h>
5730_ACEOF
5731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5732  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5733  ac_status=$?
5734  grep -v '^ *+' conftest.er1 >conftest.err
5735  rm -f conftest.er1
5736  cat conftest.err >&5
5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738  (exit $ac_status); } >/dev/null; then
5739  if test -s conftest.err; then
5740    ac_cpp_err=$ac_c_preproc_warn_flag
5741    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5742  else
5743    ac_cpp_err=
5744  fi
5745else
5746  ac_cpp_err=yes
5747fi
5748if test -z "$ac_cpp_err"; then
5749  # Broken: success on invalid input.
5750continue
5751else
5752  echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755  # Passes both tests.
5756ac_preproc_ok=:
5757break
5758fi
5759rm -f conftest.err conftest.$ac_ext
5760
5761done
5762# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5763rm -f conftest.err conftest.$ac_ext
5764if $ac_preproc_ok; then
5765  :
5766else
5767  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5768See \`config.log' for more details." >&5
5769echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5770See \`config.log' for more details." >&2;}
5771   { (exit 1); exit 1; }; }
5772fi
5773
5774ac_ext=c
5775ac_cpp='$CPP $CPPFLAGS'
5776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778ac_compiler_gnu=$ac_cv_c_compiler_gnu
5779
5780
5781echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5782echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5783if test "${ac_cv_header_stdc+set}" = set; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786  cat >conftest.$ac_ext <<_ACEOF
5787/* confdefs.h.  */
5788_ACEOF
5789cat confdefs.h >>conftest.$ac_ext
5790cat >>conftest.$ac_ext <<_ACEOF
5791/* end confdefs.h.  */
5792#include <stdlib.h>
5793#include <stdarg.h>
5794#include <string.h>
5795#include <float.h>
5796
5797int
5798main ()
5799{
5800
5801  ;
5802  return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext
5806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807  (eval $ac_compile) 2>conftest.er1
5808  ac_status=$?
5809  grep -v '^ *+' conftest.er1 >conftest.err
5810  rm -f conftest.er1
5811  cat conftest.err >&5
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); } &&
5814         { ac_try='test -z "$ac_c_werror_flag"
5815                         || test ! -s conftest.err'
5816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817  (eval $ac_try) 2>&5
5818  ac_status=$?
5819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820  (exit $ac_status); }; } &&
5821         { ac_try='test -s conftest.$ac_objext'
5822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823  (eval $ac_try) 2>&5
5824  ac_status=$?
5825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826  (exit $ac_status); }; }; then
5827  ac_cv_header_stdc=yes
5828else
5829  echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832ac_cv_header_stdc=no
5833fi
5834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5835
5836if test $ac_cv_header_stdc = yes; then
5837  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5838  cat >conftest.$ac_ext <<_ACEOF
5839/* confdefs.h.  */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h.  */
5844#include <string.h>
5845
5846_ACEOF
5847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5848  $EGREP "memchr" >/dev/null 2>&1; then
5849  :
5850else
5851  ac_cv_header_stdc=no
5852fi
5853rm -f conftest*
5854
5855fi
5856
5857if test $ac_cv_header_stdc = yes; then
5858  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5859  cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h.  */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h.  */
5865#include <stdlib.h>
5866
5867_ACEOF
5868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5869  $EGREP "free" >/dev/null 2>&1; then
5870  :
5871else
5872  ac_cv_header_stdc=no
5873fi
5874rm -f conftest*
5875
5876fi
5877
5878if test $ac_cv_header_stdc = yes; then
5879  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5880  if test "$cross_compiling" = yes; then
5881  :
5882else
5883  cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h.  */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h.  */
5889#include <ctype.h>
5890#if ((' ' & 0x0FF) == 0x020)
5891# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5892# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5893#else
5894# define ISLOWER(c) \
5895                   (('a' <= (c) && (c) <= 'i') \
5896                     || ('j' <= (c) && (c) <= 'r') \
5897                     || ('s' <= (c) && (c) <= 'z'))
5898# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5899#endif
5900
5901#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5902int
5903main ()
5904{
5905  int i;
5906  for (i = 0; i < 256; i++)
5907    if (XOR (islower (i), ISLOWER (i))
5908        || toupper (i) != TOUPPER (i))
5909      exit(2);
5910  exit (0);
5911}
5912_ACEOF
5913rm -f conftest$ac_exeext
5914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5915  (eval $ac_link) 2>&5
5916  ac_status=$?
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920  (eval $ac_try) 2>&5
5921  ac_status=$?
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); }; }; then
5924  :
5925else
5926  echo "$as_me: program exited with status $ac_status" >&5
5927echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930( exit $ac_status )
5931ac_cv_header_stdc=no
5932fi
5933rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5934fi
5935fi
5936fi
5937echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5938echo "${ECHO_T}$ac_cv_header_stdc" >&6
5939if test $ac_cv_header_stdc = yes; then
5940
5941cat >>confdefs.h <<\_ACEOF
5942#define STDC_HEADERS 1
5943_ACEOF
5944
5945fi
5946
5947# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5958                  inttypes.h stdint.h unistd.h
5959do
5960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961echo "$as_me:$LINENO: checking for $ac_header" >&5
5962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5963if eval "test \"\${$as_ac_Header+set}\" = set"; then
5964  echo $ECHO_N "(cached) $ECHO_C" >&6
5965else
5966  cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h.  */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h.  */
5972$ac_includes_default
5973
5974#include <$ac_header>
5975_ACEOF
5976rm -f conftest.$ac_objext
5977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978  (eval $ac_compile) 2>conftest.er1
5979  ac_status=$?
5980  grep -v '^ *+' conftest.er1 >conftest.err
5981  rm -f conftest.er1
5982  cat conftest.err >&5
5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); } &&
5985         { ac_try='test -z "$ac_c_werror_flag"
5986                         || test ! -s conftest.err'
5987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988  (eval $ac_try) 2>&5
5989  ac_status=$?
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); }; } &&
5992         { ac_try='test -s conftest.$ac_objext'
5993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994  (eval $ac_try) 2>&5
5995  ac_status=$?
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); }; }; then
5998  eval "$as_ac_Header=yes"
5999else
6000  echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003eval "$as_ac_Header=no"
6004fi
6005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6006fi
6007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6009if test `eval echo '${'$as_ac_Header'}'` = yes; then
6010  cat >>confdefs.h <<_ACEOF
6011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6012_ACEOF
6013
6014fi
6015
6016done
6017
6018
6019
6020for ac_header in dlfcn.h
6021do
6022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023if eval "test \"\${$as_ac_Header+set}\" = set"; then
6024  echo "$as_me:$LINENO: checking for $ac_header" >&5
6025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6026if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027  echo $ECHO_N "(cached) $ECHO_C" >&6
6028fi
6029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6031else
6032  # Is the header compilable?
6033echo "$as_me:$LINENO: checking $ac_header usability" >&5
6034echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6035cat >conftest.$ac_ext <<_ACEOF
6036/* confdefs.h.  */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
6040/* end confdefs.h.  */
6041$ac_includes_default
6042#include <$ac_header>
6043_ACEOF
6044rm -f conftest.$ac_objext
6045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046  (eval $ac_compile) 2>conftest.er1
6047  ac_status=$?
6048  grep -v '^ *+' conftest.er1 >conftest.err
6049  rm -f conftest.er1
6050  cat conftest.err >&5
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); } &&
6053         { ac_try='test -z "$ac_c_werror_flag"
6054                         || test ! -s conftest.err'
6055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056  (eval $ac_try) 2>&5
6057  ac_status=$?
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); }; } &&
6060         { ac_try='test -s conftest.$ac_objext'
6061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062  (eval $ac_try) 2>&5
6063  ac_status=$?
6064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065  (exit $ac_status); }; }; then
6066  ac_header_compiler=yes
6067else
6068  echo "$as_me: failed program was:" >&5
6069sed 's/^/| /' conftest.$ac_ext >&5
6070
6071ac_header_compiler=no
6072fi
6073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075echo "${ECHO_T}$ac_header_compiler" >&6
6076
6077# Is the header present?
6078echo "$as_me:$LINENO: checking $ac_header presence" >&5
6079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6080cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h.  */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h.  */
6086#include <$ac_header>
6087_ACEOF
6088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6089  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6090  ac_status=$?
6091  grep -v '^ *+' conftest.er1 >conftest.err
6092  rm -f conftest.er1
6093  cat conftest.err >&5
6094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095  (exit $ac_status); } >/dev/null; then
6096  if test -s conftest.err; then
6097    ac_cpp_err=$ac_c_preproc_warn_flag
6098    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6099  else
6100    ac_cpp_err=
6101  fi
6102else
6103  ac_cpp_err=yes
6104fi
6105if test -z "$ac_cpp_err"; then
6106  ac_header_preproc=yes
6107else
6108  echo "$as_me: failed program was:" >&5
6109sed 's/^/| /' conftest.$ac_ext >&5
6110
6111  ac_header_preproc=no
6112fi
6113rm -f conftest.err conftest.$ac_ext
6114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6115echo "${ECHO_T}$ac_header_preproc" >&6
6116
6117# So?  What about this header?
6118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6119  yes:no: )
6120    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6122    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6124    ac_header_preproc=yes
6125    ;;
6126  no:yes:* )
6127    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6129    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6130echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6131    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6133    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6134echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6135    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6137    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6139    (
6140      cat <<\_ASBOX
6141## --------------------------------------------------------------- ##
6142## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6143## --------------------------------------------------------------- ##
6144_ASBOX
6145    ) |
6146      sed "s/^/$as_me: WARNING:     /" >&2
6147    ;;
6148esac
6149echo "$as_me:$LINENO: checking for $ac_header" >&5
6150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6151if eval "test \"\${$as_ac_Header+set}\" = set"; then
6152  echo $ECHO_N "(cached) $ECHO_C" >&6
6153else
6154  eval "$as_ac_Header=\$ac_header_preproc"
6155fi
6156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6158
6159fi
6160if test `eval echo '${'$as_ac_Header'}'` = yes; then
6161  cat >>confdefs.h <<_ACEOF
6162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6163_ACEOF
6164
6165fi
6166
6167done
6168
6169ac_ext=cc
6170ac_cpp='$CXXCPP $CPPFLAGS'
6171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6174if test -n "$ac_tool_prefix"; then
6175  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6176  do
6177    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6179echo "$as_me:$LINENO: checking for $ac_word" >&5
6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6181if test "${ac_cv_prog_CXX+set}" = set; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184  if test -n "$CXX"; then
6185  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190  IFS=$as_save_IFS
6191  test -z "$as_dir" && as_dir=.
6192  for ac_exec_ext in '' $ac_executable_extensions; do
6193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196    break 2
6197  fi
6198done
6199done
6200
6201fi
6202fi
6203CXX=$ac_cv_prog_CXX
6204if test -n "$CXX"; then
6205  echo "$as_me:$LINENO: result: $CXX" >&5
6206echo "${ECHO_T}$CXX" >&6
6207else
6208  echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210fi
6211
6212    test -n "$CXX" && break
6213  done
6214fi
6215if test -z "$CXX"; then
6216  ac_ct_CXX=$CXX
6217  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6218do
6219  # Extract the first word of "$ac_prog", so it can be a program name with args.
6220set dummy $ac_prog; ac_word=$2
6221echo "$as_me:$LINENO: checking for $ac_word" >&5
6222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6223if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6224  echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226  if test -n "$ac_ct_CXX"; then
6227  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  test -z "$as_dir" && as_dir=.
6234  for ac_exec_ext in '' $ac_executable_extensions; do
6235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236    ac_cv_prog_ac_ct_CXX="$ac_prog"
6237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238    break 2
6239  fi
6240done
6241done
6242
6243fi
6244fi
6245ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6246if test -n "$ac_ct_CXX"; then
6247  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6248echo "${ECHO_T}$ac_ct_CXX" >&6
6249else
6250  echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6
6252fi
6253
6254  test -n "$ac_ct_CXX" && break
6255done
6256test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6257
6258  CXX=$ac_ct_CXX
6259fi
6260
6261
6262# Provide some information about the compiler.
6263echo "$as_me:$LINENO:" \
6264     "checking for C++ compiler version" >&5
6265ac_compiler=`set X $ac_compile; echo $2`
6266{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6267  (eval $ac_compiler --version </dev/null >&5) 2>&5
6268  ac_status=$?
6269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270  (exit $ac_status); }
6271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6272  (eval $ac_compiler -v </dev/null >&5) 2>&5
6273  ac_status=$?
6274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275  (exit $ac_status); }
6276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6277  (eval $ac_compiler -V </dev/null >&5) 2>&5
6278  ac_status=$?
6279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); }
6281
6282echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6283echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6284if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6285  echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287  cat >conftest.$ac_ext <<_ACEOF
6288/* confdefs.h.  */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h.  */
6293
6294int
6295main ()
6296{
6297#ifndef __GNUC__
6298       choke me
6299#endif
6300
6301  ;
6302  return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307  (eval $ac_compile) 2>conftest.er1
6308  ac_status=$?
6309  grep -v '^ *+' conftest.er1 >conftest.err
6310  rm -f conftest.er1
6311  cat conftest.err >&5
6312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313  (exit $ac_status); } &&
6314         { ac_try='test -z "$ac_cxx_werror_flag"
6315                         || test ! -s conftest.err'
6316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317  (eval $ac_try) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); }; } &&
6321         { ac_try='test -s conftest.$ac_objext'
6322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323  (eval $ac_try) 2>&5
6324  ac_status=$?
6325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326  (exit $ac_status); }; }; then
6327  ac_compiler_gnu=yes
6328else
6329  echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332ac_compiler_gnu=no
6333fi
6334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6335ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6336
6337fi
6338echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6339echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6340GXX=`test $ac_compiler_gnu = yes && echo yes`
6341ac_test_CXXFLAGS=${CXXFLAGS+set}
6342ac_save_CXXFLAGS=$CXXFLAGS
6343CXXFLAGS="-g"
6344echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6345echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6346if test "${ac_cv_prog_cxx_g+set}" = set; then
6347  echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349  cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h.  */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h.  */
6355
6356int
6357main ()
6358{
6359
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext
6365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366  (eval $ac_compile) 2>conftest.er1
6367  ac_status=$?
6368  grep -v '^ *+' conftest.er1 >conftest.err
6369  rm -f conftest.er1
6370  cat conftest.err >&5
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); } &&
6373         { ac_try='test -z "$ac_cxx_werror_flag"
6374                         || test ! -s conftest.err'
6375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376  (eval $ac_try) 2>&5
6377  ac_status=$?
6378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379  (exit $ac_status); }; } &&
6380         { ac_try='test -s conftest.$ac_objext'
6381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382  (eval $ac_try) 2>&5
6383  ac_status=$?
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); }; }; then
6386  ac_cv_prog_cxx_g=yes
6387else
6388  echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391ac_cv_prog_cxx_g=no
6392fi
6393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6394fi
6395echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6396echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6397if test "$ac_test_CXXFLAGS" = set; then
6398  CXXFLAGS=$ac_save_CXXFLAGS
6399elif test $ac_cv_prog_cxx_g = yes; then
6400  if test "$GXX" = yes; then
6401    CXXFLAGS="-g -O2"
6402  else
6403    CXXFLAGS="-g"
6404  fi
6405else
6406  if test "$GXX" = yes; then
6407    CXXFLAGS="-O2"
6408  else
6409    CXXFLAGS=
6410  fi
6411fi
6412for ac_declaration in \
6413   '' \
6414   'extern "C" void std::exit (int) throw (); using std::exit;' \
6415   'extern "C" void std::exit (int); using std::exit;' \
6416   'extern "C" void exit (int) throw ();' \
6417   'extern "C" void exit (int);' \
6418   'void exit (int);'
6419do
6420  cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h.  */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h.  */
6426$ac_declaration
6427#include <stdlib.h>
6428int
6429main ()
6430{
6431exit (42);
6432  ;
6433  return 0;
6434}
6435_ACEOF
6436rm -f conftest.$ac_objext
6437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438  (eval $ac_compile) 2>conftest.er1
6439  ac_status=$?
6440  grep -v '^ *+' conftest.er1 >conftest.err
6441  rm -f conftest.er1
6442  cat conftest.err >&5
6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); } &&
6445         { ac_try='test -z "$ac_cxx_werror_flag"
6446                         || test ! -s conftest.err'
6447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448  (eval $ac_try) 2>&5
6449  ac_status=$?
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); }; } &&
6452         { ac_try='test -s conftest.$ac_objext'
6453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454  (eval $ac_try) 2>&5
6455  ac_status=$?
6456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457  (exit $ac_status); }; }; then
6458  :
6459else
6460  echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463continue
6464fi
6465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6466  cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h.  */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h.  */
6472$ac_declaration
6473int
6474main ()
6475{
6476exit (42);
6477  ;
6478  return 0;
6479}
6480_ACEOF
6481rm -f conftest.$ac_objext
6482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483  (eval $ac_compile) 2>conftest.er1
6484  ac_status=$?
6485  grep -v '^ *+' conftest.er1 >conftest.err
6486  rm -f conftest.er1
6487  cat conftest.err >&5
6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); } &&
6490         { ac_try='test -z "$ac_cxx_werror_flag"
6491                         || test ! -s conftest.err'
6492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493  (eval $ac_try) 2>&5
6494  ac_status=$?
6495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496  (exit $ac_status); }; } &&
6497         { ac_try='test -s conftest.$ac_objext'
6498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499  (eval $ac_try) 2>&5
6500  ac_status=$?
6501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502  (exit $ac_status); }; }; then
6503  break
6504else
6505  echo "$as_me: failed program was:" >&5
6506sed 's/^/| /' conftest.$ac_ext >&5
6507
6508fi
6509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6510done
6511rm -f conftest*
6512if test -n "$ac_declaration"; then
6513  echo '#ifdef __cplusplus' >>confdefs.h
6514  echo $ac_declaration      >>confdefs.h
6515  echo '#endif'             >>confdefs.h
6516fi
6517
6518ac_ext=cc
6519ac_cpp='$CXXCPP $CPPFLAGS'
6520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6523
6524depcc="$CXX"  am_compiler_list=
6525
6526echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6527echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6528if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6532  # We make a subdir and do the tests there.  Otherwise we can end up
6533  # making bogus files that we don't know about and never remove.  For
6534  # instance it was reported that on HP-UX the gcc test will end up
6535  # making a dummy file named `D' -- because `-MD' means `put the output
6536  # in D'.
6537  mkdir conftest.dir
6538  # Copy depcomp to subdir because otherwise we won't find it if we're
6539  # using a relative directory.
6540  cp "$am_depcomp" conftest.dir
6541  cd conftest.dir
6542  # We will build objects and dependencies in a subdirectory because
6543  # it helps to detect inapplicable dependency modes.  For instance
6544  # both Tru64's cc and ICC support -MD to output dependencies as a
6545  # side effect of compilation, but ICC will put the dependencies in
6546  # the current directory while Tru64 will put them in the object
6547  # directory.
6548  mkdir sub
6549
6550  am_cv_CXX_dependencies_compiler_type=none
6551  if test "$am_compiler_list" = ""; then
6552     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6553  fi
6554  for depmode in $am_compiler_list; do
6555    # Setup a source with many dependencies, because some compilers
6556    # like to wrap large dependency lists on column 80 (with \), and
6557    # we should not choose a depcomp mode which is confused by this.
6558    #
6559    # We need to recreate these files for each test, as the compiler may
6560    # overwrite some of them when testing with obscure command lines.
6561    # This happens at least with the AIX C compiler.
6562    : > sub/conftest.c
6563    for i in 1 2 3 4 5 6; do
6564      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6565      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6566      # Solaris 8's {/usr,}/bin/sh.
6567      touch sub/conftst$i.h
6568    done
6569    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6570
6571    case $depmode in
6572    nosideeffect)
6573      # after this tag, mechanisms are not by side-effect, so they'll
6574      # only be used when explicitly requested
6575      if test "x$enable_dependency_tracking" = xyes; then
6576        continue
6577      else
6578        break
6579      fi
6580      ;;
6581    none) break ;;
6582    esac
6583    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6584    # mode.  It turns out that the SunPro C++ compiler does not properly
6585    # handle `-M -o', and we need to detect this.
6586    if depmode=$depmode \
6587       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6588       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6589       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6590         >/dev/null 2>conftest.err &&
6591       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6592       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6593       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6594      # icc doesn't choke on unknown options, it will just issue warnings
6595      # or remarks (even with -Werror).  So we grep stderr for any message
6596      # that says an option was ignored or not supported.
6597      # When given -MP, icc 7.0 and 7.1 complain thusly:
6598      #   icc: Command line warning: ignoring option '-M'; no argument required
6599      # The diagnosis changed in icc 8.0:
6600      #   icc: Command line remark: option '-MP' not supported
6601      if (grep 'ignoring option' conftest.err ||
6602          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6603        am_cv_CXX_dependencies_compiler_type=$depmode
6604        break
6605      fi
6606    fi
6607  done
6608
6609  cd ..
6610  rm -rf conftest.dir
6611else
6612  am_cv_CXX_dependencies_compiler_type=none
6613fi
6614
6615fi
6616echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6617echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6618CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6619
6620
6621
6622if
6623  test "x$enable_dependency_tracking" != xno \
6624  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6625  am__fastdepCXX_TRUE=
6626  am__fastdepCXX_FALSE='#'
6627else
6628  am__fastdepCXX_TRUE='#'
6629  am__fastdepCXX_FALSE=
6630fi
6631
6632
6633
6634
6635if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6636    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6637    (test "X$CXX" != "Xg++"))) ; then
6638  ac_ext=cc
6639ac_cpp='$CXXCPP $CPPFLAGS'
6640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6643echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6644echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6645if test -z "$CXXCPP"; then
6646  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6647  echo $ECHO_N "(cached) $ECHO_C" >&6
6648else
6649      # Double quotes because CXXCPP needs to be expanded
6650    for CXXCPP in "$CXX -E" "/lib/cpp"
6651    do
6652      ac_preproc_ok=false
6653for ac_cxx_preproc_warn_flag in '' yes
6654do
6655  # Use a header file that comes with gcc, so configuring glibc
6656  # with a fresh cross-compiler works.
6657  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6658  # <limits.h> exists even on freestanding compilers.
6659  # On the NeXT, cc -E runs the code through the compiler's parser,
6660  # not just through cpp. "Syntax error" is here to catch this case.
6661  cat >conftest.$ac_ext <<_ACEOF
6662/* confdefs.h.  */
6663_ACEOF
6664cat confdefs.h >>conftest.$ac_ext
6665cat >>conftest.$ac_ext <<_ACEOF
6666/* end confdefs.h.  */
6667#ifdef __STDC__
6668# include <limits.h>
6669#else
6670# include <assert.h>
6671#endif
6672                     Syntax error
6673_ACEOF
6674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6675  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6676  ac_status=$?
6677  grep -v '^ *+' conftest.er1 >conftest.err
6678  rm -f conftest.er1
6679  cat conftest.err >&5
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); } >/dev/null; then
6682  if test -s conftest.err; then
6683    ac_cpp_err=$ac_cxx_preproc_warn_flag
6684    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6685  else
6686    ac_cpp_err=
6687  fi
6688else
6689  ac_cpp_err=yes
6690fi
6691if test -z "$ac_cpp_err"; then
6692  :
6693else
6694  echo "$as_me: failed program was:" >&5
6695sed 's/^/| /' conftest.$ac_ext >&5
6696
6697  # Broken: fails on valid input.
6698continue
6699fi
6700rm -f conftest.err conftest.$ac_ext
6701
6702  # OK, works on sane cases.  Now check whether non-existent headers
6703  # can be detected and how.
6704  cat >conftest.$ac_ext <<_ACEOF
6705/* confdefs.h.  */
6706_ACEOF
6707cat confdefs.h >>conftest.$ac_ext
6708cat >>conftest.$ac_ext <<_ACEOF
6709/* end confdefs.h.  */
6710#include <ac_nonexistent.h>
6711_ACEOF
6712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6713  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6714  ac_status=$?
6715  grep -v '^ *+' conftest.er1 >conftest.err
6716  rm -f conftest.er1
6717  cat conftest.err >&5
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); } >/dev/null; then
6720  if test -s conftest.err; then
6721    ac_cpp_err=$ac_cxx_preproc_warn_flag
6722    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6723  else
6724    ac_cpp_err=
6725  fi
6726else
6727  ac_cpp_err=yes
6728fi
6729if test -z "$ac_cpp_err"; then
6730  # Broken: success on invalid input.
6731continue
6732else
6733  echo "$as_me: failed program was:" >&5
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
6736  # Passes both tests.
6737ac_preproc_ok=:
6738break
6739fi
6740rm -f conftest.err conftest.$ac_ext
6741
6742done
6743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6744rm -f conftest.err conftest.$ac_ext
6745if $ac_preproc_ok; then
6746  break
6747fi
6748
6749    done
6750    ac_cv_prog_CXXCPP=$CXXCPP
6751
6752fi
6753  CXXCPP=$ac_cv_prog_CXXCPP
6754else
6755  ac_cv_prog_CXXCPP=$CXXCPP
6756fi
6757echo "$as_me:$LINENO: result: $CXXCPP" >&5
6758echo "${ECHO_T}$CXXCPP" >&6
6759ac_preproc_ok=false
6760for ac_cxx_preproc_warn_flag in '' yes
6761do
6762  # Use a header file that comes with gcc, so configuring glibc
6763  # with a fresh cross-compiler works.
6764  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6765  # <limits.h> exists even on freestanding compilers.
6766  # On the NeXT, cc -E runs the code through the compiler's parser,
6767  # not just through cpp. "Syntax error" is here to catch this case.
6768  cat >conftest.$ac_ext <<_ACEOF
6769/* confdefs.h.  */
6770_ACEOF
6771cat confdefs.h >>conftest.$ac_ext
6772cat >>conftest.$ac_ext <<_ACEOF
6773/* end confdefs.h.  */
6774#ifdef __STDC__
6775# include <limits.h>
6776#else
6777# include <assert.h>
6778#endif
6779                     Syntax error
6780_ACEOF
6781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6782  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6783  ac_status=$?
6784  grep -v '^ *+' conftest.er1 >conftest.err
6785  rm -f conftest.er1
6786  cat conftest.err >&5
6787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788  (exit $ac_status); } >/dev/null; then
6789  if test -s conftest.err; then
6790    ac_cpp_err=$ac_cxx_preproc_warn_flag
6791    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6792  else
6793    ac_cpp_err=
6794  fi
6795else
6796  ac_cpp_err=yes
6797fi
6798if test -z "$ac_cpp_err"; then
6799  :
6800else
6801  echo "$as_me: failed program was:" >&5
6802sed 's/^/| /' conftest.$ac_ext >&5
6803
6804  # Broken: fails on valid input.
6805continue
6806fi
6807rm -f conftest.err conftest.$ac_ext
6808
6809  # OK, works on sane cases.  Now check whether non-existent headers
6810  # can be detected and how.
6811  cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h.  */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h.  */
6817#include <ac_nonexistent.h>
6818_ACEOF
6819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6820  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6821  ac_status=$?
6822  grep -v '^ *+' conftest.er1 >conftest.err
6823  rm -f conftest.er1
6824  cat conftest.err >&5
6825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826  (exit $ac_status); } >/dev/null; then
6827  if test -s conftest.err; then
6828    ac_cpp_err=$ac_cxx_preproc_warn_flag
6829    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6830  else
6831    ac_cpp_err=
6832  fi
6833else
6834  ac_cpp_err=yes
6835fi
6836if test -z "$ac_cpp_err"; then
6837  # Broken: success on invalid input.
6838continue
6839else
6840  echo "$as_me: failed program was:" >&5
6841sed 's/^/| /' conftest.$ac_ext >&5
6842
6843  # Passes both tests.
6844ac_preproc_ok=:
6845break
6846fi
6847rm -f conftest.err conftest.$ac_ext
6848
6849done
6850# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6851rm -f conftest.err conftest.$ac_ext
6852if $ac_preproc_ok; then
6853  :
6854else
6855  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6856See \`config.log' for more details." >&5
6857echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6858See \`config.log' for more details." >&2;}
6859   { (exit 1); exit 1; }; }
6860fi
6861
6862ac_ext=cc
6863ac_cpp='$CXXCPP $CPPFLAGS'
6864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6867
6868fi
6869
6870
6871
6872# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6873
6874# find the maximum length of command line arguments
6875echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6876echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6877if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6878  echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880    i=0
6881  teststring="ABCD"
6882
6883  case $build_os in
6884  msdosdjgpp*)
6885    # On DJGPP, this test can blow up pretty badly due to problems in libc
6886    # (any single argument exceeding 2000 bytes causes a buffer overrun
6887    # during glob expansion).  Even if it were fixed, the result of this
6888    # check would be larger than it should be.
6889    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6890    ;;
6891
6892  gnu*)
6893    # Under GNU Hurd, this test is not required because there is
6894    # no limit to the length of command line arguments.
6895    # Libtool will interpret -1 as no limit whatsoever
6896    lt_cv_sys_max_cmd_len=-1;
6897    ;;
6898
6899  cygwin* | mingw*)
6900    # On Win9x/ME, this test blows up -- it succeeds, but takes
6901    # about 5 minutes as the teststring grows exponentially.
6902    # Worse, since 9x/ME are not pre-emptively multitasking,
6903    # you end up with a "frozen" computer, even though with patience
6904    # the test eventually succeeds (with a max line length of 256k).
6905    # Instead, let's just punt: use the minimum linelength reported by
6906    # all of the supported platforms: 8192 (on NT/2K/XP).
6907    lt_cv_sys_max_cmd_len=8192;
6908    ;;
6909
6910  amigaos*)
6911    # On AmigaOS with pdksh, this test takes hours, literally.
6912    # So we just punt and use a minimum line length of 8192.
6913    lt_cv_sys_max_cmd_len=8192;
6914    ;;
6915
6916  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6917    # This has been around since 386BSD, at least.  Likely further.
6918    if test -x /sbin/sysctl; then
6919      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6920    elif test -x /usr/sbin/sysctl; then
6921      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6922    else
6923      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6924    fi
6925    # And add a safety zone
6926    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6927    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6928    ;;
6929
6930  interix*)
6931    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6932    lt_cv_sys_max_cmd_len=196608
6933    ;;
6934
6935  osf*)
6936    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6937    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6938    # nice to cause kernel panics so lets avoid the loop below.
6939    # First set a reasonable default.
6940    lt_cv_sys_max_cmd_len=16384
6941    #
6942    if test -x /sbin/sysconfig; then
6943      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6944        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6945      esac
6946    fi
6947    ;;
6948  sco3.2v5*)
6949    lt_cv_sys_max_cmd_len=102400
6950    ;;
6951  sysv5* | sco5v6* | sysv4.2uw2*)
6952    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6953    if test -n "$kargmax"; then
6954      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6955    else
6956      lt_cv_sys_max_cmd_len=32768
6957    fi
6958    ;;
6959  *)
6960    # If test is not a shell built-in, we'll probably end up computing a
6961    # maximum length that is only half of the actual maximum length, but
6962    # we can't tell.
6963    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6964    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6965               = "XX$teststring") >/dev/null 2>&1 &&
6966            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6967            lt_cv_sys_max_cmd_len=$new_result &&
6968            test $i != 17 # 1/2 MB should be enough
6969    do
6970      i=`expr $i + 1`
6971      teststring=$teststring$teststring
6972    done
6973    teststring=
6974    # Add a significant safety factor because C++ compilers can tack on massive
6975    # amounts of additional arguments before passing them to the linker.
6976    # It appears as though 1/2 is a usable value.
6977    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6978    ;;
6979  esac
6980
6981fi
6982
6983if test -n $lt_cv_sys_max_cmd_len ; then
6984  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6985echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6986else
6987  echo "$as_me:$LINENO: result: none" >&5
6988echo "${ECHO_T}none" >&6
6989fi
6990
6991
6992
6993
6994# Check for command to grab the raw symbol name followed by C symbol from nm.
6995echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6996echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6997if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6998  echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000
7001# These are sane defaults that work on at least a few old systems.
7002# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7003
7004# Character class describing NM global symbol codes.
7005symcode='[BCDEGRST]'
7006
7007# Regexp to match symbols that can be accessed directly from C.
7008sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7009
7010# Transform an extracted symbol line into a proper C declaration
7011lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7012
7013# Transform an extracted symbol line into symbol name and symbol address
7014lt_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'"
7015
7016# Define system-specific variables.
7017case $host_os in
7018aix*)
7019  symcode='[BCDT]'
7020  ;;
7021cygwin* | mingw* | pw32*)
7022  symcode='[ABCDGISTW]'
7023  ;;
7024hpux*) # Its linker distinguishes data from code symbols
7025  if test "$host_cpu" = ia64; then
7026    symcode='[ABCDEGRST]'
7027  fi
7028  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7029  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'"
7030  ;;
7031linux*)
7032  if test "$host_cpu" = ia64; then
7033    symcode='[ABCDGIRSTW]'
7034    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7035    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'"
7036  fi
7037  ;;
7038irix* | nonstopux*)
7039  symcode='[BCDEGRST]'
7040  ;;
7041osf*)
7042  symcode='[BCDEGQRST]'
7043  ;;
7044solaris*)
7045  symcode='[BDRT]'
7046  ;;
7047sco3.2v5*)
7048  symcode='[DT]'
7049  ;;
7050sysv4.2uw2*)
7051  symcode='[DT]'
7052  ;;
7053sysv5* | sco5v6* | unixware* | OpenUNIX*)
7054  symcode='[ABDT]'
7055  ;;
7056sysv4)
7057  symcode='[DFNSTU]'
7058  ;;
7059esac
7060
7061# Handle CRLF in mingw tool chain
7062opt_cr=
7063case $build_os in
7064mingw*)
7065  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7066  ;;
7067esac
7068
7069# If we're using GNU nm, then use its standard symbol codes.
7070case `$NM -V 2>&1` in
7071*GNU* | *'with BFD'*)
7072  symcode='[ABCDGIRSTW]' ;;
7073esac
7074
7075# Try without a prefix undercore, then with it.
7076for ac_symprfx in "" "_"; do
7077
7078  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7079  symxfrm="\\1 $ac_symprfx\\2 \\2"
7080
7081  # Write the raw and C identifiers.
7082  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7083
7084  # Check to see that the pipe works correctly.
7085  pipe_works=no
7086
7087  rm -f conftest*
7088  cat > conftest.$ac_ext <<EOF
7089#ifdef __cplusplus
7090extern "C" {
7091#endif
7092char nm_test_var;
7093void nm_test_func(){}
7094#ifdef __cplusplus
7095}
7096#endif
7097int main(){nm_test_var='a';nm_test_func();return(0);}
7098EOF
7099
7100  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101  (eval $ac_compile) 2>&5
7102  ac_status=$?
7103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104  (exit $ac_status); }; then
7105    # Now try to grab the symbols.
7106    nlist=conftest.nm
7107    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7108  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7109  ac_status=$?
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); } && test -s "$nlist"; then
7112      # Try sorting and uniquifying the output.
7113      if sort "$nlist" | uniq > "$nlist"T; then
7114        mv -f "$nlist"T "$nlist"
7115      else
7116        rm -f "$nlist"T
7117      fi
7118
7119      # Make sure that we snagged all the symbols we need.
7120      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7121        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7122          cat <<EOF > conftest.$ac_ext
7123#ifdef __cplusplus
7124extern "C" {
7125#endif
7126
7127EOF
7128          # Now generate the symbol file.
7129          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7130
7131          cat <<EOF >> conftest.$ac_ext
7132#if defined (__STDC__) && __STDC__
7133# define lt_ptr_t void *
7134#else
7135# define lt_ptr_t char *
7136# define const
7137#endif
7138
7139/* The mapping between symbol names and symbols. */
7140const struct {
7141  const char *name;
7142  lt_ptr_t address;
7143}
7144lt_preloaded_symbols[] =
7145{
7146EOF
7147          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7148          cat <<\EOF >> conftest.$ac_ext
7149  {0, (lt_ptr_t) 0}
7150};
7151
7152#ifdef __cplusplus
7153}
7154#endif
7155EOF
7156          # Now try linking the two files.
7157          mv conftest.$ac_objext conftstm.$ac_objext
7158          lt_save_LIBS="$LIBS"
7159          lt_save_CFLAGS="$CFLAGS"
7160          LIBS="conftstm.$ac_objext"
7161          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7162          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7163  (eval $ac_link) 2>&5
7164  ac_status=$?
7165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7167            pipe_works=yes
7168          fi
7169          LIBS="$lt_save_LIBS"
7170          CFLAGS="$lt_save_CFLAGS"
7171        else
7172          echo "cannot find nm_test_func in $nlist" >&5
7173        fi
7174      else
7175        echo "cannot find nm_test_var in $nlist" >&5
7176      fi
7177    else
7178      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7179    fi
7180  else
7181    echo "$progname: failed program was:" >&5
7182    cat conftest.$ac_ext >&5
7183  fi
7184  rm -f conftest* conftst*
7185
7186  # Do not use the global_symbol_pipe unless it works.
7187  if test "$pipe_works" = yes; then
7188    break
7189  else
7190    lt_cv_sys_global_symbol_pipe=
7191  fi
7192done
7193
7194fi
7195
7196if test -z "$lt_cv_sys_global_symbol_pipe"; then
7197  lt_cv_sys_global_symbol_to_cdecl=
7198fi
7199if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7200  echo "$as_me:$LINENO: result: failed" >&5
7201echo "${ECHO_T}failed" >&6
7202else
7203  echo "$as_me:$LINENO: result: ok" >&5
7204echo "${ECHO_T}ok" >&6
7205fi
7206
7207echo "$as_me:$LINENO: checking for objdir" >&5
7208echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7209if test "${lt_cv_objdir+set}" = set; then
7210  echo $ECHO_N "(cached) $ECHO_C" >&6
7211else
7212  rm -f .libs 2>/dev/null
7213mkdir .libs 2>/dev/null
7214if test -d .libs; then
7215  lt_cv_objdir=.libs
7216else
7217  # MS-DOS does not allow filenames that begin with a dot.
7218  lt_cv_objdir=_libs
7219fi
7220rmdir .libs 2>/dev/null
7221fi
7222echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7223echo "${ECHO_T}$lt_cv_objdir" >&6
7224objdir=$lt_cv_objdir
7225
7226
7227
7228
7229
7230case $host_os in
7231aix3*)
7232  # AIX sometimes has problems with the GCC collect2 program.  For some
7233  # reason, if we set the COLLECT_NAMES environment variable, the problems
7234  # vanish in a puff of smoke.
7235  if test "X${COLLECT_NAMES+set}" != Xset; then
7236    COLLECT_NAMES=
7237    export COLLECT_NAMES
7238  fi
7239  ;;
7240esac
7241
7242# Sed substitution that helps us do robust quoting.  It backslashifies
7243# metacharacters that are still active within double-quoted strings.
7244Xsed='sed -e 1s/^X//'
7245sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7246
7247# Same as above, but do not quote variable references.
7248double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7249
7250# Sed substitution to delay expansion of an escaped shell variable in a
7251# double_quote_subst'ed string.
7252delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7253
7254# Sed substitution to avoid accidental globbing in evaled expressions
7255no_glob_subst='s/\*/\\\*/g'
7256
7257# Constants:
7258rm="rm -f"
7259
7260# Global variables:
7261default_ofile=libtool
7262can_build_shared=yes
7263
7264# All known linkers require a `.a' archive for static linking (except MSVC,
7265# which needs '.lib').
7266libext=a
7267ltmain="$ac_aux_dir/ltmain.sh"
7268ofile="$default_ofile"
7269with_gnu_ld="$lt_cv_prog_gnu_ld"
7270
7271if test -n "$ac_tool_prefix"; then
7272  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7273set dummy ${ac_tool_prefix}ar; ac_word=$2
7274echo "$as_me:$LINENO: checking for $ac_word" >&5
7275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7276if test "${ac_cv_prog_AR+set}" = set; then
7277  echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279  if test -n "$AR"; then
7280  ac_cv_prog_AR="$AR" # Let the user override the test.
7281else
7282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285  IFS=$as_save_IFS
7286  test -z "$as_dir" && as_dir=.
7287  for ac_exec_ext in '' $ac_executable_extensions; do
7288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289    ac_cv_prog_AR="${ac_tool_prefix}ar"
7290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291    break 2
7292  fi
7293done
7294done
7295
7296fi
7297fi
7298AR=$ac_cv_prog_AR
7299if test -n "$AR"; then
7300  echo "$as_me:$LINENO: result: $AR" >&5
7301echo "${ECHO_T}$AR" >&6
7302else
7303  echo "$as_me:$LINENO: result: no" >&5
7304echo "${ECHO_T}no" >&6
7305fi
7306
7307fi
7308if test -z "$ac_cv_prog_AR"; then
7309  ac_ct_AR=$AR
7310  # Extract the first word of "ar", so it can be a program name with args.
7311set dummy ar; ac_word=$2
7312echo "$as_me:$LINENO: checking for $ac_word" >&5
7313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7314if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7315  echo $ECHO_N "(cached) $ECHO_C" >&6
7316else
7317  if test -n "$ac_ct_AR"; then
7318  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7319else
7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
7323  IFS=$as_save_IFS
7324  test -z "$as_dir" && as_dir=.
7325  for ac_exec_ext in '' $ac_executable_extensions; do
7326  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327    ac_cv_prog_ac_ct_AR="ar"
7328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329    break 2
7330  fi
7331done
7332done
7333
7334  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7335fi
7336fi
7337ac_ct_AR=$ac_cv_prog_ac_ct_AR
7338if test -n "$ac_ct_AR"; then
7339  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7340echo "${ECHO_T}$ac_ct_AR" >&6
7341else
7342  echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344fi
7345
7346  AR=$ac_ct_AR
7347else
7348  AR="$ac_cv_prog_AR"
7349fi
7350
7351if test -n "$ac_tool_prefix"; then
7352  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7353set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7354echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7356if test "${ac_cv_prog_RANLIB+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  if test -n "$RANLIB"; then
7360  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367  for ac_exec_ext in '' $ac_executable_extensions; do
7368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371    break 2
7372  fi
7373done
7374done
7375
7376fi
7377fi
7378RANLIB=$ac_cv_prog_RANLIB
7379if test -n "$RANLIB"; then
7380  echo "$as_me:$LINENO: result: $RANLIB" >&5
7381echo "${ECHO_T}$RANLIB" >&6
7382else
7383  echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385fi
7386
7387fi
7388if test -z "$ac_cv_prog_RANLIB"; then
7389  ac_ct_RANLIB=$RANLIB
7390  # Extract the first word of "ranlib", so it can be a program name with args.
7391set dummy ranlib; ac_word=$2
7392echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7394if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7395  echo $ECHO_N "(cached) $ECHO_C" >&6
7396else
7397  if test -n "$ac_ct_RANLIB"; then
7398  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405  for ac_exec_ext in '' $ac_executable_extensions; do
7406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407    ac_cv_prog_ac_ct_RANLIB="ranlib"
7408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412done
7413
7414  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7415fi
7416fi
7417ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7418if test -n "$ac_ct_RANLIB"; then
7419  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7420echo "${ECHO_T}$ac_ct_RANLIB" >&6
7421else
7422  echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
7424fi
7425
7426  RANLIB=$ac_ct_RANLIB
7427else
7428  RANLIB="$ac_cv_prog_RANLIB"
7429fi
7430
7431if test -n "$ac_tool_prefix"; then
7432  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7433set dummy ${ac_tool_prefix}strip; ac_word=$2
7434echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7436if test "${ac_cv_prog_STRIP+set}" = set; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439  if test -n "$STRIP"; then
7440  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7441else
7442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445  IFS=$as_save_IFS
7446  test -z "$as_dir" && as_dir=.
7447  for ac_exec_ext in '' $ac_executable_extensions; do
7448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451    break 2
7452  fi
7453done
7454done
7455
7456fi
7457fi
7458STRIP=$ac_cv_prog_STRIP
7459if test -n "$STRIP"; then
7460  echo "$as_me:$LINENO: result: $STRIP" >&5
7461echo "${ECHO_T}$STRIP" >&6
7462else
7463  echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6
7465fi
7466
7467fi
7468if test -z "$ac_cv_prog_STRIP"; then
7469  ac_ct_STRIP=$STRIP
7470  # Extract the first word of "strip", so it can be a program name with args.
7471set dummy strip; ac_word=$2
7472echo "$as_me:$LINENO: checking for $ac_word" >&5
7473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7475  echo $ECHO_N "(cached) $ECHO_C" >&6
7476else
7477  if test -n "$ac_ct_STRIP"; then
7478  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485  for ac_exec_ext in '' $ac_executable_extensions; do
7486  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487    ac_cv_prog_ac_ct_STRIP="strip"
7488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492done
7493
7494  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7495fi
7496fi
7497ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7498if test -n "$ac_ct_STRIP"; then
7499  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7500echo "${ECHO_T}$ac_ct_STRIP" >&6
7501else
7502  echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504fi
7505
7506  STRIP=$ac_ct_STRIP
7507else
7508  STRIP="$ac_cv_prog_STRIP"
7509fi
7510
7511
7512old_CC="$CC"
7513old_CFLAGS="$CFLAGS"
7514
7515# Set sane defaults for various variables
7516test -z "$AR" && AR=ar
7517test -z "$AR_FLAGS" && AR_FLAGS=cru
7518test -z "$AS" && AS=as
7519test -z "$CC" && CC=cc
7520test -z "$LTCC" && LTCC=$CC
7521test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7522test -z "$DLLTOOL" && DLLTOOL=dlltool
7523test -z "$LD" && LD=ld
7524test -z "$LN_S" && LN_S="ln -s"
7525test -z "$MAGIC_CMD" && MAGIC_CMD=file
7526test -z "$NM" && NM=nm
7527test -z "$SED" && SED=sed
7528test -z "$OBJDUMP" && OBJDUMP=objdump
7529test -z "$RANLIB" && RANLIB=:
7530test -z "$STRIP" && STRIP=:
7531test -z "$ac_objext" && ac_objext=o
7532
7533# Determine commands to create old-style static archives.
7534old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7535old_postinstall_cmds='chmod 644 $oldlib'
7536old_postuninstall_cmds=
7537
7538if test -n "$RANLIB"; then
7539  case $host_os in
7540  openbsd*)
7541    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7542    ;;
7543  *)
7544    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7545    ;;
7546  esac
7547  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7548fi
7549
7550for cc_temp in $compiler""; do
7551  case $cc_temp in
7552    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7553    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7554    \-*) ;;
7555    *) break;;
7556  esac
7557done
7558cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7559
7560
7561# Only perform the check for file, if the check method requires it
7562case $deplibs_check_method in
7563file_magic*)
7564  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7565    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7566echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7567if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7568  echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570  case $MAGIC_CMD in
7571[\\/*] |  ?:[\\/]*)
7572  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7573  ;;
7574*)
7575  lt_save_MAGIC_CMD="$MAGIC_CMD"
7576  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7577  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7578  for ac_dir in $ac_dummy; do
7579    IFS="$lt_save_ifs"
7580    test -z "$ac_dir" && ac_dir=.
7581    if test -f $ac_dir/${ac_tool_prefix}file; then
7582      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7583      if test -n "$file_magic_test_file"; then
7584        case $deplibs_check_method in
7585        "file_magic "*)
7586          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7587          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7588          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7589            $EGREP "$file_magic_regex" > /dev/null; then
7590            :
7591          else
7592            cat <<EOF 1>&2
7593
7594*** Warning: the command libtool uses to detect shared libraries,
7595*** $file_magic_cmd, produces output that libtool cannot recognize.
7596*** The result is that libtool may fail to recognize shared libraries
7597*** as such.  This will affect the creation of libtool libraries that
7598*** depend on shared libraries, but programs linked with such libtool
7599*** libraries will work regardless of this problem.  Nevertheless, you
7600*** may want to report the problem to your system manager and/or to
7601*** bug-libtool@gnu.org
7602
7603EOF
7604          fi ;;
7605        esac
7606      fi
7607      break
7608    fi
7609  done
7610  IFS="$lt_save_ifs"
7611  MAGIC_CMD="$lt_save_MAGIC_CMD"
7612  ;;
7613esac
7614fi
7615
7616MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7617if test -n "$MAGIC_CMD"; then
7618  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7619echo "${ECHO_T}$MAGIC_CMD" >&6
7620else
7621  echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623fi
7624
7625if test -z "$lt_cv_path_MAGIC_CMD"; then
7626  if test -n "$ac_tool_prefix"; then
7627    echo "$as_me:$LINENO: checking for file" >&5
7628echo $ECHO_N "checking for file... $ECHO_C" >&6
7629if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7630  echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632  case $MAGIC_CMD in
7633[\\/*] |  ?:[\\/]*)
7634  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635  ;;
7636*)
7637  lt_save_MAGIC_CMD="$MAGIC_CMD"
7638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640  for ac_dir in $ac_dummy; do
7641    IFS="$lt_save_ifs"
7642    test -z "$ac_dir" && ac_dir=.
7643    if test -f $ac_dir/file; then
7644      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7645      if test -n "$file_magic_test_file"; then
7646        case $deplibs_check_method in
7647        "file_magic "*)
7648          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651            $EGREP "$file_magic_regex" > /dev/null; then
7652            :
7653          else
7654            cat <<EOF 1>&2
7655
7656*** Warning: the command libtool uses to detect shared libraries,
7657*** $file_magic_cmd, produces output that libtool cannot recognize.
7658*** The result is that libtool may fail to recognize shared libraries
7659*** as such.  This will affect the creation of libtool libraries that
7660*** depend on shared libraries, but programs linked with such libtool
7661*** libraries will work regardless of this problem.  Nevertheless, you
7662*** may want to report the problem to your system manager and/or to
7663*** bug-libtool@gnu.org
7664
7665EOF
7666          fi ;;
7667        esac
7668      fi
7669      break
7670    fi
7671  done
7672  IFS="$lt_save_ifs"
7673  MAGIC_CMD="$lt_save_MAGIC_CMD"
7674  ;;
7675esac
7676fi
7677
7678MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679if test -n "$MAGIC_CMD"; then
7680  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7681echo "${ECHO_T}$MAGIC_CMD" >&6
7682else
7683  echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
7685fi
7686
7687  else
7688    MAGIC_CMD=:
7689  fi
7690fi
7691
7692  fi
7693  ;;
7694esac
7695
7696enable_dlopen=no
7697enable_win32_dll=no
7698
7699# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7700if test "${enable_libtool_lock+set}" = set; then
7701  enableval="$enable_libtool_lock"
7702
7703fi;
7704test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7705
7706
7707# Check whether --with-pic or --without-pic was given.
7708if test "${with_pic+set}" = set; then
7709  withval="$with_pic"
7710  pic_mode="$withval"
7711else
7712  pic_mode=default
7713fi;
7714test -z "$pic_mode" && pic_mode=default
7715
7716# Use C for the default configuration in the libtool script
7717tagname=
7718lt_save_CC="$CC"
7719ac_ext=c
7720ac_cpp='$CPP $CPPFLAGS'
7721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724
7725
7726# Source file extension for C test sources.
7727ac_ext=c
7728
7729# Object file extension for compiled C test sources.
7730objext=o
7731objext=$objext
7732
7733# Code to be used in simple compile tests
7734lt_simple_compile_test_code="int some_variable = 0;\n"
7735
7736# Code to be used in simple link tests
7737lt_simple_link_test_code='int main(){return(0);}\n'
7738
7739
7740# If no C compiler was specified, use CC.
7741LTCC=${LTCC-"$CC"}
7742
7743# If no C compiler flags were specified, use CFLAGS.
7744LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7745
7746# Allow CC to be a program name with arguments.
7747compiler=$CC
7748
7749
7750# save warnings/boilerplate of simple test code
7751ac_outfile=conftest.$ac_objext
7752printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7753eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7754_lt_compiler_boilerplate=`cat conftest.err`
7755$rm conftest*
7756
7757ac_outfile=conftest.$ac_objext
7758printf "$lt_simple_link_test_code" >conftest.$ac_ext
7759eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7760_lt_linker_boilerplate=`cat conftest.err`
7761$rm conftest*
7762
7763
7764## CAVEAT EMPTOR:
7765## There is no encapsulation within the following macros, do not change
7766## the running order or otherwise move them around unless you know exactly
7767## what you are doing...
7768
7769lt_prog_compiler_no_builtin_flag=
7770
7771if test "$GCC" = yes; then
7772  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7773
7774
7775echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7776echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7777if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7778  echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780  lt_cv_prog_compiler_rtti_exceptions=no
7781  ac_outfile=conftest.$ac_objext
7782   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7783   lt_compiler_flag="-fno-rtti -fno-exceptions"
7784   # Insert the option either (1) after the last *FLAGS variable, or
7785   # (2) before a word containing "conftest.", or (3) at the end.
7786   # Note that $ac_compile itself does not contain backslashes and begins
7787   # with a dollar sign (not a hyphen), so the echo should work correctly.
7788   # The option is referenced via a variable to avoid confusing sed.
7789   lt_compile=`echo "$ac_compile" | $SED \
7790   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7791   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7792   -e 's:$: $lt_compiler_flag:'`
7793   (eval echo "\"\$as_me:7793: $lt_compile\"" >&5)
7794   (eval "$lt_compile" 2>conftest.err)
7795   ac_status=$?
7796   cat conftest.err >&5
7797   echo "$as_me:7797: \$? = $ac_status" >&5
7798   if (exit $ac_status) && test -s "$ac_outfile"; then
7799     # The compiler can only warn and ignore the option if not recognized
7800     # So say no if there are warnings other than the usual output.
7801     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7802     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7803     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7804       lt_cv_prog_compiler_rtti_exceptions=yes
7805     fi
7806   fi
7807   $rm conftest*
7808
7809fi
7810echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7811echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7812
7813if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7814    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7815else
7816    :
7817fi
7818
7819fi
7820
7821lt_prog_compiler_wl=
7822lt_prog_compiler_pic=
7823lt_prog_compiler_static=
7824
7825echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7826echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7827
7828  if test "$GCC" = yes; then
7829    lt_prog_compiler_wl='-Wl,'
7830    lt_prog_compiler_static='-static'
7831
7832    case $host_os in
7833      aix*)
7834      # All AIX code is PIC.
7835      if test "$host_cpu" = ia64; then
7836        # AIX 5 now supports IA64 processor
7837        lt_prog_compiler_static='-Bstatic'
7838      fi
7839      ;;
7840
7841    amigaos*)
7842      # FIXME: we need at least 68020 code to build shared libraries, but
7843      # adding the `-m68020' flag to GCC prevents building anything better,
7844      # like `-m68040'.
7845      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7846      ;;
7847
7848    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7849      # PIC is the default for these OSes.
7850      ;;
7851
7852    mingw* | pw32* | os2*)
7853      # This hack is so that the source file can tell whether it is being
7854      # built for inclusion in a dll (and should export symbols for example).
7855      lt_prog_compiler_pic='-DDLL_EXPORT'
7856      ;;
7857
7858    darwin* | rhapsody*)
7859      # PIC is the default on this platform
7860      # Common symbols not allowed in MH_DYLIB files
7861      lt_prog_compiler_pic='-fno-common'
7862      ;;
7863
7864    interix3*)
7865      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7866      # Instead, we relocate shared libraries at runtime.
7867      ;;
7868
7869    msdosdjgpp*)
7870      # Just because we use GCC doesn't mean we suddenly get shared libraries
7871      # on systems that don't support them.
7872      lt_prog_compiler_can_build_shared=no
7873      enable_shared=no
7874      ;;
7875
7876    sysv4*MP*)
7877      if test -d /usr/nec; then
7878        lt_prog_compiler_pic=-Kconform_pic
7879      fi
7880      ;;
7881
7882    hpux*)
7883      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7884      # not for PA HP-UX.
7885      case $host_cpu in
7886      hppa*64*|ia64*)
7887        # +Z the default
7888        ;;
7889      *)
7890        lt_prog_compiler_pic='-fPIC'
7891        ;;
7892      esac
7893      ;;
7894
7895    *)
7896      lt_prog_compiler_pic='-fPIC'
7897      ;;
7898    esac
7899  else
7900    # PORTME Check for flag to pass linker flags through the system compiler.
7901    case $host_os in
7902    aix*)
7903      lt_prog_compiler_wl='-Wl,'
7904      if test "$host_cpu" = ia64; then
7905        # AIX 5 now supports IA64 processor
7906        lt_prog_compiler_static='-Bstatic'
7907      else
7908        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7909      fi
7910      ;;
7911      darwin*)
7912        # PIC is the default on this platform
7913        # Common symbols not allowed in MH_DYLIB files
7914       case $cc_basename in
7915         xlc*)
7916         lt_prog_compiler_pic='-qnocommon'
7917         lt_prog_compiler_wl='-Wl,'
7918         ;;
7919       esac
7920       ;;
7921
7922    mingw* | pw32* | os2*)
7923      # This hack is so that the source file can tell whether it is being
7924      # built for inclusion in a dll (and should export symbols for example).
7925      lt_prog_compiler_pic='-DDLL_EXPORT'
7926      ;;
7927
7928    hpux9* | hpux10* | hpux11*)
7929      lt_prog_compiler_wl='-Wl,'
7930      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7931      # not for PA HP-UX.
7932      case $host_cpu in
7933      hppa*64*|ia64*)
7934        # +Z the default
7935        ;;
7936      *)
7937        lt_prog_compiler_pic='+Z'
7938        ;;
7939      esac
7940      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7941      lt_prog_compiler_static='${wl}-a ${wl}archive'
7942      ;;
7943
7944    irix5* | irix6* | nonstopux*)
7945      lt_prog_compiler_wl='-Wl,'
7946      # PIC (with -KPIC) is the default.
7947      lt_prog_compiler_static='-non_shared'
7948      ;;
7949
7950    newsos6)
7951      lt_prog_compiler_pic='-KPIC'
7952      lt_prog_compiler_static='-Bstatic'
7953      ;;
7954
7955    linux*)
7956      case $cc_basename in
7957      icc* | ecc*)
7958        lt_prog_compiler_wl='-Wl,'
7959        lt_prog_compiler_pic='-KPIC'
7960        lt_prog_compiler_static='-static'
7961        ;;
7962      pgcc* | pgf77* | pgf90* | pgf95*)
7963        # Portland Group compilers (*not* the Pentium gcc compiler,
7964        # which looks to be a dead project)
7965        lt_prog_compiler_wl='-Wl,'
7966        lt_prog_compiler_pic='-fpic'
7967        lt_prog_compiler_static='-Bstatic'
7968        ;;
7969      ccc*)
7970        lt_prog_compiler_wl='-Wl,'
7971        # All Alpha code is PIC.
7972        lt_prog_compiler_static='-non_shared'
7973        ;;
7974      esac
7975      ;;
7976
7977    osf3* | osf4* | osf5*)
7978      lt_prog_compiler_wl='-Wl,'
7979      # All OSF/1 code is PIC.
7980      lt_prog_compiler_static='-non_shared'
7981      ;;
7982
7983    solaris*)
7984      lt_prog_compiler_pic='-KPIC'
7985      lt_prog_compiler_static='-Bstatic'
7986      case $cc_basename in
7987      f77* | f90* | f95*)
7988        lt_prog_compiler_wl='-Qoption ld ';;
7989      *)
7990        lt_prog_compiler_wl='-Wl,';;
7991      esac
7992      ;;
7993
7994    sunos4*)
7995      lt_prog_compiler_wl='-Qoption ld '
7996      lt_prog_compiler_pic='-PIC'
7997      lt_prog_compiler_static='-Bstatic'
7998      ;;
7999
8000    sysv4 | sysv4.2uw2* | sysv4.3*)
8001      lt_prog_compiler_wl='-Wl,'
8002      lt_prog_compiler_pic='-KPIC'
8003      lt_prog_compiler_static='-Bstatic'
8004      ;;
8005
8006    sysv4*MP*)
8007      if test -d /usr/nec ;then
8008        lt_prog_compiler_pic='-Kconform_pic'
8009        lt_prog_compiler_static='-Bstatic'
8010      fi
8011      ;;
8012
8013    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8014      lt_prog_compiler_wl='-Wl,'
8015      lt_prog_compiler_pic='-KPIC'
8016      lt_prog_compiler_static='-Bstatic'
8017      ;;
8018
8019    unicos*)
8020      lt_prog_compiler_wl='-Wl,'
8021      lt_prog_compiler_can_build_shared=no
8022      ;;
8023
8024    uts4*)
8025      lt_prog_compiler_pic='-pic'
8026      lt_prog_compiler_static='-Bstatic'
8027      ;;
8028
8029    *)
8030      lt_prog_compiler_can_build_shared=no
8031      ;;
8032    esac
8033  fi
8034
8035echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8036echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8037
8038#
8039# Check to make sure the PIC flag actually works.
8040#
8041if test -n "$lt_prog_compiler_pic"; then
8042
8043echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8044echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8045if test "${lt_prog_compiler_pic_works+set}" = set; then
8046  echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048  lt_prog_compiler_pic_works=no
8049  ac_outfile=conftest.$ac_objext
8050   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8051   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8052   # Insert the option either (1) after the last *FLAGS variable, or
8053   # (2) before a word containing "conftest.", or (3) at the end.
8054   # Note that $ac_compile itself does not contain backslashes and begins
8055   # with a dollar sign (not a hyphen), so the echo should work correctly.
8056   # The option is referenced via a variable to avoid confusing sed.
8057   lt_compile=`echo "$ac_compile" | $SED \
8058   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8059   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8060   -e 's:$: $lt_compiler_flag:'`
8061   (eval echo "\"\$as_me:8061: $lt_compile\"" >&5)
8062   (eval "$lt_compile" 2>conftest.err)
8063   ac_status=$?
8064   cat conftest.err >&5
8065   echo "$as_me:8065: \$? = $ac_status" >&5
8066   if (exit $ac_status) && test -s "$ac_outfile"; then
8067     # The compiler can only warn and ignore the option if not recognized
8068     # So say no if there are warnings other than the usual output.
8069     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8070     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8071     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8072       lt_prog_compiler_pic_works=yes
8073     fi
8074   fi
8075   $rm conftest*
8076
8077fi
8078echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8079echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8080
8081if test x"$lt_prog_compiler_pic_works" = xyes; then
8082    case $lt_prog_compiler_pic in
8083     "" | " "*) ;;
8084     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8085     esac
8086else
8087    lt_prog_compiler_pic=
8088     lt_prog_compiler_can_build_shared=no
8089fi
8090
8091fi
8092case $host_os in
8093  # For platforms which do not support PIC, -DPIC is meaningless:
8094  *djgpp*)
8095    lt_prog_compiler_pic=
8096    ;;
8097  *)
8098    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8099    ;;
8100esac
8101
8102#
8103# Check to make sure the static flag actually works.
8104#
8105wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8106echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8107echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8108if test "${lt_prog_compiler_static_works+set}" = set; then
8109  echo $ECHO_N "(cached) $ECHO_C" >&6
8110else
8111  lt_prog_compiler_static_works=no
8112   save_LDFLAGS="$LDFLAGS"
8113   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8114   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8115   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8116     # The linker can only warn and ignore the option if not recognized
8117     # So say no if there are warnings
8118     if test -s conftest.err; then
8119       # Append any errors to the config.log.
8120       cat conftest.err 1>&5
8121       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8122       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123       if diff conftest.exp conftest.er2 >/dev/null; then
8124         lt_prog_compiler_static_works=yes
8125       fi
8126     else
8127       lt_prog_compiler_static_works=yes
8128     fi
8129   fi
8130   $rm conftest*
8131   LDFLAGS="$save_LDFLAGS"
8132
8133fi
8134echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8135echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8136
8137if test x"$lt_prog_compiler_static_works" = xyes; then
8138    :
8139else
8140    lt_prog_compiler_static=
8141fi
8142
8143
8144echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8145echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8146if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8147  echo $ECHO_N "(cached) $ECHO_C" >&6
8148else
8149  lt_cv_prog_compiler_c_o=no
8150   $rm -r conftest 2>/dev/null
8151   mkdir conftest
8152   cd conftest
8153   mkdir out
8154   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8155
8156   lt_compiler_flag="-o out/conftest2.$ac_objext"
8157   # Insert the option either (1) after the last *FLAGS variable, or
8158   # (2) before a word containing "conftest.", or (3) at the end.
8159   # Note that $ac_compile itself does not contain backslashes and begins
8160   # with a dollar sign (not a hyphen), so the echo should work correctly.
8161   lt_compile=`echo "$ac_compile" | $SED \
8162   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8163   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8164   -e 's:$: $lt_compiler_flag:'`
8165   (eval echo "\"\$as_me:8165: $lt_compile\"" >&5)
8166   (eval "$lt_compile" 2>out/conftest.err)
8167   ac_status=$?
8168   cat out/conftest.err >&5
8169   echo "$as_me:8169: \$? = $ac_status" >&5
8170   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8171   then
8172     # The compiler can only warn and ignore the option if not recognized
8173     # So say no if there are warnings
8174     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8175     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8176     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8177       lt_cv_prog_compiler_c_o=yes
8178     fi
8179   fi
8180   chmod u+w . 2>&5
8181   $rm conftest*
8182   # SGI C++ compiler will create directory out/ii_files/ for
8183   # template instantiation
8184   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8185   $rm out/* && rmdir out
8186   cd ..
8187   rmdir conftest
8188   $rm conftest*
8189
8190fi
8191echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8192echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8193
8194
8195hard_links="nottested"
8196if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8197  # do not overwrite the value of need_locks provided by the user
8198  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8199echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8200  hard_links=yes
8201  $rm conftest*
8202  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8203  touch conftest.a
8204  ln conftest.a conftest.b 2>&5 || hard_links=no
8205  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8206  echo "$as_me:$LINENO: result: $hard_links" >&5
8207echo "${ECHO_T}$hard_links" >&6
8208  if test "$hard_links" = no; then
8209    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8210echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8211    need_locks=warn
8212  fi
8213else
8214  need_locks=no
8215fi
8216
8217echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8218echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8219
8220  runpath_var=
8221  allow_undefined_flag=
8222  enable_shared_with_static_runtimes=no
8223  archive_cmds=
8224  archive_expsym_cmds=
8225  old_archive_From_new_cmds=
8226  old_archive_from_expsyms_cmds=
8227  export_dynamic_flag_spec=
8228  whole_archive_flag_spec=
8229  thread_safe_flag_spec=
8230  hardcode_libdir_flag_spec=
8231  hardcode_libdir_flag_spec_ld=
8232  hardcode_libdir_separator=
8233  hardcode_direct=no
8234  hardcode_minus_L=no
8235  hardcode_shlibpath_var=unsupported
8236  link_all_deplibs=unknown
8237  hardcode_automatic=no
8238  module_cmds=
8239  module_expsym_cmds=
8240  always_export_symbols=no
8241  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8242  # include_expsyms should be a list of space-separated symbols to be *always*
8243  # included in the symbol list
8244  include_expsyms=
8245  # exclude_expsyms can be an extended regexp of symbols to exclude
8246  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8247  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8248  # as well as any symbol that contains `d'.
8249  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8250  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8251  # platforms (ab)use it in PIC code, but their linkers get confused if
8252  # the symbol is explicitly referenced.  Since portable code cannot
8253  # rely on this symbol name, it's probably fine to never include it in
8254  # preloaded symbol tables.
8255  extract_expsyms_cmds=
8256  # Just being paranoid about ensuring that cc_basename is set.
8257  for cc_temp in $compiler""; do
8258  case $cc_temp in
8259    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8260    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8261    \-*) ;;
8262    *) break;;
8263  esac
8264done
8265cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8266
8267  case $host_os in
8268  cygwin* | mingw* | pw32*)
8269    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8270    # When not using gcc, we currently assume that we are using
8271    # Microsoft Visual C++.
8272    if test "$GCC" != yes; then
8273      with_gnu_ld=no
8274    fi
8275    ;;
8276  interix*)
8277    # we just hope/assume this is gcc and not c89 (= MSVC++)
8278    with_gnu_ld=yes
8279    ;;
8280  openbsd*)
8281    with_gnu_ld=no
8282    ;;
8283  esac
8284
8285  ld_shlibs=yes
8286  if test "$with_gnu_ld" = yes; then
8287    # If archive_cmds runs LD, not CC, wlarc should be empty
8288    wlarc='${wl}'
8289
8290    # Set some defaults for GNU ld with shared library support. These
8291    # are reset later if shared libraries are not supported. Putting them
8292    # here allows them to be overridden if necessary.
8293    runpath_var=LD_RUN_PATH
8294    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8295    export_dynamic_flag_spec='${wl}--export-dynamic'
8296    # ancient GNU ld didn't support --whole-archive et. al.
8297    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8298        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8299      else
8300        whole_archive_flag_spec=
8301    fi
8302    supports_anon_versioning=no
8303    case `$LD -v 2>/dev/null` in
8304      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8305      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8306      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8307      *\ 2.11.*) ;; # other 2.11 versions
8308      *) supports_anon_versioning=yes ;;
8309    esac
8310
8311    # See if GNU ld supports shared libraries.
8312    case $host_os in
8313    aix3* | aix4* | aix5*)
8314      # On AIX/PPC, the GNU linker is very broken
8315      if test "$host_cpu" != ia64; then
8316        ld_shlibs=no
8317        cat <<EOF 1>&2
8318
8319*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8320*** to be unable to reliably create shared libraries on AIX.
8321*** Therefore, libtool is disabling shared libraries support.  If you
8322*** really care for shared libraries, you may want to modify your PATH
8323*** so that a non-GNU linker is found, and then restart.
8324
8325EOF
8326      fi
8327      ;;
8328
8329    amigaos*)
8330      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)'
8331      hardcode_libdir_flag_spec='-L$libdir'
8332      hardcode_minus_L=yes
8333
8334      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8335      # that the semantics of dynamic libraries on AmigaOS, at least up
8336      # to version 4, is to share data among multiple programs linked
8337      # with the same dynamic library.  Since this doesn't match the
8338      # behavior of shared libraries on other platforms, we can't use
8339      # them.
8340      ld_shlibs=no
8341      ;;
8342
8343    beos*)
8344      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8345        allow_undefined_flag=unsupported
8346        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8347        # support --undefined.  This deserves some investigation.  FIXME
8348        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8349      else
8350        ld_shlibs=no
8351      fi
8352      ;;
8353
8354    cygwin* | mingw* | pw32*)
8355      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8356      # as there is no search path for DLLs.
8357      hardcode_libdir_flag_spec='-L$libdir'
8358      allow_undefined_flag=unsupported
8359      always_export_symbols=no
8360      enable_shared_with_static_runtimes=yes
8361      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8362
8363      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8364        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8365        # If the export-symbols file already is a .def file (1st line
8366        # is EXPORTS), use it as is; otherwise, prepend...
8367        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8368          cp $export_symbols $output_objdir/$soname.def;
8369        else
8370          echo EXPORTS > $output_objdir/$soname.def;
8371          cat $export_symbols >> $output_objdir/$soname.def;
8372        fi~
8373        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8374      else
8375        ld_shlibs=no
8376      fi
8377      ;;
8378
8379    interix3*)
8380      hardcode_direct=no
8381      hardcode_shlibpath_var=no
8382      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8383      export_dynamic_flag_spec='${wl}-E'
8384      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8385      # Instead, shared libraries are loaded at an image base (0x10000000 by
8386      # default) and relocated if they conflict, which is a slow very memory
8387      # consuming and fragmenting process.  To avoid this, we pick a random,
8388      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8389      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8390      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8391      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'
8392      ;;
8393
8394    linux*)
8395      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8396        tmp_addflag=
8397        case $cc_basename,$host_cpu in
8398        pgcc*)                          # Portland Group C compiler
8399          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'
8400          tmp_addflag=' $pic_flag'
8401          ;;
8402        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8403          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'
8404          tmp_addflag=' $pic_flag -Mnomain' ;;
8405        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8406          tmp_addflag=' -i_dynamic' ;;
8407        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8408          tmp_addflag=' -i_dynamic -nofor_main' ;;
8409        ifc* | ifort*)                  # Intel Fortran compiler
8410          tmp_addflag=' -nofor_main' ;;
8411        esac
8412        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8413
8414        if test $supports_anon_versioning = yes; then
8415          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8416  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8417  $echo "local: *; };" >> $output_objdir/$libname.ver~
8418          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8419        fi
8420      else
8421        ld_shlibs=no
8422      fi
8423      ;;
8424
8425    netbsd*)
8426      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8427        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8428        wlarc=
8429      else
8430        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8431        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8432      fi
8433      ;;
8434
8435    solaris*)
8436      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8437        ld_shlibs=no
8438        cat <<EOF 1>&2
8439
8440*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8441*** create shared libraries on Solaris systems.  Therefore, libtool
8442*** is disabling shared libraries support.  We urge you to upgrade GNU
8443*** binutils to release 2.9.1 or newer.  Another option is to modify
8444*** your PATH or compiler configuration so that the native linker is
8445*** used, and then restart.
8446
8447EOF
8448      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8449        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8451      else
8452        ld_shlibs=no
8453      fi
8454      ;;
8455
8456    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8457      case `$LD -v 2>&1` in
8458        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8459        ld_shlibs=no
8460        cat <<_LT_EOF 1>&2
8461
8462*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8463*** reliably create shared libraries on SCO systems.  Therefore, libtool
8464*** is disabling shared libraries support.  We urge you to upgrade GNU
8465*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8466*** your PATH or compiler configuration so that the native linker is
8467*** used, and then restart.
8468
8469_LT_EOF
8470        ;;
8471        *)
8472          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8473            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8474            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8475            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8476          else
8477            ld_shlibs=no
8478          fi
8479        ;;
8480      esac
8481      ;;
8482
8483    sunos4*)
8484      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8485      wlarc=
8486      hardcode_direct=yes
8487      hardcode_shlibpath_var=no
8488      ;;
8489
8490    *)
8491      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8492        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8493        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8494      else
8495        ld_shlibs=no
8496      fi
8497      ;;
8498    esac
8499
8500    if test "$ld_shlibs" = no; then
8501      runpath_var=
8502      hardcode_libdir_flag_spec=
8503      export_dynamic_flag_spec=
8504      whole_archive_flag_spec=
8505    fi
8506  else
8507    # PORTME fill in a description of your system's linker (not GNU ld)
8508    case $host_os in
8509    aix3*)
8510      allow_undefined_flag=unsupported
8511      always_export_symbols=yes
8512      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'
8513      # Note: this linker hardcodes the directories in LIBPATH if there
8514      # are no directories specified by -L.
8515      hardcode_minus_L=yes
8516      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8517        # Neither direct hardcoding nor static linking is supported with a
8518        # broken collect2.
8519        hardcode_direct=unsupported
8520      fi
8521      ;;
8522
8523    aix4* | aix5*)
8524      if test "$host_cpu" = ia64; then
8525        # On IA64, the linker does run time linking by default, so we don't
8526        # have to do anything special.
8527        aix_use_runtimelinking=no
8528        exp_sym_flag='-Bexport'
8529        no_entry_flag=""
8530      else
8531        # If we're using GNU nm, then we don't want the "-C" option.
8532        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8533        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8534          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'
8535        else
8536          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'
8537        fi
8538        aix_use_runtimelinking=no
8539
8540        # Test if we are trying to use run time linking or normal
8541        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8542        # need to do runtime linking.
8543        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8544          for ld_flag in $LDFLAGS; do
8545          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8546            aix_use_runtimelinking=yes
8547            break
8548          fi
8549          done
8550          ;;
8551        esac
8552
8553        exp_sym_flag='-bexport'
8554        no_entry_flag='-bnoentry'
8555      fi
8556
8557      # When large executables or shared objects are built, AIX ld can
8558      # have problems creating the table of contents.  If linking a library
8559      # or program results in "error TOC overflow" add -mminimal-toc to
8560      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8561      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8562
8563      archive_cmds=''
8564      hardcode_direct=yes
8565      hardcode_libdir_separator=':'
8566      link_all_deplibs=yes
8567
8568      if test "$GCC" = yes; then
8569        case $host_os in aix4.[012]|aix4.[012].*)
8570        # We only want to do this on AIX 4.2 and lower, the check
8571        # below for broken collect2 doesn't work under 4.3+
8572          collect2name=`${CC} -print-prog-name=collect2`
8573          if test -f "$collect2name" && \
8574           strings "$collect2name" | grep resolve_lib_name >/dev/null
8575          then
8576          # We have reworked collect2
8577          hardcode_direct=yes
8578          else
8579          # We have old collect2
8580          hardcode_direct=unsupported
8581          # It fails to find uninstalled libraries when the uninstalled
8582          # path is not listed in the libpath.  Setting hardcode_minus_L
8583          # to unsupported forces relinking
8584          hardcode_minus_L=yes
8585          hardcode_libdir_flag_spec='-L$libdir'
8586          hardcode_libdir_separator=
8587          fi
8588          ;;
8589        esac
8590        shared_flag='-shared'
8591        if test "$aix_use_runtimelinking" = yes; then
8592          shared_flag="$shared_flag "'${wl}-G'
8593        fi
8594      else
8595        # not using gcc
8596        if test "$host_cpu" = ia64; then
8597        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8598        # chokes on -Wl,-G. The following line is correct:
8599          shared_flag='-G'
8600        else
8601          if test "$aix_use_runtimelinking" = yes; then
8602            shared_flag='${wl}-G'
8603          else
8604            shared_flag='${wl}-bM:SRE'
8605          fi
8606        fi
8607      fi
8608
8609      # It seems that -bexpall does not export symbols beginning with
8610      # underscore (_), so it is better to generate a list of symbols to export.
8611      always_export_symbols=yes
8612      if test "$aix_use_runtimelinking" = yes; then
8613        # Warning - without using the other runtime loading flags (-brtl),
8614        # -berok will link without error, but may produce a broken library.
8615        allow_undefined_flag='-berok'
8616       # Determine the default libpath from the value encoded in an empty executable.
8617       cat >conftest.$ac_ext <<_ACEOF
8618/* confdefs.h.  */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h.  */
8623
8624int
8625main ()
8626{
8627
8628  ;
8629  return 0;
8630}
8631_ACEOF
8632rm -f conftest.$ac_objext conftest$ac_exeext
8633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634  (eval $ac_link) 2>conftest.er1
8635  ac_status=$?
8636  grep -v '^ *+' conftest.er1 >conftest.err
8637  rm -f conftest.er1
8638  cat conftest.err >&5
8639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640  (exit $ac_status); } &&
8641         { ac_try='test -z "$ac_c_werror_flag"
8642                         || test ! -s conftest.err'
8643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644  (eval $ac_try) 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); }; } &&
8648         { ac_try='test -s conftest$ac_exeext'
8649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650  (eval $ac_try) 2>&5
8651  ac_status=$?
8652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653  (exit $ac_status); }; }; then
8654
8655aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8656}'`
8657# Check for a 64-bit object if we didn't find anything.
8658if 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; }
8659}'`; fi
8660else
8661  echo "$as_me: failed program was:" >&5
8662sed 's/^/| /' conftest.$ac_ext >&5
8663
8664fi
8665rm -f conftest.err conftest.$ac_objext \
8666      conftest$ac_exeext conftest.$ac_ext
8667if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8668
8669       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8670        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"
8671       else
8672        if test "$host_cpu" = ia64; then
8673          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8674          allow_undefined_flag="-z nodefs"
8675          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"
8676        else
8677         # Determine the default libpath from the value encoded in an empty executable.
8678         cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h.  */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h.  */
8684
8685int
8686main ()
8687{
8688
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext conftest$ac_exeext
8694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695  (eval $ac_link) 2>conftest.er1
8696  ac_status=$?
8697  grep -v '^ *+' conftest.er1 >conftest.err
8698  rm -f conftest.er1
8699  cat conftest.err >&5
8700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701  (exit $ac_status); } &&
8702         { ac_try='test -z "$ac_c_werror_flag"
8703                         || test ! -s conftest.err'
8704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705  (eval $ac_try) 2>&5
8706  ac_status=$?
8707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708  (exit $ac_status); }; } &&
8709         { ac_try='test -s conftest$ac_exeext'
8710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711  (eval $ac_try) 2>&5
8712  ac_status=$?
8713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714  (exit $ac_status); }; }; then
8715
8716aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8717}'`
8718# Check for a 64-bit object if we didn't find anything.
8719if 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; }
8720}'`; fi
8721else
8722  echo "$as_me: failed program was:" >&5
8723sed 's/^/| /' conftest.$ac_ext >&5
8724
8725fi
8726rm -f conftest.err conftest.$ac_objext \
8727      conftest$ac_exeext conftest.$ac_ext
8728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8729
8730         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8731          # Warning - without using the other run time loading flags,
8732          # -berok will link without error, but may produce a broken library.
8733          no_undefined_flag=' ${wl}-bernotok'
8734          allow_undefined_flag=' ${wl}-berok'
8735          # Exported symbols can be pulled into shared objects from archives
8736          whole_archive_flag_spec='$convenience'
8737          archive_cmds_need_lc=yes
8738          # This is similar to how AIX traditionally builds its shared libraries.
8739          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'
8740        fi
8741      fi
8742      ;;
8743
8744    amigaos*)
8745      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)'
8746      hardcode_libdir_flag_spec='-L$libdir'
8747      hardcode_minus_L=yes
8748      # see comment about different semantics on the GNU ld section
8749      ld_shlibs=no
8750      ;;
8751
8752    bsdi[45]*)
8753      export_dynamic_flag_spec=-rdynamic
8754      ;;
8755
8756    cygwin* | mingw* | pw32*)
8757      # When not using gcc, we currently assume that we are using
8758      # Microsoft Visual C++.
8759      # hardcode_libdir_flag_spec is actually meaningless, as there is
8760      # no search path for DLLs.
8761      hardcode_libdir_flag_spec=' '
8762      allow_undefined_flag=unsupported
8763      # Tell ltmain to make .lib files, not .a files.
8764      libext=lib
8765      # Tell ltmain to make .dll files, not .so files.
8766      shrext_cmds=".dll"
8767      # FIXME: Setting linknames here is a bad hack.
8768      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8769      # The linker will automatically build a .lib file if we build a DLL.
8770      old_archive_From_new_cmds='true'
8771      # FIXME: Should let the user specify the lib program.
8772      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8773      fix_srcfile_path='`cygpath -w "$srcfile"`'
8774      enable_shared_with_static_runtimes=yes
8775      ;;
8776
8777    darwin* | rhapsody*)
8778      case $host_os in
8779        rhapsody* | darwin1.[012])
8780         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8781         ;;
8782       *) # Darwin 1.3 on
8783         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8784           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8785         else
8786           case ${MACOSX_DEPLOYMENT_TARGET} in
8787             10.[012])
8788               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8789               ;;
8790             10.*)
8791               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8792               ;;
8793           esac
8794         fi
8795         ;;
8796      esac
8797      archive_cmds_need_lc=no
8798      hardcode_direct=no
8799      hardcode_automatic=yes
8800      hardcode_shlibpath_var=unsupported
8801      whole_archive_flag_spec=''
8802      link_all_deplibs=yes
8803    if test "$GCC" = yes ; then
8804        output_verbose_link_cmd='echo'
8805        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8806      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8807      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8808      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}'
8809      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}'
8810    else
8811      case $cc_basename in
8812        xlc*)
8813         output_verbose_link_cmd='echo'
8814         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8815         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8816          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8817         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}'
8818          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}'
8819          ;;
8820       *)
8821         ld_shlibs=no
8822          ;;
8823      esac
8824    fi
8825      ;;
8826
8827    dgux*)
8828      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8829      hardcode_libdir_flag_spec='-L$libdir'
8830      hardcode_shlibpath_var=no
8831      ;;
8832
8833    freebsd1*)
8834      ld_shlibs=no
8835      ;;
8836
8837    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8838    # support.  Future versions do this automatically, but an explicit c++rt0.o
8839    # does not break anything, and helps significantly (at the cost of a little
8840    # extra space).
8841    freebsd2.2*)
8842      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8843      hardcode_libdir_flag_spec='-R$libdir'
8844      hardcode_direct=yes
8845      hardcode_shlibpath_var=no
8846      ;;
8847
8848    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8849    freebsd2*)
8850      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8851      hardcode_direct=yes
8852      hardcode_minus_L=yes
8853      hardcode_shlibpath_var=no
8854      ;;
8855
8856    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8857    freebsd* | kfreebsd*-gnu | dragonfly*)
8858      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8859      hardcode_libdir_flag_spec='-R$libdir'
8860      hardcode_direct=yes
8861      hardcode_shlibpath_var=no
8862      ;;
8863
8864    hpux9*)
8865      if test "$GCC" = yes; then
8866        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'
8867      else
8868        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'
8869      fi
8870      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8871      hardcode_libdir_separator=:
8872      hardcode_direct=yes
8873
8874      # hardcode_minus_L: Not really in the search PATH,
8875      # but as the default location of the library.
8876      hardcode_minus_L=yes
8877      export_dynamic_flag_spec='${wl}-E'
8878      ;;
8879
8880    hpux10*)
8881      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8882        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8883      else
8884        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8885      fi
8886      if test "$with_gnu_ld" = no; then
8887        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8888        hardcode_libdir_separator=:
8889
8890        hardcode_direct=yes
8891        export_dynamic_flag_spec='${wl}-E'
8892
8893        # hardcode_minus_L: Not really in the search PATH,
8894        # but as the default location of the library.
8895        hardcode_minus_L=yes
8896      fi
8897      ;;
8898
8899    hpux11*)
8900      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8901        case $host_cpu in
8902        hppa*64*)
8903          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8904          ;;
8905        ia64*)
8906          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8907          ;;
8908        *)
8909          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8910          ;;
8911        esac
8912      else
8913        case $host_cpu in
8914        hppa*64*)
8915          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8916          ;;
8917        ia64*)
8918          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8919          ;;
8920        *)
8921          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8922          ;;
8923        esac
8924      fi
8925      if test "$with_gnu_ld" = no; then
8926        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8927        hardcode_libdir_separator=:
8928
8929        case $host_cpu in
8930        hppa*64*|ia64*)
8931          hardcode_libdir_flag_spec_ld='+b $libdir'
8932          hardcode_direct=no
8933          hardcode_shlibpath_var=no
8934          ;;
8935        *)
8936          hardcode_direct=yes
8937          export_dynamic_flag_spec='${wl}-E'
8938
8939          # hardcode_minus_L: Not really in the search PATH,
8940          # but as the default location of the library.
8941          hardcode_minus_L=yes
8942          ;;
8943        esac
8944      fi
8945      ;;
8946
8947    irix5* | irix6* | nonstopux*)
8948      if test "$GCC" = yes; then
8949        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'
8950      else
8951        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'
8952        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8953      fi
8954      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955      hardcode_libdir_separator=:
8956      link_all_deplibs=yes
8957      ;;
8958
8959    netbsd*)
8960      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8961        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8962      else
8963        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8964      fi
8965      hardcode_libdir_flag_spec='-R$libdir'
8966      hardcode_direct=yes
8967      hardcode_shlibpath_var=no
8968      ;;
8969
8970    newsos6)
8971      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972      hardcode_direct=yes
8973      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8974      hardcode_libdir_separator=:
8975      hardcode_shlibpath_var=no
8976      ;;
8977
8978    openbsd*)
8979      hardcode_direct=yes
8980      hardcode_shlibpath_var=no
8981      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8982        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8983        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8984        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8985        export_dynamic_flag_spec='${wl}-E'
8986      else
8987       case $host_os in
8988         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8989           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8990           hardcode_libdir_flag_spec='-R$libdir'
8991           ;;
8992         *)
8993           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8994           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8995           ;;
8996       esac
8997      fi
8998      ;;
8999
9000    os2*)
9001      hardcode_libdir_flag_spec='-L$libdir'
9002      hardcode_minus_L=yes
9003      allow_undefined_flag=unsupported
9004      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'
9005      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9006      ;;
9007
9008    osf3*)
9009      if test "$GCC" = yes; then
9010        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9011        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'
9012      else
9013        allow_undefined_flag=' -expect_unresolved \*'
9014        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'
9015      fi
9016      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017      hardcode_libdir_separator=:
9018      ;;
9019
9020    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9021      if test "$GCC" = yes; then
9022        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9023        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'
9024        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9025      else
9026        allow_undefined_flag=' -expect_unresolved \*'
9027        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'
9028        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9029        $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'
9030
9031        # Both c and cxx compiler support -rpath directly
9032        hardcode_libdir_flag_spec='-rpath $libdir'
9033      fi
9034      hardcode_libdir_separator=:
9035      ;;
9036
9037    solaris*)
9038      no_undefined_flag=' -z text'
9039      if test "$GCC" = yes; then
9040        wlarc='${wl}'
9041        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9043          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9044      else
9045        wlarc=''
9046        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9048        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9049      fi
9050      hardcode_libdir_flag_spec='-R$libdir'
9051      hardcode_shlibpath_var=no
9052      case $host_os in
9053      solaris2.[0-5] | solaris2.[0-5].*) ;;
9054      *)
9055        # The compiler driver will combine linker options so we
9056        # cannot just pass the convience library names through
9057        # without $wl, iff we do not link with $LD.
9058        # Luckily, gcc supports the same syntax we need for Sun Studio.
9059        # Supported since Solaris 2.6 (maybe 2.5.1?)
9060        case $wlarc in
9061        '')
9062          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9063        *)
9064          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' ;;
9065        esac ;;
9066      esac
9067      link_all_deplibs=yes
9068      ;;
9069
9070    sunos4*)
9071      if test "x$host_vendor" = xsequent; then
9072        # Use $CC to link under sequent, because it throws in some extra .o
9073        # files that make .init and .fini sections work.
9074        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9075      else
9076        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9077      fi
9078      hardcode_libdir_flag_spec='-L$libdir'
9079      hardcode_direct=yes
9080      hardcode_minus_L=yes
9081      hardcode_shlibpath_var=no
9082      ;;
9083
9084    sysv4)
9085      case $host_vendor in
9086        sni)
9087          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088          hardcode_direct=yes # is this really true???
9089        ;;
9090        siemens)
9091          ## LD is ld it makes a PLAMLIB
9092          ## CC just makes a GrossModule.
9093          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9094          reload_cmds='$CC -r -o $output$reload_objs'
9095          hardcode_direct=no
9096        ;;
9097        motorola)
9098          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9100        ;;
9101      esac
9102      runpath_var='LD_RUN_PATH'
9103      hardcode_shlibpath_var=no
9104      ;;
9105
9106    sysv4.3*)
9107      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108      hardcode_shlibpath_var=no
9109      export_dynamic_flag_spec='-Bexport'
9110      ;;
9111
9112    sysv4*MP*)
9113      if test -d /usr/nec; then
9114        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115        hardcode_shlibpath_var=no
9116        runpath_var=LD_RUN_PATH
9117        hardcode_runpath_var=yes
9118        ld_shlibs=yes
9119      fi
9120      ;;
9121
9122    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9123      no_undefined_flag='${wl}-z,text'
9124      archive_cmds_need_lc=no
9125      hardcode_shlibpath_var=no
9126      runpath_var='LD_RUN_PATH'
9127
9128      if test "$GCC" = yes; then
9129        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131      else
9132        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9134      fi
9135      ;;
9136
9137    sysv5* | sco3.2v5* | sco5v6*)
9138      # Note: We can NOT use -z defs as we might desire, because we do not
9139      # link with -lc, and that would cause any symbols used from libc to
9140      # always be unresolved, which means just about no library would
9141      # ever link correctly.  If we're not using GNU ld we use -z text
9142      # though, which does catch some bad symbols but isn't as heavy-handed
9143      # as -z defs.
9144      no_undefined_flag='${wl}-z,text'
9145      allow_undefined_flag='${wl}-z,nodefs'
9146      archive_cmds_need_lc=no
9147      hardcode_shlibpath_var=no
9148      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9149      hardcode_libdir_separator=':'
9150      link_all_deplibs=yes
9151      export_dynamic_flag_spec='${wl}-Bexport'
9152      runpath_var='LD_RUN_PATH'
9153
9154      if test "$GCC" = yes; then
9155        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9156        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157      else
9158        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9159        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9160      fi
9161      ;;
9162
9163    uts4*)
9164      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9165      hardcode_libdir_flag_spec='-L$libdir'
9166      hardcode_shlibpath_var=no
9167      ;;
9168
9169    *)
9170      ld_shlibs=no
9171      ;;
9172    esac
9173  fi
9174
9175echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9176echo "${ECHO_T}$ld_shlibs" >&6
9177test "$ld_shlibs" = no && can_build_shared=no
9178
9179#
9180# Do we need to explicitly link libc?
9181#
9182case "x$archive_cmds_need_lc" in
9183x|xyes)
9184  # Assume -lc should be added
9185  archive_cmds_need_lc=yes
9186
9187  if test "$enable_shared" = yes && test "$GCC" = yes; then
9188    case $archive_cmds in
9189    *'~'*)
9190      # FIXME: we may have to deal with multi-command sequences.
9191      ;;
9192    '$CC '*)
9193      # Test whether the compiler implicitly links with -lc since on some
9194      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9195      # to ld, don't add -lc before -lgcc.
9196      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9197echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9198      $rm conftest*
9199      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9200
9201      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202  (eval $ac_compile) 2>&5
9203  ac_status=$?
9204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205  (exit $ac_status); } 2>conftest.err; then
9206        soname=conftest
9207        lib=conftest
9208        libobjs=conftest.$ac_objext
9209        deplibs=
9210        wl=$lt_prog_compiler_wl
9211        pic_flag=$lt_prog_compiler_pic
9212        compiler_flags=-v
9213        linker_flags=-v
9214        verstring=
9215        output_objdir=.
9216        libname=conftest
9217        lt_save_allow_undefined_flag=$allow_undefined_flag
9218        allow_undefined_flag=
9219        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9220  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9221  ac_status=$?
9222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223  (exit $ac_status); }
9224        then
9225          archive_cmds_need_lc=no
9226        else
9227          archive_cmds_need_lc=yes
9228        fi
9229        allow_undefined_flag=$lt_save_allow_undefined_flag
9230      else
9231        cat conftest.err 1>&5
9232      fi
9233      $rm conftest*
9234      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9235echo "${ECHO_T}$archive_cmds_need_lc" >&6
9236      ;;
9237    esac
9238  fi
9239  ;;
9240esac
9241
9242echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9243echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9244library_names_spec=
9245libname_spec='lib$name'
9246soname_spec=
9247shrext_cmds=".so"
9248postinstall_cmds=
9249postuninstall_cmds=
9250finish_cmds=
9251finish_eval=
9252shlibpath_var=
9253shlibpath_overrides_runpath=unknown
9254version_type=none
9255dynamic_linker="$host_os ld.so"
9256sys_lib_dlsearch_path_spec="/lib /usr/lib"
9257if test "$GCC" = yes; then
9258  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9259  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9260    # if the path contains ";" then we assume it to be the separator
9261    # otherwise default to the standard path separator (i.e. ":") - it is
9262    # assumed that no part of a normal pathname contains ";" but that should
9263    # okay in the real world where ";" in dirpaths is itself problematic.
9264    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9265  else
9266    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9267  fi
9268else
9269  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9270fi
9271need_lib_prefix=unknown
9272hardcode_into_libs=no
9273
9274# when you set need_version to no, make sure it does not cause -set_version
9275# flags to be left without arguments
9276need_version=unknown
9277
9278case $host_os in
9279aix3*)
9280  version_type=linux
9281  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9282  shlibpath_var=LIBPATH
9283
9284  # AIX 3 has no versioning support, so we append a major version to the name.
9285  soname_spec='${libname}${release}${shared_ext}$major'
9286  ;;
9287
9288aix4* | aix5*)
9289  version_type=linux
9290  need_lib_prefix=no
9291  need_version=no
9292  hardcode_into_libs=yes
9293  if test "$host_cpu" = ia64; then
9294    # AIX 5 supports IA64
9295    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9296    shlibpath_var=LD_LIBRARY_PATH
9297  else
9298    # With GCC up to 2.95.x, collect2 would create an import file
9299    # for dependence libraries.  The import file would start with
9300    # the line `#! .'.  This would cause the generated library to
9301    # depend on `.', always an invalid library.  This was fixed in
9302    # development snapshots of GCC prior to 3.0.
9303    case $host_os in
9304      aix4 | aix4.[01] | aix4.[01].*)
9305      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9306           echo ' yes '
9307           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9308        :
9309      else
9310        can_build_shared=no
9311      fi
9312      ;;
9313    esac
9314    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9315    # soname into executable. Probably we can add versioning support to
9316    # collect2, so additional links can be useful in future.
9317    if test "$aix_use_runtimelinking" = yes; then
9318      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9319      # instead of lib<name>.a to let people know that these are not
9320      # typical AIX shared libraries.
9321      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322    else
9323      # We preserve .a as extension for shared libraries through AIX4.2
9324      # and later when we are not doing run time linking.
9325      library_names_spec='${libname}${release}.a $libname.a'
9326      soname_spec='${libname}${release}${shared_ext}$major'
9327    fi
9328    shlibpath_var=LIBPATH
9329  fi
9330  ;;
9331
9332amigaos*)
9333  library_names_spec='$libname.ixlibrary $libname.a'
9334  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9335  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'
9336  ;;
9337
9338beos*)
9339  library_names_spec='${libname}${shared_ext}'
9340  dynamic_linker="$host_os ld.so"
9341  shlibpath_var=LIBRARY_PATH
9342  ;;
9343
9344bsdi[45]*)
9345  version_type=linux
9346  need_version=no
9347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348  soname_spec='${libname}${release}${shared_ext}$major'
9349  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9350  shlibpath_var=LD_LIBRARY_PATH
9351  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9352  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9353  # the default ld.so.conf also contains /usr/contrib/lib and
9354  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9355  # libtool to hard-code these into programs
9356  ;;
9357
9358cygwin* | mingw* | pw32*)
9359  version_type=windows
9360  shrext_cmds=".dll"
9361  need_version=no
9362  need_lib_prefix=no
9363
9364  case $GCC,$host_os in
9365  yes,cygwin* | yes,mingw* | yes,pw32*)
9366    library_names_spec='$libname.dll.a'
9367    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9368    postinstall_cmds='base_file=`basename \${file}`~
9369      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9370      dldir=$destdir/`dirname \$dlpath`~
9371      test -d \$dldir || mkdir -p \$dldir~
9372      $install_prog $dir/$dlname \$dldir/$dlname~
9373      chmod a+x \$dldir/$dlname'
9374    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9375      dlpath=$dir/\$dldll~
9376       $rm \$dlpath'
9377    shlibpath_overrides_runpath=yes
9378
9379    case $host_os in
9380    cygwin*)
9381      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9382      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9383      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9384      ;;
9385    mingw*)
9386      # MinGW DLLs use traditional 'lib' prefix
9387      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9388      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9389      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9390        # It is most probably a Windows format PATH printed by
9391        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9392        # path with ; separators, and with drive letters. We can handle the
9393        # drive letters (cygwin fileutils understands them), so leave them,
9394        # especially as we might pass files found there to a mingw objdump,
9395        # which wouldn't understand a cygwinified path. Ahh.
9396        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9397      else
9398        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9399      fi
9400      ;;
9401    pw32*)
9402      # pw32 DLLs use 'pw' prefix rather than 'lib'
9403      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9404      ;;
9405    esac
9406    ;;
9407
9408  *)
9409    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9410    ;;
9411  esac
9412  dynamic_linker='Win32 ld.exe'
9413  # FIXME: first we should search . and the directory the executable is in
9414  shlibpath_var=PATH
9415  ;;
9416
9417darwin* | rhapsody*)
9418  dynamic_linker="$host_os dyld"
9419  version_type=darwin
9420  need_lib_prefix=no
9421  need_version=no
9422  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9423  soname_spec='${libname}${release}${major}$shared_ext'
9424  shlibpath_overrides_runpath=yes
9425  shlibpath_var=DYLD_LIBRARY_PATH
9426  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9427  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9428  if test "$GCC" = yes; then
9429    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"`
9430  else
9431    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9432  fi
9433  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9434  ;;
9435
9436dgux*)
9437  version_type=linux
9438  need_lib_prefix=no
9439  need_version=no
9440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  shlibpath_var=LD_LIBRARY_PATH
9443  ;;
9444
9445freebsd1*)
9446  dynamic_linker=no
9447  ;;
9448
9449kfreebsd*-gnu)
9450  version_type=linux
9451  need_lib_prefix=no
9452  need_version=no
9453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9454  soname_spec='${libname}${release}${shared_ext}$major'
9455  shlibpath_var=LD_LIBRARY_PATH
9456  shlibpath_overrides_runpath=no
9457  hardcode_into_libs=yes
9458  dynamic_linker='GNU ld.so'
9459  ;;
9460
9461freebsd* | dragonfly*)
9462  # DragonFly does not have aout.  When/if they implement a new
9463  # versioning mechanism, adjust this.
9464  if test -x /usr/bin/objformat; then
9465    objformat=`/usr/bin/objformat`
9466  else
9467    case $host_os in
9468    freebsd[123]*) objformat=aout ;;
9469    *) objformat=elf ;;
9470    esac
9471  fi
9472  version_type=freebsd-$objformat
9473  case $version_type in
9474    freebsd-elf*)
9475      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9476      need_version=no
9477      need_lib_prefix=no
9478      ;;
9479    freebsd-*)
9480      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9481      need_version=yes
9482      ;;
9483  esac
9484  shlibpath_var=LD_LIBRARY_PATH
9485  case $host_os in
9486  freebsd2*)
9487    shlibpath_overrides_runpath=yes
9488    ;;
9489  freebsd3.[01]* | freebsdelf3.[01]*)
9490    shlibpath_overrides_runpath=yes
9491    hardcode_into_libs=yes
9492    ;;
9493  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9494  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9495    shlibpath_overrides_runpath=no
9496    hardcode_into_libs=yes
9497    ;;
9498  freebsd*) # from 4.6 on
9499    shlibpath_overrides_runpath=yes
9500    hardcode_into_libs=yes
9501    ;;
9502  esac
9503  ;;
9504
9505gnu*)
9506  version_type=linux
9507  need_lib_prefix=no
9508  need_version=no
9509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9510  soname_spec='${libname}${release}${shared_ext}$major'
9511  shlibpath_var=LD_LIBRARY_PATH
9512  hardcode_into_libs=yes
9513  ;;
9514
9515hpux9* | hpux10* | hpux11*)
9516  # Give a soname corresponding to the major version so that dld.sl refuses to
9517  # link against other versions.
9518  version_type=sunos
9519  need_lib_prefix=no
9520  need_version=no
9521  case $host_cpu in
9522  ia64*)
9523    shrext_cmds='.so'
9524    hardcode_into_libs=yes
9525    dynamic_linker="$host_os dld.so"
9526    shlibpath_var=LD_LIBRARY_PATH
9527    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529    soname_spec='${libname}${release}${shared_ext}$major'
9530    if test "X$HPUX_IA64_MODE" = X32; then
9531      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9532    else
9533      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9534    fi
9535    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9536    ;;
9537   hppa*64*)
9538     shrext_cmds='.sl'
9539     hardcode_into_libs=yes
9540     dynamic_linker="$host_os dld.sl"
9541     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9542     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544     soname_spec='${libname}${release}${shared_ext}$major'
9545     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9546     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9547     ;;
9548   *)
9549    shrext_cmds='.sl'
9550    dynamic_linker="$host_os dld.sl"
9551    shlibpath_var=SHLIB_PATH
9552    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9553    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554    soname_spec='${libname}${release}${shared_ext}$major'
9555    ;;
9556  esac
9557  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9558  postinstall_cmds='chmod 555 $lib'
9559  ;;
9560
9561interix3*)
9562  version_type=linux
9563  need_lib_prefix=no
9564  need_version=no
9565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9566  soname_spec='${libname}${release}${shared_ext}$major'
9567  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9568  shlibpath_var=LD_LIBRARY_PATH
9569  shlibpath_overrides_runpath=no
9570  hardcode_into_libs=yes
9571  ;;
9572
9573irix5* | irix6* | nonstopux*)
9574  case $host_os in
9575    nonstopux*) version_type=nonstopux ;;
9576    *)
9577        if test "$lt_cv_prog_gnu_ld" = yes; then
9578                version_type=linux
9579        else
9580                version_type=irix
9581        fi ;;
9582  esac
9583  need_lib_prefix=no
9584  need_version=no
9585  soname_spec='${libname}${release}${shared_ext}$major'
9586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9587  case $host_os in
9588  irix5* | nonstopux*)
9589    libsuff= shlibsuff=
9590    ;;
9591  *)
9592    case $LD in # libtool.m4 will add one of these switches to LD
9593    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9594      libsuff= shlibsuff= libmagic=32-bit;;
9595    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9596      libsuff=32 shlibsuff=N32 libmagic=N32;;
9597    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9598      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9599    *) libsuff= shlibsuff= libmagic=never-match;;
9600    esac
9601    ;;
9602  esac
9603  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9604  shlibpath_overrides_runpath=no
9605  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9606  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9607  hardcode_into_libs=yes
9608  ;;
9609
9610# No shared lib support for Linux oldld, aout, or coff.
9611linux*oldld* | linux*aout* | linux*coff*)
9612  dynamic_linker=no
9613  ;;
9614
9615# This must be Linux ELF.
9616linux*)
9617  version_type=linux
9618  need_lib_prefix=no
9619  need_version=no
9620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621  soname_spec='${libname}${release}${shared_ext}$major'
9622  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  shlibpath_overrides_runpath=no
9625  # This implies no fast_install, which is unacceptable.
9626  # Some rework will be needed to allow for fast_install
9627  # before this can be enabled.
9628  hardcode_into_libs=yes
9629
9630  # Append ld.so.conf contents to the search path
9631  if test -f /etc/ld.so.conf; then
9632    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' ' '`
9633    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9634  fi
9635
9636  # We used to test for /lib/ld.so.1 and disable shared libraries on
9637  # powerpc, because MkLinux only supported shared libraries with the
9638  # GNU dynamic linker.  Since this was broken with cross compilers,
9639  # most powerpc-linux boxes support dynamic linking these days and
9640  # people can always --disable-shared, the test was removed, and we
9641  # assume the GNU/Linux dynamic linker is in use.
9642  dynamic_linker='GNU/Linux ld.so'
9643  ;;
9644
9645knetbsd*-gnu)
9646  version_type=linux
9647  need_lib_prefix=no
9648  need_version=no
9649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9650  soname_spec='${libname}${release}${shared_ext}$major'
9651  shlibpath_var=LD_LIBRARY_PATH
9652  shlibpath_overrides_runpath=no
9653  hardcode_into_libs=yes
9654  dynamic_linker='GNU ld.so'
9655  ;;
9656
9657netbsd*)
9658  version_type=sunos
9659  need_lib_prefix=no
9660  need_version=no
9661  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9663    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9664    dynamic_linker='NetBSD (a.out) ld.so'
9665  else
9666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9667    soname_spec='${libname}${release}${shared_ext}$major'
9668    dynamic_linker='NetBSD ld.elf_so'
9669  fi
9670  shlibpath_var=LD_LIBRARY_PATH
9671  shlibpath_overrides_runpath=yes
9672  hardcode_into_libs=yes
9673  ;;
9674
9675newsos6)
9676  version_type=linux
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678  shlibpath_var=LD_LIBRARY_PATH
9679  shlibpath_overrides_runpath=yes
9680  ;;
9681
9682nto-qnx*)
9683  version_type=linux
9684  need_lib_prefix=no
9685  need_version=no
9686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687  soname_spec='${libname}${release}${shared_ext}$major'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  shlibpath_overrides_runpath=yes
9690  ;;
9691
9692openbsd*)
9693  version_type=sunos
9694  sys_lib_dlsearch_path_spec="/usr/lib"
9695  need_lib_prefix=no
9696  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9697  case $host_os in
9698    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9699    *)                         need_version=no  ;;
9700  esac
9701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9702  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9703  shlibpath_var=LD_LIBRARY_PATH
9704  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9705    case $host_os in
9706      openbsd2.[89] | openbsd2.[89].*)
9707        shlibpath_overrides_runpath=no
9708        ;;
9709      *)
9710        shlibpath_overrides_runpath=yes
9711        ;;
9712      esac
9713  else
9714    shlibpath_overrides_runpath=yes
9715  fi
9716  ;;
9717
9718os2*)
9719  libname_spec='$name'
9720  shrext_cmds=".dll"
9721  need_lib_prefix=no
9722  library_names_spec='$libname${shared_ext} $libname.a'
9723  dynamic_linker='OS/2 ld.exe'
9724  shlibpath_var=LIBPATH
9725  ;;
9726
9727osf3* | osf4* | osf5*)
9728  version_type=osf
9729  need_lib_prefix=no
9730  need_version=no
9731  soname_spec='${libname}${release}${shared_ext}$major'
9732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9735  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9736  ;;
9737
9738solaris*)
9739  version_type=linux
9740  need_lib_prefix=no
9741  need_version=no
9742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743  soname_spec='${libname}${release}${shared_ext}$major'
9744  shlibpath_var=LD_LIBRARY_PATH
9745  shlibpath_overrides_runpath=yes
9746  hardcode_into_libs=yes
9747  # ldd complains unless libraries are executable
9748  postinstall_cmds='chmod +x $lib'
9749  ;;
9750
9751sunos4*)
9752  version_type=sunos
9753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9754  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9755  shlibpath_var=LD_LIBRARY_PATH
9756  shlibpath_overrides_runpath=yes
9757  if test "$with_gnu_ld" = yes; then
9758    need_lib_prefix=no
9759  fi
9760  need_version=yes
9761  ;;
9762
9763sysv4 | sysv4.3*)
9764  version_type=linux
9765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766  soname_spec='${libname}${release}${shared_ext}$major'
9767  shlibpath_var=LD_LIBRARY_PATH
9768  case $host_vendor in
9769    sni)
9770      shlibpath_overrides_runpath=no
9771      need_lib_prefix=no
9772      export_dynamic_flag_spec='${wl}-Blargedynsym'
9773      runpath_var=LD_RUN_PATH
9774      ;;
9775    siemens)
9776      need_lib_prefix=no
9777      ;;
9778    motorola)
9779      need_lib_prefix=no
9780      need_version=no
9781      shlibpath_overrides_runpath=no
9782      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9783      ;;
9784  esac
9785  ;;
9786
9787sysv4*MP*)
9788  if test -d /usr/nec ;then
9789    version_type=linux
9790    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9791    soname_spec='$libname${shared_ext}.$major'
9792    shlibpath_var=LD_LIBRARY_PATH
9793  fi
9794  ;;
9795
9796sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9797  version_type=freebsd-elf
9798  need_lib_prefix=no
9799  need_version=no
9800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9801  soname_spec='${libname}${release}${shared_ext}$major'
9802  shlibpath_var=LD_LIBRARY_PATH
9803  hardcode_into_libs=yes
9804  if test "$with_gnu_ld" = yes; then
9805    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9806    shlibpath_overrides_runpath=no
9807  else
9808    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9809    shlibpath_overrides_runpath=yes
9810    case $host_os in
9811      sco3.2v5*)
9812        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9813        ;;
9814    esac
9815  fi
9816  sys_lib_dlsearch_path_spec='/usr/lib'
9817  ;;
9818
9819uts4*)
9820  version_type=linux
9821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822  soname_spec='${libname}${release}${shared_ext}$major'
9823  shlibpath_var=LD_LIBRARY_PATH
9824  ;;
9825
9826*)
9827  dynamic_linker=no
9828  ;;
9829esac
9830echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9831echo "${ECHO_T}$dynamic_linker" >&6
9832test "$dynamic_linker" = no && can_build_shared=no
9833
9834variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9835if test "$GCC" = yes; then
9836  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9837fi
9838
9839echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9840echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9841hardcode_action=
9842if test -n "$hardcode_libdir_flag_spec" || \
9843   test -n "$runpath_var" || \
9844   test "X$hardcode_automatic" = "Xyes" ; then
9845
9846  # We can hardcode non-existant directories.
9847  if test "$hardcode_direct" != no &&
9848     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9849     # have to relink, otherwise we might link with an installed library
9850     # when we should be linking with a yet-to-be-installed one
9851     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9852     test "$hardcode_minus_L" != no; then
9853    # Linking always hardcodes the temporary library directory.
9854    hardcode_action=relink
9855  else
9856    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9857    hardcode_action=immediate
9858  fi
9859else
9860  # We cannot hardcode anything, or else we can only hardcode existing
9861  # directories.
9862  hardcode_action=unsupported
9863fi
9864echo "$as_me:$LINENO: result: $hardcode_action" >&5
9865echo "${ECHO_T}$hardcode_action" >&6
9866
9867if test "$hardcode_action" = relink; then
9868  # Fast installation is not supported
9869  enable_fast_install=no
9870elif test "$shlibpath_overrides_runpath" = yes ||
9871     test "$enable_shared" = no; then
9872  # Fast installation is not necessary
9873  enable_fast_install=needless
9874fi
9875
9876striplib=
9877old_striplib=
9878echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9879echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9880if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9881  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9882  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9883  echo "$as_me:$LINENO: result: yes" >&5
9884echo "${ECHO_T}yes" >&6
9885else
9886# FIXME - insert some real tests, host_os isn't really good enough
9887  case $host_os in
9888   darwin*)
9889       if test -n "$STRIP" ; then
9890         striplib="$STRIP -x"
9891         echo "$as_me:$LINENO: result: yes" >&5
9892echo "${ECHO_T}yes" >&6
9893       else
9894  echo "$as_me:$LINENO: result: no" >&5
9895echo "${ECHO_T}no" >&6
9896fi
9897       ;;
9898   *)
9899  echo "$as_me:$LINENO: result: no" >&5
9900echo "${ECHO_T}no" >&6
9901    ;;
9902  esac
9903fi
9904
9905if test "x$enable_dlopen" != xyes; then
9906  enable_dlopen=unknown
9907  enable_dlopen_self=unknown
9908  enable_dlopen_self_static=unknown
9909else
9910  lt_cv_dlopen=no
9911  lt_cv_dlopen_libs=
9912
9913  case $host_os in
9914  beos*)
9915    lt_cv_dlopen="load_add_on"
9916    lt_cv_dlopen_libs=
9917    lt_cv_dlopen_self=yes
9918    ;;
9919
9920  mingw* | pw32*)
9921    lt_cv_dlopen="LoadLibrary"
9922    lt_cv_dlopen_libs=
9923   ;;
9924
9925  cygwin*)
9926    lt_cv_dlopen="dlopen"
9927    lt_cv_dlopen_libs=
9928   ;;
9929
9930  darwin*)
9931  # if libdl is installed we need to link against it
9932    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9933echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9934if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9935  echo $ECHO_N "(cached) $ECHO_C" >&6
9936else
9937  ac_check_lib_save_LIBS=$LIBS
9938LIBS="-ldl  $LIBS"
9939cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h.  */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h.  */
9945
9946/* Override any gcc2 internal prototype to avoid an error.  */
9947#ifdef __cplusplus
9948extern "C"
9949#endif
9950/* We use char because int might match the return type of a gcc2
9951   builtin and then its argument prototype would still apply.  */
9952char dlopen ();
9953int
9954main ()
9955{
9956dlopen ();
9957  ;
9958  return 0;
9959}
9960_ACEOF
9961rm -f conftest.$ac_objext conftest$ac_exeext
9962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963  (eval $ac_link) 2>conftest.er1
9964  ac_status=$?
9965  grep -v '^ *+' conftest.er1 >conftest.err
9966  rm -f conftest.er1
9967  cat conftest.err >&5
9968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969  (exit $ac_status); } &&
9970         { ac_try='test -z "$ac_c_werror_flag"
9971                         || test ! -s conftest.err'
9972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973  (eval $ac_try) 2>&5
9974  ac_status=$?
9975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976  (exit $ac_status); }; } &&
9977         { ac_try='test -s conftest$ac_exeext'
9978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979  (eval $ac_try) 2>&5
9980  ac_status=$?
9981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982  (exit $ac_status); }; }; then
9983  ac_cv_lib_dl_dlopen=yes
9984else
9985  echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988ac_cv_lib_dl_dlopen=no
9989fi
9990rm -f conftest.err conftest.$ac_objext \
9991      conftest$ac_exeext conftest.$ac_ext
9992LIBS=$ac_check_lib_save_LIBS
9993fi
9994echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9996if test $ac_cv_lib_dl_dlopen = yes; then
9997  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9998else
9999
10000    lt_cv_dlopen="dyld"
10001    lt_cv_dlopen_libs=
10002    lt_cv_dlopen_self=yes
10003
10004fi
10005
10006   ;;
10007
10008  *)
10009    echo "$as_me:$LINENO: checking for shl_load" >&5
10010echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10011if test "${ac_cv_func_shl_load+set}" = set; then
10012  echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014  cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h.  */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h.  */
10020/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10021   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10022#define shl_load innocuous_shl_load
10023
10024/* System header to define __stub macros and hopefully few prototypes,
10025    which can conflict with char shl_load (); below.
10026    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10027    <limits.h> exists even on freestanding compilers.  */
10028
10029#ifdef __STDC__
10030# include <limits.h>
10031#else
10032# include <assert.h>
10033#endif
10034
10035#undef shl_load
10036
10037/* Override any gcc2 internal prototype to avoid an error.  */
10038#ifdef __cplusplus
10039extern "C"
10040{
10041#endif
10042/* We use char because int might match the return type of a gcc2
10043   builtin and then its argument prototype would still apply.  */
10044char shl_load ();
10045/* The GNU C library defines this for functions which it implements
10046    to always fail with ENOSYS.  Some functions are actually named
10047    something starting with __ and the normal name is an alias.  */
10048#if defined (__stub_shl_load) || defined (__stub___shl_load)
10049choke me
10050#else
10051char (*f) () = shl_load;
10052#endif
10053#ifdef __cplusplus
10054}
10055#endif
10056
10057int
10058main ()
10059{
10060return f != shl_load;
10061  ;
10062  return 0;
10063}
10064_ACEOF
10065rm -f conftest.$ac_objext conftest$ac_exeext
10066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067  (eval $ac_link) 2>conftest.er1
10068  ac_status=$?
10069  grep -v '^ *+' conftest.er1 >conftest.err
10070  rm -f conftest.er1
10071  cat conftest.err >&5
10072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073  (exit $ac_status); } &&
10074         { ac_try='test -z "$ac_c_werror_flag"
10075                         || test ! -s conftest.err'
10076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077  (eval $ac_try) 2>&5
10078  ac_status=$?
10079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080  (exit $ac_status); }; } &&
10081         { ac_try='test -s conftest$ac_exeext'
10082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083  (eval $ac_try) 2>&5
10084  ac_status=$?
10085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086  (exit $ac_status); }; }; then
10087  ac_cv_func_shl_load=yes
10088else
10089  echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092ac_cv_func_shl_load=no
10093fi
10094rm -f conftest.err conftest.$ac_objext \
10095      conftest$ac_exeext conftest.$ac_ext
10096fi
10097echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10098echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10099if test $ac_cv_func_shl_load = yes; then
10100  lt_cv_dlopen="shl_load"
10101else
10102  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10103echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10104if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10105  echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107  ac_check_lib_save_LIBS=$LIBS
10108LIBS="-ldld  $LIBS"
10109cat >conftest.$ac_ext <<_ACEOF
10110/* confdefs.h.  */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h.  */
10115
10116/* Override any gcc2 internal prototype to avoid an error.  */
10117#ifdef __cplusplus
10118extern "C"
10119#endif
10120/* We use char because int might match the return type of a gcc2
10121   builtin and then its argument prototype would still apply.  */
10122char shl_load ();
10123int
10124main ()
10125{
10126shl_load ();
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131rm -f conftest.$ac_objext conftest$ac_exeext
10132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133  (eval $ac_link) 2>conftest.er1
10134  ac_status=$?
10135  grep -v '^ *+' conftest.er1 >conftest.err
10136  rm -f conftest.er1
10137  cat conftest.err >&5
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); } &&
10140         { ac_try='test -z "$ac_c_werror_flag"
10141                         || test ! -s conftest.err'
10142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143  (eval $ac_try) 2>&5
10144  ac_status=$?
10145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146  (exit $ac_status); }; } &&
10147         { ac_try='test -s conftest$ac_exeext'
10148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149  (eval $ac_try) 2>&5
10150  ac_status=$?
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); }; }; then
10153  ac_cv_lib_dld_shl_load=yes
10154else
10155  echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
10157
10158ac_cv_lib_dld_shl_load=no
10159fi
10160rm -f conftest.err conftest.$ac_objext \
10161      conftest$ac_exeext conftest.$ac_ext
10162LIBS=$ac_check_lib_save_LIBS
10163fi
10164echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10165echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10166if test $ac_cv_lib_dld_shl_load = yes; then
10167  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10168else
10169  echo "$as_me:$LINENO: checking for dlopen" >&5
10170echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10171if test "${ac_cv_func_dlopen+set}" = set; then
10172  echo $ECHO_N "(cached) $ECHO_C" >&6
10173else
10174  cat >conftest.$ac_ext <<_ACEOF
10175/* confdefs.h.  */
10176_ACEOF
10177cat confdefs.h >>conftest.$ac_ext
10178cat >>conftest.$ac_ext <<_ACEOF
10179/* end confdefs.h.  */
10180/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10181   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10182#define dlopen innocuous_dlopen
10183
10184/* System header to define __stub macros and hopefully few prototypes,
10185    which can conflict with char dlopen (); below.
10186    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10187    <limits.h> exists even on freestanding compilers.  */
10188
10189#ifdef __STDC__
10190# include <limits.h>
10191#else
10192# include <assert.h>
10193#endif
10194
10195#undef dlopen
10196
10197/* Override any gcc2 internal prototype to avoid an error.  */
10198#ifdef __cplusplus
10199extern "C"
10200{
10201#endif
10202/* We use char because int might match the return type of a gcc2
10203   builtin and then its argument prototype would still apply.  */
10204char dlopen ();
10205/* The GNU C library defines this for functions which it implements
10206    to always fail with ENOSYS.  Some functions are actually named
10207    something starting with __ and the normal name is an alias.  */
10208#if defined (__stub_dlopen) || defined (__stub___dlopen)
10209choke me
10210#else
10211char (*f) () = dlopen;
10212#endif
10213#ifdef __cplusplus
10214}
10215#endif
10216
10217int
10218main ()
10219{
10220return f != dlopen;
10221  ;
10222  return 0;
10223}
10224_ACEOF
10225rm -f conftest.$ac_objext conftest$ac_exeext
10226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227  (eval $ac_link) 2>conftest.er1
10228  ac_status=$?
10229  grep -v '^ *+' conftest.er1 >conftest.err
10230  rm -f conftest.er1
10231  cat conftest.err >&5
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); } &&
10234         { ac_try='test -z "$ac_c_werror_flag"
10235                         || test ! -s conftest.err'
10236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237  (eval $ac_try) 2>&5
10238  ac_status=$?
10239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); }; } &&
10241         { ac_try='test -s conftest$ac_exeext'
10242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243  (eval $ac_try) 2>&5
10244  ac_status=$?
10245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); }; }; then
10247  ac_cv_func_dlopen=yes
10248else
10249  echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
10252ac_cv_func_dlopen=no
10253fi
10254rm -f conftest.err conftest.$ac_objext \
10255      conftest$ac_exeext conftest.$ac_ext
10256fi
10257echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10258echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10259if test $ac_cv_func_dlopen = yes; then
10260  lt_cv_dlopen="dlopen"
10261else
10262  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10263echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10264if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10265  echo $ECHO_N "(cached) $ECHO_C" >&6
10266else
10267  ac_check_lib_save_LIBS=$LIBS
10268LIBS="-ldl  $LIBS"
10269cat >conftest.$ac_ext <<_ACEOF
10270/* confdefs.h.  */
10271_ACEOF
10272cat confdefs.h >>conftest.$ac_ext
10273cat >>conftest.$ac_ext <<_ACEOF
10274/* end confdefs.h.  */
10275
10276/* Override any gcc2 internal prototype to avoid an error.  */
10277#ifdef __cplusplus
10278extern "C"
10279#endif
10280/* We use char because int might match the return type of a gcc2
10281   builtin and then its argument prototype would still apply.  */
10282char dlopen ();
10283int
10284main ()
10285{
10286dlopen ();
10287  ;
10288  return 0;
10289}
10290_ACEOF
10291rm -f conftest.$ac_objext conftest$ac_exeext
10292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10293  (eval $ac_link) 2>conftest.er1
10294  ac_status=$?
10295  grep -v '^ *+' conftest.er1 >conftest.err
10296  rm -f conftest.er1
10297  cat conftest.err >&5
10298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299  (exit $ac_status); } &&
10300         { ac_try='test -z "$ac_c_werror_flag"
10301                         || test ! -s conftest.err'
10302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303  (eval $ac_try) 2>&5
10304  ac_status=$?
10305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306  (exit $ac_status); }; } &&
10307         { ac_try='test -s conftest$ac_exeext'
10308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309  (eval $ac_try) 2>&5
10310  ac_status=$?
10311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); }; }; then
10313  ac_cv_lib_dl_dlopen=yes
10314else
10315  echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318ac_cv_lib_dl_dlopen=no
10319fi
10320rm -f conftest.err conftest.$ac_objext \
10321      conftest$ac_exeext conftest.$ac_ext
10322LIBS=$ac_check_lib_save_LIBS
10323fi
10324echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10325echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10326if test $ac_cv_lib_dl_dlopen = yes; then
10327  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10328else
10329  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10330echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10331if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10332  echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334  ac_check_lib_save_LIBS=$LIBS
10335LIBS="-lsvld  $LIBS"
10336cat >conftest.$ac_ext <<_ACEOF
10337/* confdefs.h.  */
10338_ACEOF
10339cat confdefs.h >>conftest.$ac_ext
10340cat >>conftest.$ac_ext <<_ACEOF
10341/* end confdefs.h.  */
10342
10343/* Override any gcc2 internal prototype to avoid an error.  */
10344#ifdef __cplusplus
10345extern "C"
10346#endif
10347/* We use char because int might match the return type of a gcc2
10348   builtin and then its argument prototype would still apply.  */
10349char dlopen ();
10350int
10351main ()
10352{
10353dlopen ();
10354  ;
10355  return 0;
10356}
10357_ACEOF
10358rm -f conftest.$ac_objext conftest$ac_exeext
10359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360  (eval $ac_link) 2>conftest.er1
10361  ac_status=$?
10362  grep -v '^ *+' conftest.er1 >conftest.err
10363  rm -f conftest.er1
10364  cat conftest.err >&5
10365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366  (exit $ac_status); } &&
10367         { ac_try='test -z "$ac_c_werror_flag"
10368                         || test ! -s conftest.err'
10369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370  (eval $ac_try) 2>&5
10371  ac_status=$?
10372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373  (exit $ac_status); }; } &&
10374         { ac_try='test -s conftest$ac_exeext'
10375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376  (eval $ac_try) 2>&5
10377  ac_status=$?
10378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); }; }; then
10380  ac_cv_lib_svld_dlopen=yes
10381else
10382  echo "$as_me: failed program was:" >&5
10383sed 's/^/| /' conftest.$ac_ext >&5
10384
10385ac_cv_lib_svld_dlopen=no
10386fi
10387rm -f conftest.err conftest.$ac_objext \
10388      conftest$ac_exeext conftest.$ac_ext
10389LIBS=$ac_check_lib_save_LIBS
10390fi
10391echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10392echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10393if test $ac_cv_lib_svld_dlopen = yes; then
10394  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10395else
10396  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10397echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10398if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10399  echo $ECHO_N "(cached) $ECHO_C" >&6
10400else
10401  ac_check_lib_save_LIBS=$LIBS
10402LIBS="-ldld  $LIBS"
10403cat >conftest.$ac_ext <<_ACEOF
10404/* confdefs.h.  */
10405_ACEOF
10406cat confdefs.h >>conftest.$ac_ext
10407cat >>conftest.$ac_ext <<_ACEOF
10408/* end confdefs.h.  */
10409
10410/* Override any gcc2 internal prototype to avoid an error.  */
10411#ifdef __cplusplus
10412extern "C"
10413#endif
10414/* We use char because int might match the return type of a gcc2
10415   builtin and then its argument prototype would still apply.  */
10416char dld_link ();
10417int
10418main ()
10419{
10420dld_link ();
10421  ;
10422  return 0;
10423}
10424_ACEOF
10425rm -f conftest.$ac_objext conftest$ac_exeext
10426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10427  (eval $ac_link) 2>conftest.er1
10428  ac_status=$?
10429  grep -v '^ *+' conftest.er1 >conftest.err
10430  rm -f conftest.er1
10431  cat conftest.err >&5
10432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); } &&
10434         { ac_try='test -z "$ac_c_werror_flag"
10435                         || test ! -s conftest.err'
10436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437  (eval $ac_try) 2>&5
10438  ac_status=$?
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); }; } &&
10441         { ac_try='test -s conftest$ac_exeext'
10442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443  (eval $ac_try) 2>&5
10444  ac_status=$?
10445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446  (exit $ac_status); }; }; then
10447  ac_cv_lib_dld_dld_link=yes
10448else
10449  echo "$as_me: failed program was:" >&5
10450sed 's/^/| /' conftest.$ac_ext >&5
10451
10452ac_cv_lib_dld_dld_link=no
10453fi
10454rm -f conftest.err conftest.$ac_objext \
10455      conftest$ac_exeext conftest.$ac_ext
10456LIBS=$ac_check_lib_save_LIBS
10457fi
10458echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10459echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10460if test $ac_cv_lib_dld_dld_link = yes; then
10461  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10462fi
10463
10464
10465fi
10466
10467
10468fi
10469
10470
10471fi
10472
10473
10474fi
10475
10476
10477fi
10478
10479    ;;
10480  esac
10481
10482  if test "x$lt_cv_dlopen" != xno; then
10483    enable_dlopen=yes
10484  else
10485    enable_dlopen=no
10486  fi
10487
10488  case $lt_cv_dlopen in
10489  dlopen)
10490    save_CPPFLAGS="$CPPFLAGS"
10491    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10492
10493    save_LDFLAGS="$LDFLAGS"
10494    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10495
10496    save_LIBS="$LIBS"
10497    LIBS="$lt_cv_dlopen_libs $LIBS"
10498
10499    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10500echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10501if test "${lt_cv_dlopen_self+set}" = set; then
10502  echo $ECHO_N "(cached) $ECHO_C" >&6
10503else
10504          if test "$cross_compiling" = yes; then :
10505  lt_cv_dlopen_self=cross
10506else
10507  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10508  lt_status=$lt_dlunknown
10509  cat > conftest.$ac_ext <<EOF
10510#line 10510 "configure"
10511#include "confdefs.h"
10512
10513#if HAVE_DLFCN_H
10514#include <dlfcn.h>
10515#endif
10516
10517#include <stdio.h>
10518
10519#ifdef RTLD_GLOBAL
10520#  define LT_DLGLOBAL           RTLD_GLOBAL
10521#else
10522#  ifdef DL_GLOBAL
10523#    define LT_DLGLOBAL         DL_GLOBAL
10524#  else
10525#    define LT_DLGLOBAL         0
10526#  endif
10527#endif
10528
10529/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10530   find out it does not work in some platform. */
10531#ifndef LT_DLLAZY_OR_NOW
10532#  ifdef RTLD_LAZY
10533#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10534#  else
10535#    ifdef DL_LAZY
10536#      define LT_DLLAZY_OR_NOW          DL_LAZY
10537#    else
10538#      ifdef RTLD_NOW
10539#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10540#      else
10541#        ifdef DL_NOW
10542#          define LT_DLLAZY_OR_NOW      DL_NOW
10543#        else
10544#          define LT_DLLAZY_OR_NOW      0
10545#        endif
10546#      endif
10547#    endif
10548#  endif
10549#endif
10550
10551#ifdef __cplusplus
10552extern "C" void exit (int);
10553#endif
10554
10555void fnord() { int i=42;}
10556int main ()
10557{
10558  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10559  int status = $lt_dlunknown;
10560
10561  if (self)
10562    {
10563      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10564      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10565      /* dlclose (self); */
10566    }
10567  else
10568    puts (dlerror ());
10569
10570    exit (status);
10571}
10572EOF
10573  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574  (eval $ac_link) 2>&5
10575  ac_status=$?
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10578    (./conftest; exit; ) >&5 2>/dev/null
10579    lt_status=$?
10580    case x$lt_status in
10581      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10582      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10583      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10584    esac
10585  else :
10586    # compilation failed
10587    lt_cv_dlopen_self=no
10588  fi
10589fi
10590rm -fr conftest*
10591
10592
10593fi
10594echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10595echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10596
10597    if test "x$lt_cv_dlopen_self" = xyes; then
10598      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10599      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10600echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10601if test "${lt_cv_dlopen_self_static+set}" = set; then
10602  echo $ECHO_N "(cached) $ECHO_C" >&6
10603else
10604          if test "$cross_compiling" = yes; then :
10605  lt_cv_dlopen_self_static=cross
10606else
10607  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10608  lt_status=$lt_dlunknown
10609  cat > conftest.$ac_ext <<EOF
10610#line 10610 "configure"
10611#include "confdefs.h"
10612
10613#if HAVE_DLFCN_H
10614#include <dlfcn.h>
10615#endif
10616
10617#include <stdio.h>
10618
10619#ifdef RTLD_GLOBAL
10620#  define LT_DLGLOBAL           RTLD_GLOBAL
10621#else
10622#  ifdef DL_GLOBAL
10623#    define LT_DLGLOBAL         DL_GLOBAL
10624#  else
10625#    define LT_DLGLOBAL         0
10626#  endif
10627#endif
10628
10629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10630   find out it does not work in some platform. */
10631#ifndef LT_DLLAZY_OR_NOW
10632#  ifdef RTLD_LAZY
10633#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10634#  else
10635#    ifdef DL_LAZY
10636#      define LT_DLLAZY_OR_NOW          DL_LAZY
10637#    else
10638#      ifdef RTLD_NOW
10639#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10640#      else
10641#        ifdef DL_NOW
10642#          define LT_DLLAZY_OR_NOW      DL_NOW
10643#        else
10644#          define LT_DLLAZY_OR_NOW      0
10645#        endif
10646#      endif
10647#    endif
10648#  endif
10649#endif
10650
10651#ifdef __cplusplus
10652extern "C" void exit (int);
10653#endif
10654
10655void fnord() { int i=42;}
10656int main ()
10657{
10658  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10659  int status = $lt_dlunknown;
10660
10661  if (self)
10662    {
10663      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10664      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10665      /* dlclose (self); */
10666    }
10667  else
10668    puts (dlerror ());
10669
10670    exit (status);
10671}
10672EOF
10673  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674  (eval $ac_link) 2>&5
10675  ac_status=$?
10676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10678    (./conftest; exit; ) >&5 2>/dev/null
10679    lt_status=$?
10680    case x$lt_status in
10681      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10682      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10683      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10684    esac
10685  else :
10686    # compilation failed
10687    lt_cv_dlopen_self_static=no
10688  fi
10689fi
10690rm -fr conftest*
10691
10692
10693fi
10694echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10695echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10696    fi
10697
10698    CPPFLAGS="$save_CPPFLAGS"
10699    LDFLAGS="$save_LDFLAGS"
10700    LIBS="$save_LIBS"
10701    ;;
10702  esac
10703
10704  case $lt_cv_dlopen_self in
10705  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10706  *) enable_dlopen_self=unknown ;;
10707  esac
10708
10709  case $lt_cv_dlopen_self_static in
10710  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10711  *) enable_dlopen_self_static=unknown ;;
10712  esac
10713fi
10714
10715
10716# Report which library types will actually be built
10717echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10718echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10719echo "$as_me:$LINENO: result: $can_build_shared" >&5
10720echo "${ECHO_T}$can_build_shared" >&6
10721
10722echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10723echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10724test "$can_build_shared" = "no" && enable_shared=no
10725
10726# On AIX, shared libraries and static libraries use the same namespace, and
10727# are all built from PIC.
10728case $host_os in
10729aix3*)
10730  test "$enable_shared" = yes && enable_static=no
10731  if test -n "$RANLIB"; then
10732    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10733    postinstall_cmds='$RANLIB $lib'
10734  fi
10735  ;;
10736
10737aix4* | aix5*)
10738  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10739    test "$enable_shared" = yes && enable_static=no
10740  fi
10741    ;;
10742esac
10743echo "$as_me:$LINENO: result: $enable_shared" >&5
10744echo "${ECHO_T}$enable_shared" >&6
10745
10746echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10747echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10748# Make sure either enable_shared or enable_static is yes.
10749test "$enable_shared" = yes || enable_static=yes
10750echo "$as_me:$LINENO: result: $enable_static" >&5
10751echo "${ECHO_T}$enable_static" >&6
10752
10753# The else clause should only fire when bootstrapping the
10754# libtool distribution, otherwise you forgot to ship ltmain.sh
10755# with your package, and you will get complaints that there are
10756# no rules to generate ltmain.sh.
10757if test -f "$ltmain"; then
10758  # See if we are running on zsh, and set the options which allow our commands through
10759  # without removal of \ escapes.
10760  if test -n "${ZSH_VERSION+set}" ; then
10761    setopt NO_GLOB_SUBST
10762  fi
10763  # Now quote all the things that may contain metacharacters while being
10764  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10765  # variables and quote the copies for generation of the libtool script.
10766  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10767    SED SHELL STRIP \
10768    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10769    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10770    deplibs_check_method reload_flag reload_cmds need_locks \
10771    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10772    lt_cv_sys_global_symbol_to_c_name_address \
10773    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10774    old_postinstall_cmds old_postuninstall_cmds \
10775    compiler \
10776    CC \
10777    LD \
10778    lt_prog_compiler_wl \
10779    lt_prog_compiler_pic \
10780    lt_prog_compiler_static \
10781    lt_prog_compiler_no_builtin_flag \
10782    export_dynamic_flag_spec \
10783    thread_safe_flag_spec \
10784    whole_archive_flag_spec \
10785    enable_shared_with_static_runtimes \
10786    old_archive_cmds \
10787    old_archive_from_new_cmds \