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

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

restoring BuildTools/ThirdParty?/FilterSQP/stable/1.2

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