source: ThirdParty/FilterSQP/trunk/configure @ 1411

Last change on this file since 1411 was 1411, checked in by stefan, 10 years ago

revert my recent changes related to BSPsplit after copying them into branches

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