source: ThirdParty/FilterSQP/stable/1.1/configure @ 2283

Last change on this file since 2283 was 2283, checked in by stefan, 9 years ago

rerun autotools; merge fixes in example Makefiles for mingw/cl from trunk

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