source: ThirdParty/FilterSQP/branches/split/configure @ 1542

Last change on this file since 1542 was 1542, checked in by stefan, 11 years ago

rerun autotools; improve setup of addlibs file

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