source: ThirdParty/FilterSQP/stable/1.2/configure @ 2774

Last change on this file since 2774 was 2774, checked in by stefan, 7 years ago

temporarily committing release candidate

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