source: branches/autotools-update/Clp/configure @ 2347

Last change on this file since 2347 was 2347, checked in by stefan, 6 months ago

add a CLP_HAS_MUMPS define and export it in config_clp.h, too

  • Property svn:executable set to *
File size: 890.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Clp trunk.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14#
15# Copyright 2006 International Business Machines and others.
16# All Rights Reserved.
17# This file is part of the open source package Clp which is distributed
18# under the Eclipse Public License.
19## -------------------- ##
20## M4sh Initialization. ##
21## -------------------- ##
22
23# Be more Bourne compatible
24DUALCASE=1; export DUALCASE # for MKS sh
25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26  emulate sh
27  NULLCMD=:
28  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29  # is contrary to our usage.  Disable this feature.
30  alias -g '${1+"$@"}'='"$@"'
31  setopt NO_GLOB_SUBST
32else
33  case `(set -o) 2>/dev/null` in #(
34  *posix*) :
35    set -o posix ;; #(
36  *) :
37     ;;
38esac
39fi
40
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49# Prefer a ksh shell builtin over an external printf program on Solaris,
50# but without wasting forks for bash or zsh.
51if test -z "$BASH_VERSION$ZSH_VERSION" \
52    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='print -r --'
54  as_echo_n='print -rn --'
55elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56  as_echo='printf %s\n'
57  as_echo_n='printf %s'
58else
59  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61    as_echo_n='/usr/ucb/echo -n'
62  else
63    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64    as_echo_n_body='eval
65      arg=$1;
66      case $arg in #(
67      *"$as_nl"*)
68        expr "X$arg" : "X\\(.*\\)$as_nl";
69        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70      esac;
71      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72    '
73    export as_echo_n_body
74    as_echo_n='sh -c $as_echo_n_body as_echo'
75  fi
76  export as_echo_body
77  as_echo='sh -c $as_echo_body as_echo'
78fi
79
80# The user is always right.
81if test "${PATH_SEPARATOR+set}" != set; then
82  PATH_SEPARATOR=:
83  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85      PATH_SEPARATOR=';'
86  }
87fi
88
89
90# IFS
91# We need space, tab and new line, in precisely that order.  Quoting is
92# there to prevent editors from complaining about space-tab.
93# (If _AS_PATH_WALK were called with IFS unset, it would disable word
94# splitting by setting IFS to empty value.)
95IFS=" ""        $as_nl"
96
97# Find who we are.  Look in the path if we contain no directory separator.
98as_myself=
99case $0 in #((
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107  done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  exit 1
120fi
121
122# Unset variables that we do not need and which cause bugs (e.g. in
123# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
124# suppresses any "Segmentation fault" message there.  '((' could
125# trigger a bug in pdksh 5.2.14.
126for as_var in BASH_ENV ENV MAIL MAILPATH
127do eval test x\${$as_var+set} = xset \
128  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
129done
130PS1='$ '
131PS2='> '
132PS4='+ '
133
134# NLS nuisances.
135LC_ALL=C
136export LC_ALL
137LANGUAGE=C
138export LANGUAGE
139
140# CDPATH.
141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142
143# Use a proper internal environment variable to ensure we don't fall
144  # into an infinite loop, continuously re-executing ourselves.
145  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
146    _as_can_reexec=no; export _as_can_reexec;
147    # We cannot yet assume a decent shell, so we have to provide a
148# neutralization value for shells without unset; and this also
149# works around shells that cannot unset nonexistent variables.
150# Preserve -v and -x to the replacement shell.
151BASH_ENV=/dev/null
152ENV=/dev/null
153(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
154case $- in # ((((
155  *v*x* | *x*v* ) as_opts=-vx ;;
156  *v* ) as_opts=-v ;;
157  *x* ) as_opts=-x ;;
158  * ) as_opts= ;;
159esac
160exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
161# Admittedly, this is quite paranoid, since all the known shells bail
162# out after a failed `exec'.
163$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
164as_fn_exit 255
165  fi
166  # We don't want this to propagate to other subprocesses.
167          { _as_can_reexec=; unset _as_can_reexec;}
168if test "x$CONFIG_SHELL" = x; then
169  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
170  emulate sh
171  NULLCMD=:
172  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
173  # is contrary to our usage.  Disable this feature.
174  alias -g '\${1+\"\$@\"}'='\"\$@\"'
175  setopt NO_GLOB_SUBST
176else
177  case \`(set -o) 2>/dev/null\` in #(
178  *posix*) :
179    set -o posix ;; #(
180  *) :
181     ;;
182esac
183fi
184"
185  as_required="as_fn_return () { (exit \$1); }
186as_fn_success () { as_fn_return 0; }
187as_fn_failure () { as_fn_return 1; }
188as_fn_ret_success () { return 0; }
189as_fn_ret_failure () { return 1; }
190
191exitcode=0
192as_fn_success || { exitcode=1; echo as_fn_success failed.; }
193as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
194as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
195as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
196if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
197
198else
199  exitcode=1; echo positional parameters were not saved.
200fi
201test x\$exitcode = x0 || exit 1
202test -x / || exit 1"
203  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
204  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
205  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
206  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
207
208  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
209    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
210    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
211    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
212    PATH=/empty FPATH=/empty; export PATH FPATH
213    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
214      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
215test \$(( 1 + 1 )) = 2 || exit 1"
216  if (eval "$as_required") 2>/dev/null; then :
217  as_have_required=yes
218else
219  as_have_required=no
220fi
221  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
222
223else
224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225as_found=false
226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227do
228  IFS=$as_save_IFS
229  test -z "$as_dir" && as_dir=.
230  as_found=:
231  case $as_dir in #(
232         /*)
233           for as_base in sh bash ksh sh5; do
234             # Try only shells that exist, to save several forks.
235             as_shell=$as_dir/$as_base
236             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
238  CONFIG_SHELL=$as_shell as_have_required=yes
239                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
240  break 2
241fi
242fi
243           done;;
244       esac
245  as_found=false
246done
247$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
248              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
249  CONFIG_SHELL=$SHELL as_have_required=yes
250fi; }
251IFS=$as_save_IFS
252
253
254      if test "x$CONFIG_SHELL" != x; then :
255  export CONFIG_SHELL
256             # We cannot yet assume a decent shell, so we have to provide a
257# neutralization value for shells without unset; and this also
258# works around shells that cannot unset nonexistent variables.
259# Preserve -v and -x to the replacement shell.
260BASH_ENV=/dev/null
261ENV=/dev/null
262(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
263case $- in # ((((
264  *v*x* | *x*v* ) as_opts=-vx ;;
265  *v* ) as_opts=-v ;;
266  *x* ) as_opts=-x ;;
267  * ) as_opts= ;;
268esac
269exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
270# Admittedly, this is quite paranoid, since all the known shells bail
271# out after a failed `exec'.
272$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
273exit 255
274fi
275
276    if test x$as_have_required = xno; then :
277  $as_echo "$0: This script requires a shell more modern than all"
278  $as_echo "$0: the shells that I found on your system."
279  if test x${ZSH_VERSION+set} = xset ; then
280    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
281    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
282  else
283    $as_echo "$0: Please tell bug-autoconf@gnu.org and
284$0: clp@list.coin-or.org about your system, including any
285$0: error possibly output before this message. Then install
286$0: a modern shell, or manually run the script under such a
287$0: shell if you do have one."
288  fi
289  exit 1
290fi
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311# as_fn_set_status STATUS
312# -----------------------
313# Set $? to STATUS, without forking.
314as_fn_set_status ()
315{
316  return $1
317} # as_fn_set_status
318
319# as_fn_exit STATUS
320# -----------------
321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322as_fn_exit ()
323{
324  set +e
325  as_fn_set_status $1
326  exit $1
327} # as_fn_exit
328
329# as_fn_mkdir_p
330# -------------
331# Create "$as_dir" as a directory, including parents if necessary.
332as_fn_mkdir_p ()
333{
334
335  case $as_dir in #(
336  -*) as_dir=./$as_dir;;
337  esac
338  test -d "$as_dir" || eval $as_mkdir_p || {
339    as_dirs=
340    while :; do
341      case $as_dir in #(
342      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343      *) as_qdir=$as_dir;;
344      esac
345      as_dirs="'$as_qdir' $as_dirs"
346      as_dir=`$as_dirname -- "$as_dir" ||
347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348         X"$as_dir" : 'X\(//\)[^/]' \| \
349         X"$as_dir" : 'X\(//\)$' \| \
350         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351$as_echo X"$as_dir" |
352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353            s//\1/
354            q
355          }
356          /^X\(\/\/\)[^/].*/{
357            s//\1/
358            q
359          }
360          /^X\(\/\/\)$/{
361            s//\1/
362            q
363          }
364          /^X\(\/\).*/{
365            s//\1/
366            q
367          }
368          s/.*/./; q'`
369      test -d "$as_dir" && break
370    done
371    test -z "$as_dirs" || eval "mkdir $as_dirs"
372  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375} # as_fn_mkdir_p
376
377# as_fn_executable_p FILE
378# -----------------------
379# Test if FILE is an executable regular file.
380as_fn_executable_p ()
381{
382  test -f "$1" && test -x "$1"
383} # as_fn_executable_p
384# as_fn_append VAR VALUE
385# ----------------------
386# Append the text in VALUE to the end of the definition contained in VAR. Take
387# advantage of any shell optimizations that allow amortized linear growth over
388# repeated appends, instead of the typical quadratic growth present in naive
389# implementations.
390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
391  eval 'as_fn_append ()
392  {
393    eval $1+=\$2
394  }'
395else
396  as_fn_append ()
397  {
398    eval $1=\$$1\$2
399  }
400fi # as_fn_append
401
402# as_fn_arith ARG...
403# ------------------
404# Perform arithmetic evaluation on the ARGs, and store the result in the
405# global $as_val. Take advantage of shells that can avoid forks. The arguments
406# must be portable across $(()) and expr.
407if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
408  eval 'as_fn_arith ()
409  {
410    as_val=$(( $* ))
411  }'
412else
413  as_fn_arith ()
414  {
415    as_val=`expr "$@" || test $? -eq 1`
416  }
417fi # as_fn_arith
418
419
420# as_fn_error STATUS ERROR [LINENO LOG_FD]
421# ----------------------------------------
422# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
423# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
424# script with STATUS, using 1 if that was 0.
425as_fn_error ()
426{
427  as_status=$1; test $as_status -eq 0 && as_status=1
428  if test "$4"; then
429    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
430    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
431  fi
432  $as_echo "$as_me: error: $2" >&2
433  as_fn_exit $as_status
434} # as_fn_error
435
436if expr a : '\(a\)' >/dev/null 2>&1 &&
437   test "X`expr 00001 : '.*\(...\)'`" = X001; then
438  as_expr=expr
439else
440  as_expr=false
441fi
442
443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444  as_basename=basename
445else
446  as_basename=false
447fi
448
449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450  as_dirname=dirname
451else
452  as_dirname=false
453fi
454
455as_me=`$as_basename -- "$0" ||
456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
457         X"$0" : 'X\(//\)$' \| \
458         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
459$as_echo X/"$0" |
460    sed '/^.*\/\([^/][^/]*\)\/*$/{
461            s//\1/
462            q
463          }
464          /^X\/\(\/\/\)$/{
465            s//\1/
466            q
467          }
468          /^X\/\(\/\).*/{
469            s//\1/
470            q
471          }
472          s/.*/./; q'`
473
474# Avoid depending upon Character Ranges.
475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
478as_cr_digits='0123456789'
479as_cr_alnum=$as_cr_Letters$as_cr_digits
480
481
482  as_lineno_1=$LINENO as_lineno_1a=$LINENO
483  as_lineno_2=$LINENO as_lineno_2a=$LINENO
484  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
485  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
486  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
487  sed -n '
488    p
489    /[$]LINENO/=
490  ' <$as_myself |
491    sed '
492      s/[$]LINENO.*/&-/
493      t lineno
494      b
495      :lineno
496      N
497      :loop
498      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
499      t loop
500      s/-\n.*//
501    ' >$as_me.lineno &&
502  chmod +x "$as_me.lineno" ||
503    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
504
505  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
506  # already done that, so ensure we don't try to do so again and fall
507  # in an infinite loop.  This has already happened in practice.
508  _as_can_reexec=no; export _as_can_reexec
509  # Don't try to exec as it changes $[0], causing all sort of problems
510  # (the dirname of $[0] is not the place where we might find the
511  # original and so on.  Autoconf is especially sensitive to this).
512  . "./$as_me.lineno"
513  # Exit status is that of the last command.
514  exit
515}
516
517ECHO_C= ECHO_N= ECHO_T=
518case `echo -n x` in #(((((
519-n*)
520  case `echo 'xy\c'` in
521  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
522  xy)  ECHO_C='\c';;
523  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
524       ECHO_T=' ';;
525  esac;;
526*)
527  ECHO_N='-n';;
528esac
529
530rm -f conf$$ conf$$.exe conf$$.file
531if test -d conf$$.dir; then
532  rm -f conf$$.dir/conf$$.file
533else
534  rm -f conf$$.dir
535  mkdir conf$$.dir 2>/dev/null
536fi
537if (echo >conf$$.file) 2>/dev/null; then
538  if ln -s conf$$.file conf$$ 2>/dev/null; then
539    as_ln_s='ln -s'
540    # ... but there are two gotchas:
541    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
542    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
543    # In both cases, we have to default to `cp -pR'.
544    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
545      as_ln_s='cp -pR'
546  elif ln conf$$.file conf$$ 2>/dev/null; then
547    as_ln_s=ln
548  else
549    as_ln_s='cp -pR'
550  fi
551else
552  as_ln_s='cp -pR'
553fi
554rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
555rmdir conf$$.dir 2>/dev/null
556
557if mkdir -p . 2>/dev/null; then
558  as_mkdir_p='mkdir -p "$as_dir"'
559else
560  test -d ./-p && rmdir ./-p
561  as_mkdir_p=false
562fi
563
564as_test_x='test -x'
565as_executable_p=as_fn_executable_p
566
567# Sed expression to map a string onto a valid CPP name.
568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569
570# Sed expression to map a string onto a valid variable name.
571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
572
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575
576test -n "$DJDIR" || exec 7<&0 </dev/null
577exec 6>&1
578
579# Name of the host.
580# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
581# so uname gets run too.
582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
584#
585# Initializations.
586#
587ac_default_prefix=/usr/local
588ac_clean_files=
589ac_config_libobj_dir=.
590LIBOBJS=
591cross_compiling=no
592subdirs=
593MFLAGS=
594MAKEFLAGS=
595
596# Identity of this package.
597PACKAGE_NAME='Clp'
598PACKAGE_TARNAME='coin-or-clp'
599PACKAGE_VERSION='trunk'
600PACKAGE_STRING='Clp trunk'
601PACKAGE_BUGREPORT='clp@list.coin-or.org'
602PACKAGE_URL='https://projects.coin-or.org/Clp'
603
604ac_unique_file="src/ClpSimplex.cpp"
605ac_default_prefix=`pwd`
606# Factoring default headers for most tests.
607ac_includes_default="\
608#include <stdio.h>
609#ifdef HAVE_SYS_TYPES_H
610# include <sys/types.h>
611#endif
612#ifdef HAVE_SYS_STAT_H
613# include <sys/stat.h>
614#endif
615#ifdef STDC_HEADERS
616# include <stdlib.h>
617# include <stddef.h>
618#else
619# ifdef HAVE_STDLIB_H
620#  include <stdlib.h>
621# endif
622#endif
623#ifdef HAVE_STRING_H
624# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625#  include <memory.h>
626# endif
627# include <string.h>
628#endif
629#ifdef HAVE_STRINGS_H
630# include <strings.h>
631#endif
632#ifdef HAVE_INTTYPES_H
633# include <inttypes.h>
634#endif
635#ifdef HAVE_STDINT_H
636# include <stdint.h>
637#endif
638#ifdef HAVE_UNISTD_H
639# include <unistd.h>
640#endif"
641
642ac_subst_vars='am__EXEEXT_FALSE
643am__EXEEXT_TRUE
644LTLIBOBJS
645LIBOBJS
646OSICLPUNITTEST_CFLAGS_NOPC
647OSICLPUNITTEST_LFLAGS_NOPC
648OSICLPLIB_CFLAGS_NOPC
649OSICLPLIB_LFLAGS_NOPC
650CLPLIB_CFLAGS_NOPC
651CLPLIB_LFLAGS_NOPC
652COIN_CXX_IS_CL_FALSE
653COIN_CXX_IS_CL_TRUE
654coin_doxy_tagfiles
655COIN_HAS_LATEX_FALSE
656COIN_HAS_LATEX_TRUE
657COIN_HAS_DOXYGEN_FALSE
658COIN_HAS_DOXYGEN_TRUE
659coin_doxy_logname
660coin_doxy_tagname
661coin_doxy_usedot
662coin_have_latex
663coin_have_doxygen
664EXAMPLE_CLEAN_FILES
665EXAMPLE_UNCOMP_FILES
666EXAMPLE_DIST_FILES
667COIN_VPATH_BUILD_FALSE
668COIN_VPATH_BUILD_TRUE
669COIN_HAS_READLINE_FALSE
670COIN_HAS_READLINE_TRUE
671COIN_HAS_ASL_FALSE
672COIN_HAS_ASL_TRUE
673COIN_HAS_BLAS_FALSE
674COIN_HAS_BLAS_TRUE
675COIN_HAS_WSMP_FALSE
676COIN_HAS_WSMP_TRUE
677COIN_HAS_MUMPS_FALSE
678COIN_HAS_MUMPS_TRUE
679COIN_HAS_GLPK_FALSE
680COIN_HAS_GLPK_TRUE
681COIN_HAS_CHOLMOD_FALSE
682COIN_HAS_CHOLMOD_TRUE
683COIN_HAS_AMD_FALSE
684COIN_HAS_AMD_TRUE
685COIN_HAS_ABC_FALSE
686COIN_HAS_ABC_TRUE
687NETLIB_DATA
688COIN_HAS_NETLIB_FALSE
689COIN_HAS_NETLIB_TRUE
690SAMPLE_DATA
691COIN_HAS_SAMPLE_FALSE
692COIN_HAS_SAMPLE_TRUE
693COIN_HAS_OSITESTS_FALSE
694COIN_HAS_OSITESTS_TRUE
695OSICLPUNITTEST_PCFILES
696OSICLPUNITTEST_CFLAGS
697OSICLPUNITTEST_LFLAGS
698COIN_HAS_OSI_FALSE
699COIN_HAS_OSI_TRUE
700OSICLPLIB_PCFILES
701OSICLPLIB_CFLAGS
702OSICLPLIB_LFLAGS
703COIN_HAS_COINUTILS_FALSE
704COIN_HAS_COINUTILS_TRUE
705CLPLIB_PCFILES
706CLPLIB_CFLAGS
707CLPLIB_LFLAGS
708COIN_PKG_CONFIG_PATH
709COIN_HAS_PKGCONFIG_FALSE
710COIN_HAS_PKGCONFIG_TRUE
711ac_ct_PKG_CONFIG
712PKG_CONFIG
713OSICLPLIB_DATA_PUB
714OSICLPLIB_PCFILES_PUB
715OSICLPLIB_CFLAGS_PUB
716OSICLPLIB_LFLAGS_PUB
717CLPLIB_DATA_PUB
718CLPLIB_PCFILES_PUB
719CLPLIB_CFLAGS_PUB
720CLPLIB_LFLAGS_PUB
721DEPENDENCY_LINKING_FALSE
722DEPENDENCY_LINKING_TRUE
723LT_LDFLAGS
724CXXCPP
725CPP
726LT_SYS_LIBRARY_PATH
727OTOOL64
728OTOOL
729LIPO
730NMEDIT
731DSYMUTIL
732MANIFEST_TOOL
733RANLIB
734ac_ct_AR
735AR
736DLLTOOL
737OBJDUMP
738LN_S
739NM
740ac_ct_DUMPBIN
741DUMPBIN
742LD
743FGREP
744EGREP
745GREP
746SED
747LIBTOOL
748FLIBS
749ac_ct_F77
750FFLAGS
751F77
752am__fastdepCXX_FALSE
753am__fastdepCXX_TRUE
754CXXDEPMODE
755ac_ct_CXX
756CXXFLAGS
757CXX
758am__fastdepCC_FALSE
759am__fastdepCC_TRUE
760CCDEPMODE
761am__nodep
762AMDEPBACKSLASH
763AMDEP_FALSE
764AMDEP_TRUE
765am__quote
766am__include
767DEPDIR
768OBJEXT
769EXEEXT
770ac_ct_CC
771CPPFLAGS
772LDFLAGS
773CFLAGS
774CC
775MAINT
776MAINTAINER_MODE_FALSE
777MAINTAINER_MODE_TRUE
778am__untar
779am__tar
780AMTAR
781am__leading_dot
782SET_MAKE
783AWK
784mkdir_p
785MKDIR_P
786INSTALL_STRIP_PROGRAM
787STRIP
788install_sh
789MAKEINFO
790AUTOHEADER
791AUTOMAKE
792AUTOCONF
793ACLOCAL
794VERSION
795PACKAGE
796CYGPATH_W
797am__isrc
798INSTALL_DATA
799INSTALL_SCRIPT
800INSTALL_PROGRAM
801AM_BACKSLASH
802AM_DEFAULT_VERBOSITY
803AM_DEFAULT_V
804AM_V
805host_os
806host_vendor
807host_cpu
808host
809build_os
810build_vendor
811build_cpu
812build
813ALWAYS_FALSE_FALSE
814ALWAYS_FALSE_TRUE
815CLP_SVN_REV
816have_svnversion
817target_alias
818host_alias
819build_alias
820LIBS
821ECHO_T
822ECHO_N
823ECHO_C
824DEFS
825mandir
826localedir
827libdir
828psdir
829pdfdir
830dvidir
831htmldir
832infodir
833docdir
834oldincludedir
835includedir
836localstatedir
837sharedstatedir
838sysconfdir
839datadir
840datarootdir
841libexecdir
842sbindir
843bindir
844program_transform_name
845prefix
846exec_prefix
847PACKAGE_URL
848PACKAGE_BUGREPORT
849PACKAGE_STRING
850PACKAGE_VERSION
851PACKAGE_TARNAME
852PACKAGE_NAME
853PATH_SEPARATOR
854SHELL'
855ac_subst_files=''
856ac_user_opts='
857enable_option_checking
858enable_msvc
859enable_silent_rules
860enable_maintainer_mode
861enable_dependency_tracking
862enable_shared
863enable_static
864with_pic
865enable_fast_install
866with_aix_soname
867with_gnu_ld
868with_sysroot
869enable_libtool_lock
870enable_dependency_linking
871with_coinutils
872with_coinutils_lflags
873with_coinutils_cflags
874with_osi
875with_osi_lflags
876with_osi_cflags
877with_ositests
878with_ositests_lflags
879with_ositests_cflags
880with_sample
881with_sample_data
882with_netlib
883with_netlib_data
884enable_aboca
885with_amd
886with_amd_lflags
887with_amd_cflags
888with_cholmod
889with_cholmod_lflags
890with_cholmod_cflags
891with_glpk
892with_glpk_lflags
893with_glpk_cflags
894with_mumps
895with_mumps_lflags
896with_mumps_cflags
897with_wsmp
898with_wsmp_lflags
899with_wsmp_cflags
900with_blas
901with_blas_lflags
902with_blas_cflags
903with_asl
904with_asl_lflags
905with_asl_cflags
906enable_readline
907with_dot
908'
909      ac_precious_vars='build_alias
910host_alias
911target_alias
912CC
913CFLAGS
914LDFLAGS
915LIBS
916CPPFLAGS
917CXX
918CXXFLAGS
919CCC
920F77
921FFLAGS
922LT_SYS_LIBRARY_PATH
923CPP
924CXXCPP
925PKG_CONFIG'
926
927
928# Initialize some variables set by options.
929ac_init_help=
930ac_init_version=false
931ac_unrecognized_opts=
932ac_unrecognized_sep=
933# The variables have the same names as the options, with
934# dashes changed to underlines.
935cache_file=/dev/null
936exec_prefix=NONE
937no_create=
938no_recursion=
939prefix=NONE
940program_prefix=NONE
941program_suffix=NONE
942program_transform_name=s,x,x,
943silent=
944site=
945srcdir=
946verbose=
947x_includes=NONE
948x_libraries=NONE
949
950# Installation directory options.
951# These are left unexpanded so users can "make install exec_prefix=/foo"
952# and all the variables that are supposed to be based on exec_prefix
953# by default will actually change.
954# Use braces instead of parens because sh, perl, etc. also accept them.
955# (The list follows the same order as the GNU Coding Standards.)
956bindir='${exec_prefix}/bin'
957sbindir='${exec_prefix}/sbin'
958libexecdir='${exec_prefix}/libexec'
959datarootdir='${prefix}/share'
960datadir='${datarootdir}'
961sysconfdir='${prefix}/etc'
962sharedstatedir='${prefix}/com'
963localstatedir='${prefix}/var'
964includedir='${prefix}/include'
965oldincludedir='/usr/include'
966docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967infodir='${datarootdir}/info'
968htmldir='${docdir}'
969dvidir='${docdir}'
970pdfdir='${docdir}'
971psdir='${docdir}'
972libdir='${exec_prefix}/lib'
973localedir='${datarootdir}/locale'
974mandir='${datarootdir}/man'
975
976ac_prev=
977ac_dashdash=
978for ac_option
979do
980  # If the previous option needs an argument, assign it.
981  if test -n "$ac_prev"; then
982    eval $ac_prev=\$ac_option
983    ac_prev=
984    continue
985  fi
986
987  case $ac_option in
988  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989  *=)   ac_optarg= ;;
990  *)    ac_optarg=yes ;;
991  esac
992
993  # Accept the important Cygnus configure options, so we can diagnose typos.
994
995  case $ac_dashdash$ac_option in
996  --)
997    ac_dashdash=yes ;;
998
999  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000    ac_prev=bindir ;;
1001  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002    bindir=$ac_optarg ;;
1003
1004  -build | --build | --buil | --bui | --bu)
1005    ac_prev=build_alias ;;
1006  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007    build_alias=$ac_optarg ;;
1008
1009  -cache-file | --cache-file | --cache-fil | --cache-fi \
1010  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011    ac_prev=cache_file ;;
1012  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014    cache_file=$ac_optarg ;;
1015
1016  --config-cache | -C)
1017    cache_file=config.cache ;;
1018
1019  -datadir | --datadir | --datadi | --datad)
1020    ac_prev=datadir ;;
1021  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1022    datadir=$ac_optarg ;;
1023
1024  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025  | --dataroo | --dataro | --datar)
1026    ac_prev=datarootdir ;;
1027  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029    datarootdir=$ac_optarg ;;
1030
1031  -disable-* | --disable-*)
1032    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033    # Reject names that are not valid shell variable names.
1034    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035      as_fn_error $? "invalid feature name: $ac_useropt"
1036    ac_useropt_orig=$ac_useropt
1037    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038    case $ac_user_opts in
1039      *"
1040"enable_$ac_useropt"
1041"*) ;;
1042      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043         ac_unrecognized_sep=', ';;
1044    esac
1045    eval enable_$ac_useropt=no ;;
1046
1047  -docdir | --docdir | --docdi | --doc | --do)
1048    ac_prev=docdir ;;
1049  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050    docdir=$ac_optarg ;;
1051
1052  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053    ac_prev=dvidir ;;
1054  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055    dvidir=$ac_optarg ;;
1056
1057  -enable-* | --enable-*)
1058    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059    # Reject names that are not valid shell variable names.
1060    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061      as_fn_error $? "invalid feature name: $ac_useropt"
1062    ac_useropt_orig=$ac_useropt
1063    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064    case $ac_user_opts in
1065      *"
1066"enable_$ac_useropt"
1067"*) ;;
1068      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069         ac_unrecognized_sep=', ';;
1070    esac
1071    eval enable_$ac_useropt=\$ac_optarg ;;
1072
1073  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075  | --exec | --exe | --ex)
1076    ac_prev=exec_prefix ;;
1077  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079  | --exec=* | --exe=* | --ex=*)
1080    exec_prefix=$ac_optarg ;;
1081
1082  -gas | --gas | --ga | --g)
1083    # Obsolete; use --with-gas.
1084    with_gas=yes ;;
1085
1086  -help | --help | --hel | --he | -h)
1087    ac_init_help=long ;;
1088  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089    ac_init_help=recursive ;;
1090  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091    ac_init_help=short ;;
1092
1093  -host | --host | --hos | --ho)
1094    ac_prev=host_alias ;;
1095  -host=* | --host=* | --hos=* | --ho=*)
1096    host_alias=$ac_optarg ;;
1097
1098  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099    ac_prev=htmldir ;;
1100  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101  | --ht=*)
1102    htmldir=$ac_optarg ;;
1103
1104  -includedir | --includedir | --includedi | --included | --include \
1105  | --includ | --inclu | --incl | --inc)
1106    ac_prev=includedir ;;
1107  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108  | --includ=* | --inclu=* | --incl=* | --inc=*)
1109    includedir=$ac_optarg ;;
1110
1111  -infodir | --infodir | --infodi | --infod | --info | --inf)
1112    ac_prev=infodir ;;
1113  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114    infodir=$ac_optarg ;;
1115
1116  -libdir | --libdir | --libdi | --libd)
1117    ac_prev=libdir ;;
1118  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119    libdir=$ac_optarg ;;
1120
1121  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122  | --libexe | --libex | --libe)
1123    ac_prev=libexecdir ;;
1124  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125  | --libexe=* | --libex=* | --libe=*)
1126    libexecdir=$ac_optarg ;;
1127
1128  -localedir | --localedir | --localedi | --localed | --locale)
1129    ac_prev=localedir ;;
1130  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131    localedir=$ac_optarg ;;
1132
1133  -localstatedir | --localstatedir | --localstatedi | --localstated \
1134  | --localstate | --localstat | --localsta | --localst | --locals)
1135    ac_prev=localstatedir ;;
1136  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138    localstatedir=$ac_optarg ;;
1139
1140  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141    ac_prev=mandir ;;
1142  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143    mandir=$ac_optarg ;;
1144
1145  -nfp | --nfp | --nf)
1146    # Obsolete; use --without-fp.
1147    with_fp=no ;;
1148
1149  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150  | --no-cr | --no-c | -n)
1151    no_create=yes ;;
1152
1153  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155    no_recursion=yes ;;
1156
1157  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159  | --oldin | --oldi | --old | --ol | --o)
1160    ac_prev=oldincludedir ;;
1161  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164    oldincludedir=$ac_optarg ;;
1165
1166  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167    ac_prev=prefix ;;
1168  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169    prefix=$ac_optarg ;;
1170
1171  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172  | --program-pre | --program-pr | --program-p)
1173    ac_prev=program_prefix ;;
1174  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176    program_prefix=$ac_optarg ;;
1177
1178  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179  | --program-suf | --program-su | --program-s)
1180    ac_prev=program_suffix ;;
1181  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183    program_suffix=$ac_optarg ;;
1184
1185  -program-transform-name | --program-transform-name \
1186  | --program-transform-nam | --program-transform-na \
1187  | --program-transform-n | --program-transform- \
1188  | --program-transform | --program-transfor \
1189  | --program-transfo | --program-transf \
1190  | --program-trans | --program-tran \
1191  | --progr-tra | --program-tr | --program-t)
1192    ac_prev=program_transform_name ;;
1193  -program-transform-name=* | --program-transform-name=* \
1194  | --program-transform-nam=* | --program-transform-na=* \
1195  | --program-transform-n=* | --program-transform-=* \
1196  | --program-transform=* | --program-transfor=* \
1197  | --program-transfo=* | --program-transf=* \
1198  | --program-trans=* | --program-tran=* \
1199  | --progr-tra=* | --program-tr=* | --program-t=*)
1200    program_transform_name=$ac_optarg ;;
1201
1202  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203    ac_prev=pdfdir ;;
1204  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205    pdfdir=$ac_optarg ;;
1206
1207  -psdir | --psdir | --psdi | --psd | --ps)
1208    ac_prev=psdir ;;
1209  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210    psdir=$ac_optarg ;;
1211
1212  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213  | -silent | --silent | --silen | --sile | --sil)
1214    silent=yes ;;
1215
1216  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217    ac_prev=sbindir ;;
1218  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219  | --sbi=* | --sb=*)
1220    sbindir=$ac_optarg ;;
1221
1222  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224  | --sharedst | --shareds | --shared | --share | --shar \
1225  | --sha | --sh)
1226    ac_prev=sharedstatedir ;;
1227  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230  | --sha=* | --sh=*)
1231    sharedstatedir=$ac_optarg ;;
1232
1233  -site | --site | --sit)
1234    ac_prev=site ;;
1235  -site=* | --site=* | --sit=*)
1236    site=$ac_optarg ;;
1237
1238  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239    ac_prev=srcdir ;;
1240  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241    srcdir=$ac_optarg ;;
1242
1243  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244  | --syscon | --sysco | --sysc | --sys | --sy)
1245    ac_prev=sysconfdir ;;
1246  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248    sysconfdir=$ac_optarg ;;
1249
1250  -target | --target | --targe | --targ | --tar | --ta | --t)
1251    ac_prev=target_alias ;;
1252  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253    target_alias=$ac_optarg ;;
1254
1255  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256    verbose=yes ;;
1257
1258  -version | --version | --versio | --versi | --vers | -V)
1259    ac_init_version=: ;;
1260
1261  -with-* | --with-*)
1262    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263    # Reject names that are not valid shell variable names.
1264    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265      as_fn_error $? "invalid package name: $ac_useropt"
1266    ac_useropt_orig=$ac_useropt
1267    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268    case $ac_user_opts in
1269      *"
1270"with_$ac_useropt"
1271"*) ;;
1272      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273         ac_unrecognized_sep=', ';;
1274    esac
1275    eval with_$ac_useropt=\$ac_optarg ;;
1276
1277  -without-* | --without-*)
1278    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279    # Reject names that are not valid shell variable names.
1280    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281      as_fn_error $? "invalid package name: $ac_useropt"
1282    ac_useropt_orig=$ac_useropt
1283    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284    case $ac_user_opts in
1285      *"
1286"with_$ac_useropt"
1287"*) ;;
1288      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289         ac_unrecognized_sep=', ';;
1290    esac
1291    eval with_$ac_useropt=no ;;
1292
1293  --x)
1294    # Obsolete; use --with-x.
1295    with_x=yes ;;
1296
1297  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298  | --x-incl | --x-inc | --x-in | --x-i)
1299    ac_prev=x_includes ;;
1300  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302    x_includes=$ac_optarg ;;
1303
1304  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306    ac_prev=x_libraries ;;
1307  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309    x_libraries=$ac_optarg ;;
1310
1311  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312Try \`$0 --help' for more information"
1313    ;;
1314
1315  *=*)
1316    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317    # Reject names that are not valid shell variable names.
1318    case $ac_envvar in #(
1319      '' | [0-9]* | *[!_$as_cr_alnum]* )
1320      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1321    esac
1322    eval $ac_envvar=\$ac_optarg
1323    export $ac_envvar ;;
1324
1325  *)
1326    # FIXME: should be removed in autoconf 3.0.
1327    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1331    ;;
1332
1333  esac
1334done
1335
1336if test -n "$ac_prev"; then
1337  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338  as_fn_error $? "missing argument to $ac_option"
1339fi
1340
1341if test -n "$ac_unrecognized_opts"; then
1342  case $enable_option_checking in
1343    no) ;;
1344    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1345    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346  esac
1347fi
1348
1349# Check all directory arguments for consistency.
1350for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351                datadir sysconfdir sharedstatedir localstatedir includedir \
1352                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353                libdir localedir mandir
1354do
1355  eval ac_val=\$$ac_var
1356  # Remove trailing slashes.
1357  case $ac_val in
1358    */ )
1359      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360      eval $ac_var=\$ac_val;;
1361  esac
1362  # Be sure to have absolute directory names.
1363  case $ac_val in
1364    [\\/$]* | ?:[\\/]* )  continue;;
1365    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366  esac
1367  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1368done
1369
1370# There might be people who depend on the old broken behavior: `$host'
1371# used to hold the argument of --host etc.
1372# FIXME: To remove some day.
1373build=$build_alias
1374host=$host_alias
1375target=$target_alias
1376
1377# FIXME: To remove some day.
1378if test "x$host_alias" != x; then
1379  if test "x$build_alias" = x; then
1380    cross_compiling=maybe
1381  elif test "x$build_alias" != "x$host_alias"; then
1382    cross_compiling=yes
1383  fi
1384fi
1385
1386ac_tool_prefix=
1387test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389test "$silent" = yes && exec 6>/dev/null
1390
1391
1392ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393ac_ls_di=`ls -di .` &&
1394ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395  as_fn_error $? "working directory cannot be determined"
1396test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397  as_fn_error $? "pwd does not report name of working directory"
1398
1399
1400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402  ac_srcdir_defaulted=yes
1403  # Try the directory containing this script, then the parent directory.
1404  ac_confdir=`$as_dirname -- "$as_myself" ||
1405$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406         X"$as_myself" : 'X\(//\)[^/]' \| \
1407         X"$as_myself" : 'X\(//\)$' \| \
1408         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409$as_echo X"$as_myself" |
1410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411            s//\1/
1412            q
1413          }
1414          /^X\(\/\/\)[^/].*/{
1415            s//\1/
1416            q
1417          }
1418          /^X\(\/\/\)$/{
1419            s//\1/
1420            q
1421          }
1422          /^X\(\/\).*/{
1423            s//\1/
1424            q
1425          }
1426          s/.*/./; q'`
1427  srcdir=$ac_confdir
1428  if test ! -r "$srcdir/$ac_unique_file"; then
1429    srcdir=..
1430  fi
1431else
1432  ac_srcdir_defaulted=no
1433fi
1434if test ! -r "$srcdir/$ac_unique_file"; then
1435  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1437fi
1438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
1440        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1441        pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444  srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_env_${ac_var}_value=\$${ac_var}
1455  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
1458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463  # Omit some internal or obsolete options to make the list less imposing.
1464  # This message is too long to be a string in the A/UX 3.1 sh.
1465  cat <<_ACEOF
1466\`configure' configures Clp trunk to adapt to many kinds of systems.
1467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE.  See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476  -h, --help              display this help and exit
1477      --help=short        display options specific to this package
1478      --help=recursive    display the short help of all the included packages
1479  -V, --version           display version information and exit
1480  -q, --quiet, --silent   do not print \`checking ...' messages
1481      --cache-file=FILE   cache test results in FILE [disabled]
1482  -C, --config-cache      alias for \`--cache-file=config.cache'
1483  -n, --no-create         do not create output files
1484      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1485
1486Installation directories:
1487  --prefix=PREFIX         install architecture-independent files in PREFIX
1488                          [$ac_default_prefix]
1489  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1490                          [PREFIX]
1491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
1500  --bindir=DIR            user executables [EPREFIX/bin]
1501  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1502  --libexecdir=DIR        program executables [EPREFIX/libexec]
1503  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1504  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1505  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1506  --libdir=DIR            object code libraries [EPREFIX/lib]
1507  --includedir=DIR        C header files [PREFIX/include]
1508  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1509  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1510  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1511  --infodir=DIR           info documentation [DATAROOTDIR/info]
1512  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1513  --mandir=DIR            man documentation [DATAROOTDIR/man]
1514  --docdir=DIR            documentation root [DATAROOTDIR/doc/coin-or-clp]
1515  --htmldir=DIR           html documentation [DOCDIR]
1516  --dvidir=DIR            dvi documentation [DOCDIR]
1517  --pdfdir=DIR            pdf documentation [DOCDIR]
1518  --psdir=DIR             ps documentation [DOCDIR]
1519_ACEOF
1520
1521  cat <<\_ACEOF
1522
1523Program names:
1524  --program-prefix=PREFIX            prepend PREFIX to installed program names
1525  --program-suffix=SUFFIX            append SUFFIX to installed program names
1526  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1527
1528System types:
1529  --build=BUILD     configure for building on BUILD [guessed]
1530  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531_ACEOF
1532fi
1533
1534if test -n "$ac_init_help"; then
1535  case $ac_init_help in
1536     short | recursive ) echo "Configuration of Clp trunk:";;
1537   esac
1538  cat <<\_ACEOF
1539
1540Optional Features:
1541  --disable-option-checking  ignore unrecognized --enable/--with options
1542  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1543  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1544  --enable-msvc           Allow only Intel/Microsoft compilers on
1545                          MinGW/MSys/Cygwin.
1546  --enable-silent-rules   less verbose build output (undo: "make V=1")
1547  --disable-silent-rules  verbose build output (undo: "make V=0")
1548  --enable-maintainer-mode
1549                          enable make rules and dependencies not useful (and
1550                          sometimes confusing) to the casual installer
1551  --enable-dependency-tracking
1552                          do not reject slow dependency extractors
1553  --disable-dependency-tracking
1554                          speeds up one-time build
1555  --enable-shared[=PKGS]  build shared libraries [default=yes]
1556  --enable-static[=PKGS]  build static libraries [default=yes]
1557  --enable-fast-install[=PKGS]
1558                          optimize for fast installation [default=yes]
1559  --disable-libtool-lock  avoid locking (might break parallel builds)
1560  --enable-dependency-linking
1561                          Link all library dependencies into shared libraries
1562                          at creation (default=yes)
1563  --enable-aboca          Enables build of the Aboca solver; 1 - build Abc
1564                          serial but no inherit code (default when built); 2 -
1565                          build Abc serial and inherit code; 3 - build Abc
1566                          cilk parallel but no inherit code; 4 - build Abc
1567                          cilk parallel and inherit code
1568  --disable-readline      do not compile with readline library
1569
1570Optional Packages:
1571  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1572  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1573  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1574                          both]
1575  --with-aix-soname=aix|svr4|both
1576                          shared library versioning (aka "SONAME") variant to
1577                          provide on AIX, [default=aix].
1578  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1579  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1580                          compiler's sysroot if not specified).
1581  --with-coinutils        Use CoinUtils. If an argument is given, 'yes' is
1582                          equivalent to --with-coinutils, 'no' is
1583                          equivalent to --without-coinutils. Any other
1584                          argument is applied as for --with-coinutils-lflags
1585  --with-coinutils-lflags Linker flags for CoinUtils appropriate for your
1586                          environment. (Most often, -l specs for libraries.)
1587  --with-coinutils-cflags Compiler flags for CoinUtils appropriate for your
1588                          environment. (Most often, -I specs for header file
1589                          directories.)
1590  --with-osi              Use Osi. If an argument is given, 'yes' is
1591                          equivalent to --with-osi, 'no' is
1592                          equivalent to --without-osi. Any other argument is
1593                          applied as for --with-osi-lflags
1594  --with-osi-lflags       Linker flags for Osi appropriate for your
1595                          environment. (Most often, -l specs for libraries.)
1596  --with-osi-cflags       Compiler flags for Osi appropriate for your
1597                          environment. (Most often, -I specs for header file
1598                          directories.)
1599  --with-ositests         Use OsiTests. If an argument is given, 'yes' is
1600                          equivalent to --with-ositests, 'no' is
1601                          equivalent to --without-ositests. Any other argument
1602                          is applied as for --with-ositests-lflags
1603  --with-ositests-lflags  Linker flags for OsiTests appropriate for your
1604                          environment. (Most often, -l specs for libraries.)
1605  --with-ositests-cflags  Compiler flags for OsiTests appropriate for your
1606                          environment. (Most often, -I specs for header file
1607                          directories.)
1608  --with-sample           Use Sample. If an argument is given, 'yes' is
1609                          equivalent to --with-sample, 'no' is
1610                          equivalent to --without-sample. Any other argument
1611                          is applied as for --with-sample-data
1612  --with-sample-data      A data directory specification for Sample
1613                          appropriate for your environment.
1614  --with-netlib           Use Netlib. If an argument is given, 'yes' is
1615                          equivalent to --with-netlib, 'no' is
1616                          equivalent to --without-netlib. Any other argument
1617                          is applied as for --with-netlib-data
1618  --with-netlib-data      A data directory specification for Netlib
1619                          appropriate for your environment.
1620  --with-amd              Use AMD. If an argument is given, 'yes' is
1621                          equivalent to --with-amd, 'no' is
1622                          equivalent to --without-amd. Any other argument is
1623                          applied as for --with-amd-lflags
1624  --with-amd-lflags       Linker flags for AMD appropriate for your
1625                          environment. (Most often, -l specs for libraries.)
1626  --with-amd-cflags       Compiler flags for AMD appropriate for your
1627                          environment. (Most often, -I specs for header file
1628                          directories.)
1629  --with-cholmod          Use CHOLMOD. If an argument is given, 'yes' is
1630                          equivalent to --with-cholmod, 'no' is
1631                          equivalent to --without-cholmod. Any other argument
1632                          is applied as for --with-cholmod-lflags
1633  --with-cholmod-lflags   Linker flags for CHOLMOD appropriate for your
1634                          environment. (Most often, -l specs for libraries.)
1635  --with-cholmod-cflags   Compiler flags for CHOLMOD appropriate for your
1636                          environment. (Most often, -I specs for header file
1637                          directories.)
1638  --with-glpk             Use Glpk. If an argument is given, 'yes' is
1639                          equivalent to --with-glpk, 'no' is
1640                          equivalent to --without-glpk. Any other argument is
1641                          applied as for --with-glpk-lflags
1642  --with-glpk-lflags      Linker flags for Glpk appropriate for your
1643                          environment. (Most often, -l specs for libraries.)
1644  --with-glpk-cflags      Compiler flags for Glpk appropriate for your
1645                          environment. (Most often, -I specs for header file
1646                          directories.)
1647  --with-mumps            Use Mumps. If an argument is given, 'yes' is
1648                          equivalent to --with-mumps, 'no' is
1649                          equivalent to --without-mumps. Any other argument is
1650                          applied as for --with-mumps-lflags
1651  --with-mumps-lflags     Linker flags for Mumps appropriate for your
1652                          environment. (Most often, -l specs for libraries.)
1653  --with-mumps-cflags     Compiler flags for Mumps appropriate for your
1654                          environment. (Most often, -I specs for header file
1655                          directories.)
1656  --with-wsmp             Use WSMP. If an argument is given, 'yes' is
1657                          equivalent to --with-wsmp, 'no' is
1658                          equivalent to --without-wsmp. Any other argument is
1659                          applied as for --with-wsmp-lflags
1660  --with-wsmp-lflags      Linker flags for WSMP appropriate for your
1661                          environment. (Most often, -l specs for libraries.)
1662  --with-wsmp-cflags      Compiler flags for WSMP appropriate for your
1663                          environment. (Most often, -I specs for header file
1664                          directories.)
1665  --with-blas             Use blas. If an argument is given, 'yes' is
1666                          equivalent to --with-blas, 'no' is
1667                          equivalent to --without-blas. Any other argument is
1668                          applied as for --with-blas-lflags
1669  --with-blas-lflags      Linker flags for blas appropriate for your
1670                          environment. (Most often, -l specs for libraries.)
1671  --with-blas-cflags      Compiler flags for blas appropriate for your
1672                          environment. (Most often, -I specs for header file
1673                          directories.)
1674  --with-asl              Use ASL. If an argument is given, 'yes' is
1675                          equivalent to --with-asl, 'no' is
1676                          equivalent to --without-asl. Any other argument is
1677                          applied as for --with-asl-lflags
1678  --with-asl-lflags       Linker flags for ASL appropriate for your
1679                          environment. (Most often, -l specs for libraries.)
1680  --with-asl-cflags       Compiler flags for ASL appropriate for your
1681                          environment. (Most often, -I specs for header file
1682                          directories.)
1683  --with-dot              use dot (from graphviz) when creating documentation
1684                          with doxygen if available; --without-dot to disable
1685
1686Some influential environment variables:
1687  CC          C compiler command
1688  CFLAGS      C compiler flags
1689  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1690              nonstandard directory <lib dir>
1691  LIBS        libraries to pass to the linker, e.g. -l<library>
1692  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1693              you have headers in a nonstandard directory <include dir>
1694  CXX         C++ compiler command
1695  CXXFLAGS    C++ compiler flags
1696  F77         Fortran 77 compiler command
1697  FFLAGS      Fortran 77 compiler flags
1698  LT_SYS_LIBRARY_PATH
1699              User-defined run-time library search path.
1700  CPP         C preprocessor
1701  CXXCPP      C++ preprocessor
1702  PKG_CONFIG  path to pkg-config utility
1703
1704Use these variables to override the choices made by `configure' or to help
1705it to find libraries and programs with nonstandard names/locations.
1706
1707Report bugs to <clp@list.coin-or.org>.
1708Clp home page: <https://projects.coin-or.org/Clp>.
1709_ACEOF
1710ac_status=$?
1711fi
1712
1713if test "$ac_init_help" = "recursive"; then
1714  # If there are subdirs, report their specific --help.
1715  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1716    test -d "$ac_dir" ||
1717      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1718      continue
1719    ac_builddir=.
1720
1721case "$ac_dir" in
1722.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723*)
1724  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1725  # A ".." for each directory in $ac_dir_suffix.
1726  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1727  case $ac_top_builddir_sub in
1728  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730  esac ;;
1731esac
1732ac_abs_top_builddir=$ac_pwd
1733ac_abs_builddir=$ac_pwd$ac_dir_suffix
1734# for backward compatibility:
1735ac_top_builddir=$ac_top_build_prefix
1736
1737case $srcdir in
1738  .)  # We are building in place.
1739    ac_srcdir=.
1740    ac_top_srcdir=$ac_top_builddir_sub
1741    ac_abs_top_srcdir=$ac_pwd ;;
1742  [\\/]* | ?:[\\/]* )  # Absolute name.
1743    ac_srcdir=$srcdir$ac_dir_suffix;
1744    ac_top_srcdir=$srcdir
1745    ac_abs_top_srcdir=$srcdir ;;
1746  *) # Relative name.
1747    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1748    ac_top_srcdir=$ac_top_build_prefix$srcdir
1749    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1750esac
1751ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1752
1753    cd "$ac_dir" || { ac_status=$?; continue; }
1754    # Check for guested configure.
1755    if test -f "$ac_srcdir/configure.gnu"; then
1756      echo &&
1757      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1758    elif test -f "$ac_srcdir/configure"; then
1759      echo &&
1760      $SHELL "$ac_srcdir/configure" --help=recursive
1761    else
1762      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1763    fi || ac_status=$?
1764    cd "$ac_pwd" || { ac_status=$?; break; }
1765  done
1766fi
1767
1768test -n "$ac_init_help" && exit $ac_status
1769if $ac_init_version; then
1770  cat <<\_ACEOF
1771Clp configure trunk
1772generated by GNU Autoconf 2.69
1773
1774Copyright (C) 2012 Free Software Foundation, Inc.
1775This configure script is free software; the Free Software Foundation
1776gives unlimited permission to copy, distribute and modify it.
1777
1778
1779Copyright 2006 International Business Machines and others.
1780All Rights Reserved.
1781This file is part of the open source package Clp which is distributed
1782under the Eclipse Public License.
1783_ACEOF
1784  exit
1785fi
1786
1787## ------------------------ ##
1788## Autoconf initialization. ##
1789## ------------------------ ##
1790
1791# ac_fn_c_try_compile LINENO
1792# --------------------------
1793# Try to compile conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_compile ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  rm -f conftest.$ac_objext
1798  if { { ac_try="$ac_compile"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_compile") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && {
1814         test -z "$ac_c_werror_flag" ||
1815         test ! -s conftest.err
1816       } && test -s conftest.$ac_objext; then :
1817  ac_retval=0
1818else
1819  $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822        ac_retval=1
1823fi
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825  as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_compile
1828
1829# ac_fn_cxx_try_compile LINENO
1830# ----------------------------
1831# Try to compile conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_cxx_try_compile ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  rm -f conftest.$ac_objext
1836  if { { ac_try="$ac_compile"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_compile") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && {
1852         test -z "$ac_cxx_werror_flag" ||
1853         test ! -s conftest.err
1854       } && test -s conftest.$ac_objext; then :
1855  ac_retval=0
1856else
1857  $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860        ac_retval=1
1861fi
1862  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863  as_fn_set_status $ac_retval
1864
1865} # ac_fn_cxx_try_compile
1866
1867# ac_fn_f77_try_compile LINENO
1868# ----------------------------
1869# Try to compile conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_f77_try_compile ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  rm -f conftest.$ac_objext
1874  if { { ac_try="$ac_compile"
1875case "(($ac_try" in
1876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877  *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881  (eval "$ac_compile") 2>conftest.err
1882  ac_status=$?
1883  if test -s conftest.err; then
1884    grep -v '^ *+' conftest.err >conftest.er1
1885    cat conftest.er1 >&5
1886    mv -f conftest.er1 conftest.err
1887  fi
1888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889  test $ac_status = 0; } && {
1890         test -z "$ac_f77_werror_flag" ||
1891         test ! -s conftest.err
1892       } && test -s conftest.$ac_objext; then :
1893  ac_retval=0
1894else
1895  $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898        ac_retval=1
1899fi
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901  as_fn_set_status $ac_retval
1902
1903} # ac_fn_f77_try_compile
1904
1905# ac_fn_c_try_link LINENO
1906# -----------------------
1907# Try to link conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_c_try_link ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  rm -f conftest.$ac_objext conftest$ac_exeext
1912  if { { ac_try="$ac_link"
1913case "(($ac_try" in
1914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915  *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918$as_echo "$ac_try_echo"; } >&5
1919  (eval "$ac_link") 2>conftest.err
1920  ac_status=$?
1921  if test -s conftest.err; then
1922    grep -v '^ *+' conftest.err >conftest.er1
1923    cat conftest.er1 >&5
1924    mv -f conftest.er1 conftest.err
1925  fi
1926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927  test $ac_status = 0; } && {
1928         test -z "$ac_c_werror_flag" ||
1929         test ! -s conftest.err
1930       } && test -s conftest$ac_exeext && {
1931         test "$cross_compiling" = yes ||
1932         test -x conftest$ac_exeext
1933       }; then :
1934  ac_retval=0
1935else
1936  $as_echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939        ac_retval=1
1940fi
1941  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943  # interfere with the next link command; also delete a directory that is
1944  # left behind by Apple's compiler.  We do this before executing the actions.
1945  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947  as_fn_set_status $ac_retval
1948
1949} # ac_fn_c_try_link
1950
1951# ac_fn_cxx_try_link LINENO
1952# -------------------------
1953# Try to link conftest.$ac_ext, and return whether this succeeded.
1954ac_fn_cxx_try_link ()
1955{
1956  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957  rm -f conftest.$ac_objext conftest$ac_exeext
1958  if { { ac_try="$ac_link"
1959case "(($ac_try" in
1960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961  *) ac_try_echo=$ac_try;;
1962esac
1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964$as_echo "$ac_try_echo"; } >&5
1965  (eval "$ac_link") 2>conftest.err
1966  ac_status=$?
1967  if test -s conftest.err; then
1968    grep -v '^ *+' conftest.err >conftest.er1
1969    cat conftest.er1 >&5
1970    mv -f conftest.er1 conftest.err
1971  fi
1972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973  test $ac_status = 0; } && {
1974         test -z "$ac_cxx_werror_flag" ||
1975         test ! -s conftest.err
1976       } && test -s conftest$ac_exeext && {
1977         test "$cross_compiling" = yes ||
1978         test -x conftest$ac_exeext
1979       }; then :
1980  ac_retval=0
1981else
1982  $as_echo "$as_me: failed program was:" >&5
1983sed 's/^/| /' conftest.$ac_ext >&5
1984
1985        ac_retval=1
1986fi
1987  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989  # interfere with the next link command; also delete a directory that is
1990  # left behind by Apple's compiler.  We do this before executing the actions.
1991  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993  as_fn_set_status $ac_retval
1994
1995} # ac_fn_cxx_try_link
1996
1997# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1998# -------------------------------------------------------
1999# Tests whether HEADER exists and can be compiled using the include files in
2000# INCLUDES, setting the cache variable VAR accordingly.
2001ac_fn_c_check_header_compile ()
2002{
2003  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005$as_echo_n "checking for $2... " >&6; }
2006if eval \${$3+:} false; then :
2007  $as_echo_n "(cached) " >&6
2008else
2009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h.  */
2011$4
2012#include <$2>
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015  eval "$3=yes"
2016else
2017  eval "$3=no"
2018fi
2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020fi
2021eval ac_res=\$$3
2022               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
2024  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026} # ac_fn_c_check_header_compile
2027
2028# ac_fn_c_try_cpp LINENO
2029# ----------------------
2030# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2031ac_fn_c_try_cpp ()
2032{
2033  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034  if { { ac_try="$ac_cpp conftest.$ac_ext"
2035case "(($ac_try" in
2036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037  *) ac_try_echo=$ac_try;;
2038esac
2039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040$as_echo "$ac_try_echo"; } >&5
2041  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2042  ac_status=$?
2043  if test -s conftest.err; then
2044    grep -v '^ *+' conftest.err >conftest.er1
2045    cat conftest.er1 >&5
2046    mv -f conftest.er1 conftest.err
2047  fi
2048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049  test $ac_status = 0; } > conftest.i && {
2050         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2051         test ! -s conftest.err
2052       }; then :
2053  ac_retval=0
2054else
2055  $as_echo "$as_me: failed program was:" >&5
2056sed 's/^/| /' conftest.$ac_ext >&5
2057
2058    ac_retval=1
2059fi
2060  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061  as_fn_set_status $ac_retval
2062
2063} # ac_fn_c_try_cpp
2064
2065# ac_fn_c_try_run LINENO
2066# ----------------------
2067# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2068# that executables *can* be run.
2069ac_fn_c_try_run ()
2070{
2071  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072  if { { ac_try="$ac_link"
2073case "(($ac_try" in
2074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075  *) ac_try_echo=$ac_try;;
2076esac
2077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078$as_echo "$ac_try_echo"; } >&5
2079  (eval "$ac_link") 2>&5
2080  ac_status=$?
2081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2083  { { case "(($ac_try" in
2084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085  *) ac_try_echo=$ac_try;;
2086esac
2087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088$as_echo "$ac_try_echo"; } >&5
2089  (eval "$ac_try") 2>&5
2090  ac_status=$?
2091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092  test $ac_status = 0; }; }; then :
2093  ac_retval=0
2094else
2095  $as_echo "$as_me: program exited with status $ac_status" >&5
2096       $as_echo "$as_me: failed program was:" >&5
2097sed 's/^/| /' conftest.$ac_ext >&5
2098
2099       ac_retval=$ac_status
2100fi
2101  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103  as_fn_set_status $ac_retval
2104
2105} # ac_fn_c_try_run
2106
2107# ac_fn_c_check_func LINENO FUNC VAR
2108# ----------------------------------
2109# Tests whether FUNC exists, setting the cache variable VAR accordingly
2110ac_fn_c_check_func ()
2111{
2112  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114$as_echo_n "checking for $2... " >&6; }
2115if eval \${$3+:} false; then :
2116  $as_echo_n "(cached) " >&6
2117else
2118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h.  */
2120/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2121   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2122#define $2 innocuous_$2
2123
2124/* System header to define __stub macros and hopefully few prototypes,
2125    which can conflict with char $2 (); below.
2126    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2127    <limits.h> exists even on freestanding compilers.  */
2128
2129#ifdef __STDC__
2130# include <limits.h>
2131#else
2132# include <assert.h>
2133#endif
2134
2135#undef $2
2136
2137/* Override any GCC internal prototype to avoid an error.
2138   Use char because int might match the return type of a GCC
2139   builtin and then its argument prototype would still apply.  */
2140#ifdef __cplusplus
2141extern "C"
2142#endif
2143char $2 ();
2144/* The GNU C library defines this for functions which it implements
2145    to always fail with ENOSYS.  Some functions are actually named
2146    something starting with __ and the normal name is an alias.  */
2147#if defined __stub_$2 || defined __stub___$2
2148choke me
2149#endif
2150
2151#ifdef F77_DUMMY_MAIN
2152
2153#  ifdef __cplusplus
2154     extern "C"
2155#  endif
2156   int F77_DUMMY_MAIN() { return 1; }
2157
2158#endif
2159int
2160main ()
2161{
2162return $2 ();
2163  ;
2164  return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_link "$LINENO"; then :
2168  eval "$3=yes"
2169else
2170  eval "$3=no"
2171fi
2172rm -f core conftest.err conftest.$ac_objext \
2173    conftest$ac_exeext conftest.$ac_ext
2174fi
2175eval ac_res=\$$3
2176               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177$as_echo "$ac_res" >&6; }
2178  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179
2180} # ac_fn_c_check_func
2181
2182# ac_fn_cxx_try_cpp LINENO
2183# ------------------------
2184# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2185ac_fn_cxx_try_cpp ()
2186{
2187  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188  if { { ac_try="$ac_cpp conftest.$ac_ext"
2189case "(($ac_try" in
2190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191  *) ac_try_echo=$ac_try;;
2192esac
2193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194$as_echo "$ac_try_echo"; } >&5
2195  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2196  ac_status=$?
2197  if test -s conftest.err; then
2198    grep -v '^ *+' conftest.err >conftest.er1
2199    cat conftest.er1 >&5
2200    mv -f conftest.er1 conftest.err
2201  fi
2202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203  test $ac_status = 0; } > conftest.i && {
2204         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2205         test ! -s conftest.err
2206       }; then :
2207  ac_retval=0
2208else
2209  $as_echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212    ac_retval=1
2213fi
2214  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215  as_fn_set_status $ac_retval
2216
2217} # ac_fn_cxx_try_cpp
2218
2219# ac_fn_f77_try_link LINENO
2220# -------------------------
2221# Try to link conftest.$ac_ext, and return whether this succeeded.
2222ac_fn_f77_try_link ()
2223{
2224  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225  rm -f conftest.$ac_objext conftest$ac_exeext
2226  if { { ac_try="$ac_link"
2227case "(($ac_try" in
2228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229  *) ac_try_echo=$ac_try;;
2230esac
2231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232$as_echo "$ac_try_echo"; } >&5
2233  (eval "$ac_link") 2>conftest.err
2234  ac_status=$?
2235  if test -s conftest.err; then
2236    grep -v '^ *+' conftest.err >conftest.er1
2237    cat conftest.er1 >&5
2238    mv -f conftest.er1 conftest.err
2239  fi
2240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241  test $ac_status = 0; } && {
2242         test -z "$ac_f77_werror_flag" ||
2243         test ! -s conftest.err
2244       } && test -s conftest$ac_exeext && {
2245         test "$cross_compiling" = yes ||
2246         test -x conftest$ac_exeext
2247       }; then :
2248  ac_retval=0
2249else
2250  $as_echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253        ac_retval=1
2254fi
2255  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2256  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2257  # interfere with the next link command; also delete a directory that is
2258  # left behind by Apple's compiler.  We do this before executing the actions.
2259  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2260  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261  as_fn_set_status $ac_retval
2262
2263} # ac_fn_f77_try_link
2264
2265# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2266# ---------------------------------------------------------
2267# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2268# the include files in INCLUDES and setting the cache variable VAR
2269# accordingly.
2270ac_fn_cxx_check_header_mongrel ()
2271{
2272  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273  if eval \${$3+:} false; then :
2274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275$as_echo_n "checking for $2... " >&6; }
2276if eval \${$3+:} false; then :
2277  $as_echo_n "(cached) " >&6
2278fi
2279eval ac_res=\$$3
2280               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281$as_echo "$ac_res" >&6; }
2282else
2283  # Is the header compilable?
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2285$as_echo_n "checking $2 usability... " >&6; }
2286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h.  */
2288$4
2289#include <$2>
2290_ACEOF
2291if ac_fn_cxx_try_compile "$LINENO"; then :
2292  ac_header_compiler=yes
2293else
2294  ac_header_compiler=no
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2298$as_echo "$ac_header_compiler" >&6; }
2299
2300# Is the header present?
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2302$as_echo_n "checking $2 presence... " >&6; }
2303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h.  */
2305#include <$2>
2306_ACEOF
2307if ac_fn_cxx_try_cpp "$LINENO"; then :
2308  ac_header_preproc=yes
2309else
2310  ac_header_preproc=no
2311fi
2312rm -f conftest.err conftest.i conftest.$ac_ext
2313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2314$as_echo "$ac_header_preproc" >&6; }
2315
2316# So?  What about this header?
2317case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2318  yes:no: )
2319    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2320$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2321    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2322$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2323    ;;
2324  no:yes:* )
2325    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2326$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2327    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2328$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2329    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2330$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2331    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2332$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2333    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2334$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2335( $as_echo "## ----------------------------------- ##
2336## Report this to clp@list.coin-or.org ##
2337## ----------------------------------- ##"
2338     ) | sed "s/^/$as_me: WARNING:     /" >&2
2339    ;;
2340esac
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342$as_echo_n "checking for $2... " >&6; }
2343if eval \${$3+:} false; then :
2344  $as_echo_n "(cached) " >&6
2345else
2346  eval "$3=\$ac_header_compiler"
2347fi
2348eval ac_res=\$$3
2349               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350$as_echo "$ac_res" >&6; }
2351fi
2352  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354} # ac_fn_cxx_check_header_mongrel
2355
2356# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2357# ---------------------------------------------------------
2358# Tests whether HEADER exists and can be compiled using the include files in
2359# INCLUDES, setting the cache variable VAR accordingly.
2360ac_fn_cxx_check_header_compile ()
2361{
2362  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2364$as_echo_n "checking for $2... " >&6; }
2365if eval \${$3+:} false; then :
2366  $as_echo_n "(cached) " >&6
2367else
2368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369/* end confdefs.h.  */
2370$4
2371#include <$2>
2372_ACEOF
2373if ac_fn_cxx_try_compile "$LINENO"; then :
2374  eval "$3=yes"
2375else
2376  eval "$3=no"
2377fi
2378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379fi
2380eval ac_res=\$$3
2381               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382$as_echo "$ac_res" >&6; }
2383  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384
2385} # ac_fn_cxx_check_header_compile
2386cat >config.log <<_ACEOF
2387This file contains any messages produced by compilers while
2388running configure, to aid debugging if configure makes a mistake.
2389
2390It was created by Clp $as_me trunk, which was
2391generated by GNU Autoconf 2.69.  Invocation command line was
2392
2393  $ $0 $@
2394
2395_ACEOF
2396exec 5>>config.log
2397{
2398cat <<_ASUNAME
2399## --------- ##
2400## Platform. ##
2401## --------- ##
2402
2403hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2404uname -m = `(uname -m) 2>/dev/null || echo unknown`
2405uname -r = `(uname -r) 2>/dev/null || echo unknown`
2406uname -s = `(uname -s) 2>/dev/null || echo unknown`
2407uname -v = `(uname -v) 2>/dev/null || echo unknown`
2408
2409/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2410/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2411
2412/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2413/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2414/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2415/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2416/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2417/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2418/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2419
2420_ASUNAME
2421
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425  IFS=$as_save_IFS
2426  test -z "$as_dir" && as_dir=.
2427    $as_echo "PATH: $as_dir"
2428  done
2429IFS=$as_save_IFS
2430
2431} >&5
2432
2433cat >&5 <<_ACEOF
2434
2435
2436## ----------- ##
2437## Core tests. ##
2438## ----------- ##
2439
2440_ACEOF
2441
2442
2443# Keep a trace of the command line.
2444# Strip out --no-create and --no-recursion so they do not pile up.
2445# Strip out --silent because we don't want to record it for future runs.
2446# Also quote any args containing shell meta-characters.
2447# Make two passes to allow for proper duplicate-argument suppression.
2448ac_configure_args=
2449ac_configure_args0=
2450ac_configure_args1=
2451ac_must_keep_next=false
2452for ac_pass in 1 2
2453do
2454  for ac_arg
2455  do
2456    case $ac_arg in
2457    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2458    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2459    | -silent | --silent | --silen | --sile | --sil)
2460      continue ;;
2461    *\'*)
2462      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2463    esac
2464    case $ac_pass in
2465    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466    2)
2467      as_fn_append ac_configure_args1 " '$ac_arg'"
2468      if test $ac_must_keep_next = true; then
2469        ac_must_keep_next=false # Got value, back to normal.
2470      else
2471        case $ac_arg in
2472          *=* | --config-cache | -C | -disable-* | --disable-* \
2473          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2474          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2475          | -with-* | --with-* | -without-* | --without-* | --x)
2476            case "$ac_configure_args0 " in
2477              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2478            esac
2479            ;;
2480          -* ) ac_must_keep_next=true ;;
2481        esac
2482      fi
2483      as_fn_append ac_configure_args " '$ac_arg'"
2484      ;;
2485    esac
2486  done
2487done
2488{ ac_configure_args0=; unset ac_configure_args0;}
2489{ ac_configure_args1=; unset ac_configure_args1;}
2490
2491# When interrupted or exit'd, cleanup temporary files, and complete
2492# config.log.  We remove comments because anyway the quotes in there
2493# would cause problems or look ugly.
2494# WARNING: Use '\'' to represent an apostrophe within the trap.
2495# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2496trap 'exit_status=$?
2497  # Save into config.log some information that might help in debugging.
2498  {
2499    echo
2500
2501    $as_echo "## ---------------- ##
2502## Cache variables. ##
2503## ---------------- ##"
2504    echo
2505    # The following way of writing the cache mishandles newlines in values,
2506(
2507  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508    eval ac_val=\$$ac_var
2509    case $ac_val in #(
2510    *${as_nl}*)
2511      case $ac_var in #(
2512      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2513$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2514      esac
2515      case $ac_var in #(
2516      _ | IFS | as_nl) ;; #(
2517      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518      *) { eval $ac_var=; unset $ac_var;} ;;
2519      esac ;;
2520    esac
2521  done
2522  (set) 2>&1 |
2523    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524    *${as_nl}ac_space=\ *)
2525      sed -n \
2526        "s/'\''/'\''\\\\'\'''\''/g;
2527          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2528      ;; #(
2529    *)
2530      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531      ;;
2532    esac |
2533    sort
2534)
2535    echo
2536
2537    $as_echo "## ----------------- ##
2538## Output variables. ##
2539## ----------------- ##"
2540    echo
2541    for ac_var in $ac_subst_vars
2542    do
2543      eval ac_val=\$$ac_var
2544      case $ac_val in
2545      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546      esac
2547      $as_echo "$ac_var='\''$ac_val'\''"
2548    done | sort
2549    echo
2550
2551    if test -n "$ac_subst_files"; then
2552      $as_echo "## ------------------- ##
2553## File substitutions. ##
2554## ------------------- ##"
2555      echo
2556      for ac_var in $ac_subst_files
2557      do
2558        eval ac_val=\$$ac_var
2559        case $ac_val in
2560        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561        esac
2562        $as_echo "$ac_var='\''$ac_val'\''"
2563      done | sort
2564      echo
2565    fi
2566
2567    if test -s confdefs.h; then
2568      $as_echo "## ----------- ##
2569## confdefs.h. ##
2570## ----------- ##"
2571      echo
2572      cat confdefs.h
2573      echo
2574    fi
2575    test "$ac_signal" != 0 &&
2576      $as_echo "$as_me: caught signal $ac_signal"
2577    $as_echo "$as_me: exit $exit_status"
2578  } >&5
2579  rm -f core *.core core.conftest.* &&
2580    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2581    exit $exit_status
2582' 0
2583for ac_signal in 1 2 13 15; do
2584  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2585done
2586ac_signal=0
2587
2588# confdefs.h avoids OS command line length limits that DEFS can exceed.
2589rm -f -r conftest* confdefs.h
2590
2591$as_echo "/* confdefs.h */" > confdefs.h
2592
2593# Predefined preprocessor variables.
2594
2595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_NAME "$PACKAGE_NAME"
2597_ACEOF
2598
2599cat >>confdefs.h <<_ACEOF
2600#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2601_ACEOF
2602
2603cat >>confdefs.h <<_ACEOF
2604#define PACKAGE_VERSION "$PACKAGE_VERSION"
2605_ACEOF
2606
2607cat >>confdefs.h <<_ACEOF
2608#define PACKAGE_STRING "$PACKAGE_STRING"
2609_ACEOF
2610
2611cat >>confdefs.h <<_ACEOF
2612#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2613_ACEOF
2614
2615cat >>confdefs.h <<_ACEOF
2616#define PACKAGE_URL "$PACKAGE_URL"
2617_ACEOF
2618
2619
2620# Let the site file select an alternate cache file if it wants to.
2621# Prefer an explicitly selected file to automatically selected ones.
2622ac_site_file1=NONE
2623ac_site_file2=NONE
2624if test -n "$CONFIG_SITE"; then
2625  # We do not want a PATH search for config.site.
2626  case $CONFIG_SITE in #((
2627    -*)  ac_site_file1=./$CONFIG_SITE;;
2628    */*) ac_site_file1=$CONFIG_SITE;;
2629    *)   ac_site_file1=./$CONFIG_SITE;;
2630  esac
2631elif test "x$prefix" != xNONE; then
2632  ac_site_file1=$prefix/share/config.site
2633  ac_site_file2=$prefix/etc/config.site
2634else
2635  ac_site_file1=$ac_default_prefix/share/config.site
2636  ac_site_file2=$ac_default_prefix/etc/config.site
2637fi
2638for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2639do
2640  test "x$ac_site_file" = xNONE && continue
2641  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2642    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2643$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2644    sed 's/^/| /' "$ac_site_file" >&5
2645    . "$ac_site_file" \
2646      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648as_fn_error $? "failed to load site script $ac_site_file
2649See \`config.log' for more details" "$LINENO" 5; }
2650  fi
2651done
2652
2653if test -r "$cache_file"; then
2654  # Some versions of bash will fail to source /dev/null (special files
2655  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2656  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2657    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2658$as_echo "$as_me: loading cache $cache_file" >&6;}
2659    case $cache_file in
2660      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2661      *)                      . "./$cache_file";;
2662    esac
2663  fi
2664else
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2666$as_echo "$as_me: creating cache $cache_file" >&6;}
2667  >$cache_file
2668fi
2669
2670# Check that the precious variables saved in the cache have kept the same
2671# value.
2672ac_cache_corrupted=false
2673for ac_var in $ac_precious_vars; do
2674  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2675  eval ac_new_set=\$ac_env_${ac_var}_set
2676  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2677  eval ac_new_val=\$ac_env_${ac_var}_value
2678  case $ac_old_set,$ac_new_set in
2679    set,)
2680      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2681$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2682      ac_cache_corrupted=: ;;
2683    ,set)
2684      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2685$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2686      ac_cache_corrupted=: ;;
2687    ,);;
2688    *)
2689      if test "x$ac_old_val" != "x$ac_new_val"; then
2690        # differences in whitespace do not lead to failure.
2691        ac_old_val_w=`echo x $ac_old_val`
2692        ac_new_val_w=`echo x $ac_new_val`
2693        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2694          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2695$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2696          ac_cache_corrupted=:
2697        else
2698          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2699$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2700          eval $ac_var=\$ac_old_val
2701        fi
2702        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2703$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2704        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2705$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2706      fi;;
2707  esac
2708  # Pass precious variables to config.status.
2709  if test "$ac_new_set" = set; then
2710    case $ac_new_val in
2711    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2712    *) ac_arg=$ac_var=$ac_new_val ;;
2713    esac
2714    case " $ac_configure_args " in
2715      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2716      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2717    esac
2718  fi
2719done
2720if $ac_cache_corrupted; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2724$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2725  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2726fi
2727## -------------------- ##
2728## Main body of script. ##
2729## -------------------- ##
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737
2738
2739
2740
2741# List one file in the package so that the configure script can test
2742# whether the package is actually there.
2743
2744
2745
2746# Do some initialization work (version numbers, change prefix default, ...)
2747
2748
2749  # Check whether --enable-msvc was given.
2750if test "${enable_msvc+set}" = set; then :
2751  enableval=$enable_msvc; enable_msvc=$enableval
2752else
2753  enable_msvc=no
2754fi
2755
2756
2757
2758# We want --enable-msvc setup and checked
2759
2760
2761
2762# This macro should run before the compiler checks (doesn't seem to be
2763# sufficient for CFLAGS)
2764
2765
2766
2767
2768
2769
2770# change default compiler flags (TODO bring back --enable-debug)
2771# - disable debugging (remove -g, set -DNDEBUG)
2772# - enable exceptions for (i)cl
2773
2774  if test "$enable_msvc" = yes ; then
2775    : ${FFLAGS:=""}
2776    : ${FCFLAGS:=""}
2777    : ${CFLAGS:="-DNDEBUG -nologo"}
2778    : ${CXXFLAGS:="-DNDEBUG -EHsc -nologo"}
2779    : ${AR:="lib"}
2780    : ${AR_FLAGS:="-nologo -out:"}
2781  else
2782    : ${FFLAGS:=""}
2783    : ${FCFLAGS:=""}
2784    : ${CFLAGS:="-DNDEBUG"}
2785    : ${CXXFLAGS:="-DNDEBUG"}
2786  fi
2787
2788ac_aux_dir=
2789for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2790  if test -f "$ac_dir/install-sh"; then
2791    ac_aux_dir=$ac_dir
2792    ac_install_sh="$ac_aux_dir/install-sh -c"
2793    break
2794  elif test -f "$ac_dir/install.sh"; then
2795    ac_aux_dir=$ac_dir
2796    ac_install_sh="$ac_aux_dir/install.sh -c"
2797    break
2798  elif test -f "$ac_dir/shtool"; then
2799    ac_aux_dir=$ac_dir
2800    ac_install_sh="$ac_aux_dir/shtool install -c"
2801    break
2802  fi
2803done
2804if test -z "$ac_aux_dir"; then
2805  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2806fi
2807
2808# These three variables are undocumented and unsupported,
2809# and are intended to be withdrawn in a future Autoconf release.
2810# They can cause serious problems if a builder's source tree is in a directory
2811# whose full name contains unusual characters.
2812ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2813ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2814ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2815
2816
2817# Make sure we can run config.sub.
2818$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2819  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2820
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2822$as_echo_n "checking build system type... " >&6; }
2823if ${ac_cv_build+:} false; then :
2824  $as_echo_n "(cached) " >&6
2825else
2826  ac_build_alias=$build_alias
2827test "x$ac_build_alias" = x &&
2828  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2829test "x$ac_build_alias" = x &&
2830  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2831ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2832  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2833
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2836$as_echo "$ac_cv_build" >&6; }
2837case $ac_cv_build in
2838*-*-*) ;;
2839*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2840esac
2841build=$ac_cv_build
2842ac_save_IFS=$IFS; IFS='-'
2843set x $ac_cv_build
2844shift
2845build_cpu=$1
2846build_vendor=$2
2847shift; shift
2848# Remember, the first character of IFS is used to create $*,
2849# except with old shells:
2850build_os=$*
2851IFS=$ac_save_IFS
2852case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2853
2854
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2856$as_echo_n "checking host system type... " >&6; }
2857if ${ac_cv_host+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  if test "x$host_alias" = x; then
2861  ac_cv_host=$ac_cv_build
2862else
2863  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2864    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2865fi
2866
2867fi
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2869$as_echo "$ac_cv_host" >&6; }
2870case $ac_cv_host in
2871*-*-*) ;;
2872*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2873esac
2874host=$ac_cv_host
2875ac_save_IFS=$IFS; IFS='-'
2876set x $ac_cv_host
2877shift
2878host_cpu=$1
2879host_vendor=$2
2880shift; shift
2881# Remember, the first character of IFS is used to create $*,
2882# except with old shells:
2883host_os=$*
2884IFS=$ac_save_IFS
2885case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2886
2887
2888am__api_version='1.15'
2889
2890# Find a good install program.  We prefer a C program (faster),
2891# so one script is as good as another.  But avoid the broken or
2892# incompatible versions:
2893# SysV /etc/install, /usr/sbin/install
2894# SunOS /usr/etc/install
2895# IRIX /sbin/install
2896# AIX /bin/install
2897# AmigaOS /C/install, which installs bootblocks on floppy discs
2898# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2899# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2900# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2901# OS/2's system install, which has a completely different semantic
2902# ./install, which can be erroneously created by make from ./install.sh.
2903# Reject install programs that cannot install multiple files.
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2905$as_echo_n "checking for a BSD-compatible install... " >&6; }
2906if test -z "$INSTALL"; then
2907if ${ac_cv_path_install+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913  IFS=$as_save_IFS
2914  test -z "$as_dir" && as_dir=.
2915    # Account for people who put trailing slashes in PATH elements.
2916case $as_dir/ in #((
2917  ./ | .// | /[cC]/* | \
2918  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2919  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2920  /usr/ucb/* ) ;;
2921  *)
2922    # OSF1 and SCO ODT 3.0 have their own names for install.
2923    # Don't use installbsd from OSF since it installs stuff as root
2924    # by default.
2925    for ac_prog in ginstall scoinst install; do
2926      for ac_exec_ext in '' $ac_executable_extensions; do
2927        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2928          if test $ac_prog = install &&
2929            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2930            # AIX install.  It has an incompatible calling convention.
2931            :
2932          elif test $ac_prog = install &&
2933            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2934            # program-specific install script used by HP pwplus--don't use.
2935            :
2936          else
2937            rm -rf conftest.one conftest.two conftest.dir
2938            echo one > conftest.one
2939            echo two > conftest.two
2940            mkdir conftest.dir
2941            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2942              test -s conftest.one && test -s conftest.two &&
2943              test -s conftest.dir/conftest.one &&
2944              test -s conftest.dir/conftest.two
2945            then
2946              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2947              break 3
2948            fi
2949          fi
2950        fi
2951      done
2952    done
2953    ;;
2954esac
2955
2956  done
2957IFS=$as_save_IFS
2958
2959rm -rf conftest.one conftest.two conftest.dir
2960
2961fi
2962  if test "${ac_cv_path_install+set}" = set; then
2963    INSTALL=$ac_cv_path_install
2964  else
2965    # As a last resort, use the slow shell script.  Don't cache a
2966    # value for INSTALL within a source directory, because that will
2967    # break other packages using the cache if that directory is
2968    # removed, or if the value is a relative name.
2969    INSTALL=$ac_install_sh
2970  fi
2971fi
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2973$as_echo "$INSTALL" >&6; }
2974
2975# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2976# It thinks the first close brace ends the variable substitution.
2977test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2978
2979test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2980
2981test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2982
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2984$as_echo_n "checking whether build environment is sane... " >&6; }
2985# Reject unsafe characters in $srcdir or the absolute working directory
2986# name.  Accept space and tab only in the latter.
2987am_lf='
2988'
2989case `pwd` in
2990  *[\\\"\#\$\&\'\`$am_lf]*)
2991    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2992esac
2993case $srcdir in
2994  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2995    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2996esac
2997
2998# Do 'set' in a subshell so we don't clobber the current shell's
2999# arguments.  Must try -L first in case configure is actually a
3000# symlink; some systems play weird games with the mod time of symlinks
3001# (eg FreeBSD returns the mod time of the symlink's containing
3002# directory).
3003if (
3004   am_has_slept=no
3005   for am_try in 1 2; do
3006     echo "timestamp, slept: $am_has_slept" > conftest.file
3007     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3008     if test "$*" = "X"; then
3009        # -L didn't work.
3010        set X `ls -t "$srcdir/configure" conftest.file`
3011     fi
3012     if test "$*" != "X $srcdir/configure conftest.file" \
3013        && test "$*" != "X conftest.file $srcdir/configure"; then
3014
3015        # If neither matched, then we have a broken ls.  This can happen
3016        # if, for instance, CONFIG_SHELL is bash and it inherits a
3017        # broken ls alias from the environment.  This has actually
3018        # happened.  Such a system could not be considered "sane".
3019        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3020  alias in your environment" "$LINENO" 5
3021     fi
3022     if test "$2" = conftest.file || test $am_try -eq 2; then
3023       break
3024     fi
3025     # Just in case.
3026     sleep 1
3027     am_has_slept=yes
3028   done
3029   test "$2" = conftest.file
3030   )
3031then
3032   # Ok.
3033   :
3034else
3035   as_fn_error $? "newly created file is older than distributed files!
3036Check your system clock" "$LINENO" 5
3037fi
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039$as_echo "yes" >&6; }
3040# If we didn't sleep, we still need to ensure time stamps of config.status and
3041# generated files are strictly newer.
3042am_sleep_pid=
3043if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3044  ( sleep 1 ) &
3045  am_sleep_pid=$!
3046fi
3047
3048rm -f conftest.file
3049
3050test "$program_prefix" != NONE &&
3051  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3052# Use a double $ so make ignores it.
3053test "$program_suffix" != NONE &&
3054  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3055# Double any \ or $.
3056# By default was `s,x,x', remove it if useless.
3057ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3058program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3059
3060# Expand $ac_aux_dir to an absolute path.
3061am_aux_dir=`cd "$ac_aux_dir" && pwd`
3062
3063if test x"${MISSING+set}" != xset; then
3064  case $am_aux_dir in
3065  *\ * | *\     *)
3066    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3067  *)
3068    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3069  esac
3070fi
3071# Use eval to expand $SHELL
3072if eval "$MISSING --is-lightweight"; then
3073  am_missing_run="$MISSING "
3074else
3075  am_missing_run=
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3077$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3078fi
3079
3080if test x"${install_sh+set}" != xset; then
3081  case $am_aux_dir in
3082  *\ * | *\     *)
3083    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3084  *)
3085    install_sh="\${SHELL} $am_aux_dir/install-sh"
3086  esac
3087fi
3088
3089# Installed binaries are usually stripped using 'strip' when the user
3090# run "make install-strip".  However 'strip' might not be the right
3091# tool to use in cross-compilation environments, therefore Automake
3092# will honor the 'STRIP' environment variable to overrule this program.
3093if test "$cross_compiling" != no; then
3094  if test -n "$ac_tool_prefix"; then
3095  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3096set dummy ${ac_tool_prefix}strip; ac_word=$2
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098$as_echo_n "checking for $ac_word... " >&6; }
3099if ${ac_cv_prog_STRIP+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  if test -n "$STRIP"; then
3103  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110    for ac_exec_ext in '' $ac_executable_extensions; do
3111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114    break 2
3115  fi
3116done
3117  done
3118IFS=$as_save_IFS
3119
3120fi
3121fi
3122STRIP=$ac_cv_prog_STRIP
3123if test -n "$STRIP"; then
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3125$as_echo "$STRIP" >&6; }
3126else
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128$as_echo "no" >&6; }
3129fi
3130
3131
3132fi
3133if test -z "$ac_cv_prog_STRIP"; then
3134  ac_ct_STRIP=$STRIP
3135  # Extract the first word of "strip", so it can be a program name with args.
3136set dummy strip; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$ac_ct_STRIP"; then
3143  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152    ac_cv_prog_ac_ct_STRIP="strip"
3153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3163if test -n "$ac_ct_STRIP"; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3165$as_echo "$ac_ct_STRIP" >&6; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171  if test "x$ac_ct_STRIP" = x; then
3172    STRIP=":"
3173  else
3174    case $cross_compiling:$ac_tool_warned in
3175yes:)
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178ac_tool_warned=yes ;;
3179esac
3180    STRIP=$ac_ct_STRIP
3181  fi
3182else
3183  STRIP="$ac_cv_prog_STRIP"
3184fi
3185
3186fi
3187INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3188
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3190$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3191if test -z "$MKDIR_P"; then
3192  if ${ac_cv_path_mkdir+:} false; then :
3193  $as_echo_n "(cached) " >&6
3194else
3195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3197do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200    for ac_prog in mkdir gmkdir; do
3201         for ac_exec_ext in '' $ac_executable_extensions; do
3202           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3203           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3204             'mkdir (GNU coreutils) '* | \
3205             'mkdir (coreutils) '* | \
3206             'mkdir (fileutils) '4.1*)
3207               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3208               break 3;;
3209           esac
3210         done
3211       done
3212  done
3213IFS=$as_save_IFS
3214
3215fi
3216
3217  test -d ./--version && rmdir ./--version
3218  if test "${ac_cv_path_mkdir+set}" = set; then
3219    MKDIR_P="$ac_cv_path_mkdir -p"
3220  else
3221    # As a last resort, use the slow shell script.  Don't cache a
3222    # value for MKDIR_P within a source directory, because that will
3223    # break other packages using the cache if that directory is
3224    # removed, or if the value is a relative name.
3225    MKDIR_P="$ac_install_sh -d"
3226  fi
3227fi
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3229$as_echo "$MKDIR_P" >&6; }
3230
3231for ac_prog in gawk mawk nawk awk
3232do
3233  # Extract the first word of "$ac_prog", so it can be a program name with args.
3234set dummy $ac_prog; ac_word=$2
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
3237if ${ac_cv_prog_AWK+:} false; then :
3238  $as_echo_n "(cached) " >&6
3239else
3240  if test -n "$AWK"; then
3241  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246  IFS=$as_save_IFS
3247  test -z "$as_dir" && as_dir=.
3248    for ac_exec_ext in '' $ac_executable_extensions; do
3249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250    ac_cv_prog_AWK="$ac_prog"
3251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252    break 2
3253  fi
3254done
3255  done
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260AWK=$ac_cv_prog_AWK
3261if test -n "$AWK"; then
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3263$as_echo "$AWK" >&6; }
3264else
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267fi
3268
3269
3270  test -n "$AWK" && break
3271done
3272
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3274$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3275set x ${MAKE-make}
3276ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3277if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  cat >conftest.make <<\_ACEOF
3281SHELL = /bin/sh
3282all:
3283        @echo '@@@%%%=$(MAKE)=@@@%%%'
3284_ACEOF
3285# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3286case `${MAKE-make} -f conftest.make 2>/dev/null` in
3287  *@@@%%%=?*=@@@%%%*)
3288    eval ac_cv_prog_make_${ac_make}_set=yes;;
3289  *)
3290    eval ac_cv_prog_make_${ac_make}_set=no;;
3291esac
3292rm -f conftest.make
3293fi
3294if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296$as_echo "yes" >&6; }
3297  SET_MAKE=
3298else
3299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301  SET_MAKE="MAKE=${MAKE-make}"
3302fi
3303
3304rm -rf .tst 2>/dev/null
3305mkdir .tst 2>/dev/null
3306if test -d .tst; then
3307  am__leading_dot=.
3308else
3309  am__leading_dot=_
3310fi
3311rmdir .tst 2>/dev/null
3312
3313
3314# Enforce the required autoconf version
3315
3316
3317
3318# Set the project's version numbers
3319
3320
3321
3322cat >>confdefs.h <<_ACEOF
3323#define CLP_VERSION "$PACKAGE_VERSION"
3324_ACEOF
3325
3326
3327# Parse package version, assuming major.minor.release. PACKAGE_VERSION is set
3328# by AC_INIT. Force components to 9999 if they're empty; this deals with
3329# things like `trunk' and other nonstandard forms.
3330
3331  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
3332  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
3333  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
3334  test -z "$coin_majorver"   && coin_majorver=9999
3335  test -z "$coin_minorver"   && coin_minorver=9999
3336  test -z "$coin_releasever" && coin_releasever=9999
3337
3338cat >>confdefs.h <<_ACEOF
3339#define CLP_VERSION_MAJOR $coin_majorver
3340_ACEOF
3341
3342
3343cat >>confdefs.h <<_ACEOF
3344#define CLP_VERSION_MINOR $coin_minorver
3345_ACEOF
3346
3347
3348cat >>confdefs.h <<_ACEOF
3349#define CLP_VERSION_RELEASE $coin_releasever
3350_ACEOF
3351
3352
3353# Create a variable set to the upper case version of the project name
3354
3355  COIN_PRJCT=CLP
3356
3357# Set the project's SVN revision number. The complicated sed expression
3358# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
3359# as a single number.
3360
3361  # Extract the first word of "svnversion", so it can be a program name with args.
3362set dummy svnversion; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if ${ac_cv_prog_have_svnversion+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  if test -n "$have_svnversion"; then
3369  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378    ac_cv_prog_have_svnversion="yes"
3379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380    break 2
3381  fi
3382done
3383  done
3384IFS=$as_save_IFS
3385
3386  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
3387fi
3388fi
3389have_svnversion=$ac_cv_prog_have_svnversion
3390if test -n "$have_svnversion"; then
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_svnversion" >&5
3392$as_echo "$have_svnversion" >&6; }
3393else
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396fi
3397
3398
3399  if test "x$have_svnversion" = xyes; then
3400
3401    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
3402    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
3403      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
3404
3405cat >>confdefs.h <<_ACEOF
3406#define CLP_SVN_REV $CLP_SVN_REV
3407_ACEOF
3408
3409    fi
3410  fi
3411
3412
3413
3414# Capture the libtool library version, if given.
3415
3416
3417
3418
3419# A useful makefile conditional that is always false
3420
3421   if false; then
3422  ALWAYS_FALSE_TRUE=
3423  ALWAYS_FALSE_FALSE='#'
3424else
3425  ALWAYS_FALSE_TRUE='#'
3426  ALWAYS_FALSE_FALSE=
3427fi
3428
3429
3430# Where should everything be installed by default?  The COIN default is to
3431# install directly into subdirectories of the directory where configure is
3432# run. The default would be to install under /usr/local.
3433
3434
3435
3436# Change the default compiler flags. This needs to run before
3437# AC_CANONICAL_BUILD.
3438
3439
3440
3441# Get the build and host types
3442
3443
3444
3445
3446# libtool has some magic for host_os=mingw, but doesn't know about msys
3447
3448  if test $host_os = msys ; then
3449    host_os=mingw
3450    host=`echo $host | sed -e 's/msys/mingw/'`
3451  fi
3452
3453# Make silent build rules the default (https://www.gnu.org/software/automake/
3454# manual/html_node/Automake-Silent-Rules.html). Run before AM_INIT_AUTOMAKE,
3455# which will AC_REQUIRE it anyway.
3456
3457  # Check whether --enable-silent-rules was given.
3458if test "${enable_silent_rules+set}" = set; then :
3459  enableval=$enable_silent_rules;
3460fi
3461
3462case $enable_silent_rules in # (((
3463  yes) AM_DEFAULT_VERBOSITY=0;;
3464   no) AM_DEFAULT_VERBOSITY=1;;
3465    *) AM_DEFAULT_VERBOSITY=0;;
3466esac
3467am_make=${MAKE-make}
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3469$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3470if ${am_cv_make_support_nested_variables+:} false; then :
3471  $as_echo_n "(cached) " >&6
3472else
3473  if $as_echo 'TRUE=$(BAR$(V))
3474BAR0=false
3475BAR1=true
3476V=1
3477am__doit:
3478        @$(TRUE)
3479.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3480  am_cv_make_support_nested_variables=yes
3481else
3482  am_cv_make_support_nested_variables=no
3483fi
3484fi
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3486$as_echo "$am_cv_make_support_nested_variables" >&6; }
3487if test $am_cv_make_support_nested_variables = yes; then
3488    AM_V='$(V)'
3489  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3490else
3491  AM_V=$AM_DEFAULT_VERBOSITY
3492  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3493fi
3494AM_BACKSLASH='\'
3495
3496
3497# Initialize automake
3498# - don't AC_DEFINE PACKAGE or VERSION (but there're still defined as shell
3499#   variables in configure, and as make variables).
3500# - disable dist target
3501# - enable all automake warnings
3502
3503  if test "`cd $srcdir && pwd`" != "`pwd`"; then
3504  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3505  # is not polluted with repeated "-I."
3506  am__isrc=' -I$(srcdir)'
3507  # test to see if srcdir already configured
3508  if test -f $srcdir/config.status; then
3509    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3510  fi
3511fi
3512
3513# test whether we have cygpath
3514if test -z "$CYGPATH_W"; then
3515  if (cygpath --version) >/dev/null 2>/dev/null; then
3516    CYGPATH_W='cygpath -w'
3517  else
3518    CYGPATH_W=echo
3519  fi
3520fi
3521
3522
3523# Define the identity of the package.
3524 PACKAGE='coin-or-clp'
3525 VERSION='trunk'
3526
3527
3528# Some tools Automake needs.
3529
3530ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3531
3532
3533AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3534
3535
3536AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3537
3538
3539AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3540
3541
3542MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3543
3544# For better backward compatibility.  To be removed once Automake 1.9.x
3545# dies out for good.  For more background, see:
3546# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3547# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3548mkdir_p='$(MKDIR_P)'
3549
3550# We need awk for the "check" target (and possibly the TAP driver).  The
3551# system "awk" is bad on some platforms.
3552# Always define AMTAR for backward compatibility.  Yes, it's still used
3553# in the wild :-(  We should find a proper way to deprecate it ...
3554AMTAR='$${TAR-tar}'
3555
3556
3557# We'll loop over all known methods to create a tar archive until one works.
3558_am_tools='gnutar  pax cpio none'
3559
3560am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3561
3562
3563
3564
3565
3566
3567# POSIX will say in a future version that running "rm -f" with no argument
3568# is OK; and we want to be able to make that assumption in our Makefile
3569# recipes.  So use an aggressive probe to check that the usage we want is
3570# actually supported "in the wild" to an acceptable degree.
3571# See automake bug#10828.
3572# To make any issue more visible, cause the running configure to be aborted
3573# by default if the 'rm' program in use doesn't match our expectations; the
3574# user can still override this though.
3575if rm -f && rm -fr && rm -rf; then : OK; else
3576  cat >&2 <<'END'
3577Oops!
3578
3579Your 'rm' program seems unable to run without file operands specified
3580on the command line, even when the '-f' option is present.  This is contrary
3581to the behaviour of most rm programs out there, and not conforming with
3582the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3583
3584Please tell bug-automake@gnu.org about your system, including the value
3585of your $PATH and any error possibly output before this message.  This
3586can help us improve future automake versions.
3587
3588END
3589  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3590    echo 'Configuration will proceed anyway, since you have set the' >&2
3591    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3592    echo >&2
3593  else
3594    cat >&2 <<'END'
3595Aborting the configuration process, to ensure you take notice of the issue.
3596
3597You can download and install GNU coreutils to get an 'rm' implementation
3598that behaves properly: <http://www.gnu.org/software/coreutils/>.
3599
3600If you want to complete the configuration process using your problematic
3601'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3602to "yes", and re-run configure.
3603
3604END
3605    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3606  fi
3607fi
3608
3609
3610# Disable automatic rebuild of configure/Makefile. Use run_autotools.
3611
3612
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3614$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3615    # Check whether --enable-maintainer-mode was given.
3616if test "${enable_maintainer_mode+set}" = set; then :
3617  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3618else
3619  USE_MAINTAINER_MODE=no
3620fi
3621
3622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3623$as_echo "$USE_MAINTAINER_MODE" >&6; }
3624   if test $USE_MAINTAINER_MODE = yes; then
3625  MAINTAINER_MODE_TRUE=
3626  MAINTAINER_MODE_FALSE='#'
3627else
3628  MAINTAINER_MODE_TRUE='#'
3629  MAINTAINER_MODE_FALSE=
3630fi
3631
3632  MAINT=$MAINTAINER_MODE_TRUE
3633
3634
3635
3636
3637#############################################################################
3638#                         Standard build tool stuff                         #
3639#############################################################################
3640
3641# Get the name of the C++ compiler and appropriate compiler options.
3642
3643DEPDIR="${am__leading_dot}deps"
3644
3645ac_config_commands="$ac_config_commands depfiles"
3646
3647
3648am_make=${MAKE-make}
3649cat > confinc << 'END'
3650am__doit:
3651        @echo this is the am__doit target
3652.PHONY: am__doit
3653END
3654# If we don't find an include directive, just comment out the code.
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3656$as_echo_n "checking for style of include used by $am_make... " >&6; }
3657am__include="#"
3658am__quote=
3659_am_result=none
3660# First try GNU make style include.
3661echo "include confinc" > confmf
3662# Ignore all kinds of additional output from 'make'.
3663case `$am_make -s -f confmf 2> /dev/null` in #(
3664*the\ am__doit\ target*)
3665  am__include=include
3666  am__quote=
3667  _am_result=GNU
3668  ;;
3669esac
3670# Now try BSD make style include.
3671if test "$am__include" = "#"; then
3672   echo '.include "confinc"' > confmf
3673   case `$am_make -s -f confmf 2> /dev/null` in #(
3674   *the\ am__doit\ target*)
3675     am__include=.include
3676     am__quote="\""
3677     _am_result=BSD
3678     ;;
3679   esac
3680fi
3681
3682
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3684$as_echo "$_am_result" >&6; }
3685rm -f confinc confmf
3686
3687# Check whether --enable-dependency-tracking was given.
3688if test "${enable_dependency_tracking+set}" = set; then :
3689  enableval=$enable_dependency_tracking;
3690fi
3691
3692if test "x$enable_dependency_tracking" != xno; then
3693  am_depcomp="$ac_aux_dir/depcomp"
3694  AMDEPBACKSLASH='\'
3695  am__nodep='_no'
3696fi
3697 if test "x$enable_dependency_tracking" != xno; then
3698  AMDEP_TRUE=
3699  AMDEP_FALSE='#'
3700else
3701  AMDEP_TRUE='#'
3702  AMDEP_FALSE=
3703fi
3704
3705
3706
3707
3708
3709# Setting up libtool with LT_INIT will AC_REQUIRE AC_PROG_CC, but we want
3710# to invoke it from this macro first so that we can supply a parameter.
3711
3712
3713
3714# If enable-msvc, then test only for MS and Intel (on Windows) C compiler
3715# otherwise, test a long list of C compilers that comes into our mind
3716
3717  if test $enable_msvc = yes ; then
3718    comps="icl cl"
3719  else
3720    # TODO old buildtools was doing some $build specific logic here, do we
3721    # still need this?
3722    comps="gcc clang cc icc icl cl cc xlc xlc_r pgcc"
3723  fi
3724  ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729if test -n "$ac_tool_prefix"; then
3730  for ac_prog in $comps
3731  do
3732    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735$as_echo_n "checking for $ac_word... " >&6; }
3736if ${ac_cv_prog_CC+:} false; then :
3737  $as_echo_n "(cached) " >&6
3738else
3739  if test -n "$CC"; then
3740  ac_cv_prog_CC="$CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745  IFS=$as_save_IFS
3746  test -z "$as_dir" && as_dir=.
3747    for ac_exec_ext in '' $ac_executable_extensions; do
3748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751    break 2
3752  fi
3753done
3754  done
3755IFS=$as_save_IFS
3756
3757fi
3758fi
3759CC=$ac_cv_prog_CC
3760if test -n "$CC"; then
3761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762$as_echo "$CC" >&6; }
3763else
3764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
3766fi
3767
3768
3769    test -n "$CC" && break
3770  done
3771fi
3772if test -z "$CC"; then
3773  ac_ct_CC=$CC
3774  for ac_prog in $comps
3775do
3776  # Extract the first word of "$ac_prog", so it can be a program name with args.
3777set dummy $ac_prog; ac_word=$2
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779$as_echo_n "checking for $ac_word... " >&6; }
3780if ${ac_cv_prog_ac_ct_CC+:} false; then :
3781  $as_echo_n "(cached) " >&6
3782else
3783  if test -n "$ac_ct_CC"; then
3784  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789  IFS=$as_save_IFS
3790  test -z "$as_dir" && as_dir=.
3791    for ac_exec_ext in '' $ac_executable_extensions; do
3792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793    ac_cv_prog_ac_ct_CC="$ac_prog"
3794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795    break 2
3796  fi
3797done
3798  done
3799IFS=$as_save_IFS
3800
3801fi
3802fi
3803ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804if test -n "$ac_ct_CC"; then
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806$as_echo "$ac_ct_CC" >&6; }
3807else
3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
3810fi
3811
3812
3813  test -n "$ac_ct_CC" && break
3814done
3815
3816  if test "x$ac_ct_CC" = x; then
3817    CC=""
3818  else
3819    case $cross_compiling:$ac_tool_warned in
3820yes:)
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823ac_tool_warned=yes ;;
3824esac
3825    CC=$ac_ct_CC
3826  fi
3827fi
3828
3829
3830test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832as_fn_error $? "no acceptable C compiler found in \$PATH
3833See \`config.log' for more details" "$LINENO" 5; }
3834
3835# Provide some information about the compiler.
3836$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837set X $ac_compile
3838ac_compiler=$2
3839for ac_option in --version -v -V -qversion; do
3840  { { ac_try="$ac_compiler $ac_option >&5"
3841case "(($ac_try" in
3842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843  *) ac_try_echo=$ac_try;;
3844esac
3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846$as_echo "$ac_try_echo"; } >&5
3847  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848  ac_status=$?
3849  if test -s conftest.err; then
3850    sed '10a\
3851... rest of stderr output deleted ...
3852         10q' conftest.err >conftest.er1
3853    cat conftest.er1 >&5
3854  fi
3855  rm -f conftest.er1 conftest.err
3856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857  test $ac_status = 0; }
3858done
3859
3860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h.  */
3862
3863int
3864main ()
3865{
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871ac_clean_files_save=$ac_clean_files
3872ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3873# Try to create an executable without -o first, disregard a.out.
3874# It will help us diagnose broken compilers, and finding out an intuition
3875# of exeext.
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3877$as_echo_n "checking whether the C compiler works... " >&6; }
3878ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3879
3880# The possible output files:
3881ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3882
3883ac_rmfiles=
3884for ac_file in $ac_files
3885do
3886  case $ac_file in
3887    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3888    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3889  esac
3890done
3891rm -f $ac_rmfiles
3892
3893if { { ac_try="$ac_link_default"
3894case "(($ac_try" in
3895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896  *) ac_try_echo=$ac_try;;
3897esac
3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899$as_echo "$ac_try_echo"; } >&5
3900  (eval "$ac_link_default") 2>&5
3901  ac_status=$?
3902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903  test $ac_status = 0; }; then :
3904  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3905# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3906# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3907# so that the user can short-circuit this test for compilers unknown to
3908# Autoconf.
3909for ac_file in $ac_files ''
3910do
3911  test -f "$ac_file" || continue
3912  case $ac_file in
3913    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3914        ;;
3915    [ab].out )
3916        # We found the default executable, but exeext='' is most
3917        # certainly right.
3918        break;;
3919    *.* )
3920        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3921        then :; else
3922           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923        fi
3924        # We set ac_cv_exeext here because the later test for it is not
3925        # safe: cross compilers may not add the suffix if given an `-o'
3926        # argument, so we may need to know it at that point already.
3927        # Even if this section looks crufty: it has the advantage of
3928        # actually working.
3929        break;;
3930    * )
3931        break;;
3932  esac
3933done
3934test "$ac_cv_exeext" = no && ac_cv_exeext=
3935
3936else
3937  ac_file=''
3938fi
3939if test -z "$ac_file"; then :
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942$as_echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947as_fn_error 77 "C compiler cannot create executables
3948See \`config.log' for more details" "$LINENO" 5; }
3949else
3950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951$as_echo "yes" >&6; }
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3954$as_echo_n "checking for C compiler default output file name... " >&6; }
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3956$as_echo "$ac_file" >&6; }
3957ac_exeext=$ac_cv_exeext
3958
3959rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3960ac_clean_files=$ac_clean_files_save
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3962$as_echo_n "checking for suffix of executables... " >&6; }
3963if { { ac_try="$ac_link"
3964case "(($ac_try" in
3965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966  *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970  (eval "$ac_link") 2>&5
3971  ac_status=$?
3972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973  test $ac_status = 0; }; then :
3974  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3975# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3976# work properly (i.e., refer to `conftest.exe'), while it won't with
3977# `rm'.
3978for ac_file in conftest.exe conftest conftest.*; do
3979  test -f "$ac_file" || continue
3980  case $ac_file in
3981    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3982    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983          break;;
3984    * ) break;;
3985  esac
3986done
3987else
3988  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3991See \`config.log' for more details" "$LINENO" 5; }
3992fi
3993rm -f conftest conftest$ac_cv_exeext
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995$as_echo "$ac_cv_exeext" >&6; }
3996
3997rm -f conftest.$ac_ext
3998EXEEXT=$ac_cv_exeext
3999ac_exeext=$EXEEXT
4000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h.  */
4002#include <stdio.h>
4003int
4004main ()
4005{
4006FILE *f = fopen ("conftest.out", "w");
4007 return ferror (f) || fclose (f) != 0;
4008
4009  ;
4010  return 0;
4011}
4012_ACEOF
4013ac_clean_files="$ac_clean_files conftest.out"
4014# Check that the compiler produces executables we can run.  If not, either
4015# the compiler is broken, or we cross compile.
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4017$as_echo_n "checking whether we are cross compiling... " >&6; }
4018if test "$cross_compiling" != yes; then
4019  { { ac_try="$ac_link"
4020case "(($ac_try" in
4021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022  *) ac_try_echo=$ac_try;;
4023esac
4024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025$as_echo "$ac_try_echo"; } >&5
4026  (eval "$ac_link") 2>&5
4027  ac_status=$?
4028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029  test $ac_status = 0; }
4030  if { ac_try='./conftest$ac_cv_exeext'
4031  { { case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036$as_echo "$ac_try_echo"; } >&5
4037  (eval "$ac_try") 2>&5
4038  ac_status=$?
4039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040  test $ac_status = 0; }; }; then
4041    cross_compiling=no
4042  else
4043    if test "$cross_compiling" = maybe; then
4044        cross_compiling=yes
4045    else
4046        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048as_fn_error $? "cannot run C compiled programs.
4049If you meant to cross compile, use \`--host'.
4050See \`config.log' for more details" "$LINENO" 5; }
4051    fi
4052  fi
4053fi
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4055$as_echo "$cross_compiling" >&6; }
4056
4057rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4058ac_clean_files=$ac_clean_files_save
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4060$as_echo_n "checking for suffix of object files... " >&6; }
4061if ${ac_cv_objext+:} false; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066
4067int
4068main ()
4069{
4070
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075rm -f conftest.o conftest.obj
4076if { { ac_try="$ac_compile"
4077case "(($ac_try" in
4078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079  *) ac_try_echo=$ac_try;;
4080esac
4081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082$as_echo "$ac_try_echo"; } >&5
4083  (eval "$ac_compile") 2>&5
4084  ac_status=$?
4085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086  test $ac_status = 0; }; then :
4087  for ac_file in conftest.o conftest.obj conftest.*; do
4088  test -f "$ac_file" || continue;
4089  case $ac_file in
4090    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4091    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4092       break;;
4093  esac
4094done
4095else
4096  $as_echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101as_fn_error $? "cannot compute suffix of object files: cannot compile
4102See \`config.log' for more details" "$LINENO" 5; }
4103fi
4104rm -f conftest.$ac_cv_objext conftest.$ac_ext
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4107$as_echo "$ac_cv_objext" >&6; }
4108OBJEXT=$ac_cv_objext
4109ac_objext=$OBJEXT
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4111$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4112if ${ac_cv_c_compiler_gnu+:} false; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117
4118int
4119main ()
4120{
4121#ifndef __GNUC__
4122       choke me
4123#endif
4124
4125  ;
4126  return 0;
4127}
4128_ACEOF
4129if ac_fn_c_try_compile "$LINENO"; then :
4130  ac_compiler_gnu=yes
4131else
4132  ac_compiler_gnu=no
4133fi
4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135ac_cv_c_compiler_gnu=$ac_compiler_gnu
4136
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4139$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4140if test $ac_compiler_gnu = yes; then
4141  GCC=yes
4142else
4143  GCC=
4144fi
4145ac_test_CFLAGS=${CFLAGS+set}
4146ac_save_CFLAGS=$CFLAGS
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4148$as_echo_n "checking whether $CC accepts -g... " >&6; }
4149if ${ac_cv_prog_cc_g+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152  ac_save_c_werror_flag=$ac_c_werror_flag
4153   ac_c_werror_flag=yes
4154   ac_cv_prog_cc_g=no
4155   CFLAGS="-g"
4156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158
4159int
4160main ()
4161{
4162
4163  ;
4164  return 0;
4165}
4166_ACEOF
4167if ac_fn_c_try_compile "$LINENO"; then :
4168  ac_cv_prog_cc_g=yes
4169else
4170  CFLAGS=""
4171      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h.  */
4173
4174int
4175main ()
4176{
4177
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182if ac_fn_c_try_compile "$LINENO"; then :
4183
4184else
4185  ac_c_werror_flag=$ac_save_c_werror_flag
4186         CFLAGS="-g"
4187         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189
4190int
4191main ()
4192{
4193
4194  ;
4195  return 0;
4196}
4197_ACEOF
4198if ac_fn_c_try_compile "$LINENO"; then :
4199  ac_cv_prog_cc_g=yes
4200fi
4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202fi
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206   ac_c_werror_flag=$ac_save_c_werror_flag
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209$as_echo "$ac_cv_prog_cc_g" >&6; }
4210if test "$ac_test_CFLAGS" = set; then
4211  CFLAGS=$ac_save_CFLAGS
4212elif test $ac_cv_prog_cc_g = yes; then
4213  if test "$GCC" = yes; then
4214    CFLAGS="-g -O2"
4215  else
4216    CFLAGS="-g"
4217  fi
4218else
4219  if test "$GCC" = yes; then
4220    CFLAGS="-O2"
4221  else
4222    CFLAGS=
4223  fi
4224fi
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4226$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4227if ${ac_cv_prog_cc_c89+:} false; then :
4228  $as_echo_n "(cached) " >&6
4229else
4230  ac_cv_prog_cc_c89=no
4231ac_save_CC=$CC
4232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234#include <stdarg.h>
4235#include <stdio.h>
4236struct stat;
4237/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4238struct buf { int x; };
4239FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240static char *e (p, i)
4241     char **p;
4242     int i;
4243{
4244  return p[i];
4245}
4246static char *f (char * (*g) (char **, int), char **p, ...)
4247{
4248  char *s;
4249  va_list v;
4250  va_start (v,p);
4251  s = g (p, va_arg (v,int));
4252  va_end (v);
4253  return s;
4254}
4255
4256/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4257   function prototypes and stuff, but not '\xHH' hex character constants.
4258   These don't provoke an error unfortunately, instead are silently treated
4259   as 'x'.  The following induces an error, until -std is added to get
4260   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4261   array size at least.  It's necessary to write '\x00'==0 to get something
4262   that's true only with -std.  */
4263int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4264
4265/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4266   inside strings and character constants.  */
4267#define FOO(x) 'x'
4268int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4269
4270int test (int i, double x);
4271struct s1 {int (*f) (int a);};
4272struct s2 {int (*f) (double a);};
4273int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4274int argc;
4275char **argv;
4276int
4277main ()
4278{
4279return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4280  ;
4281  return 0;
4282}
4283_ACEOF
4284for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4285        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4286do
4287  CC="$ac_save_CC $ac_arg"
4288  if ac_fn_c_try_compile "$LINENO"; then :
4289  ac_cv_prog_cc_c89=$ac_arg
4290fi
4291rm -f core conftest.err conftest.$ac_objext
4292  test "x$ac_cv_prog_cc_c89" != "xno" && break
4293done
4294rm -f conftest.$ac_ext
4295CC=$ac_save_CC
4296
4297fi
4298# AC_CACHE_VAL
4299case "x$ac_cv_prog_cc_c89" in
4300  x)
4301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4302$as_echo "none needed" >&6; } ;;
4303  xno)
4304    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4305$as_echo "unsupported" >&6; } ;;
4306  *)
4307    CC="$CC $ac_cv_prog_cc_c89"
4308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4309$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310esac
4311if test "x$ac_cv_prog_cc_c89" != xno; then :
4312
4313fi
4314
4315ac_ext=c
4316ac_cpp='$CPP $CPPFLAGS'
4317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321ac_ext=c
4322ac_cpp='$CPP $CPPFLAGS'
4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4327$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4328if ${am_cv_prog_cc_c_o+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333
4334int
4335main ()
4336{
4337
4338  ;
4339  return 0;
4340}
4341_ACEOF
4342  # Make sure it works both with $CC and with simple cc.
4343  # Following AC_PROG_CC_C_O, we do the test twice because some
4344  # compilers refuse to overwrite an existing .o file with -o,
4345  # though they will create one.
4346  am_cv_prog_cc_c_o=yes
4347  for am_i in 1 2; do
4348    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4349   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } \
4353         && test -f conftest2.$ac_objext; then
4354      : OK
4355    else
4356      am_cv_prog_cc_c_o=no
4357      break
4358    fi
4359  done
4360  rm -f core conftest*
4361  unset am_i
4362fi
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4364$as_echo "$am_cv_prog_cc_c_o" >&6; }
4365if test "$am_cv_prog_cc_c_o" != yes; then
4366   # Losing compiler, so override with the script.
4367   # FIXME: It is wrong to rewrite CC.
4368   # But if we don't then we get into trouble of one sort or another.
4369   # A longer-term fix would be to have automake use am__CC in this case,
4370   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4371   CC="$am_aux_dir/compile $CC"
4372fi
4373ac_ext=c
4374ac_cpp='$CPP $CPPFLAGS'
4375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
4379
4380depcc="$CC"   am_compiler_list=
4381
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4383$as_echo_n "checking dependency style of $depcc... " >&6; }
4384if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4385  $as_echo_n "(cached) " >&6
4386else
4387  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388  # We make a subdir and do the tests there.  Otherwise we can end up
4389  # making bogus files that we don't know about and never remove.  For
4390  # instance it was reported that on HP-UX the gcc test will end up
4391  # making a dummy file named 'D' -- because '-MD' means "put the output
4392  # in D".
4393  rm -rf conftest.dir
4394  mkdir conftest.dir
4395  # Copy depcomp to subdir because otherwise we won't find it if we're
4396  # using a relative directory.
4397  cp "$am_depcomp" conftest.dir
4398  cd conftest.dir
4399  # We will build objects and dependencies in a subdirectory because
4400  # it helps to detect inapplicable dependency modes.  For instance
4401  # both Tru64's cc and ICC support -MD to output dependencies as a
4402  # side effect of compilation, but ICC will put the dependencies in
4403  # the current directory while Tru64 will put them in the object
4404  # directory.
4405  mkdir sub
4406
4407  am_cv_CC_dependencies_compiler_type=none
4408  if test "$am_compiler_list" = ""; then
4409     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4410  fi
4411  am__universal=false
4412  case " $depcc " in #(
4413     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4414     esac
4415
4416  for depmode in $am_compiler_list; do
4417    # Setup a source with many dependencies, because some compilers
4418    # like to wrap large dependency lists on column 80 (with \), and
4419    # we should not choose a depcomp mode which is confused by this.
4420    #
4421    # We need to recreate these files for each test, as the compiler may
4422    # overwrite some of them when testing with obscure command lines.
4423    # This happens at least with the AIX C compiler.
4424    : > sub/conftest.c
4425    for i in 1 2 3 4 5 6; do
4426      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4427      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4428      # Solaris 10 /bin/sh.
4429      echo '/* dummy */' > sub/conftst$i.h
4430    done
4431    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4432
4433    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4434    # mode.  It turns out that the SunPro C++ compiler does not properly
4435    # handle '-M -o', and we need to detect this.  Also, some Intel
4436    # versions had trouble with output in subdirs.
4437    am__obj=sub/conftest.${OBJEXT-o}
4438    am__minus_obj="-o $am__obj"
4439    case $depmode in
4440    gcc)
4441      # This depmode causes a compiler race in universal mode.
4442      test "$am__universal" = false || continue
4443      ;;
4444    nosideeffect)
4445      # After this tag, mechanisms are not by side-effect, so they'll
4446      # only be used when explicitly requested.
4447      if test "x$enable_dependency_tracking" = xyes; then
4448        continue
4449      else
4450        break
4451      fi
4452      ;;
4453    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4454      # This compiler won't grok '-c -o', but also, the minuso test has
4455      # not run yet.  These depmodes are late enough in the game, and
4456      # so weak that their functioning should not be impacted.
4457      am__obj=conftest.${OBJEXT-o}
4458      am__minus_obj=
4459      ;;
4460    none) break ;;
4461    esac
4462    if depmode=$depmode \
4463       source=sub/conftest.c object=$am__obj \
4464       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4465       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4466         >/dev/null 2>conftest.err &&
4467       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4468       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4469       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4470       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4471      # icc doesn't choke on unknown options, it will just issue warnings
4472      # or remarks (even with -Werror).  So we grep stderr for any message
4473      # that says an option was ignored or not supported.
4474      # When given -MP, icc 7.0 and 7.1 complain thusly:
4475      #   icc: Command line warning: ignoring option '-M'; no argument required
4476      # The diagnosis changed in icc 8.0:
4477      #   icc: Command line remark: option '-MP' not supported
4478      if (grep 'ignoring option' conftest.err ||
4479          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4480        am_cv_CC_dependencies_compiler_type=$depmode
4481        break
4482      fi
4483    fi
4484  done
4485
4486  cd ..
4487  rm -rf conftest.dir
4488else
4489  am_cv_CC_dependencies_compiler_type=none
4490fi
4491
4492fi
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4494$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4495CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4496
4497 if
4498  test "x$enable_dependency_tracking" != xno \
4499  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4500  am__fastdepCC_TRUE=
4501  am__fastdepCC_FALSE='#'
4502else
4503  am__fastdepCC_TRUE='#'
4504  am__fastdepCC_FALSE=
4505fi
4506
4507
4508
4509
4510
4511
4512
4513# If enable-msvc, then test only for MS and Intel (on Windows) C++ compiler
4514# otherwise, test a long list of C++ compilers that comes into our mind
4515
4516  if test $enable_msvc = yes ; then
4517    comps="cl icl"
4518  else
4519    # TODO old buildtools was doing some $build specific logic here, do we
4520    # still need this?
4521    comps="g++ clang++ c++ pgCC icpc gpp cxx cc++ cl icl FCC KCC RCC xlC_r aCC CC"
4522  fi
4523  ac_ext=cpp
4524ac_cpp='$CXXCPP $CPPFLAGS'
4525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4528if test -z "$CXX"; then
4529  if test -n "$CCC"; then
4530    CXX=$CCC
4531  else
4532    if test -n "$ac_tool_prefix"; then
4533  for ac_prog in $comps
4534  do
4535    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4536set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538$as_echo_n "checking for $ac_word... " >&6; }
4539if ${ac_cv_prog_CXX+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  if test -n "$CXX"; then
4543  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548  IFS=$as_save_IFS
4549  test -z "$as_dir" && as_dir=.
4550    for ac_exec_ext in '' $ac_executable_extensions; do
4551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554    break 2
4555  fi
4556done
4557  done
4558IFS=$as_save_IFS
4559
4560fi
4561fi
4562CXX=$ac_cv_prog_CXX
4563if test -n "$CXX"; then
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4565$as_echo "$CXX" >&6; }
4566else
4567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568$as_echo "no" >&6; }
4569fi
4570
4571
4572    test -n "$CXX" && break
4573  done
4574fi
4575if test -z "$CXX"; then
4576  ac_ct_CXX=$CXX
4577  for ac_prog in $comps
4578do
4579  # Extract the first word of "$ac_prog", so it can be a program name with args.
4580set dummy $ac_prog; ac_word=$2
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582$as_echo_n "checking for $ac_word... " >&6; }
4583if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4584  $as_echo_n "(cached) " >&6
4585else
4586  if test -n "$ac_ct_CXX"; then
4587  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4588else
4589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592  IFS=$as_save_IFS
4593  test -z "$as_dir" && as_dir=.
4594    for ac_exec_ext in '' $ac_executable_extensions; do
4595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596    ac_cv_prog_ac_ct_CXX="$ac_prog"
4597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598    break 2
4599  fi
4600done
4601  done
4602IFS=$as_save_IFS
4603
4604fi
4605fi
4606ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4607if test -n "$ac_ct_CXX"; then
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4609$as_echo "$ac_ct_CXX" >&6; }
4610else
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612$as_echo "no" >&6; }
4613fi
4614
4615
4616  test -n "$ac_ct_CXX" && break
4617done
4618
4619  if test "x$ac_ct_CXX" = x; then
4620    CXX="g++"
4621  else
4622    case $cross_compiling:$ac_tool_warned in
4623yes:)
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4626ac_tool_warned=yes ;;
4627esac
4628    CXX=$ac_ct_CXX
4629  fi
4630fi
4631
4632  fi
4633fi
4634# Provide some information about the compiler.
4635$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4636set X $ac_compile
4637ac_compiler=$2
4638for ac_option in --version -v -V -qversion; do
4639  { { ac_try="$ac_compiler $ac_option >&5"
4640case "(($ac_try" in
4641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642  *) ac_try_echo=$ac_try;;
4643esac
4644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645$as_echo "$ac_try_echo"; } >&5
4646  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4647  ac_status=$?
4648  if test -s conftest.err; then
4649    sed '10a\
4650... rest of stderr output deleted ...
4651         10q' conftest.err >conftest.er1
4652    cat conftest.er1 >&5
4653  fi
4654  rm -f conftest.er1 conftest.err
4655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656  test $ac_status = 0; }
4657done
4658
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4660$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4661if ${ac_cv_cxx_compiler_gnu+:} false; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h.  */
4666
4667int
4668main ()
4669{
4670#ifndef __GNUC__
4671       choke me
4672#endif
4673
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678if ac_fn_cxx_try_compile "$LINENO"; then :
4679  ac_compiler_gnu=yes
4680else
4681  ac_compiler_gnu=no
4682fi
4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4685
4686fi
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4688$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4689if test $ac_compiler_gnu = yes; then
4690  GXX=yes
4691else
4692  GXX=
4693fi
4694ac_test_CXXFLAGS=${CXXFLAGS+set}
4695ac_save_CXXFLAGS=$CXXFLAGS
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4697$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4698if ${ac_cv_prog_cxx_g+:} false; then :
4699  $as_echo_n "(cached) " >&6
4700else
4701  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4702   ac_cxx_werror_flag=yes
4703   ac_cv_prog_cxx_g=no
4704   CXXFLAGS="-g"
4705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706/* end confdefs.h.  */
4707
4708int
4709main ()
4710{
4711
4712  ;
4713  return 0;
4714}
4715_ACEOF
4716if ac_fn_cxx_try_compile "$LINENO"; then :
4717  ac_cv_prog_cxx_g=yes
4718else
4719  CXXFLAGS=""
4720      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h.  */
4722
4723int
4724main ()
4725{
4726
4727  ;
4728  return 0;
4729}
4730_ACEOF
4731if ac_fn_cxx_try_compile "$LINENO"; then :
4732
4733else
4734  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4735         CXXFLAGS="-g"
4736         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h.  */
4738
4739int
4740main ()
4741{
4742
4743  ;
4744  return 0;
4745}
4746_ACEOF
4747if ac_fn_cxx_try_compile "$LINENO"; then :
4748  ac_cv_prog_cxx_g=yes
4749fi
4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753fi
4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4758$as_echo "$ac_cv_prog_cxx_g" >&6; }
4759if test "$ac_test_CXXFLAGS" = set; then
4760  CXXFLAGS=$ac_save_CXXFLAGS
4761elif test $ac_cv_prog_cxx_g = yes; then
4762  if test "$GXX" = yes; then
4763    CXXFLAGS="-g -O2"
4764  else
4765    CXXFLAGS="-g"
4766  fi
4767else
4768  if test "$GXX" = yes; then
4769    CXXFLAGS="-O2"
4770  else
4771    CXXFLAGS=
4772  fi
4773fi
4774ac_ext=c
4775ac_cpp='$CPP $CPPFLAGS'
4776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779
4780depcc="$CXX"  am_compiler_list=
4781
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4783$as_echo_n "checking dependency style of $depcc... " >&6; }
4784if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4785  $as_echo_n "(cached) " >&6
4786else
4787  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4788  # We make a subdir and do the tests there.  Otherwise we can end up
4789  # making bogus files that we don't know about and never remove.  For
4790  # instance it was reported that on HP-UX the gcc test will end up
4791  # making a dummy file named 'D' -- because '-MD' means "put the output
4792  # in D".
4793  rm -rf conftest.dir
4794  mkdir conftest.dir
4795  # Copy depcomp to subdir because otherwise we won't find it if we're
4796  # using a relative directory.
4797  cp "$am_depcomp" conftest.dir
4798  cd conftest.dir
4799  # We will build objects and dependencies in a subdirectory because
4800  # it helps to detect inapplicable dependency modes.  For instance
4801  # both Tru64's cc and ICC support -MD to output dependencies as a
4802  # side effect of compilation, but ICC will put the dependencies in
4803  # the current directory while Tru64 will put them in the object
4804  # directory.
4805  mkdir sub
4806
4807  am_cv_CXX_dependencies_compiler_type=none
4808  if test "$am_compiler_list" = ""; then
4809     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4810  fi
4811  am__universal=false
4812  case " $depcc " in #(
4813     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4814     esac
4815
4816  for depmode in $am_compiler_list; do
4817    # Setup a source with many dependencies, because some compilers
4818    # like to wrap large dependency lists on column 80 (with \), and
4819    # we should not choose a depcomp mode which is confused by this.
4820    #
4821    # We need to recreate these files for each test, as the compiler may
4822    # overwrite some of them when testing with obscure command lines.
4823    # This happens at least with the AIX C compiler.
4824    : > sub/conftest.c
4825    for i in 1 2 3 4 5 6; do
4826      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4827      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4828      # Solaris 10 /bin/sh.
4829      echo '/* dummy */' > sub/conftst$i.h
4830    done
4831    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4832
4833    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4834    # mode.  It turns out that the SunPro C++ compiler does not properly
4835    # handle '-M -o', and we need to detect this.  Also, some Intel
4836    # versions had trouble with output in subdirs.
4837    am__obj=sub/conftest.${OBJEXT-o}
4838    am__minus_obj="-o $am__obj"
4839    case $depmode in
4840    gcc)
4841      # This depmode causes a compiler race in universal mode.
4842      test "$am__universal" = false || continue
4843      ;;
4844    nosideeffect)
4845      # After this tag, mechanisms are not by side-effect, so they'll
4846      # only be used when explicitly requested.
4847      if test "x$enable_dependency_tracking" = xyes; then
4848        continue
4849      else
4850        break
4851      fi
4852      ;;
4853    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4854      # This compiler won't grok '-c -o', but also, the minuso test has
4855      # not run yet.  These depmodes are late enough in the game, and
4856      # so weak that their functioning should not be impacted.
4857      am__obj=conftest.${OBJEXT-o}
4858      am__minus_obj=
4859      ;;
4860    none) break ;;
4861    esac
4862    if depmode=$depmode \
4863       source=sub/conftest.c object=$am__obj \
4864       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4865       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4866         >/dev/null 2>conftest.err &&
4867       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4868       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4869       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4870       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4871      # icc doesn't choke on unknown options, it will just issue warnings
4872      # or remarks (even with -Werror).  So we grep stderr for any message
4873      # that says an option was ignored or not supported.
4874      # When given -MP, icc 7.0 and 7.1 complain thusly:
4875      #   icc: Command line warning: ignoring option '-M'; no argument required
4876      # The diagnosis changed in icc 8.0:
4877      #   icc: Command line remark: option '-MP' not supported
4878      if (grep 'ignoring option' conftest.err ||
4879          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4880        am_cv_CXX_dependencies_compiler_type=$depmode
4881        break
4882      fi
4883    fi
4884  done
4885
4886  cd ..
4887  rm -rf conftest.dir
4888else
4889  am_cv_CXX_dependencies_compiler_type=none
4890fi
4891
4892fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4894$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4895CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4896
4897 if
4898  test "x$enable_dependency_tracking" != xno \
4899  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4900  am__fastdepCXX_TRUE=
4901  am__fastdepCXX_FALSE='#'
4902else
4903  am__fastdepCXX_TRUE='#'
4904  am__fastdepCXX_FALSE=
4905fi
4906
4907
4908
4909# If the compiler does not support -c -o, then wrap the compile script around
4910# it.
4911
4912  ac_ext=cpp
4913ac_cpp='$CXXCPP $CPPFLAGS'
4914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX understands -c and -o together" >&5
4918$as_echo_n "checking whether $CXX understands -c and -o together... " >&6; }
4919if ${ac_cv_prog_cxx_c_o+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h.  */
4924
4925int
4926main ()
4927{
4928
4929  ;
4930  return 0;
4931}
4932_ACEOF
4933# We test twice because some compilers refuse to overwrite an existing
4934# `.o' file with `-o', although they will create one.
4935ac_try='$CXX $CXXFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4936rm -f conftest2.*
4937if { { case "(($ac_try" in
4938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939  *) ac_try_echo=$ac_try;;
4940esac
4941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4942$as_echo "$ac_try_echo"; } >&5
4943  (eval "$ac_try") 2>&5
4944  ac_status=$?
4945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4946  test $ac_status = 0; } &&
4947     test -f conftest2.$ac_objext &&
4948     { { case "(($ac_try" in
4949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950  *) ac_try_echo=$ac_try;;
4951esac
4952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4953$as_echo "$ac_try_echo"; } >&5
4954  (eval "$ac_try") 2>&5
4955  ac_status=$?
4956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4957  test $ac_status = 0; }; then
4958  ac_cv_prog_cxx_c_o=yes
4959else
4960  ac_cv_prog_cxx_c_o=no
4961fi
4962rm -f conftest*
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_c_o" >&5
4965$as_echo "$ac_cv_prog_cxx_c_o" >&6; }
4966if test $ac_cv_prog_cxx_c_o = no; then
4967
4968$as_echo "#define CXX_NO_MINUS_C_MINUS_O 1" >>confdefs.h
4969
4970fi
4971ac_ext=c
4972ac_cpp='$CPP $CPPFLAGS'
4973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
4977  if test $ac_cv_prog_cxx_c_o = no ; then
4978    CXX="$am_aux_dir/compile $CXX"
4979  fi
4980
4981
4982# This is a C++ package, set the language accordingly.
4983
4984ac_ext=cpp
4985ac_cpp='$CXXCPP $CPPFLAGS'
4986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4989
4990
4991# Sort out what we need to do to link to Fortran libraries. Check if there's a
4992# Fortran compiler and call the appropriate macro based on the result. If
4993# there's no Fortran compiler, it's necessary to specify a library and
4994# function to use when attempting a link. For Clp, libblas (-lblas) and
4995# DAXPY are appropriate choices.
4996# Yes, we should be able to leverage this and avoid the check for BLAS below,
4997# but I haven't quite figured it out yet.
4998
4999
5000  # AC_MSG_NOTICE([In COIN_PROG_F77])
5001
5002
5003# If enable-msvc, then test only for Intel (on Windows) Fortran compiler
5004
5005  if test $enable_msvc = yes ; then
5006    comps="ifort"
5007  else
5008    # TODO old buildtools was doing some $build specific logic here, do we still
5009    # need this?
5010    comps="gfortran ifort g95 fort77 f77 f95 f90 g77 pgf90 pgf77 ifc frt af77 xlf_r fl32"
5011  fi
5012  ac_ext=f
5013ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5014ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5016if test -n "$ac_tool_prefix"; then
5017  for ac_prog in $comps
5018  do
5019    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022$as_echo_n "checking for $ac_word... " >&6; }
5023if ${ac_cv_prog_F77+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  if test -n "$F77"; then
5027  ac_cv_prog_F77="$F77" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032  IFS=$as_save_IFS
5033  test -z "$as_dir" && as_dir=.
5034    for ac_exec_ext in '' $ac_executable_extensions; do
5035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038    break 2
5039  fi
5040done
5041  done
5042IFS=$as_save_IFS
5043
5044fi
5045fi
5046F77=$ac_cv_prog_F77
5047if test -n "$F77"; then
5048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5049$as_echo "$F77" >&6; }
5050else
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054
5055
5056    test -n "$F77" && break
5057  done
5058fi
5059if test -z "$F77"; then
5060  ac_ct_F77=$F77
5061  for ac_prog in $comps
5062do
5063  # Extract the first word of "$ac_prog", so it can be a program name with args.
5064set dummy $ac_prog; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if ${ac_cv_prog_ac_ct_F77+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$ac_ct_F77"; then
5071  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078    for ac_exec_ext in '' $ac_executable_extensions; do
5079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080    ac_cv_prog_ac_ct_F77="$ac_prog"
5081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082    break 2
5083  fi
5084done
5085  done
5086IFS=$as_save_IFS
5087
5088fi
5089fi
5090ac_ct_F77=$ac_cv_prog_ac_ct_F77
5091if test -n "$ac_ct_F77"; then
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5093$as_echo "$ac_ct_F77" >&6; }
5094else
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096$as_echo "no" >&6; }
5097fi
5098
5099
5100  test -n "$ac_ct_F77" && break
5101done
5102
5103  if test "x$ac_ct_F77" = x; then
5104    F77=""
5105  else
5106    case $cross_compiling:$ac_tool_warned in
5107yes:)
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110ac_tool_warned=yes ;;
5111esac
5112    F77=$ac_ct_F77
5113  fi
5114fi
5115
5116
5117# Provide some information about the compiler.
5118$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5119set X $ac_compile
5120ac_compiler=$2
5121for ac_option in --version -v -V -qversion; do
5122  { { ac_try="$ac_compiler $ac_option >&5"
5123case "(($ac_try" in
5124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125  *) ac_try_echo=$ac_try;;
5126esac
5127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5128$as_echo "$ac_try_echo"; } >&5
5129  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5130  ac_status=$?
5131  if test -s conftest.err; then
5132    sed '10a\
5133... rest of stderr output deleted ...
5134         10q' conftest.err >conftest.er1
5135    cat conftest.er1 >&5
5136  fi
5137  rm -f conftest.er1 conftest.err
5138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139  test $ac_status = 0; }
5140done
5141rm -f a.out
5142
5143# If we don't use `.F' as extension, the preprocessor is not run on the
5144# input file.  (Note that this only needs to work for GNU compilers.)
5145ac_save_ext=$ac_ext
5146ac_ext=F
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5148$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5149if ${ac_cv_f77_compiler_gnu+:} false; then :
5150  $as_echo_n "(cached) " >&6
5151else
5152  cat > conftest.$ac_ext <<_ACEOF
5153      program main
5154#ifndef __GNUC__
5155       choke me
5156#endif
5157
5158      end
5159_ACEOF
5160if ac_fn_f77_try_compile "$LINENO"; then :
5161  ac_compiler_gnu=yes
5162else
5163  ac_compiler_gnu=no
5164fi
5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5167
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5170$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5171ac_ext=$ac_save_ext
5172ac_test_FFLAGS=${FFLAGS+set}
5173ac_save_FFLAGS=$FFLAGS
5174FFLAGS=
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5176$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5177if ${ac_cv_prog_f77_g+:} false; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180  FFLAGS=-g
5181cat > conftest.$ac_ext <<_ACEOF
5182      program main
5183
5184      end
5185_ACEOF
5186if ac_fn_f77_try_compile "$LINENO"; then :
5187  ac_cv_prog_f77_g=yes
5188else
5189  ac_cv_prog_f77_g=no
5190fi
5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5195$as_echo "$ac_cv_prog_f77_g" >&6; }
5196if test "$ac_test_FFLAGS" = set; then
5197  FFLAGS=$ac_save_FFLAGS
5198elif test $ac_cv_prog_f77_g = yes; then
5199  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5200    FFLAGS="-g -O2"
5201  else
5202    FFLAGS="-g"
5203  fi
5204else
5205  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5206    FFLAGS="-O2"
5207  else
5208    FFLAGS=
5209  fi
5210fi
5211
5212if test $ac_compiler_gnu = yes; then
5213  G77=yes
5214else
5215  G77=
5216fi
5217ac_ext=cpp
5218ac_cpp='$CXXCPP $CPPFLAGS'
5219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5222
5223
5224# Allow for the possibility that there is no Fortran compiler on the system.
5225
5226  if test "${F77:-unavailable}" = unavailable ; then
5227    F77=unavailable
5228    { $as_echo "$as_me:${as_lineno-$LINENO}: No Fortran compiler available." >&5
5229$as_echo "$as_me: No Fortran compiler available." >&6;}
5230  fi
5231  # AC_MSG_NOTICE([Leaving COIN_PROG_F77])
5232
5233if test "$F77" != "unavailable" ; then
5234
5235ac_ext=f
5236ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5237ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
5240$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
5241if ${ac_cv_prog_f77_v+:} false; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244  cat > conftest.$ac_ext <<_ACEOF
5245      program main
5246
5247      end
5248_ACEOF
5249if ac_fn_f77_try_compile "$LINENO"; then :
5250  ac_cv_prog_f77_v=
5251# Try some options frequently used verbose output
5252for ac_verb in -v -verbose --verbose -V -\#\#\#; do
5253  cat > conftest.$ac_ext <<_ACEOF
5254      program main
5255
5256      end
5257_ACEOF
5258
5259# Compile and link our simple test program by passing a flag (argument
5260# 1 to this macro) to the Fortran compiler in order to get
5261# "verbose" output that we can then parse for the Fortran linker
5262# flags.
5263ac_save_FFLAGS=$FFLAGS
5264FFLAGS="$FFLAGS $ac_verb"
5265eval "set x $ac_link"
5266shift
5267$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5268# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5269# LIBRARY_PATH; skip all such settings.
5270ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
5271  sed '/^Driving:/d; /^Configured with:/d;
5272      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
5273$as_echo "$ac_f77_v_output" >&5
5274FFLAGS=$ac_save_FFLAGS
5275
5276rm -rf conftest*
5277
5278# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5279# /foo, /bar, and /baz are search directories for the Fortran linker.
5280# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5281ac_f77_v_output="`echo $ac_f77_v_output |
5282        grep 'LPATH is:' |
5283        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
5284
5285# FIXME: we keep getting bitten by quoted arguments; a more general fix
5286#        that detects unbalanced quotes in FLIBS should be implemented
5287#        and (ugh) tested at some point.
5288case $ac_f77_v_output in
5289  # With xlf replace commas with spaces,
5290  # and remove "-link" and closing parenthesis.
5291  *xlfentry*)
5292    ac_f77_v_output=`echo $ac_f77_v_output |
5293      sed '
5294        s/,/ /g
5295        s/ -link / /g
5296        s/) *$//
5297      '
5298    ` ;;
5299
5300  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5301  # $LIBS confuse us, and the libraries appear later in the output anyway).
5302  *mGLOB_options_string*)
5303    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5304
5305  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5306  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5307  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5308  *-cmdline\ * | *-ignore\ * | *-def\ *)
5309    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
5310        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5311        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5312        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5313
5314  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
5315  *fort77*f2c*gcc*)
5316    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
5317        /:[      ]\+Running[     ]\{1,\}"gcc"/{
5318          /"-c"/d
5319          /[.]c"*/d
5320          s/^.*"gcc"/"gcc"/
5321          s/"//gp
5322        }'` ;;
5323
5324  # If we are using Cray Fortran then delete quotes.
5325  *cft90*)
5326    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
5327esac
5328
5329
5330  # look for -l* and *.a constructs in the output
5331  for ac_arg in $ac_f77_v_output; do
5332     case $ac_arg in
5333        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5334          ac_cv_prog_f77_v=$ac_verb
5335          break 2 ;;
5336     esac
5337  done
5338done
5339if test -z "$ac_cv_prog_f77_v"; then
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
5341$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
5342fi
5343else
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
5345$as_echo "$as_me: WARNING: compilation failed" >&2;}
5346fi
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
5351$as_echo "$ac_cv_prog_f77_v" >&6; }
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
5353$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
5354if ${ac_cv_f77_libs+:} false; then :
5355  $as_echo_n "(cached) " >&6
5356else
5357  if test "x$FLIBS" != "x"; then
5358  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
5359else
5360
5361cat > conftest.$ac_ext <<_ACEOF
5362      program main
5363
5364      end
5365_ACEOF
5366
5367# Compile and link our simple test program by passing a flag (argument
5368# 1 to this macro) to the Fortran compiler in order to get
5369# "verbose" output that we can then parse for the Fortran linker
5370# flags.
5371ac_save_FFLAGS=$FFLAGS
5372FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
5373eval "set x $ac_link"
5374shift
5375$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5376# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5377# LIBRARY_PATH; skip all such settings.
5378ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
5379  sed '/^Driving:/d; /^Configured with:/d;
5380      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
5381$as_echo "$ac_f77_v_output" >&5
5382FFLAGS=$ac_save_FFLAGS
5383
5384rm -rf conftest*
5385
5386# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5387# /foo, /bar, and /baz are search directories for the Fortran linker.
5388# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5389ac_f77_v_output="`echo $ac_f77_v_output |
5390        grep 'LPATH is:' |
5391        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
5392
5393# FIXME: we keep getting bitten by quoted arguments; a more general fix
5394#        that detects unbalanced quotes in FLIBS should be implemented
5395#        and (ugh) tested at some point.
5396case $ac_f77_v_output in
5397  # With xlf replace commas with spaces,
5398  # and remove "-link" and closing parenthesis.
5399  *xlfentry*)
5400    ac_f77_v_output=`echo $ac_f77_v_output |
5401      sed '
5402        s/,/ /g
5403        s/ -link / /g
5404        s/) *$//
5405      '
5406    ` ;;
5407
5408  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5409  # $LIBS confuse us, and the libraries appear later in the output anyway).
5410  *mGLOB_options_string*)
5411    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5412
5413  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5414  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5415  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5416  *-cmdline\ * | *-ignore\ * | *-def\ *)
5417    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
5418        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5419        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5420        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5421
5422  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
5423  *fort77*f2c*gcc*)
5424    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
5425        /:[      ]\+Running[     ]\{1,\}"gcc"/{
5426          /"-c"/d
5427          /[.]c"*/d
5428          s/^.*"gcc"/"gcc"/
5429          s/"//gp
5430        }'` ;;
5431
5432  # If we are using Cray Fortran then delete quotes.
5433  *cft90*)
5434    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
5435esac
5436
5437
5438
5439ac_cv_f77_libs=
5440
5441# Save positional arguments (if any)
5442ac_save_positional="$@"
5443
5444set X $ac_f77_v_output
5445while test $# != 1; do
5446  shift
5447  ac_arg=$1
5448  case $ac_arg in
5449        [\\/]*.a | ?:[\\/]*.a)
5450            ac_exists=false
5451  for ac_i in $ac_cv_f77_libs; do
5452    if test x"$ac_arg" = x"$ac_i"; then
5453      ac_exists=true
5454      break
5455    fi
5456  done
5457
5458  if test x"$ac_exists" = xtrue; then :
5459
5460else
5461  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5462fi
5463          ;;
5464        -bI:*)
5465            ac_exists=false
5466  for ac_i in $ac_cv_f77_libs; do
5467    if test x"$ac_arg" = x"$ac_i"; then
5468      ac_exists=true
5469      break
5470    fi
5471  done
5472
5473  if test x"$ac_exists" = xtrue; then :
5474
5475else
5476  if test "$ac_compiler_gnu" = yes; then
5477  for ac_link_opt in $ac_arg; do
5478    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
5479  done
5480else
5481  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5482fi
5483fi
5484          ;;
5485          # Ignore these flags.
5486        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
5487          |-LANG:=* | -LIST:* | -LNO:* | -link)
5488          ;;
5489        -lkernel32)
5490          case $host_os in
5491          *cygwin*) ;;
5492          *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5493            ;;
5494          esac
5495          ;;
5496        -[LRuYz])
5497          # These flags, when seen by themselves, take an argument.
5498          # We remove the space between option and argument and re-iterate
5499          # unless we find an empty arg or a new option (starting with -)
5500          case $2 in
5501             "" | -*);;
5502             *)
5503                ac_arg="$ac_arg$2"
5504                shift; shift
5505                set X $ac_arg "$@"
5506                ;;
5507          esac
5508          ;;
5509        -YP,*)
5510          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5511              ac_exists=false
5512  for ac_i in $ac_cv_f77_libs; do
5513    if test x"$ac_j" = x"$ac_i"; then
5514      ac_exists=true
5515      break
5516    fi
5517  done
5518
5519  if test x"$ac_exists" = xtrue; then :
5520
5521else
5522  ac_arg="$ac_arg $ac_j"
5523                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
5524fi
5525          done
5526          ;;
5527        -[lLR]*)
5528            ac_exists=false
5529  for ac_i in $ac_cv_f77_libs; do
5530    if test x"$ac_arg" = x"$ac_i"; then
5531      ac_exists=true
5532      break
5533    fi
5534  done
5535
5536  if test x"$ac_exists" = xtrue; then :
5537
5538else
5539  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5540fi
5541          ;;
5542        -zallextract*| -zdefaultextract)
5543          ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5544          ;;
5545          # Ignore everything else.
5546  esac
5547done
5548# restore positional arguments
5549set X $ac_save_positional; shift
5550
5551# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5552# then we insist that the "run path" must be an absolute path (i.e. it
5553# must begin with a "/").
5554case `(uname -sr) 2>/dev/null` in
5555   "SunOS 5"*)
5556      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
5557                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5558      test "x$ac_ld_run_path" != x &&
5559        if test "$ac_compiler_gnu" = yes; then
5560  for ac_link_opt in $ac_ld_run_path; do
5561    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
5562  done
5563else
5564  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
5565fi
5566      ;;
5567esac
5568fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5569
5570fi
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
5572$as_echo "$ac_cv_f77_libs" >&6; }
5573FLIBS="$ac_cv_f77_libs"
5574
5575
5576ac_ext=cpp
5577ac_cpp='$CXXCPP $CPPFLAGS'
5578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5581
5582
5583ac_ext=f
5584ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5585ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5587
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
5589$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
5590if ${ac_cv_f77_dummy_main+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  ac_f77_dm_save_LIBS=$LIBS
5594 LIBS="$LIBS $FLIBS"
5595 ac_fortran_dm_var=F77_DUMMY_MAIN
5596 ac_ext=c
5597ac_cpp='$CPP $CPPFLAGS'
5598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601
5602 # First, try linking without a dummy main:
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h.  */
5605
5606#ifdef F77_DUMMY_MAIN
5607
5608#  ifdef __cplusplus
5609     extern "C"
5610#  endif
5611   int F77_DUMMY_MAIN() { return 1; }
5612
5613#endif
5614int
5615main ()
5616{
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622if ac_fn_c_try_link "$LINENO"; then :
5623  ac_cv_fortran_dummy_main=none
5624else
5625  ac_cv_fortran_dummy_main=unknown
5626fi
5627rm -f core conftest.err conftest.$ac_objext \
5628    conftest$ac_exeext conftest.$ac_ext
5629
5630 if test $ac_cv_fortran_dummy_main = unknown; then
5631   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
5632     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h.  */
5634#define $ac_fortran_dm_var $ac_func
5635#ifdef F77_DUMMY_MAIN
5636
5637#  ifdef __cplusplus
5638     extern "C"
5639#  endif
5640   int F77_DUMMY_MAIN() { return 1; }
5641
5642#endif
5643int
5644main ()
5645{
5646
5647  ;
5648  return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_link "$LINENO"; then :
5652  ac_cv_fortran_dummy_main=$ac_func; break
5653fi
5654rm -f core conftest.err conftest.$ac_objext \
5655    conftest$ac_exeext conftest.$ac_ext
5656   done
5657 fi
5658 ac_ext=f
5659ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5660ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5662 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
5663 rm -rf conftest*
5664 LIBS=$ac_f77_dm_save_LIBS
5665
5666fi
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
5668$as_echo "$ac_cv_f77_dummy_main" >&6; }
5669F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
5670if test "$F77_DUMMY_MAIN" != unknown; then :
5671  if test $F77_DUMMY_MAIN != none; then
5672
5673cat >>confdefs.h <<_ACEOF
5674#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
5675_ACEOF
5676
5677  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
5678
5679$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
5680
5681  fi
5682fi
5683else
5684  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686as_fn_error $? "linking to Fortran libraries from C fails
5687See \`config.log' for more details" "$LINENO" 5; }
5688fi
5689
5690ac_ext=cpp
5691ac_cpp='$CXXCPP $CPPFLAGS'
5692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5695
5696ac_ext=f
5697ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5698ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
5701$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
5702if ${ac_cv_f77_mangling+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  cat > conftest.$ac_ext <<_ACEOF
5706      subroutine foobar()
5707      return
5708      end
5709      subroutine foo_bar()
5710      return
5711      end
5712_ACEOF
5713if ac_fn_f77_try_compile "$LINENO"; then :
5714  mv conftest.$ac_objext cfortran_test.$ac_objext
5715
5716  ac_save_LIBS=$LIBS
5717  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
5718
5719  ac_ext=c
5720ac_cpp='$CPP $CPPFLAGS'
5721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723ac_compiler_gnu=$ac_cv_c_compiler_gnu
5724  ac_success=no
5725  for ac_foobar in foobar FOOBAR; do
5726    for ac_underscore in "" "_"; do
5727      ac_func="$ac_foobar$ac_underscore"
5728      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h.  */
5730
5731/* Override any GCC internal prototype to avoid an error.
5732   Use char because int might match the return type of a GCC
5733   builtin and then its argument prototype would still apply.  */
5734#ifdef __cplusplus
5735extern "C"
5736#endif
5737char $ac_func ();
5738#ifdef F77_DUMMY_MAIN
5739
5740#  ifdef __cplusplus
5741     extern "C"
5742#  endif
5743   int F77_DUMMY_MAIN() { return 1; }
5744
5745#endif
5746int
5747main ()
5748{
5749return $ac_func ();
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754if ac_fn_c_try_link "$LINENO"; then :
5755  ac_success=yes; break 2
5756fi
5757rm -f core conftest.err conftest.$ac_objext \
5758    conftest$ac_exeext conftest.$ac_ext
5759    done
5760  done
5761  ac_ext=f
5762ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5763ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5765
5766  if test "$ac_success" = "yes"; then
5767     case $ac_foobar in
5768        foobar)
5769           ac_case=lower
5770           ac_foo_bar=foo_bar
5771           ;;
5772        FOOBAR)
5773           ac_case=upper
5774           ac_foo_bar=FOO_BAR
5775           ;;
5776     esac
5777
5778     ac_ext=c
5779ac_cpp='$CPP $CPPFLAGS'
5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783     ac_success_extra=no
5784     for ac_extra in "" "_"; do
5785        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5786        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h.  */
5788
5789/* Override any GCC internal prototype to avoid an error.
5790   Use char because int might match the return type of a GCC
5791   builtin and then its argument prototype would still apply.  */
5792#ifdef __cplusplus
5793extern "C"
5794#endif
5795char $ac_func ();
5796#ifdef F77_DUMMY_MAIN
5797
5798#  ifdef __cplusplus
5799     extern "C"
5800#  endif
5801   int F77_DUMMY_MAIN() { return 1; }
5802
5803#endif
5804int
5805main ()
5806{
5807return $ac_func ();
5808  ;
5809  return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_link "$LINENO"; then :
5813  ac_success_extra=yes; break
5814fi
5815rm -f core conftest.err conftest.$ac_objext \
5816    conftest$ac_exeext conftest.$ac_ext
5817     done
5818     ac_ext=f
5819ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5820ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5822
5823     if test "$ac_success_extra" = "yes"; then
5824        ac_cv_f77_mangling="$ac_case case"
5825        if test -z "$ac_underscore"; then
5826           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
5827        else
5828           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
5829        fi
5830        if test -z "$ac_extra"; then
5831           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
5832        else
5833           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
5834        fi
5835      else
5836        ac_cv_f77_mangling="unknown"
5837      fi
5838  else
5839     ac_cv_f77_mangling="unknown"
5840  fi
5841
5842  LIBS=$ac_save_LIBS
5843  rm -rf conftest*
5844  rm -f cfortran_test*
5845else
5846  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848as_fn_error $? "cannot compile a simple Fortran program
5849See \`config.log' for more details" "$LINENO" 5; }
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852
5853fi
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
5855$as_echo "$ac_cv_f77_mangling" >&6; }
5856
5857ac_ext=cpp
5858ac_cpp='$CXXCPP $CPPFLAGS'
5859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5862
5863
5864  # AC_MSG_NOTICE([In COIN_F77_SETUP])
5865
5866# F77_WRAPPERS will trigger the necessary F77 setup macros (F77_MAIN,
5867# F77_LIBRARY_LDFLAGS, etc.)
5868
5869  ac_ext=f
5870ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5871ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5873case $ac_cv_f77_mangling in
5874  "lower case, no underscore, no extra underscore")
5875          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
5876
5877          $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
5878 ;;
5879  "lower case, no underscore, extra underscore")
5880          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
5881
5882          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
5883 ;;
5884  "lower case, underscore, no extra underscore")
5885          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
5886
5887          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
5888 ;;
5889  "lower case, underscore, extra underscore")
5890          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
5891
5892          $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
5893 ;;
5894  "upper case, no underscore, no extra underscore")
5895          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
5896
5897          $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
5898 ;;
5899  "upper case, no underscore, extra underscore")
5900          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
5901
5902          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
5903 ;;
5904  "upper case, underscore, no extra underscore")
5905          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
5906
5907          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
5908 ;;
5909  "upper case, underscore, extra underscore")
5910          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
5911
5912          $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
5913 ;;
5914  *)
5915          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
5916$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5917          ;;
5918esac
5919
5920ac_ext=cpp
5921ac_cpp='$CXXCPP $CPPFLAGS'
5922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5925
5926  ac_ext=f
5927ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5928ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 understands -c and -o together" >&5
5931$as_echo_n "checking whether $F77 understands -c and -o together... " >&6; }
5932if ${ac_cv_prog_f77_c_o+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  cat > conftest.$ac_ext <<_ACEOF
5936      program main
5937
5938      end
5939_ACEOF
5940# We test twice because some compilers refuse to overwrite an existing
5941# `.o' file with `-o', although they will create one.
5942ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5943rm -f conftest2.*
5944if { { case "(($ac_try" in
5945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946  *) ac_try_echo=$ac_try;;
5947esac
5948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5949$as_echo "$ac_try_echo"; } >&5
5950  (eval "$ac_try") 2>&5
5951  ac_status=$?
5952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5953  test $ac_status = 0; } &&
5954     test -f conftest2.$ac_objext &&
5955     { { case "(($ac_try" in
5956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957  *) ac_try_echo=$ac_try;;
5958esac
5959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5960$as_echo "$ac_try_echo"; } >&5
5961  (eval "$ac_try") 2>&5
5962  ac_status=$?
5963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964  test $ac_status = 0; }; then
5965  ac_cv_prog_f77_c_o=yes
5966else
5967  ac_cv_prog_f77_c_o=no
5968fi
5969rm -f conftest*
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_c_o" >&5
5972$as_echo "$ac_cv_prog_f77_c_o" >&6; }
5973if test $ac_cv_prog_f77_c_o = no; then
5974
5975$as_echo "#define F77_NO_MINUS_C_MINUS_O 1" >>confdefs.h
5976
5977fi
5978
5979ac_ext=cpp
5980ac_cpp='$CXXCPP $CPPFLAGS'
5981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5984
5985  if test $ac_cv_prog_f77_c_o = no ; then
5986    F77="$am_aux_dir/compile $F77"
5987  fi
5988  # AC_MSG_NOTICE([Leaving COIN_F77_SETUP])
5989
5990else
5991
5992
5993  # AC_MSG_NOTICE([In COIN_F77_WRAPPERS])
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran name mangling scheme" >&5
5995$as_echo_n "checking Fortran name mangling scheme... " >&6; }
5996if ${ac_cv_f77_mangling+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  ac_save_LIBS=$LIBS
6000     LIBS="-lblas"
6001     for ac_case in "lower case" "upper case" ; do
6002       for ac_trail in "underscore" "no underscore" ; do
6003         for ac_extra in "no extra underscore" "extra underscore" ; do
6004           ac_cv_f77_mangling="${ac_case}, ${ac_trail}, ${ac_extra}"
6005           # AC_MSG_NOTICE([Attempting link for $ac_cv_f77_mangling])
6006           case $ac_case in
6007             "lower case")
6008               ac_name=daxpy
6009               ;;
6010             "upper case")
6011               ac_name=DAXPY
6012               ;;
6013           esac
6014           if test "$ac_trail" = underscore ; then
6015             ac_name=${ac_name}_
6016           fi
6017           # AC_MSG_CHECKING([DAXPY -> $ac_name])
6018           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h.  */
6020#ifdef __cplusplus
6021                  extern "C"
6022                 #endif
6023                 void $ac_name();
6024#ifdef F77_DUMMY_MAIN
6025
6026#  ifdef __cplusplus
6027     extern "C"
6028#  endif
6029   int F77_DUMMY_MAIN() { return 1; }
6030
6031#endif
6032int
6033main ()
6034{
6035$ac_name()
6036  ;
6037  return 0;
6038}
6039_ACEOF
6040if ac_fn_cxx_try_link "$LINENO"; then :
6041  ac_result=success
6042else
6043  ac_result=failure
6044fi
6045rm -f core conftest.err conftest.$ac_objext \
6046    conftest$ac_exeext conftest.$ac_ext
6047           # AC_MSG_RESULT([$result])
6048           if test $ac_result = success ; then
6049             break 3
6050           fi
6051         done
6052       done
6053     done
6054     if test "$ac_result" = "failure" ; then
6055       ac_cv_f77_mangling=unknown
6056       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine correct Fortran name mangling scheme" >&5
6057$as_echo "$as_me: WARNING: Unable to determine correct Fortran name mangling scheme" >&2;}
6058     fi
6059     LIBS=$ac_save_LIBS
6060fi
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
6062$as_echo "$ac_cv_f77_mangling" >&6; }
6063
6064# Invoke the second-level internal autoconf macro _AC_FC_WRAPPERS to give the
6065# functionality of AC_F77_WRAPPERS.
6066
6067  if test "$ac_cv_f77_mangling" != unknown ; then
6068    ac_ext=f
6069ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6070ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6072
6073    case $ac_cv_f77_mangling in
6074  "lower case, no underscore, no extra underscore")
6075          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
6076
6077          $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
6078 ;;
6079  "lower case, no underscore, extra underscore")
6080          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
6081
6082          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
6083 ;;
6084  "lower case, underscore, no extra underscore")
6085          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
6086
6087          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
6088 ;;
6089  "lower case, underscore, extra underscore")
6090          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
6091
6092          $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
6093 ;;
6094  "upper case, no underscore, no extra underscore")
6095          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
6096
6097          $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
6098 ;;
6099  "upper case, no underscore, extra underscore")
6100          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
6101
6102          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6103 ;;
6104  "upper case, underscore, no extra underscore")
6105          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
6106
6107          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6108 ;;
6109  "upper case, underscore, extra underscore")
6110          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
6111
6112          $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
6113 ;;
6114  *)
6115          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
6116$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6117          ;;
6118esac
6119
6120    ac_ext=cpp
6121ac_cpp='$CXXCPP $CPPFLAGS'
6122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6125
6126  fi
6127  # AC_MSG_NOTICE([Done COIN_F77_WRAPPERS])
6128
6129fi
6130
6131# Initialize libtool
6132
6133case `pwd` in
6134  *\ * | *\     *)
6135    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6136$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6137esac
6138
6139
6140
6141macro_version='2.4.6'
6142macro_revision='2.4.6'
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156ltmain=$ac_aux_dir/ltmain.sh
6157
6158# Backslashify metacharacters that are still active within
6159# double-quoted strings.
6160sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6161
6162# Same as above, but do not quote variable references.
6163double_quote_subst='s/\(["`\\]\)/\\\1/g'
6164
6165# Sed substitution to delay expansion of an escaped shell variable in a
6166# double_quote_subst'ed string.
6167delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6168
6169# Sed substitution to delay expansion of an escaped single quote.
6170delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6171
6172# Sed substitution to avoid accidental globbing in evaled expressions
6173no_glob_subst='s/\*/\\\*/g'
6174
6175ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6176ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6177ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6178
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6180$as_echo_n "checking how to print strings... " >&6; }
6181# Test print first, because it will be a builtin if present.
6182if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6183   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6184  ECHO='print -r --'
6185elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6186  ECHO='printf %s\n'
6187else
6188  # Use this function as a fallback that always works.
6189  func_fallback_echo ()
6190  {
6191    eval 'cat <<_LTECHO_EOF
6192$1
6193_LTECHO_EOF'
6194  }
6195  ECHO='func_fallback_echo'
6196fi
6197
6198# func_echo_all arg...
6199# Invoke $ECHO with all args, space-separated.
6200func_echo_all ()
6201{
6202    $ECHO ""
6203}
6204
6205case $ECHO in
6206  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6207$as_echo "printf" >&6; } ;;
6208  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6209$as_echo "print -r" >&6; } ;;
6210  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6211$as_echo "cat" >&6; } ;;
6212esac
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6228$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6229if ${ac_cv_path_SED+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6233     for ac_i in 1 2 3 4 5 6 7; do
6234       ac_script="$ac_script$as_nl$ac_script"
6235     done
6236     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6237     { ac_script=; unset ac_script;}
6238     if test -z "$SED"; then
6239  ac_path_SED_found=false
6240  # Loop through the user's path and test for each of PROGNAME-LIST
6241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246    for ac_prog in sed gsed; do
6247    for ac_exec_ext in '' $ac_executable_extensions; do
6248      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6249      as_fn_executable_p "$ac_path_SED" || continue
6250# Check for GNU ac_path_SED and select it if it is found.
6251  # Check for GNU $ac_path_SED
6252case `"$ac_path_SED" --version 2>&1` in
6253*GNU*)
6254  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6255*)
6256  ac_count=0
6257  $as_echo_n 0123456789 >"conftest.in"
6258  while :
6259  do
6260    cat "conftest.in" "conftest.in" >"conftest.tmp"
6261    mv "conftest.tmp" "conftest.in"
6262    cp "conftest.in" "conftest.nl"
6263    $as_echo '' >> "conftest.nl"
6264    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6265    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6266    as_fn_arith $ac_count + 1 && ac_count=$as_val
6267    if test $ac_count -gt ${ac_path_SED_max-0}; then
6268      # Best one so far, save it but keep looking for a better one
6269      ac_cv_path_SED="$ac_path_SED"
6270      ac_path_SED_max=$ac_count
6271    fi
6272    # 10*(2^10) chars as input seems more than enough
6273    test $ac_count -gt 10 && break
6274  done
6275  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6276esac
6277
6278      $ac_path_SED_found && break 3
6279    done
6280  done
6281  done
6282IFS=$as_save_IFS
6283  if test -z "$ac_cv_path_SED"; then
6284    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6285  fi
6286else
6287  ac_cv_path_SED=$SED
6288fi
6289
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6292$as_echo "$ac_cv_path_SED" >&6; }
6293 SED="$ac_cv_path_SED"
6294  rm -f conftest.sed
6295
6296test -z "$SED" && SED=sed
6297Xsed="$SED -e 1s/^X//"
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6310$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6311if ${ac_cv_path_GREP+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test -z "$GREP"; then
6315  ac_path_GREP_found=false
6316  # Loop through the user's path and test for each of PROGNAME-LIST
6317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322    for ac_prog in grep ggrep; do
6323    for ac_exec_ext in '' $ac_executable_extensions; do
6324      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6325      as_fn_executable_p "$ac_path_GREP" || continue
6326# Check for GNU ac_path_GREP and select it if it is found.
6327  # Check for GNU $ac_path_GREP
6328case `"$ac_path_GREP" --version 2>&1` in
6329*GNU*)
6330  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6331*)
6332  ac_count=0
6333  $as_echo_n 0123456789 >"conftest.in"
6334  while :
6335  do
6336    cat "conftest.in" "conftest.in" >"conftest.tmp"
6337    mv "conftest.tmp" "conftest.in"
6338    cp "conftest.in" "conftest.nl"
6339    $as_echo 'GREP' >> "conftest.nl"
6340    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6341    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6342    as_fn_arith $ac_count + 1 && ac_count=$as_val
6343    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6344      # Best one so far, save it but keep looking for a better one
6345      ac_cv_path_GREP="$ac_path_GREP"
6346      ac_path_GREP_max=$ac_count
6347    fi
6348    # 10*(2^10) chars as input seems more than enough
6349    test $ac_count -gt 10 && break
6350  done
6351  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6352esac
6353
6354      $ac_path_GREP_found && break 3
6355    done
6356  done
6357  done
6358IFS=$as_save_IFS
6359  if test -z "$ac_cv_path_GREP"; then
6360    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6361  fi
6362else
6363  ac_cv_path_GREP=$GREP
6364fi
6365
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6368$as_echo "$ac_cv_path_GREP" >&6; }
6369 GREP="$ac_cv_path_GREP"
6370
6371
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6373$as_echo_n "checking for egrep... " >&6; }
6374if ${ac_cv_path_EGREP+:} false; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6378   then ac_cv_path_EGREP="$GREP -E"
6379   else
6380     if test -z "$EGREP"; then
6381  ac_path_EGREP_found=false
6382  # Loop through the user's path and test for each of PROGNAME-LIST
6383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6385do
6386  IFS=$as_save_IFS
6387  test -z "$as_dir" && as_dir=.
6388    for ac_prog in egrep; do
6389    for ac_exec_ext in '' $ac_executable_extensions; do
6390      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6391      as_fn_executable_p "$ac_path_EGREP" || continue
6392# Check for GNU ac_path_EGREP and select it if it is found.
6393  # Check for GNU $ac_path_EGREP
6394case `"$ac_path_EGREP" --version 2>&1` in
6395*GNU*)
6396  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6397*)
6398  ac_count=0
6399  $as_echo_n 0123456789 >"conftest.in"
6400  while :
6401  do
6402    cat "conftest.in" "conftest.in" >"conftest.tmp"
6403    mv "conftest.tmp" "conftest.in"
6404    cp "conftest.in" "conftest.nl"
6405    $as_echo 'EGREP' >> "conftest.nl"
6406    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6407    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6408    as_fn_arith $ac_count + 1 && ac_count=$as_val
6409    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6410      # Best one so far, save it but keep looking for a better one
6411      ac_cv_path_EGREP="$ac_path_EGREP"
6412      ac_path_EGREP_max=$ac_count
6413    fi
6414    # 10*(2^10) chars as input seems more than enough
6415    test $ac_count -gt 10 && break
6416  done
6417  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6418esac
6419
6420      $ac_path_EGREP_found && break 3
6421    done
6422  done
6423  done
6424IFS=$as_save_IFS
6425  if test -z "$ac_cv_path_EGREP"; then
6426    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6427  fi
6428else
6429  ac_cv_path_EGREP=$EGREP
6430fi
6431
6432   fi
6433fi
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6435$as_echo "$ac_cv_path_EGREP" >&6; }
6436 EGREP="$ac_cv_path_EGREP"
6437
6438
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6440$as_echo_n "checking for fgrep... " >&6; }
6441if ${ac_cv_path_FGREP+:} false; then :
6442  $as_echo_n "(cached) " >&6
6443else
6444  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6445   then ac_cv_path_FGREP="$GREP -F"
6446   else
6447     if test -z "$FGREP"; then
6448  ac_path_FGREP_found=false
6449  # Loop through the user's path and test for each of PROGNAME-LIST
6450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6452do
6453  IFS=$as_save_IFS
6454  test -z "$as_dir" && as_dir=.
6455    for ac_prog in fgrep; do
6456    for ac_exec_ext in '' $ac_executable_extensions; do
6457      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6458      as_fn_executable_p "$ac_path_FGREP" || continue
6459# Check for GNU ac_path_FGREP and select it if it is found.
6460  # Check for GNU $ac_path_FGREP
6461case `"$ac_path_FGREP" --version 2>&1` in
6462*GNU*)
6463  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6464*)
6465  ac_count=0
6466  $as_echo_n 0123456789 >"conftest.in"
6467  while :
6468  do
6469    cat "conftest.in" "conftest.in" >"conftest.tmp"
6470    mv "conftest.tmp" "conftest.in"
6471    cp "conftest.in" "conftest.nl"
6472    $as_echo 'FGREP' >> "conftest.nl"
6473    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6474    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6475    as_fn_arith $ac_count + 1 && ac_count=$as_val
6476    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6477      # Best one so far, save it but keep looking for a better one
6478      ac_cv_path_FGREP="$ac_path_FGREP"
6479      ac_path_FGREP_max=$ac_count
6480    fi
6481    # 10*(2^10) chars as input seems more than enough
6482    test $ac_count -gt 10 && break
6483  done
6484  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6485esac
6486
6487      $ac_path_FGREP_found && break 3
6488    done
6489  done
6490  done
6491IFS=$as_save_IFS
6492  if test -z "$ac_cv_path_FGREP"; then
6493    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6494  fi
6495else
6496  ac_cv_path_FGREP=$FGREP
6497fi
6498
6499   fi
6500fi
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6502$as_echo "$ac_cv_path_FGREP" >&6; }
6503 FGREP="$ac_cv_path_FGREP"
6504
6505
6506test -z "$GREP" && GREP=grep
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526# Check whether --with-gnu-ld was given.
6527if test "${with_gnu_ld+set}" = set; then :
6528  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6529else
6530  with_gnu_ld=no
6531fi
6532
6533ac_prog=ld
6534if test yes = "$GCC"; then
6535  # Check if gcc -print-prog-name=ld gives a path.
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6537$as_echo_n "checking for ld used by $CC... " >&6; }
6538  case $host in
6539  *-*-mingw*)
6540    # gcc leaves a trailing carriage return, which upsets mingw
6541    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6542  *)
6543    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6544  esac
6545  case $ac_prog in
6546    # Accept absolute paths.
6547    [\\/]* | ?:[\\/]*)
6548      re_direlt='/[^/][^/]*/\.\./'
6549      # Canonicalize the pathname of ld
6550      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6551      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6552        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6553      done
6554      test -z "$LD" && LD=$ac_prog
6555      ;;
6556  "")
6557    # If it fails, then pretend we aren't using GCC.
6558    ac_prog=ld
6559    ;;
6560  *)
6561    # If it is relative, then search for the first ld in PATH.
6562    with_gnu_ld=unknown
6563    ;;
6564  esac
6565elif test yes = "$with_gnu_ld"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6567$as_echo_n "checking for GNU ld... " >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6570$as_echo_n "checking for non-GNU ld... " >&6; }
6571fi
6572if ${lt_cv_path_LD+:} false; then :
6573  $as_echo_n "(cached) " >&6
6574else
6575  if test -z "$LD"; then
6576  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6577  for ac_dir in $PATH; do
6578    IFS=$lt_save_ifs
6579    test -z "$ac_dir" && ac_dir=.
6580    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6581      lt_cv_path_LD=$ac_dir/$ac_prog
6582      # Check to see if the program is GNU ld.  I'd rather use --version,
6583      # but apparently some variants of GNU ld only accept -v.
6584      # Break only if it was the GNU/non-GNU ld that we prefer.
6585      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6586      *GNU* | *'with BFD'*)
6587        test no != "$with_gnu_ld" && break
6588        ;;
6589      *)
6590        test yes != "$with_gnu_ld" && break
6591        ;;
6592      esac
6593    fi
6594  done
6595  IFS=$lt_save_ifs
6596else
6597  lt_cv_path_LD=$LD # Let the user override the test with a path.
6598fi
6599fi
6600
6601LD=$lt_cv_path_LD
6602if test -n "$LD"; then
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6604$as_echo "$LD" >&6; }
6605else
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607$as_echo "no" >&6; }
6608fi
6609test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6611$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6612if ${lt_cv_prog_gnu_ld+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6616case `$LD -v 2>&1 </dev/null` in
6617*GNU* | *'with BFD'*)
6618  lt_cv_prog_gnu_ld=yes
6619  ;;
6620*)
6621  lt_cv_prog_gnu_ld=no
6622  ;;
6623esac
6624fi
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6626$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6627with_gnu_ld=$lt_cv_prog_gnu_ld
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6638$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6639if ${lt_cv_path_NM+:} false; then :
6640  $as_echo_n "(cached) " >&6
6641else
6642  if test -n "$NM"; then
6643  # Let the user override the test.
6644  lt_cv_path_NM=$NM
6645else
6646  lt_nm_to_check=${ac_tool_prefix}nm
6647  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6648    lt_nm_to_check="$lt_nm_to_check nm"
6649  fi
6650  for lt_tmp_nm in $lt_nm_to_check; do
6651    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6652    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6653      IFS=$lt_save_ifs
6654      test -z "$ac_dir" && ac_dir=.
6655      tmp_nm=$ac_dir/$lt_tmp_nm
6656      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6657        # Check to see if the nm accepts a BSD-compat flag.
6658        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6659        #   nm: unknown option "B" ignored
6660        # Tru64's nm complains that /dev/null is an invalid object file
6661        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6662        case $build_os in
6663        mingw*) lt_bad_file=conftest.nm/nofile ;;
6664        *) lt_bad_file=/dev/null ;;
6665        esac
6666        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6667        *$lt_bad_file* | *'Invalid file or object type'*)
6668          lt_cv_path_NM="$tmp_nm -B"
6669          break 2
6670          ;;
6671        *)
6672          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6673          */dev/null*)
6674            lt_cv_path_NM="$tmp_nm -p"
6675            break 2
6676            ;;
6677          *)
6678            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6679            continue # so that we can try to find one that supports BSD flags
6680            ;;
6681          esac
6682          ;;
6683        esac
6684      fi
6685    done
6686    IFS=$lt_save_ifs
6687  done
6688  : ${lt_cv_path_NM=no}
6689fi
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6692$as_echo "$lt_cv_path_NM" >&6; }
6693if test no != "$lt_cv_path_NM"; then
6694  NM=$lt_cv_path_NM
6695else
6696  # Didn't find any BSD compatible name lister, look for dumpbin.
6697  if test -n "$DUMPBIN"; then :
6698    # Let the user override the test.
6699  else
6700    if test -n "$ac_tool_prefix"; then
6701  for ac_prog in dumpbin "link -dump"
6702  do
6703    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6704set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706$as_echo_n "checking for $ac_word... " >&6; }
6707if ${ac_cv_prog_DUMPBIN+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710  if test -n "$DUMPBIN"; then
6711  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6712else
6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716  IFS=$as_save_IFS
6717  test -z "$as_dir" && as_dir=.
6718    for ac_exec_ext in '' $ac_executable_extensions; do
6719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722    break 2
6723  fi
6724done
6725  done
6726IFS=$as_save_IFS
6727
6728fi
6729fi
6730DUMPBIN=$ac_cv_prog_DUMPBIN
6731if test -n "$DUMPBIN"; then
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6733$as_echo "$DUMPBIN" >&6; }
6734else
6735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736$as_echo "no" >&6; }
6737fi
6738
6739
6740    test -n "$DUMPBIN" && break
6741  done
6742fi
6743if test -z "$DUMPBIN"; then
6744  ac_ct_DUMPBIN=$DUMPBIN
6745  for ac_prog in dumpbin "link -dump"
6746do
6747  # Extract the first word of "$ac_prog", so it can be a program name with args.
6748set dummy $ac_prog; ac_word=$2
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750$as_echo_n "checking for $ac_word... " >&6; }
6751if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  if test -n "$ac_ct_DUMPBIN"; then
6755  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760  IFS=$as_save_IFS
6761  test -z "$as_dir" && as_dir=.
6762    for ac_exec_ext in '' $ac_executable_extensions; do
6763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766    break 2
6767  fi
6768done
6769  done
6770IFS=$as_save_IFS
6771
6772fi
6773fi
6774ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6775if test -n "$ac_ct_DUMPBIN"; then
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6777$as_echo "$ac_ct_DUMPBIN" >&6; }
6778else
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783
6784  test -n "$ac_ct_DUMPBIN" && break
6785done
6786
6787  if test "x$ac_ct_DUMPBIN" = x; then
6788    DUMPBIN=":"
6789  else
6790    case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794ac_tool_warned=yes ;;
6795esac
6796    DUMPBIN=$ac_ct_DUMPBIN
6797  fi
6798fi
6799
6800    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6801    *COFF*)
6802      DUMPBIN="$DUMPBIN -symbols -headers"
6803      ;;
6804    *)
6805      DUMPBIN=:
6806      ;;
6807    esac
6808  fi
6809
6810  if test : != "$DUMPBIN"; then
6811    NM=$DUMPBIN
6812  fi
6813fi
6814test -z "$NM" && NM=nm
6815
6816
6817
6818
6819
6820
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6822$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6823if ${lt_cv_nm_interface+:} false; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  lt_cv_nm_interface="BSD nm"
6827  echo "int some_variable = 0;" > conftest.$ac_ext
6828  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6829  (eval "$ac_compile" 2>conftest.err)
6830  cat conftest.err >&5
6831  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6832  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6833  cat conftest.err >&5
6834  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6835  cat conftest.out >&5
6836  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6837    lt_cv_nm_interface="MS dumpbin"
6838  fi
6839  rm -f conftest*
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6842$as_echo "$lt_cv_nm_interface" >&6; }
6843
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6845$as_echo_n "checking whether ln -s works... " >&6; }
6846LN_S=$as_ln_s
6847if test "$LN_S" = "ln -s"; then
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6849$as_echo "yes" >&6; }
6850else
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6852$as_echo "no, using $LN_S" >&6; }
6853fi
6854
6855# find the maximum length of command line arguments
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6857$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6858if ${lt_cv_sys_max_cmd_len+:} false; then :
6859  $as_echo_n "(cached) " >&6
6860else
6861    i=0
6862  teststring=ABCD
6863
6864  case $build_os in
6865  msdosdjgpp*)
6866    # On DJGPP, this test can blow up pretty badly due to problems in libc
6867    # (any single argument exceeding 2000 bytes causes a buffer overrun
6868    # during glob expansion).  Even if it were fixed, the result of this
6869    # check would be larger than it should be.
6870    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6871    ;;
6872
6873  gnu*)
6874    # Under GNU Hurd, this test is not required because there is
6875    # no limit to the length of command line arguments.
6876    # Libtool will interpret -1 as no limit whatsoever
6877    lt_cv_sys_max_cmd_len=-1;
6878    ;;
6879
6880  cygwin* | mingw* | cegcc*)
6881    # On Win9x/ME, this test blows up -- it succeeds, but takes
6882    # about 5 minutes as the teststring grows exponentially.
6883    # Worse, since 9x/ME are not pre-emptively multitasking,
6884    # you end up with a "frozen" computer, even though with patience
6885    # the test eventually succeeds (with a max line length of 256k).
6886    # Instead, let's just punt: use the minimum linelength reported by
6887    # all of the supported platforms: 8192 (on NT/2K/XP).
6888    lt_cv_sys_max_cmd_len=8192;
6889    ;;
6890
6891  mint*)
6892    # On MiNT this can take a long time and run out of memory.
6893    lt_cv_sys_max_cmd_len=8192;
6894    ;;
6895
6896  amigaos*)
6897    # On AmigaOS with pdksh, this test takes hours, literally.
6898    # So we just punt and use a minimum line length of 8192.
6899    lt_cv_sys_max_cmd_len=8192;
6900    ;;
6901
6902  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6903    # This has been around since 386BSD, at least.  Likely further.
6904    if test -x /sbin/sysctl; then
6905      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6906    elif test -x /usr/sbin/sysctl; then
6907      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6908    else
6909      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6910    fi
6911    # And add a safety zone
6912    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6913    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6914    ;;
6915
6916  interix*)
6917    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6918    lt_cv_sys_max_cmd_len=196608
6919    ;;
6920
6921  os2*)
6922    # The test takes a long time on OS/2.
6923    lt_cv_sys_max_cmd_len=8192
6924    ;;
6925
6926  osf*)
6927    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6928    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6929    # nice to cause kernel panics so lets avoid the loop below.
6930    # First set a reasonable default.
6931    lt_cv_sys_max_cmd_len=16384
6932    #
6933    if test -x /sbin/sysconfig; then
6934      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6935        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6936      esac
6937    fi
6938    ;;
6939  sco3.2v5*)
6940    lt_cv_sys_max_cmd_len=102400
6941    ;;
6942  sysv5* | sco5v6* | sysv4.2uw2*)
6943    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6944    if test -n "$kargmax"; then
6945      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6946    else
6947      lt_cv_sys_max_cmd_len=32768
6948    fi
6949    ;;
6950  *)
6951    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6952    if test -n "$lt_cv_sys_max_cmd_len" && \
6953       test undefined != "$lt_cv_sys_max_cmd_len"; then
6954      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6955      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6956    else
6957      # Make teststring a little bigger before we do anything with it.
6958      # a 1K string should be a reasonable start.
6959      for i in 1 2 3 4 5 6 7 8; do
6960        teststring=$teststring$teststring
6961      done
6962      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6963      # If test is not a shell built-in, we'll probably end up computing a
6964      # maximum length that is only half of the actual maximum length, but
6965      # we can't tell.
6966      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6967                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6968              test 17 != "$i" # 1/2 MB should be enough
6969      do
6970        i=`expr $i + 1`
6971        teststring=$teststring$teststring
6972      done
6973      # Only check the string length outside the loop.
6974      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6975      teststring=
6976      # Add a significant safety factor because C++ compilers can tack on
6977      # massive amounts of additional arguments before passing them to the
6978      # linker.  It appears as though 1/2 is a usable value.
6979      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6980    fi
6981    ;;
6982  esac
6983
6984fi
6985
6986if test -n "$lt_cv_sys_max_cmd_len"; then
6987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6988$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6989else
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6991$as_echo "none" >&6; }
6992fi
6993max_cmd_len=$lt_cv_sys_max_cmd_len
6994
6995
6996
6997
6998
6999
7000: ${CP="cp -f"}
7001: ${MV="mv -f"}
7002: ${RM="rm -f"}
7003
7004if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7005  lt_unset=unset
7006else
7007  lt_unset=false
7008fi
7009
7010
7011
7012
7013
7014# test EBCDIC or ASCII
7015case `echo X|tr X '\101'` in
7016 A) # ASCII based system
7017    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7018  lt_SP2NL='tr \040 \012'
7019  lt_NL2SP='tr \015\012 \040\040'
7020  ;;
7021 *) # EBCDIC based system
7022  lt_SP2NL='tr \100 \n'
7023  lt_NL2SP='tr \r\n \100\100'
7024  ;;
7025esac
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7036$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7037if ${lt_cv_to_host_file_cmd+:} false; then :
7038  $as_echo_n "(cached) " >&6
7039else
7040  case $host in
7041  *-*-mingw* )
7042    case $build in
7043      *-*-mingw* ) # actually msys
7044        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7045        ;;
7046      *-*-cygwin* )
7047        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7048        ;;
7049      * ) # otherwise, assume *nix
7050        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7051        ;;
7052    esac
7053    ;;
7054  *-*-cygwin* )
7055    case $build in
7056      *-*-mingw* ) # actually msys
7057        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7058        ;;
7059      *-*-cygwin* )
7060        lt_cv_to_host_file_cmd=func_convert_file_noop
7061        ;;
7062      * ) # otherwise, assume *nix
7063        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7064        ;;
7065    esac
7066    ;;
7067  * ) # unhandled hosts (and "normal" native builds)
7068    lt_cv_to_host_file_cmd=func_convert_file_noop
7069    ;;
7070esac
7071
7072fi
7073
7074to_host_file_cmd=$lt_cv_to_host_file_cmd
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7076$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7077
7078
7079
7080
7081
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7083$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7084if ${lt_cv_to_tool_file_cmd+:} false; then :
7085  $as_echo_n "(cached) " >&6
7086else
7087  #assume ordinary cross tools, or native build.
7088lt_cv_to_tool_file_cmd=func_convert_file_noop
7089case $host in
7090  *-*-mingw* )
7091    case $build in
7092      *-*-mingw* ) # actually msys
7093        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7094        ;;
7095    esac
7096    ;;
7097esac
7098
7099fi
7100
7101to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7103$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7104
7105
7106
7107
7108
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7110$as_echo_n "checking for $LD option to reload object files... " >&6; }
7111if ${lt_cv_ld_reload_flag+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114  lt_cv_ld_reload_flag='-r'
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7117$as_echo "$lt_cv_ld_reload_flag" >&6; }
7118reload_flag=$lt_cv_ld_reload_flag
7119case $reload_flag in
7120"" | " "*) ;;
7121*) reload_flag=" $reload_flag" ;;
7122esac
7123reload_cmds='$LD$reload_flag -o $output$reload_objs'
7124case $host_os in
7125  cygwin* | mingw* | pw32* | cegcc*)
7126    if test yes != "$GCC"; then
7127      reload_cmds=false
7128    fi
7129    ;;
7130  darwin*)
7131    if test yes = "$GCC"; then
7132      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7133    else
7134      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7135    fi
7136    ;;
7137esac
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147if test -n "$ac_tool_prefix"; then
7148  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}objdump; ac_word=$2
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if ${ac_cv_prog_OBJDUMP+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  if test -n "$OBJDUMP"; then
7156  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161  IFS=$as_save_IFS
7162  test -z "$as_dir" && as_dir=.
7163    for ac_exec_ext in '' $ac_executable_extensions; do
7164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167    break 2
7168  fi
7169done
7170  done
7171IFS=$as_save_IFS
7172
7173fi
7174fi
7175OBJDUMP=$ac_cv_prog_OBJDUMP
7176if test -n "$OBJDUMP"; then
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7178$as_echo "$OBJDUMP" >&6; }
7179else
7180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
7182fi
7183
7184
7185fi
7186if test -z "$ac_cv_prog_OBJDUMP"; then
7187  ac_ct_OBJDUMP=$OBJDUMP
7188  # Extract the first word of "objdump", so it can be a program name with args.
7189set dummy objdump; ac_word=$2
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  if test -n "$ac_ct_OBJDUMP"; then
7196  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201  IFS=$as_save_IFS
7202  test -z "$as_dir" && as_dir=.
7203    for ac_exec_ext in '' $ac_executable_extensions; do
7204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207    break 2
7208  fi
7209done
7210  done
7211IFS=$as_save_IFS
7212
7213fi
7214fi
7215ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7216if test -n "$ac_ct_OBJDUMP"; then
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7218$as_echo "$ac_ct_OBJDUMP" >&6; }
7219else
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
7222fi
7223
7224  if test "x$ac_ct_OBJDUMP" = x; then
7225    OBJDUMP="false"
7226  else
7227    case $cross_compiling:$ac_tool_warned in
7228yes:)
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233    OBJDUMP=$ac_ct_OBJDUMP
7234  fi
7235else
7236  OBJDUMP="$ac_cv_prog_OBJDUMP"
7237fi
7238
7239test -z "$OBJDUMP" && OBJDUMP=objdump
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7250$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7251if ${lt_cv_deplibs_check_method+:} false; then :
7252  $as_echo_n "(cached) " >&6
7253else
7254  lt_cv_file_magic_cmd='$MAGIC_CMD'
7255lt_cv_file_magic_test_file=
7256lt_cv_deplibs_check_method='unknown'
7257# Need to set the preceding variable on all platforms that support
7258# interlibrary dependencies.
7259# 'none' -- dependencies not supported.
7260# 'unknown' -- same as none, but documents that we really don't know.
7261# 'pass_all' -- all dependencies passed with no checks.
7262# 'test_compile' -- check by making test program.
7263# 'file_magic [[regex]]' -- check by looking for files in library path
7264# that responds to the $file_magic_cmd with a given extended regex.
7265# If you have 'file' or equivalent on your system and you're not sure
7266# whether 'pass_all' will *always* work, you probably want this one.
7267
7268case $host_os in
7269aix[4-9]*)
7270  lt_cv_deplibs_check_method=pass_all
7271  ;;
7272
7273beos*)
7274  lt_cv_deplibs_check_method=pass_all
7275  ;;
7276
7277bsdi[45]*)
7278  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7279  lt_cv_file_magic_cmd='/usr/bin/file -L'
7280  lt_cv_file_magic_test_file=/shlib/libc.so
7281  ;;
7282
7283cygwin*)
7284  # func_win32_libid is a shell function defined in ltmain.sh
7285  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7286  lt_cv_file_magic_cmd='func_win32_libid'
7287  ;;
7288
7289mingw* | pw32*)
7290  # Base MSYS/MinGW do not provide the 'file' command needed by
7291  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7292  # unless we find 'file', for example because we are cross-compiling.
7293  if ( file / ) >/dev/null 2>&1; then
7294    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7295    lt_cv_file_magic_cmd='func_win32_libid'
7296  else
7297    # Keep this pattern in sync with the one in func_win32_libid.
7298    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7299    lt_cv_file_magic_cmd='$OBJDUMP -f'
7300  fi
7301  ;;
7302
7303cegcc*)
7304  # use the weaker test based on 'objdump'. See mingw*.
7305  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7306  lt_cv_file_magic_cmd='$OBJDUMP -f'
7307  ;;
7308
7309darwin* | rhapsody*)
7310  lt_cv_deplibs_check_method=pass_all
7311  ;;
7312
7313freebsd* | dragonfly*)
7314  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7315    case $host_cpu in
7316    i*86 )
7317      # Not sure whether the presence of OpenBSD here was a mistake.
7318      # Let's accept both of them until this is cleared up.
7319      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7320      lt_cv_file_magic_cmd=/usr/bin/file
7321      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7322      ;;
7323    esac
7324  else
7325    lt_cv_deplibs_check_method=pass_all
7326  fi
7327  ;;
7328
7329haiku*)
7330  lt_cv_deplibs_check_method=pass_all
7331  ;;
7332
7333hpux10.20* | hpux11*)
7334  lt_cv_file_magic_cmd=/usr/bin/file
7335  case $host_cpu in
7336  ia64*)
7337    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7338    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7339    ;;
7340  hppa*64*)
7341    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7342    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7343    ;;
7344  *)
7345    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7346    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7347    ;;
7348  esac
7349  ;;
7350
7351interix[3-9]*)
7352  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7353  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7354  ;;
7355
7356irix5* | irix6* | nonstopux*)
7357  case $LD in
7358  *-32|*"-32 ") libmagic=32-bit;;
7359  *-n32|*"-n32 ") libmagic=N32;;
7360  *-64|*"-64 ") libmagic=64-bit;;
7361  *) libmagic=never-match;;
7362  esac
7363  lt_cv_deplibs_check_method=pass_all
7364  ;;
7365
7366# This must be glibc/ELF.
7367linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7368  lt_cv_deplibs_check_method=pass_all
7369  ;;
7370
7371netbsd*)
7372  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7374  else
7375    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7376  fi
7377  ;;
7378
7379newos6*)
7380  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7381  lt_cv_file_magic_cmd=/usr/bin/file
7382  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7383  ;;
7384
7385*nto* | *qnx*)
7386  lt_cv_deplibs_check_method=pass_all
7387  ;;
7388
7389openbsd* | bitrig*)
7390  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7392  else
7393    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7394  fi
7395  ;;
7396
7397osf3* | osf4* | osf5*)
7398  lt_cv_deplibs_check_method=pass_all
7399  ;;
7400
7401rdos*)
7402  lt_cv_deplibs_check_method=pass_all
7403  ;;
7404
7405solaris*)
7406  lt_cv_deplibs_check_method=pass_all
7407  ;;
7408
7409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7410  lt_cv_deplibs_check_method=pass_all
7411  ;;
7412
7413sysv4 | sysv4.3*)
7414  case $host_vendor in
7415  motorola)
7416    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]'
7417    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7418    ;;
7419  ncr)
7420    lt_cv_deplibs_check_method=pass_all
7421    ;;
7422  sequent)
7423    lt_cv_file_magic_cmd='/bin/file'
7424    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7425    ;;
7426  sni)
7427    lt_cv_file_magic_cmd='/bin/file'
7428    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7429    lt_cv_file_magic_test_file=/lib/libc.so
7430    ;;
7431  siemens)
7432    lt_cv_deplibs_check_method=pass_all
7433    ;;
7434  pc)
7435    lt_cv_deplibs_check_method=pass_all
7436    ;;
7437  esac
7438  ;;
7439
7440tpf*)
7441  lt_cv_deplibs_check_method=pass_all
7442  ;;
7443os2*)
7444  lt_cv_deplibs_check_method=pass_all
7445  ;;
7446esac
7447
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7450$as_echo "$lt_cv_deplibs_check_method" >&6; }
7451
7452file_magic_glob=
7453want_nocaseglob=no
7454if test "$build" = "$host"; then
7455  case $host_os in
7456  mingw* | pw32*)
7457    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7458      want_nocaseglob=yes
7459    else
7460      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7461    fi
7462    ;;
7463  esac
7464fi
7465
7466file_magic_cmd=$lt_cv_file_magic_cmd
7467deplibs_check_method=$lt_cv_deplibs_check_method
7468test -z "$deplibs_check_method" && deplibs_check_method=unknown
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491if test -n "$ac_tool_prefix"; then
7492  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7493set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495$as_echo_n "checking for $ac_word... " >&6; }
7496if ${ac_cv_prog_DLLTOOL+:} false; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  if test -n "$DLLTOOL"; then
7500  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7501else
7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505  IFS=$as_save_IFS
7506  test -z "$as_dir" && as_dir=.
7507    for ac_exec_ext in '' $ac_executable_extensions; do
7508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511    break 2
7512  fi
7513done
7514  done
7515IFS=$as_save_IFS
7516
7517fi
7518fi
7519DLLTOOL=$ac_cv_prog_DLLTOOL
7520if test -n "$DLLTOOL"; then
7521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7522$as_echo "$DLLTOOL" >&6; }
7523else
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525$as_echo "no" >&6; }
7526fi
7527
7528
7529fi
7530if test -z "$ac_cv_prog_DLLTOOL"; then
7531  ac_ct_DLLTOOL=$DLLTOOL
7532  # Extract the first word of "dlltool", so it can be a program name with args.
7533set dummy dlltool; ac_word=$2
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535$as_echo_n "checking for $ac_word... " >&6; }
7536if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  if test -n "$ac_ct_DLLTOOL"; then
7540  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7541else
7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545  IFS=$as_save_IFS
7546  test -z "$as_dir" && as_dir=.
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551    break 2
7552  fi
7553done
7554  done
7555IFS=$as_save_IFS
7556
7557fi
7558fi
7559ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7560if test -n "$ac_ct_DLLTOOL"; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7562$as_echo "$ac_ct_DLLTOOL" >&6; }
7563else
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
7566fi
7567
7568  if test "x$ac_ct_DLLTOOL" = x; then
7569    DLLTOOL="false"
7570  else
7571    case $cross_compiling:$ac_tool_warned in
7572yes:)
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575ac_tool_warned=yes ;;
7576esac
7577    DLLTOOL=$ac_ct_DLLTOOL
7578  fi
7579else
7580  DLLTOOL="$ac_cv_prog_DLLTOOL"
7581fi
7582
7583test -z "$DLLTOOL" && DLLTOOL=dlltool
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7595$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7596if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7597  $as_echo_n "(cached) " >&6
7598else
7599  lt_cv_sharedlib_from_linklib_cmd='unknown'
7600
7601case $host_os in
7602cygwin* | mingw* | pw32* | cegcc*)
7603  # two different shell functions defined in ltmain.sh;
7604  # decide which one to use based on capabilities of $DLLTOOL
7605  case `$DLLTOOL --help 2>&1` in
7606  *--identify-strict*)
7607    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7608    ;;
7609  *)
7610    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7611    ;;
7612  esac
7613  ;;
7614*)
7615  # fallback: assume linklib IS sharedlib
7616  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7617  ;;
7618esac
7619
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7622$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7623sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7624test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7625
7626
7627
7628
7629
7630
7631
7632if test -n "$ac_tool_prefix"; then
7633  for ac_prog in ar
7634  do
7635    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
7639if ${ac_cv_prog_AR+:} false; then :
7640  $as_echo_n "(cached) " >&6
7641else
7642  if test -n "$AR"; then
7643  ac_cv_prog_AR="$AR" # Let the user override the test.
7644else
7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648  IFS=$as_save_IFS
7649  test -z "$as_dir" && as_dir=.
7650    for ac_exec_ext in '' $ac_executable_extensions; do
7651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654    break 2
7655  fi
7656done
7657  done
7658IFS=$as_save_IFS
7659
7660fi
7661fi
7662AR=$ac_cv_prog_AR
7663if test -n "$AR"; then
7664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7665$as_echo "$AR" >&6; }
7666else
7667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
7669fi
7670
7671
7672    test -n "$AR" && break
7673  done
7674fi
7675if test -z "$AR"; then
7676  ac_ct_AR=$AR
7677  for ac_prog in ar
7678do
7679  # Extract the first word of "$ac_prog", so it can be a program name with args.
7680set dummy $ac_prog; ac_word=$2
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682$as_echo_n "checking for $ac_word... " >&6; }
7683if ${ac_cv_prog_ac_ct_AR+:} false; then :
7684  $as_echo_n "(cached) " >&6
7685else
7686  if test -n "$ac_ct_AR"; then
7687  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7688else
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692  IFS=$as_save_IFS
7693  test -z "$as_dir" && as_dir=.
7694    for ac_exec_ext in '' $ac_executable_extensions; do
7695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696    ac_cv_prog_ac_ct_AR="$ac_prog"
7697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698    break 2
7699  fi
7700done
7701  done
7702IFS=$as_save_IFS
7703
7704fi
7705fi
7706ac_ct_AR=$ac_cv_prog_ac_ct_AR
7707if test -n "$ac_ct_AR"; then
7708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7709$as_echo "$ac_ct_AR" >&6; }
7710else
7711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713fi
7714
7715
7716  test -n "$ac_ct_AR" && break
7717done
7718
7719  if test "x$ac_ct_AR" = x; then
7720    AR="false"
7721  else
7722    case $cross_compiling:$ac_tool_warned in
7723yes:)
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726ac_tool_warned=yes ;;
7727esac
7728    AR=$ac_ct_AR
7729  fi
7730fi
7731
7732: ${AR=ar}
7733: ${AR_FLAGS=cru}
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7746$as_echo_n "checking for archiver @FILE support... " >&6; }
7747if ${lt_cv_ar_at_file+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  lt_cv_ar_at_file=no
7751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h.  */
7753
7754#ifdef F77_DUMMY_MAIN
7755
7756#  ifdef __cplusplus
7757     extern "C"
7758#  endif
7759   int F77_DUMMY_MAIN() { return 1; }
7760
7761#endif
7762int
7763main ()
7764{
7765
7766  ;
7767  return 0;
7768}
7769_ACEOF
7770if ac_fn_cxx_try_compile "$LINENO"; then :
7771  echo conftest.$ac_objext > conftest.lst
7772      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7773      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7774  (eval $lt_ar_try) 2>&5
7775  ac_status=$?
7776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777  test $ac_status = 0; }
7778      if test 0 -eq "$ac_status"; then
7779        # Ensure the archiver fails upon bogus file names.
7780        rm -f conftest.$ac_objext libconftest.a
7781        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7782  (eval $lt_ar_try) 2>&5
7783  ac_status=$?
7784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785  test $ac_status = 0; }
7786        if test 0 -ne "$ac_status"; then
7787          lt_cv_ar_at_file=@
7788        fi
7789      fi
7790      rm -f conftest.* libconftest.a
7791
7792fi
7793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7797$as_echo "$lt_cv_ar_at_file" >&6; }
7798
7799if test no = "$lt_cv_ar_at_file"; then
7800  archiver_list_spec=
7801else
7802  archiver_list_spec=$lt_cv_ar_at_file
7803fi
7804
7805
7806
7807
7808
7809
7810
7811if test -n "$ac_tool_prefix"; then
7812  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7813set dummy ${ac_tool_prefix}strip; ac_word=$2
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
7816if ${ac_cv_prog_STRIP+:} false; then :
7817  $as_echo_n "(cached) " >&6
7818else
7819  if test -n "$STRIP"; then
7820  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825  IFS=$as_save_IFS
7826  test -z "$as_dir" && as_dir=.
7827    for ac_exec_ext in '' $ac_executable_extensions; do
7828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831    break 2
7832  fi
7833done
7834  done
7835IFS=$as_save_IFS
7836
7837fi
7838fi
7839STRIP=$ac_cv_prog_STRIP
7840if test -n "$STRIP"; then
7841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7842$as_echo "$STRIP" >&6; }
7843else
7844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
7846fi
7847
7848
7849fi
7850if test -z "$ac_cv_prog_STRIP"; then
7851  ac_ct_STRIP=$STRIP
7852  # Extract the first word of "strip", so it can be a program name with args.
7853set dummy strip; ac_word=$2
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855$as_echo_n "checking for $ac_word... " >&6; }
7856if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7857  $as_echo_n "(cached) " >&6
7858else
7859  if test -n "$ac_ct_STRIP"; then
7860  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865  IFS=$as_save_IFS
7866  test -z "$as_dir" && as_dir=.
7867    for ac_exec_ext in '' $ac_executable_extensions; do
7868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869    ac_cv_prog_ac_ct_STRIP="strip"
7870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871    break 2
7872  fi
7873done
7874  done
7875IFS=$as_save_IFS
7876
7877fi
7878fi
7879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7880if test -n "$ac_ct_STRIP"; then
7881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7882$as_echo "$ac_ct_STRIP" >&6; }
7883else
7884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886fi
7887
7888  if test "x$ac_ct_STRIP" = x; then
7889    STRIP=":"
7890  else
7891    case $cross_compiling:$ac_tool_warned in
7892yes:)
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895ac_tool_warned=yes ;;
7896esac
7897    STRIP=$ac_ct_STRIP
7898  fi
7899else
7900  STRIP="$ac_cv_prog_STRIP"
7901fi
7902
7903test -z "$STRIP" && STRIP=:
7904
7905
7906
7907
7908
7909
7910if test -n "$ac_tool_prefix"; then
7911  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7912set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
7915if ${ac_cv_prog_RANLIB+:} false; then :
7916  $as_echo_n "(cached) " >&6
7917else
7918  if test -n "$RANLIB"; then
7919  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7920else
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924  IFS=$as_save_IFS
7925  test -z "$as_dir" && as_dir=.
7926    for ac_exec_ext in '' $ac_executable_extensions; do
7927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930    break 2
7931  fi
7932done
7933  done
7934IFS=$as_save_IFS
7935
7936fi
7937fi
7938RANLIB=$ac_cv_prog_RANLIB
7939if test -n "$RANLIB"; then
7940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7941$as_echo "$RANLIB" >&6; }
7942else
7943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
7945fi
7946
7947
7948fi
7949if test -z "$ac_cv_prog_RANLIB"; then
7950  ac_ct_RANLIB=$RANLIB
7951  # Extract the first word of "ranlib", so it can be a program name with args.
7952set dummy ranlib; ac_word=$2
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954$as_echo_n "checking for $ac_word... " >&6; }
7955if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7956  $as_echo_n "(cached) " >&6
7957else
7958  if test -n "$ac_ct_RANLIB"; then
7959  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7960else
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964  IFS=$as_save_IFS
7965  test -z "$as_dir" && as_dir=.
7966    for ac_exec_ext in '' $ac_executable_extensions; do
7967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968    ac_cv_prog_ac_ct_RANLIB="ranlib"
7969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970    break 2
7971  fi
7972done
7973  done
7974IFS=$as_save_IFS
7975
7976fi
7977fi
7978ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7979if test -n "$ac_ct_RANLIB"; then
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7981$as_echo "$ac_ct_RANLIB" >&6; }
7982else
7983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984$as_echo "no" >&6; }
7985fi
7986
7987  if test "x$ac_ct_RANLIB" = x; then
7988    RANLIB=":"
7989  else
7990    case $cross_compiling:$ac_tool_warned in
7991yes:)
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7994ac_tool_warned=yes ;;
7995esac
7996    RANLIB=$ac_ct_RANLIB
7997  fi
7998else
7999  RANLIB="$ac_cv_prog_RANLIB"
8000fi
8001
8002test -z "$RANLIB" && RANLIB=:
8003
8004
8005
8006
8007
8008
8009# Determine commands to create old-style static archives.
8010old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8011old_postinstall_cmds='chmod 644 $oldlib'
8012old_postuninstall_cmds=
8013
8014if test -n "$RANLIB"; then
8015  case $host_os in
8016  bitrig* | openbsd*)
8017    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8018    ;;
8019  *)
8020    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8021    ;;
8022  esac
8023  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8024fi
8025
8026case $host_os in
8027  darwin*)
8028    lock_old_archive_extraction=yes ;;
8029  *)
8030    lock_old_archive_extraction=no ;;
8031esac
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071# If no C compiler was specified, use CC.
8072LTCC=${LTCC-"$CC"}
8073
8074# If no C compiler flags were specified, use CFLAGS.
8075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8076
8077# Allow CC to be a program name with arguments.
8078compiler=$CC
8079
8080
8081# Check for command to grab the raw symbol name followed by C symbol from nm.
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8083$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8084if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8085  $as_echo_n "(cached) " >&6
8086else
8087
8088# These are sane defaults that work on at least a few old systems.
8089# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8090
8091# Character class describing NM global symbol codes.
8092symcode='[BCDEGRST]'
8093
8094# Regexp to match symbols that can be accessed directly from C.
8095sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8096
8097# Define system-specific variables.
8098case $host_os in
8099aix*)
8100  symcode='[BCDT]'
8101  ;;
8102cygwin* | mingw* | pw32* | cegcc*)
8103  symcode='[ABCDGISTW]'
8104  ;;
8105hpux*)
8106  if test ia64 = "$host_cpu"; then
8107    symcode='[ABCDEGRST]'
8108  fi
8109  ;;
8110irix* | nonstopux*)
8111  symcode='[BCDEGRST]'
8112  ;;
8113osf*)
8114  symcode='[BCDEGQRST]'
8115  ;;
8116solaris*)
8117  symcode='[BDRT]'
8118  ;;
8119sco3.2v5*)
8120  symcode='[DT]'
8121  ;;
8122sysv4.2uw2*)
8123  symcode='[DT]'
8124  ;;
8125sysv5* | sco5v6* | unixware* | OpenUNIX*)
8126  symcode='[ABDT]'
8127  ;;
8128sysv4)
8129  symcode='[DFNSTU]'
8130  ;;
8131esac
8132
8133# If we're using GNU nm, then use its standard symbol codes.
8134case `$NM -V 2>&1` in
8135*GNU* | *'with BFD'*)
8136  symcode='[ABCDGIRSTW]' ;;
8137esac
8138
8139if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8140  # Gets list of data symbols to import.
8141  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8142  # Adjust the below global symbol transforms to fixup imported variables.
8143  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8144  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8145  lt_c_name_lib_hook="\
8146  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8147  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8148else
8149  # Disable hooks by default.
8150  lt_cv_sys_global_symbol_to_import=
8151  lt_cdecl_hook=
8152  lt_c_name_hook=
8153  lt_c_name_lib_hook=
8154fi
8155
8156# Transform an extracted symbol line into a proper C declaration.
8157# Some systems (esp. on ia64) link data and code symbols differently,
8158# so use this general approach.
8159lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8160$lt_cdecl_hook\
8161" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8162" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8163
8164# Transform an extracted symbol line into symbol name and symbol address
8165lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8166$lt_c_name_hook\
8167" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8168" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8169
8170# Transform an extracted symbol line into symbol name with lib prefix and
8171# symbol address.
8172lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8173$lt_c_name_lib_hook\
8174" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8175" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8176" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8177
8178# Handle CRLF in mingw tool chain
8179opt_cr=
8180case $build_os in
8181mingw*)
8182  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8183  ;;
8184esac
8185
8186# Try without a prefix underscore, then with it.
8187for ac_symprfx in "" "_"; do
8188
8189  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8190  symxfrm="\\1 $ac_symprfx\\2 \\2"
8191
8192  # Write the raw and C identifiers.
8193  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8194    # Fake it for dumpbin and say T for any non-static function,
8195    # D for any global variable and I for any imported variable.
8196    # Also find C++ and __fastcall symbols from MSVC++,
8197    # which start with @ or ?.
8198    lt_cv_sys_global_symbol_pipe="$AWK '"\
8199"     {last_section=section; section=\$ 3};"\
8200"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8201"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8202"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8203"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8204"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8205"     \$ 0!~/External *\|/{next};"\
8206"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8207"     {if(hide[section]) next};"\
8208"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8209"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8210"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8211"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8212"     ' prfx=^$ac_symprfx"
8213  else
8214    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8215  fi
8216  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8217
8218  # Check to see that the pipe works correctly.
8219  pipe_works=no
8220
8221  rm -f conftest*
8222  cat > conftest.$ac_ext <<_LT_EOF
8223#ifdef __cplusplus
8224extern "C" {
8225#endif
8226char nm_test_var;
8227void nm_test_func(void);
8228void nm_test_func(void){}
8229#ifdef __cplusplus
8230}
8231#endif
8232int main(){nm_test_var='a';nm_test_func();return(0);}
8233_LT_EOF
8234
8235  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236  (eval $ac_compile) 2>&5
8237  ac_status=$?
8238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239  test $ac_status = 0; }; then
8240    # Now try to grab the symbols.
8241    nlist=conftest.nm
8242    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8243  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8244  ac_status=$?
8245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8246  test $ac_status = 0; } && test -s "$nlist"; then
8247      # Try sorting and uniquifying the output.
8248      if sort "$nlist" | uniq > "$nlist"T; then
8249        mv -f "$nlist"T "$nlist"
8250      else
8251        rm -f "$nlist"T
8252      fi
8253
8254      # Make sure that we snagged all the symbols we need.
8255      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8256        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8257          cat <<_LT_EOF > conftest.$ac_ext
8258/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8259#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8260/* DATA imports from DLLs on WIN32 can't be const, because runtime
8261   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8262# define LT_DLSYM_CONST
8263#elif defined __osf__
8264/* This system does not cope well with relocations in const data.  */
8265# define LT_DLSYM_CONST
8266#else
8267# define LT_DLSYM_CONST const
8268#endif
8269
8270#ifdef __cplusplus
8271extern "C" {
8272#endif
8273
8274_LT_EOF
8275          # Now generate the symbol file.
8276          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8277
8278          cat <<_LT_EOF >> conftest.$ac_ext
8279
8280/* The mapping between symbol names and symbols.  */
8281LT_DLSYM_CONST struct {
8282  const char *name;
8283  void       *address;
8284}
8285lt__PROGRAM__LTX_preloaded_symbols[] =
8286{
8287  { "@PROGRAM@", (void *) 0 },
8288_LT_EOF
8289          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8290          cat <<\_LT_EOF >> conftest.$ac_ext
8291  {0, (void *) 0}
8292};
8293
8294/* This works around a problem in FreeBSD linker */
8295#ifdef FREEBSD_WORKAROUND
8296static const void *lt_preloaded_setup() {
8297  return lt__PROGRAM__LTX_preloaded_symbols;
8298}
8299#endif
8300
8301#ifdef __cplusplus
8302}
8303#endif
8304_LT_EOF
8305          # Now try linking the two files.
8306          mv conftest.$ac_objext conftstm.$ac_objext
8307          lt_globsym_save_LIBS=$LIBS
8308          lt_globsym_save_CFLAGS=$CFLAGS
8309          LIBS=conftstm.$ac_objext
8310          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8311          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8312  (eval $ac_link) 2>&5
8313  ac_status=$?
8314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8315  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8316            pipe_works=yes
8317          fi
8318          LIBS=$lt_globsym_save_LIBS
8319          CFLAGS=$lt_globsym_save_CFLAGS
8320        else
8321          echo "cannot find nm_test_func in $nlist" >&5
8322        fi
8323      else
8324        echo "cannot find nm_test_var in $nlist" >&5
8325      fi
8326    else
8327      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8328    fi
8329  else
8330    echo "$progname: failed program was:" >&5
8331    cat conftest.$ac_ext >&5
8332  fi
8333  rm -rf conftest* conftst*
8334
8335  # Do not use the global_symbol_pipe unless it works.
8336  if test yes = "$pipe_works"; then
8337    break
8338  else
8339    lt_cv_sys_global_symbol_pipe=
8340  fi
8341done
8342
8343fi
8344
8345if test -z "$lt_cv_sys_global_symbol_pipe"; then
8346  lt_cv_sys_global_symbol_to_cdecl=
8347fi
8348if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8350$as_echo "failed" >&6; }
8351else
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8353$as_echo "ok" >&6; }
8354fi
8355
8356# Response file support.
8357if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8358  nm_file_list_spec='@'
8359elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8360  nm_file_list_spec='@'
8361fi
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8400$as_echo_n "checking for sysroot... " >&6; }
8401
8402# Check whether --with-sysroot was given.
8403if test "${with_sysroot+set}" = set; then :
8404  withval=$with_sysroot;
8405else
8406  with_sysroot=no
8407fi
8408
8409
8410lt_sysroot=
8411case $with_sysroot in #(
8412 yes)
8413   if test yes = "$GCC"; then
8414     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8415   fi
8416   ;; #(
8417 /*)
8418   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8419   ;; #(
8420 no|'')
8421   ;; #(
8422 *)
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8424$as_echo "$with_sysroot" >&6; }
8425   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8426   ;;
8427esac
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8430$as_echo "${lt_sysroot:-no}" >&6; }
8431
8432
8433
8434
8435
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8437$as_echo_n "checking for a working dd... " >&6; }
8438if ${ac_cv_path_lt_DD+:} false; then :
8439  $as_echo_n "(cached) " >&6
8440else
8441  printf 0123456789abcdef0123456789abcdef >conftest.i
8442cat conftest.i conftest.i >conftest2.i
8443: ${lt_DD:=$DD}
8444if test -z "$lt_DD"; then
8445  ac_path_lt_DD_found=false
8446  # Loop through the user's path and test for each of PROGNAME-LIST
8447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450  IFS=$as_save_IFS
8451  test -z "$as_dir" && as_dir=.
8452    for ac_prog in dd; do
8453    for ac_exec_ext in '' $ac_executable_extensions; do
8454      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8455      as_fn_executable_p "$ac_path_lt_DD" || continue
8456if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8457  cmp -s conftest.i conftest.out \
8458  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8459fi
8460      $ac_path_lt_DD_found && break 3
8461    done
8462  done
8463  done
8464IFS=$as_save_IFS
8465  if test -z "$ac_cv_path_lt_DD"; then
8466    :
8467  fi
8468else
8469  ac_cv_path_lt_DD=$lt_DD
8470fi
8471
8472rm -f conftest.i conftest2.i conftest.out
8473fi
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8475$as_echo "$ac_cv_path_lt_DD" >&6; }
8476
8477
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8479$as_echo_n "checking how to truncate binary pipes... " >&6; }
8480if ${lt_cv_truncate_bin+:} false; then :
8481  $as_echo_n "(cached) " >&6
8482else
8483  printf 0123456789abcdef0123456789abcdef >conftest.i
8484cat conftest.i conftest.i >conftest2.i
8485lt_cv_truncate_bin=
8486if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8487  cmp -s conftest.i conftest.out \
8488  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8489fi
8490rm -f conftest.i conftest2.i conftest.out
8491test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8492fi
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8494$as_echo "$lt_cv_truncate_bin" >&6; }
8495
8496
8497
8498
8499
8500
8501
8502# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8503func_cc_basename ()
8504{
8505    for cc_temp in $*""; do
8506      case $cc_temp in
8507        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8508        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8509        \-*) ;;
8510        *) break;;
8511      esac
8512    done
8513    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8514}
8515
8516# Check whether --enable-libtool-lock was given.
8517if test "${enable_libtool_lock+set}" = set; then :
8518  enableval=$enable_libtool_lock;
8519fi
8520
8521test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8522
8523# Some flags need to be propagated to the compiler or linker for good
8524# libtool support.
8525case $host in
8526ia64-*-hpux*)
8527  # Find out what ABI is being produced by ac_compile, and set mode
8528  # options accordingly.
8529  echo 'int i;' > conftest.$ac_ext
8530  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8531  (eval $ac_compile) 2>&5
8532  ac_status=$?
8533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8534  test $ac_status = 0; }; then
8535    case `/usr/bin/file conftest.$ac_objext` in
8536      *ELF-32*)
8537        HPUX_IA64_MODE=32
8538        ;;
8539      *ELF-64*)
8540        HPUX_IA64_MODE=64
8541        ;;
8542    esac
8543  fi
8544  rm -rf conftest*
8545  ;;
8546*-*-irix6*)
8547  # Find out what ABI is being produced by ac_compile, and set linker
8548  # options accordingly.
8549  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8550  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8551  (eval $ac_compile) 2>&5
8552  ac_status=$?
8553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554  test $ac_status = 0; }; then
8555    if test yes = "$lt_cv_prog_gnu_ld"; then
8556      case `/usr/bin/file conftest.$ac_objext` in
8557        *32-bit*)
8558          LD="${LD-ld} -melf32bsmip"
8559          ;;
8560        *N32*)
8561          LD="${LD-ld} -melf32bmipn32"
8562          ;;
8563        *64-bit*)
8564          LD="${LD-ld} -melf64bmip"
8565        ;;
8566      esac
8567    else
8568      case `/usr/bin/file conftest.$ac_objext` in
8569        *32-bit*)
8570          LD="${LD-ld} -32"
8571          ;;
8572        *N32*)
8573          LD="${LD-ld} -n32"
8574          ;;
8575        *64-bit*)
8576          LD="${LD-ld} -64"
8577          ;;
8578      esac
8579    fi
8580  fi
8581  rm -rf conftest*
8582  ;;
8583
8584mips64*-*linux*)
8585  # Find out what ABI is being produced by ac_compile, and set linker
8586  # options accordingly.
8587  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8588  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8589  (eval $ac_compile) 2>&5
8590  ac_status=$?
8591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8592  test $ac_status = 0; }; then
8593    emul=elf
8594    case `/usr/bin/file conftest.$ac_objext` in
8595      *32-bit*)
8596        emul="${emul}32"
8597        ;;
8598      *64-bit*)
8599        emul="${emul}64"
8600        ;;
8601    esac
8602    case `/usr/bin/file conftest.$ac_objext` in
8603      *MSB*)
8604        emul="${emul}btsmip"
8605        ;;
8606      *LSB*)
8607        emul="${emul}ltsmip"
8608        ;;
8609    esac
8610    case `/usr/bin/file conftest.$ac_objext` in
8611      *N32*)
8612        emul="${emul}n32"
8613        ;;
8614    esac
8615    LD="${LD-ld} -m $emul"
8616  fi
8617  rm -rf conftest*
8618  ;;
8619
8620x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8621s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8622  # Find out what ABI is being produced by ac_compile, and set linker
8623  # options accordingly.  Note that the listed cases only cover the
8624  # situations where additional linker options are needed (such as when
8625  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8626  # vice versa); the common cases where no linker options are needed do
8627  # not appear in the list.
8628  echo 'int i;' > conftest.$ac_ext
8629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8630  (eval $ac_compile) 2>&5
8631  ac_status=$?
8632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8633  test $ac_status = 0; }; then
8634    case `/usr/bin/file conftest.o` in
8635      *32-bit*)
8636        case $host in
8637          x86_64-*kfreebsd*-gnu)
8638            LD="${LD-ld} -m elf_i386_fbsd"
8639            ;;
8640          x86_64-*linux*)
8641            case `/usr/bin/file conftest.o` in
8642              *x86-64*)
8643                LD="${LD-ld} -m elf32_x86_64"
8644                ;;
8645              *)
8646                LD="${LD-ld} -m elf_i386"
8647                ;;
8648            esac
8649            ;;
8650          powerpc64le-*linux*)
8651            LD="${LD-ld} -m elf32lppclinux"
8652            ;;
8653          powerpc64-*linux*)
8654            LD="${LD-ld} -m elf32ppclinux"
8655            ;;
8656          s390x-*linux*)
8657            LD="${LD-ld} -m elf_s390"
8658            ;;
8659          sparc64-*linux*)
8660            LD="${LD-ld} -m elf32_sparc"
8661            ;;
8662        esac
8663        ;;
8664      *64-bit*)
8665        case $host in
8666          x86_64-*kfreebsd*-gnu)
8667            LD="${LD-ld} -m elf_x86_64_fbsd"
8668            ;;
8669          x86_64-*linux*)
8670            LD="${LD-ld} -m elf_x86_64"
8671            ;;
8672          powerpcle-*linux*)
8673            LD="${LD-ld} -m elf64lppc"
8674            ;;
8675          powerpc-*linux*)
8676            LD="${LD-ld} -m elf64ppc"
8677            ;;
8678          s390*-*linux*|s390*-*tpf*)
8679            LD="${LD-ld} -m elf64_s390"
8680            ;;
8681          sparc*-*linux*)
8682            LD="${LD-ld} -m elf64_sparc"
8683            ;;
8684        esac
8685        ;;
8686    esac
8687  fi
8688  rm -rf conftest*
8689  ;;
8690
8691*-*-sco3.2v5*)
8692  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8693  SAVE_CFLAGS=$CFLAGS
8694  CFLAGS="$CFLAGS -belf"
8695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8696$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8697if ${lt_cv_cc_needs_belf+:} false; then :
8698  $as_echo_n "(cached) " >&6
8699else
8700  ac_ext=c
8701ac_cpp='$CPP $CPPFLAGS'
8702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705
8706     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h.  */
8708
8709#ifdef F77_DUMMY_MAIN
8710
8711#  ifdef __cplusplus
8712     extern "C"
8713#  endif
8714   int F77_DUMMY_MAIN() { return 1; }
8715
8716#endif
8717int
8718main ()
8719{
8720
8721  ;
8722  return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then :
8726  lt_cv_cc_needs_belf=yes
8727else
8728  lt_cv_cc_needs_belf=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext \
8731    conftest$ac_exeext conftest.$ac_ext
8732     ac_ext=c
8733ac_cpp='$CPP $CPPFLAGS'
8734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8736ac_compiler_gnu=$ac_cv_c_compiler_gnu
8737
8738fi
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8740$as_echo "$lt_cv_cc_needs_belf" >&6; }
8741  if test yes != "$lt_cv_cc_needs_belf"; then
8742    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8743    CFLAGS=$SAVE_CFLAGS
8744  fi
8745  ;;
8746*-*solaris*)
8747  # Find out what ABI is being produced by ac_compile, and set linker
8748  # options accordingly.
8749  echo 'int i;' > conftest.$ac_ext
8750  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8751  (eval $ac_compile) 2>&5
8752  ac_status=$?
8753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8754  test $ac_status = 0; }; then
8755    case `/usr/bin/file conftest.o` in
8756    *64-bit*)
8757      case $lt_cv_prog_gnu_ld in
8758      yes*)
8759        case $host in
8760        i?86-*-solaris*|x86_64-*-solaris*)
8761          LD="${LD-ld} -m elf_x86_64"
8762          ;;
8763        sparc*-*-solaris*)
8764          LD="${LD-ld} -m elf64_sparc"
8765          ;;
8766        esac
8767        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8768        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8769          LD=${LD-ld}_sol2
8770        fi
8771        ;;
8772      *)
8773        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8774          LD="${LD-ld} -64"
8775        fi
8776        ;;
8777      esac
8778      ;;
8779    esac
8780  fi
8781  rm -rf conftest*
8782  ;;
8783esac
8784
8785need_locks=$enable_libtool_lock
8786
8787if test -n "$ac_tool_prefix"; then
8788  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8789set dummy ${ac_tool_prefix}mt; ac_word=$2
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791$as_echo_n "checking for $ac_word... " >&6; }
8792if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8793  $as_echo_n "(cached) " >&6
8794else
8795  if test -n "$MANIFEST_TOOL"; then
8796  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8797else
8798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799for as_dir in $PATH
8800do
8801  IFS=$as_save_IFS
8802  test -z "$as_dir" && as_dir=.
8803    for ac_exec_ext in '' $ac_executable_extensions; do
8804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8805    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807    break 2
8808  fi
8809done
8810  done
8811IFS=$as_save_IFS
8812
8813fi
8814fi
8815MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8816if test -n "$MANIFEST_TOOL"; then
8817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8818$as_echo "$MANIFEST_TOOL" >&6; }
8819else
8820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821$as_echo "no" >&6; }
8822fi
8823
8824
8825fi
8826if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8827  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8828  # Extract the first word of "mt", so it can be a program name with args.
8829set dummy mt; ac_word=$2
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
8832if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8833  $as_echo_n "(cached) " >&6
8834else
8835  if test -n "$ac_ct_MANIFEST_TOOL"; then
8836  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8837else
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841  IFS=$as_save_IFS
8842  test -z "$as_dir" && as_dir=.
8843    for ac_exec_ext in '' $ac_executable_extensions; do
8844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847    break 2
8848  fi
8849done
8850  done
8851IFS=$as_save_IFS
8852
8853fi
8854fi
8855ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8856if test -n "$ac_ct_MANIFEST_TOOL"; then
8857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8858$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8859else
8860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
8862fi
8863
8864  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8865    MANIFEST_TOOL=":"
8866  else
8867    case $cross_compiling:$ac_tool_warned in
8868yes:)
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871ac_tool_warned=yes ;;
8872esac
8873    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8874  fi
8875else
8876  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8877fi
8878
8879test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8881$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8882if ${lt_cv_path_mainfest_tool+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  lt_cv_path_mainfest_tool=no
8886  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8887  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8888  cat conftest.err >&5
8889  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8890    lt_cv_path_mainfest_tool=yes
8891  fi
8892  rm -f conftest*
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8895$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8896if test yes != "$lt_cv_path_mainfest_tool"; then
8897  MANIFEST_TOOL=:
8898fi
8899
8900
8901
8902
8903
8904
8905  case $host_os in
8906    rhapsody* | darwin*)
8907    if test -n "$ac_tool_prefix"; then
8908  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8909set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911$as_echo_n "checking for $ac_word... " >&6; }
8912if ${ac_cv_prog_DSYMUTIL+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  if test -n "$DSYMUTIL"; then
8916  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8917else
8918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919for as_dir in $PATH
8920do
8921  IFS=$as_save_IFS
8922  test -z "$as_dir" && as_dir=.
8923    for ac_exec_ext in '' $ac_executable_extensions; do
8924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8925    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927    break 2
8928  fi
8929done
8930  done
8931IFS=$as_save_IFS
8932
8933fi
8934fi
8935DSYMUTIL=$ac_cv_prog_DSYMUTIL
8936if test -n "$DSYMUTIL"; then
8937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8938$as_echo "$DSYMUTIL" >&6; }
8939else
8940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941$as_echo "no" >&6; }
8942fi
8943
8944
8945fi
8946if test -z "$ac_cv_prog_DSYMUTIL"; then
8947  ac_ct_DSYMUTIL=$DSYMUTIL
8948  # Extract the first word of "dsymutil", so it can be a program name with args.
8949set dummy dsymutil; ac_word=$2
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951$as_echo_n "checking for $ac_word... " >&6; }
8952if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8953  $as_echo_n "(cached) " >&6
8954else
8955  if test -n "$ac_ct_DSYMUTIL"; then
8956  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8957else
8958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959for as_dir in $PATH
8960do
8961  IFS=$as_save_IFS
8962  test -z "$as_dir" && as_dir=.
8963    for ac_exec_ext in '' $ac_executable_extensions; do
8964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8965    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967    break 2
8968  fi
8969done
8970  done
8971IFS=$as_save_IFS
8972
8973fi
8974fi
8975ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8976if test -n "$ac_ct_DSYMUTIL"; then
8977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8978$as_echo "$ac_ct_DSYMUTIL" >&6; }
8979else
8980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981$as_echo "no" >&6; }
8982fi
8983
8984  if test "x$ac_ct_DSYMUTIL" = x; then
8985    DSYMUTIL=":"
8986  else
8987    case $cross_compiling:$ac_tool_warned in
8988yes:)
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8991ac_tool_warned=yes ;;
8992esac
8993    DSYMUTIL=$ac_ct_DSYMUTIL
8994  fi
8995else
8996  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8997fi
8998
8999    if test -n "$ac_tool_prefix"; then
9000  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9001set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003$as_echo_n "checking for $ac_word... " >&6; }
9004if ${ac_cv_prog_NMEDIT+:} false; then :
9005  $as_echo_n "(cached) " >&6
9006else
9007  if test -n "$NMEDIT"; then
9008  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9009else
9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013  IFS=$as_save_IFS
9014  test -z "$as_dir" && as_dir=.
9015    for ac_exec_ext in '' $ac_executable_extensions; do
9016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019    break 2
9020  fi
9021done
9022  done
9023IFS=$as_save_IFS
9024
9025fi
9026fi
9027NMEDIT=$ac_cv_prog_NMEDIT
9028if test -n "$NMEDIT"; then
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9030$as_echo "$NMEDIT" >&6; }
9031else
9032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033$as_echo "no" >&6; }
9034fi
9035
9036
9037fi
9038if test -z "$ac_cv_prog_NMEDIT"; then
9039  ac_ct_NMEDIT=$NMEDIT
9040  # Extract the first word of "nmedit", so it can be a program name with args.
9041set dummy nmedit; ac_word=$2
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043$as_echo_n "checking for $ac_word... " >&6; }
9044if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  if test -n "$ac_ct_NMEDIT"; then
9048  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9049else
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053  IFS=$as_save_IFS
9054  test -z "$as_dir" && as_dir=.
9055    for ac_exec_ext in '' $ac_executable_extensions; do
9056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059    break 2
9060  fi
9061done
9062  done
9063IFS=$as_save_IFS
9064
9065fi
9066fi
9067ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9068if test -n "$ac_ct_NMEDIT"; then
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9070$as_echo "$ac_ct_NMEDIT" >&6; }
9071else
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076  if test "x$ac_ct_NMEDIT" = x; then
9077    NMEDIT=":"
9078  else
9079    case $cross_compiling:$ac_tool_warned in
9080yes:)
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9083ac_tool_warned=yes ;;
9084esac
9085    NMEDIT=$ac_ct_NMEDIT
9086  fi
9087else
9088  NMEDIT="$ac_cv_prog_NMEDIT"
9089fi
9090
9091    if test -n "$ac_tool_prefix"; then
9092  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9093set dummy ${ac_tool_prefix}lipo; ac_word=$2
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095$as_echo_n "checking for $ac_word... " >&6; }
9096if ${ac_cv_prog_LIPO+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  if test -n "$LIPO"; then
9100  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9101else
9102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103for as_dir in $PATH
9104do
9105  IFS=$as_save_IFS
9106  test -z "$as_dir" && as_dir=.
9107    for ac_exec_ext in '' $ac_executable_extensions; do
9108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9109    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9111    break 2
9112  fi
9113done
9114  done
9115IFS=$as_save_IFS
9116
9117fi
9118fi
9119LIPO=$ac_cv_prog_LIPO
9120if test -n "$LIPO"; then
9121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9122$as_echo "$LIPO" >&6; }
9123else
9124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125$as_echo "no" >&6; }
9126fi
9127
9128
9129fi
9130if test -z "$ac_cv_prog_LIPO"; then
9131  ac_ct_LIPO=$LIPO
9132  # Extract the first word of "lipo", so it can be a program name with args.
9133set dummy lipo; ac_word=$2
9134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135$as_echo_n "checking for $ac_word... " >&6; }
9136if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9137  $as_echo_n "(cached) " >&6
9138else
9139  if test -n "$ac_ct_LIPO"; then
9140  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9141else
9142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143for as_dir in $PATH
9144do
9145  IFS=$as_save_IFS
9146  test -z "$as_dir" && as_dir=.
9147    for ac_exec_ext in '' $ac_executable_extensions; do
9148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9149    ac_cv_prog_ac_ct_LIPO="lipo"
9150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9151    break 2
9152  fi
9153done
9154  done
9155IFS=$as_save_IFS
9156
9157fi
9158fi
9159ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9160if test -n "$ac_ct_LIPO"; then
9161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9162$as_echo "$ac_ct_LIPO" >&6; }
9163else
9164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165$as_echo "no" >&6; }
9166fi
9167
9168  if test "x$ac_ct_LIPO" = x; then
9169    LIPO=":"
9170  else
9171    case $cross_compiling:$ac_tool_warned in
9172yes:)
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9175ac_tool_warned=yes ;;
9176esac
9177    LIPO=$ac_ct_LIPO
9178  fi
9179else
9180  LIPO="$ac_cv_prog_LIPO"
9181fi
9182
9183    if test -n "$ac_tool_prefix"; then
9184  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9185set dummy ${ac_tool_prefix}otool; ac_word=$2
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187$as_echo_n "checking for $ac_word... " >&6; }
9188if ${ac_cv_prog_OTOOL+:} false; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191  if test -n "$OTOOL"; then
9192  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9193else
9194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195for as_dir in $PATH
9196do
9197  IFS=$as_save_IFS
9198  test -z "$as_dir" && as_dir=.
9199    for ac_exec_ext in '' $ac_executable_extensions; do
9200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9201    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9203    break 2
9204  fi
9205done
9206  done
9207IFS=$as_save_IFS
9208
9209fi
9210fi
9211OTOOL=$ac_cv_prog_OTOOL
9212if test -n "$OTOOL"; then
9213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9214$as_echo "$OTOOL" >&6; }
9215else
9216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217$as_echo "no" >&6; }
9218fi
9219
9220
9221fi
9222if test -z "$ac_cv_prog_OTOOL"; then
9223  ac_ct_OTOOL=$OTOOL
9224  # Extract the first word of "otool", so it can be a program name with args.
9225set dummy otool; ac_word=$2
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227$as_echo_n "checking for $ac_word... " >&6; }
9228if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9229  $as_echo_n "(cached) " >&6
9230else
9231  if test -n "$ac_ct_OTOOL"; then
9232  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9233else
9234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235for as_dir in $PATH
9236do
9237  IFS=$as_save_IFS
9238  test -z "$as_dir" && as_dir=.
9239    for ac_exec_ext in '' $ac_executable_extensions; do
9240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241    ac_cv_prog_ac_ct_OTOOL="otool"
9242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243    break 2
9244  fi
9245done
9246  done
9247IFS=$as_save_IFS
9248
9249fi
9250fi
9251ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9252if test -n "$ac_ct_OTOOL"; then
9253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9254$as_echo "$ac_ct_OTOOL" >&6; }
9255else
9256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257$as_echo "no" >&6; }
9258fi
9259
9260  if test "x$ac_ct_OTOOL" = x; then
9261    OTOOL=":"
9262  else
9263    case $cross_compiling:$ac_tool_warned in
9264yes:)
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9267ac_tool_warned=yes ;;
9268esac
9269    OTOOL=$ac_ct_OTOOL
9270  fi
9271else
9272  OTOOL="$ac_cv_prog_OTOOL"
9273fi
9274
9275    if test -n "$ac_tool_prefix"; then
9276  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9277set dummy ${ac_tool_prefix}otool64; ac_word=$2
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279$as_echo_n "checking for $ac_word... " >&6; }
9280if ${ac_cv_prog_OTOOL64+:} false; then :
9281  $as_echo_n "(cached) " >&6
9282else
9283  if test -n "$OTOOL64"; then
9284  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9285else
9286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287for as_dir in $PATH
9288do
9289  IFS=$as_save_IFS
9290  test -z "$as_dir" && as_dir=.
9291    for ac_exec_ext in '' $ac_executable_extensions; do
9292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295    break 2
9296  fi
9297done
9298  done
9299IFS=$as_save_IFS
9300
9301fi
9302fi
9303OTOOL64=$ac_cv_prog_OTOOL64
9304if test -n "$OTOOL64"; then
9305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9306$as_echo "$OTOOL64" >&6; }
9307else
9308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309$as_echo "no" >&6; }
9310fi
9311
9312
9313fi
9314if test -z "$ac_cv_prog_OTOOL64"; then
9315  ac_ct_OTOOL64=$OTOOL64
9316  # Extract the first word of "otool64", so it can be a program name with args.
9317set dummy otool64; ac_word=$2
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319$as_echo_n "checking for $ac_word... " >&6; }
9320if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  if test -n "$ac_ct_OTOOL64"; then
9324  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9325else
9326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327for as_dir in $PATH
9328do
9329  IFS=$as_save_IFS
9330  test -z "$as_dir" && as_dir=.
9331    for ac_exec_ext in '' $ac_executable_extensions; do
9332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9333    ac_cv_prog_ac_ct_OTOOL64="otool64"
9334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335    break 2
9336  fi
9337done
9338  done
9339IFS=$as_save_IFS
9340
9341fi
9342fi
9343ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9344if test -n "$ac_ct_OTOOL64"; then
9345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9346$as_echo "$ac_ct_OTOOL64" >&6; }
9347else
9348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349$as_echo "no" >&6; }
9350fi
9351
9352  if test "x$ac_ct_OTOOL64" = x; then
9353    OTOOL64=":"
9354  else
9355    case $cross_compiling:$ac_tool_warned in
9356yes:)
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9359ac_tool_warned=yes ;;
9360esac
9361    OTOOL64=$ac_ct_OTOOL64
9362  fi
9363else
9364  OTOOL64="$ac_cv_prog_OTOOL64"
9365fi
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9394$as_echo_n "checking for -single_module linker flag... " >&6; }
9395if ${lt_cv_apple_cc_single_mod+:} false; then :
9396  $as_echo_n "(cached) " >&6
9397else
9398  lt_cv_apple_cc_single_mod=no
9399      if test -z "$LT_MULTI_MODULE"; then
9400        # By default we will add the -single_module flag. You can override
9401        # by either setting the environment variable LT_MULTI_MODULE
9402        # non-empty at configure time, or by adding -multi_module to the
9403        # link flags.
9404        rm -rf libconftest.dylib*
9405        echo "int foo(void){return 1;}" > conftest.c
9406        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9407-dynamiclib -Wl,-single_module conftest.c" >&5
9408        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9409          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9410        _lt_result=$?
9411        # If there is a non-empty error log, and "single_module"
9412        # appears in it, assume the flag caused a linker warning
9413        if test -s conftest.err && $GREP single_module conftest.err; then
9414          cat conftest.err >&5
9415        # Otherwise, if the output was created with a 0 exit code from
9416        # the compiler, it worked.
9417        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9418          lt_cv_apple_cc_single_mod=yes
9419        else
9420          cat conftest.err >&5
9421        fi
9422        rm -rf libconftest.dylib*
9423        rm -f conftest.*
9424      fi
9425fi
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9427$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9428
9429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9430$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9431if ${lt_cv_ld_exported_symbols_list+:} false; then :
9432  $as_echo_n "(cached) " >&6
9433else
9434  lt_cv_ld_exported_symbols_list=no
9435      save_LDFLAGS=$LDFLAGS
9436      echo "_main" > conftest.sym
9437      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9438      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439/* end confdefs.h.  */
9440
9441#ifdef F77_DUMMY_MAIN
9442
9443#  ifdef __cplusplus
9444     extern "C"
9445#  endif
9446   int F77_DUMMY_MAIN() { return 1; }
9447
9448#endif
9449int
9450main ()
9451{
9452
9453  ;
9454  return 0;
9455}
9456_ACEOF
9457if ac_fn_c_try_link "$LINENO"; then :
9458  lt_cv_ld_exported_symbols_list=yes
9459else
9460  lt_cv_ld_exported_symbols_list=no
9461fi
9462rm -f core conftest.err conftest.$ac_objext \
9463    conftest$ac_exeext conftest.$ac_ext
9464        LDFLAGS=$save_LDFLAGS
9465
9466fi
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9468$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9469
9470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9471$as_echo_n "checking for -force_load linker flag... " >&6; }
9472if ${lt_cv_ld_force_load+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  lt_cv_ld_force_load=no
9476      cat > conftest.c << _LT_EOF
9477int forced_loaded() { return 2;}
9478_LT_EOF
9479      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9480      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9481      echo "$AR cru libconftest.a conftest.o" >&5
9482      $AR cru libconftest.a conftest.o 2>&5
9483      echo "$RANLIB libconftest.a" >&5
9484      $RANLIB libconftest.a 2>&5
9485      cat > conftest.c << _LT_EOF
9486int main() { return 0;}
9487_LT_EOF
9488      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9489      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9490      _lt_result=$?
9491      if test -s conftest.err && $GREP force_load conftest.err; then
9492        cat conftest.err >&5
9493      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9494        lt_cv_ld_force_load=yes
9495      else
9496        cat conftest.err >&5
9497      fi
9498        rm -f conftest.err libconftest.a conftest conftest.c
9499        rm -rf conftest.dSYM
9500
9501fi
9502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9503$as_echo "$lt_cv_ld_force_load" >&6; }
9504    case $host_os in
9505    rhapsody* | darwin1.[012])
9506      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9507    darwin1.*)
9508      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9509    darwin*) # darwin 5.x on
9510      # if running on 10.5 or later, the deployment target defaults
9511      # to the OS version, if on x86, and 10.4, the deployment
9512      # target defaults to 10.4. Don't you love it?
9513      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9514        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9515          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9516        10.[012][,.]*)
9517          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9518        10.*)
9519          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9520      esac
9521    ;;
9522  esac
9523    if test yes = "$lt_cv_apple_cc_single_mod"; then
9524      _lt_dar_single_mod='$single_module'
9525    fi
9526    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9527      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9528    else
9529      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9530    fi
9531    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9532      _lt_dsymutil='~$DSYMUTIL $lib || :'
9533    else
9534      _lt_dsymutil=
9535    fi
9536    ;;
9537  esac
9538
9539# func_munge_path_list VARIABLE PATH
9540# -----------------------------------
9541# VARIABLE is name of variable containing _space_ separated list of
9542# directories to be munged by the contents of PATH, which is string
9543# having a format:
9544# "DIR[:DIR]:"
9545#       string "DIR[ DIR]" will be prepended to VARIABLE
9546# ":DIR[:DIR]"
9547#       string "DIR[ DIR]" will be appended to VARIABLE
9548# "DIRP[:DIRP]::[DIRA:]DIRA"
9549#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9550#       "DIRA[ DIRA]" will be appended to VARIABLE
9551# "DIR[:DIR]"
9552#       VARIABLE will be replaced by "DIR[ DIR]"
9553func_munge_path_list ()
9554{
9555    case x$2 in
9556    x)
9557        ;;
9558    *:)
9559        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9560        ;;
9561    x:*)
9562        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9563        ;;
9564    *::*)
9565        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9566        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9567        ;;
9568    *)
9569        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9570        ;;
9571    esac
9572}
9573
9574ac_ext=c
9575ac_cpp='$CPP $CPPFLAGS'
9576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9578ac_compiler_gnu=$ac_cv_c_compiler_gnu
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9580$as_echo_n "checking how to run the C preprocessor... " >&6; }
9581# On Suns, sometimes $CPP names a directory.
9582if test -n "$CPP" && test -d "$CPP"; then
9583  CPP=
9584fi
9585if test -z "$CPP"; then
9586  if ${ac_cv_prog_CPP+:} false; then :
9587  $as_echo_n "(cached) " >&6
9588else
9589      # Double quotes because CPP needs to be expanded
9590    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9591    do
9592      ac_preproc_ok=false
9593for ac_c_preproc_warn_flag in '' yes
9594do
9595  # Use a header file that comes with gcc, so configuring glibc
9596  # with a fresh cross-compiler works.
9597  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598  # <limits.h> exists even on freestanding compilers.
9599  # On the NeXT, cc -E runs the code through the compiler's parser,
9600  # not just through cpp. "Syntax error" is here to catch this case.
9601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602/* end confdefs.h.  */
9603#ifdef __STDC__
9604# include <limits.h>
9605#else
9606# include <assert.h>
9607#endif
9608                     Syntax error
9609_ACEOF
9610if ac_fn_c_try_cpp "$LINENO"; then :
9611
9612else
9613  # Broken: fails on valid input.
9614continue
9615fi
9616rm -f conftest.err conftest.i conftest.$ac_ext
9617
9618  # OK, works on sane cases.  Now check whether nonexistent headers
9619  # can be detected and how.
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622#include <ac_nonexistent.h>
9623_ACEOF
9624if ac_fn_c_try_cpp "$LINENO"; then :
9625  # Broken: success on invalid input.
9626continue
9627else
9628  # Passes both tests.
9629ac_preproc_ok=:
9630break
9631fi
9632rm -f conftest.err conftest.i conftest.$ac_ext
9633
9634done
9635# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9636rm -f conftest.i conftest.err conftest.$ac_ext
9637if $ac_preproc_ok; then :
9638  break
9639fi
9640
9641    done
9642    ac_cv_prog_CPP=$CPP
9643
9644fi
9645  CPP=$ac_cv_prog_CPP
9646else
9647  ac_cv_prog_CPP=$CPP
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9650$as_echo "$CPP" >&6; }
9651ac_preproc_ok=false
9652for ac_c_preproc_warn_flag in '' yes
9653do
9654  # Use a header file that comes with gcc, so configuring glibc
9655  # with a fresh cross-compiler works.
9656  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9657  # <limits.h> exists even on freestanding compilers.
9658  # On the NeXT, cc -E runs the code through the compiler's parser,
9659  # not just through cpp. "Syntax error" is here to catch this case.
9660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661/* end confdefs.h.  */
9662#ifdef __STDC__
9663# include <limits.h>
9664#else
9665# include <assert.h>
9666#endif
9667                     Syntax error
9668_ACEOF
9669if ac_fn_c_try_cpp "$LINENO"; then :
9670
9671else
9672  # Broken: fails on valid input.
9673continue
9674fi
9675rm -f conftest.err conftest.i conftest.$ac_ext
9676
9677  # OK, works on sane cases.  Now check whether nonexistent headers
9678  # can be detected and how.
9679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680/* end confdefs.h.  */
9681#include <ac_nonexistent.h>
9682_ACEOF
9683if ac_fn_c_try_cpp "$LINENO"; then :
9684  # Broken: success on invalid input.
9685continue
9686else
9687  # Passes both tests.
9688ac_preproc_ok=:
9689break
9690fi
9691rm -f conftest.err conftest.i conftest.$ac_ext
9692
9693done
9694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9695rm -f conftest.i conftest.err conftest.$ac_ext
9696if $ac_preproc_ok; then :
9697
9698else
9699  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9701as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9702See \`config.log' for more details" "$LINENO" 5; }
9703fi
9704
9705ac_ext=c
9706ac_cpp='$CPP $CPPFLAGS'
9707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9709ac_compiler_gnu=$ac_cv_c_compiler_gnu
9710
9711
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9713$as_echo_n "checking for ANSI C header files... " >&6; }
9714if ${ac_cv_header_stdc+:} false; then :
9715  $as_echo_n "(cached) " >&6
9716else
9717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h.  */
9719#include <stdlib.h>
9720#include <stdarg.h>
9721#include <string.h>
9722#include <float.h>
9723
9724#ifdef F77_DUMMY_MAIN
9725
9726#  ifdef __cplusplus
9727     extern "C"
9728#  endif
9729   int F77_DUMMY_MAIN() { return 1; }
9730
9731#endif
9732int
9733main ()
9734{
9735
9736  ;
9737  return 0;
9738}
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"; then :
9741  ac_cv_header_stdc=yes
9742else
9743  ac_cv_header_stdc=no
9744fi
9745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746
9747if test $ac_cv_header_stdc = yes; then
9748  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751#include <string.h>
9752
9753_ACEOF
9754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9755  $EGREP "memchr" >/dev/null 2>&1; then :
9756
9757else
9758  ac_cv_header_stdc=no
9759fi
9760rm -f conftest*
9761
9762fi
9763
9764if test $ac_cv_header_stdc = yes; then
9765  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767/* end confdefs.h.  */
9768#include <stdlib.h>
9769
9770_ACEOF
9771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9772  $EGREP "free" >/dev/null 2>&1; then :
9773
9774else
9775  ac_cv_header_stdc=no
9776fi
9777rm -f conftest*
9778
9779fi
9780
9781if test $ac_cv_header_stdc = yes; then
9782  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9783  if test "$cross_compiling" = yes; then :
9784  :
9785else
9786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787/* end confdefs.h.  */
9788#include <ctype.h>
9789#include <stdlib.h>
9790#if ((' ' & 0x0FF) == 0x020)
9791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9793#else
9794# define ISLOWER(c) \
9795                   (('a' <= (c) && (c) <= 'i') \
9796                     || ('j' <= (c) && (c) <= 'r') \
9797                     || ('s' <= (c) && (c) <= 'z'))
9798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9799#endif
9800
9801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9802int
9803main ()
9804{
9805  int i;
9806  for (i = 0; i < 256; i++)
9807    if (XOR (islower (i), ISLOWER (i))
9808        || toupper (i) != TOUPPER (i))
9809      return 2;
9810  return 0;
9811}
9812_ACEOF
9813if ac_fn_c_try_run "$LINENO"; then :
9814
9815else
9816  ac_cv_header_stdc=no
9817fi
9818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9819  conftest.$ac_objext conftest.beam conftest.$ac_ext
9820fi
9821
9822fi
9823fi
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9825$as_echo "$ac_cv_header_stdc" >&6; }
9826if test $ac_cv_header_stdc = yes; then
9827
9828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9829
9830fi
9831
9832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9834                  inttypes.h stdint.h unistd.h
9835do :
9836  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9838"
9839if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9840  cat >>confdefs.h <<_ACEOF
9841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9842_ACEOF
9843
9844fi
9845
9846done
9847
9848
9849for ac_header in dlfcn.h
9850do :
9851  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9852"
9853if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9854  cat >>confdefs.h <<_ACEOF
9855#define HAVE_DLFCN_H 1
9856_ACEOF
9857
9858fi
9859
9860done
9861
9862
9863
9864func_stripname_cnf ()
9865{
9866  case $2 in
9867  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9868  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9869  esac
9870} # func_stripname_cnf
9871
9872
9873# On Windows, shared C++ libraries do not work with the current libtool (it
9874# handles only exports for C functions, not C++). On all other systems, build
9875# only shared libraries.
9876
9877# (lh, 180302) Sadly, we can't use the obvious libtool macros
9878# (AC_{ENABLE,DISABLE}_{SHARED,STATIC}, nor parameters to LT_INIT,
9879# precisely because these macros record the default behaviour by defining
9880# a macro, _LT_ENABLE_{SHARED,STATIC}_DEFAULT. No shell code involved, hence
9881# any shell conditional has no effect. Either we trust libtool or we need
9882# something more inventive. The relevant libtool macros are in ltoptions.m4,
9883# _LT_ENABLE_SHARED and _LT_ENABLE_STATIC.
9884
9885# case $host_os in
9886#   cygwin* | mingw* | msys* )
9887#     AC_DISABLE_SHARED
9888#     ;;
9889#   *)
9890#     AC_DISABLE_STATIC
9891#     ;;
9892# esac
9893
9894# Create libtool.
9895
9896
9897
9898
9899
9900# Set options
9901
9902
9903
9904        enable_dlopen=no
9905
9906
9907  enable_win32_dll=no
9908
9909
9910            # Check whether --enable-shared was given.
9911if test "${enable_shared+set}" = set; then :
9912  enableval=$enable_shared; p=${PACKAGE-default}
9913    case $enableval in
9914    yes) enable_shared=yes ;;
9915    no) enable_shared=no ;;
9916    *)
9917      enable_shared=no
9918      # Look at the argument we got.  We use all the common list separators.
9919      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9920      for pkg in $enableval; do
9921        IFS=$lt_save_ifs
9922        if test "X$pkg" = "X$p"; then
9923          enable_shared=yes
9924        fi
9925      done
9926      IFS=$lt_save_ifs
9927      ;;
9928    esac
9929else
9930  enable_shared=yes
9931fi
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941  # Check whether --enable-static was given.
9942if test "${enable_static+set}" = set; then :
9943  enableval=$enable_static; p=${PACKAGE-default}
9944    case $enableval in
9945    yes) enable_static=yes ;;
9946    no) enable_static=no ;;
9947    *)
9948     enable_static=no
9949      # Look at the argument we got.  We use all the common list separators.
9950      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9951      for pkg in $enableval; do
9952        IFS=$lt_save_ifs
9953        if test "X$pkg" = "X$p"; then
9954          enable_static=yes
9955        fi
9956      done
9957      IFS=$lt_save_ifs
9958      ;;
9959    esac
9960else
9961  enable_static=yes
9962fi
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973# Check whether --with-pic was given.
9974if test "${with_pic+set}" = set; then :
9975  withval=$with_pic; lt_p=${PACKAGE-default}
9976    case $withval in
9977    yes|no) pic_mode=$withval ;;
9978    *)
9979      pic_mode=default
9980      # Look at the argument we got.  We use all the common list separators.
9981      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9982      for lt_pkg in $withval; do
9983        IFS=$lt_save_ifs
9984        if test "X$lt_pkg" = "X$lt_p"; then
9985          pic_mode=yes
9986        fi
9987      done
9988      IFS=$lt_save_ifs
9989      ;;
9990    esac
9991else
9992  pic_mode=default
9993fi
9994
9995
9996
9997
9998
9999
10000
10001
10002  # Check whether --enable-fast-install was given.
10003if test "${enable_fast_install+set}" = set; then :
10004  enableval=$enable_fast_install; p=${PACKAGE-default}
10005    case $enableval in
10006    yes) enable_fast_install=yes ;;
10007    no) enable_fast_install=no ;;
10008    *)
10009      enable_fast_install=no
10010      # Look at the argument we got.  We use all the common list separators.
10011      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10012      for pkg in $enableval; do
10013        IFS=$lt_save_ifs
10014        if test "X$pkg" = "X$p"; then
10015          enable_fast_install=yes
10016        fi
10017      done
10018      IFS=$lt_save_ifs
10019      ;;
10020    esac
10021else
10022  enable_fast_install=yes
10023fi
10024
10025
10026
10027
10028
10029
10030
10031
10032  shared_archive_member_spec=
10033case $host,$enable_shared in
10034power*-*-aix[5-9]*,yes)
10035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10036$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10037
10038# Check whether --with-aix-soname was given.
10039if test "${with_aix_soname+set}" = set; then :
10040  withval=$with_aix_soname; case $withval in
10041    aix|svr4|both)
10042      ;;
10043    *)
10044      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10045      ;;
10046    esac
10047    lt_cv_with_aix_soname=$with_aix_soname
10048else
10049  if ${lt_cv_with_aix_soname+:} false; then :
10050  $as_echo_n "(cached) " >&6
10051else
10052  lt_cv_with_aix_soname=aix
10053fi
10054
10055    with_aix_soname=$lt_cv_with_aix_soname
10056fi
10057
10058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10059$as_echo "$with_aix_soname" >&6; }
10060  if test aix != "$with_aix_soname"; then
10061    # For the AIX way of multilib, we name the shared archive member
10062    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10063    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10064    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10065    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10066    if test 64 = "${OBJECT_MODE-32}"; then
10067      shared_archive_member_spec=shr_64
10068    else
10069      shared_archive_member_spec=shr
10070    fi
10071  fi
10072  ;;
10073*)
10074  with_aix_soname=aix
10075  ;;
10076esac
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087# This can be used to rebuild libtool when needed
10088LIBTOOL_DEPS=$ltmain
10089
10090# Always use our own libtool.
10091LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122test -z "$LN_S" && LN_S="ln -s"
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137if test -n "${ZSH_VERSION+set}"; then
10138   setopt NO_GLOB_SUBST
10139fi
10140
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10142$as_echo_n "checking for objdir... " >&6; }
10143if ${lt_cv_objdir+:} false; then :
10144  $as_echo_n "(cached) " >&6
10145else
10146  rm -f .libs 2>/dev/null
10147mkdir .libs 2>/dev/null
10148if test -d .libs; then
10149  lt_cv_objdir=.libs
10150else
10151  # MS-DOS does not allow filenames that begin with a dot.
10152  lt_cv_objdir=_libs
10153fi
10154rmdir .libs 2>/dev/null
10155fi
10156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10157$as_echo "$lt_cv_objdir" >&6; }
10158objdir=$lt_cv_objdir
10159
10160
10161
10162
10163
10164cat >>confdefs.h <<_ACEOF
10165#define LT_OBJDIR "$lt_cv_objdir/"
10166_ACEOF
10167
10168
10169
10170
10171case $host_os in
10172aix3*)
10173  # AIX sometimes has problems with the GCC collect2 program.  For some
10174  # reason, if we set the COLLECT_NAMES environment variable, the problems
10175  # vanish in a puff of smoke.
10176  if test set != "${COLLECT_NAMES+set}"; then
10177    COLLECT_NAMES=
10178    export COLLECT_NAMES
10179  fi
10180  ;;
10181esac
10182
10183# Global variables:
10184ofile=libtool
10185can_build_shared=yes
10186
10187# All known linkers require a '.a' archive for static linking (except MSVC,
10188# which needs '.lib').
10189libext=a
10190
10191with_gnu_ld=$lt_cv_prog_gnu_ld
10192
10193old_CC=$CC
10194old_CFLAGS=$CFLAGS
10195
10196# Set sane defaults for various variables
10197test -z "$CC" && CC=cc
10198test -z "$LTCC" && LTCC=$CC
10199test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10200test -z "$LD" && LD=ld
10201test -z "$ac_objext" && ac_objext=o
10202
10203func_cc_basename $compiler
10204cc_basename=$func_cc_basename_result
10205
10206
10207# Only perform the check for file, if the check method requires it
10208test -z "$MAGIC_CMD" && MAGIC_CMD=file
10209case $deplibs_check_method in
10210file_magic*)
10211  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10213$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10214if ${lt_cv_path_MAGIC_CMD+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  case $MAGIC_CMD in
10218[\\/*] |  ?:[\\/]*)
10219  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10220  ;;
10221*)
10222  lt_save_MAGIC_CMD=$MAGIC_CMD
10223  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10224  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10225  for ac_dir in $ac_dummy; do
10226    IFS=$lt_save_ifs
10227    test -z "$ac_dir" && ac_dir=.
10228    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10229      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10230      if test -n "$file_magic_test_file"; then
10231        case $deplibs_check_method in
10232        "file_magic "*)
10233          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10234          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10235          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10236            $EGREP "$file_magic_regex" > /dev/null; then
10237            :
10238          else
10239            cat <<_LT_EOF 1>&2
10240
10241*** Warning: the command libtool uses to detect shared libraries,
10242*** $file_magic_cmd, produces output that libtool cannot recognize.
10243*** The result is that libtool may fail to recognize shared libraries
10244*** as such.  This will affect the creation of libtool libraries that
10245*** depend on shared libraries, but programs linked with such libtool
10246*** libraries will work regardless of this problem.  Nevertheless, you
10247*** may want to report the problem to your system manager and/or to
10248*** bug-libtool@gnu.org
10249
10250_LT_EOF
10251          fi ;;
10252        esac
10253      fi
10254      break
10255    fi
10256  done
10257  IFS=$lt_save_ifs
10258  MAGIC_CMD=$lt_save_MAGIC_CMD
10259  ;;
10260esac
10261fi
10262
10263MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10264if test -n "$MAGIC_CMD"; then
10265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10266$as_echo "$MAGIC_CMD" >&6; }
10267else
10268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
10270fi
10271
10272
10273
10274
10275
10276if test -z "$lt_cv_path_MAGIC_CMD"; then
10277  if test -n "$ac_tool_prefix"; then
10278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10279$as_echo_n "checking for file... " >&6; }
10280if ${lt_cv_path_MAGIC_CMD+:} false; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  case $MAGIC_CMD in
10284[\\/*] |  ?:[\\/]*)
10285  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10286  ;;
10287*)
10288  lt_save_MAGIC_CMD=$MAGIC_CMD
10289  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10290  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10291  for ac_dir in $ac_dummy; do
10292    IFS=$lt_save_ifs
10293    test -z "$ac_dir" && ac_dir=.
10294    if test -f "$ac_dir/file"; then
10295      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10296      if test -n "$file_magic_test_file"; then
10297        case $deplibs_check_method in
10298        "file_magic "*)
10299          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10300          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10301          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10302            $EGREP "$file_magic_regex" > /dev/null; then
10303            :
10304          else
10305            cat <<_LT_EOF 1>&2
10306
10307*** Warning: the command libtool uses to detect shared libraries,
10308*** $file_magic_cmd, produces output that libtool cannot recognize.
10309*** The result is that libtool may fail to recognize shared libraries
10310*** as such.  This will affect the creation of libtool libraries that
10311*** depend on shared libraries, but programs linked with such libtool
10312*** libraries will work regardless of this problem.  Nevertheless, you
10313*** may want to report the problem to your system manager and/or to
10314*** bug-libtool@gnu.org
10315
10316_LT_EOF
10317          fi ;;
10318        esac
10319      fi
10320      break
10321    fi
10322  done
10323  IFS=$lt_save_ifs
10324  MAGIC_CMD=$lt_save_MAGIC_CMD
10325  ;;
10326esac
10327fi
10328
10329MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10330if test -n "$MAGIC_CMD"; then
10331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10332$as_echo "$MAGIC_CMD" >&6; }
10333else
10334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
10336fi
10337
10338
10339  else
10340    MAGIC_CMD=:
10341  fi
10342fi
10343
10344  fi
10345  ;;
10346esac
10347
10348# Use C for the default configuration in the libtool script
10349
10350lt_save_CC=$CC
10351ac_ext=c
10352ac_cpp='$CPP $CPPFLAGS'
10353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10355ac_compiler_gnu=$ac_cv_c_compiler_gnu
10356
10357
10358# Source file extension for C test sources.
10359ac_ext=c
10360
10361# Object file extension for compiled C test sources.
10362objext=o
10363objext=$objext
10364
10365# Code to be used in simple compile tests
10366lt_simple_compile_test_code="int some_variable = 0;"
10367
10368# Code to be used in simple link tests
10369lt_simple_link_test_code='int main(){return(0);}'
10370
10371
10372
10373
10374
10375
10376
10377# If no C compiler was specified, use CC.
10378LTCC=${LTCC-"$CC"}
10379
10380# If no C compiler flags were specified, use CFLAGS.
10381LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10382
10383# Allow CC to be a program name with arguments.
10384compiler=$CC
10385
10386# Save the default compiler, since it gets overwritten when the other
10387# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10388compiler_DEFAULT=$CC
10389
10390# save warnings/boilerplate of simple test code
10391ac_outfile=conftest.$ac_objext
10392echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10393eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10394_lt_compiler_boilerplate=`cat conftest.err`
10395$RM conftest*
10396
10397ac_outfile=conftest.$ac_objext
10398echo "$lt_simple_link_test_code" >conftest.$ac_ext
10399eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10400_lt_linker_boilerplate=`cat conftest.err`
10401$RM -r conftest*
10402
10403
10404if test -n "$compiler"; then
10405
10406lt_prog_compiler_no_builtin_flag=
10407
10408if test yes = "$GCC"; then
10409  case $cc_basename in
10410  nvcc*)
10411    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10412  *)
10413    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10414  esac
10415
10416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10417$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10418if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10419  $as_echo_n "(cached) " >&6
10420else
10421  lt_cv_prog_compiler_rtti_exceptions=no
10422   ac_outfile=conftest.$ac_objext
10423   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10424   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10425   # Insert the option either (1) after the last *FLAGS variable, or
10426   # (2) before a word containing "conftest.", or (3) at the end.
10427   # Note that $ac_compile itself does not contain backslashes and begins
10428   # with a dollar sign (not a hyphen), so the echo should work correctly.
10429   # The option is referenced via a variable to avoid confusing sed.
10430   lt_compile=`echo "$ac_compile" | $SED \
10431   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10433   -e 's:$: $lt_compiler_flag:'`
10434   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10435   (eval "$lt_compile" 2>conftest.err)
10436   ac_status=$?
10437   cat conftest.err >&5
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   if (exit $ac_status) && test -s "$ac_outfile"; then
10440     # The compiler can only warn and ignore the option if not recognized
10441     # So say no if there are warnings other than the usual output.
10442     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10443     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10444     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10445       lt_cv_prog_compiler_rtti_exceptions=yes
10446     fi
10447   fi
10448   $RM conftest*
10449
10450fi
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10452$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10453
10454if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10455    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10456else
10457    :
10458fi
10459
10460fi
10461
10462
10463
10464
10465
10466
10467  lt_prog_compiler_wl=
10468lt_prog_compiler_pic=
10469lt_prog_compiler_static=
10470
10471
10472  if test yes = "$GCC"; then
10473    lt_prog_compiler_wl='-Wl,'
10474    lt_prog_compiler_static='-static'
10475
10476    case $host_os in
10477      aix*)
10478      # All AIX code is PIC.
10479      if test ia64 = "$host_cpu"; then
10480        # AIX 5 now supports IA64 processor
10481        lt_prog_compiler_static='-Bstatic'
10482      fi
10483      lt_prog_compiler_pic='-fPIC'
10484      ;;
10485
10486    amigaos*)
10487      case $host_cpu in
10488      powerpc)
10489            # see comment about AmigaOS4 .so support
10490            lt_prog_compiler_pic='-fPIC'
10491        ;;
10492      m68k)
10493            # FIXME: we need at least 68020 code to build shared libraries, but
10494            # adding the '-m68020' flag to GCC prevents building anything better,
10495            # like '-m68040'.
10496            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10497        ;;
10498      esac
10499      ;;
10500
10501    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10502      # PIC is the default for these OSes.
10503      ;;
10504
10505    mingw* | cygwin* | pw32* | os2* | cegcc*)
10506      # This hack is so that the source file can tell whether it is being
10507      # built for inclusion in a dll (and should export symbols for example).
10508      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10509      # (--disable-auto-import) libraries
10510      lt_prog_compiler_pic='-DDLL_EXPORT'
10511      case $host_os in
10512      os2*)
10513        lt_prog_compiler_static='$wl-static'
10514        ;;
10515      esac
10516      ;;
10517
10518    darwin* | rhapsody*)
10519      # PIC is the default on this platform
10520      # Common symbols not allowed in MH_DYLIB files
10521      lt_prog_compiler_pic='-fno-common'
10522      ;;
10523
10524    haiku*)
10525      # PIC is the default for Haiku.
10526      # The "-static" flag exists, but is broken.
10527      lt_prog_compiler_static=
10528      ;;
10529
10530    hpux*)
10531      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10532      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10533      # sets the default TLS model and affects inlining.
10534      case $host_cpu in
10535      hppa*64*)
10536        # +Z the default
10537        ;;
10538      *)
10539        lt_prog_compiler_pic='-fPIC'
10540        ;;
10541      esac
10542      ;;
10543
10544    interix[3-9]*)
10545      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10546      # Instead, we relocate shared libraries at runtime.
10547      ;;
10548
10549    msdosdjgpp*)
10550      # Just because we use GCC doesn't mean we suddenly get shared libraries
10551      # on systems that don't support them.
10552      lt_prog_compiler_can_build_shared=no
10553      enable_shared=no
10554      ;;
10555
10556    *nto* | *qnx*)
10557      # QNX uses GNU C++, but need to define -shared option too, otherwise
10558      # it will coredump.
10559      lt_prog_compiler_pic='-fPIC -shared'
10560      ;;
10561
10562    sysv4*MP*)
10563      if test -d /usr/nec; then
10564        lt_prog_compiler_pic=-Kconform_pic
10565      fi
10566      ;;
10567
10568    *)
10569      lt_prog_compiler_pic='-fPIC'
10570      ;;
10571    esac
10572
10573    case $cc_basename in
10574    nvcc*) # Cuda Compiler Driver 2.2
10575      lt_prog_compiler_wl='-Xlinker '
10576      if test -n "$lt_prog_compiler_pic"; then
10577        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10578      fi
10579      ;;
10580    esac
10581  else
10582    # PORTME Check for flag to pass linker flags through the system compiler.
10583    case $host_os in
10584    aix*)
10585      lt_prog_compiler_wl='-Wl,'
10586      if test ia64 = "$host_cpu"; then
10587        # AIX 5 now supports IA64 processor
10588        lt_prog_compiler_static='-Bstatic'
10589      else
10590        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10591      fi
10592      ;;
10593
10594    darwin* | rhapsody*)
10595      # PIC is the default on this platform
10596      # Common symbols not allowed in MH_DYLIB files
10597      lt_prog_compiler_pic='-fno-common'
10598      case $cc_basename in
10599      nagfor*)
10600        # NAG Fortran compiler
10601        lt_prog_compiler_wl='-Wl,-Wl,,'
10602        lt_prog_compiler_pic='-PIC'
10603        lt_prog_compiler_static='-Bstatic'
10604        ;;
10605      esac
10606      ;;
10607
10608    mingw* | cygwin* | pw32* | os2* | cegcc*)
10609      # This hack is so that the source file can tell whether it is being
10610      # built for inclusion in a dll (and should export symbols for example).
10611      lt_prog_compiler_pic='-DDLL_EXPORT'
10612      case $host_os in
10613      os2*)
10614        lt_prog_compiler_static='$wl-static'
10615        ;;
10616      esac
10617      ;;
10618
10619    hpux9* | hpux10* | hpux11*)
10620      lt_prog_compiler_wl='-Wl,'
10621      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10622      # not for PA HP-UX.
10623      case $host_cpu in
10624      hppa*64*|ia64*)
10625        # +Z the default
10626        ;;
10627      *)
10628        lt_prog_compiler_pic='+Z'
10629        ;;
10630      esac
10631      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10632      lt_prog_compiler_static='$wl-a ${wl}archive'
10633      ;;
10634
10635    irix5* | irix6* | nonstopux*)
10636      lt_prog_compiler_wl='-Wl,'
10637      # PIC (with -KPIC) is the default.
10638      lt_prog_compiler_static='-non_shared'
10639      ;;
10640
10641    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10642      case $cc_basename in
10643      # old Intel for x86_64, which still supported -KPIC.
10644      ecc*)
10645        lt_prog_compiler_wl='-Wl,'
10646        lt_prog_compiler_pic='-KPIC'
10647        lt_prog_compiler_static='-static'
10648        ;;
10649      # icc used to be incompatible with GCC.
10650      # ICC 10 doesn't accept -KPIC any more.
10651      icc* | ifort*)
10652        lt_prog_compiler_wl='-Wl,'
10653        lt_prog_compiler_pic='-fPIC'
10654        lt_prog_compiler_static='-static'
10655        ;;
10656      # Lahey Fortran 8.1.
10657      lf95*)
10658        lt_prog_compiler_wl='-Wl,'
10659        lt_prog_compiler_pic='--shared'
10660        lt_prog_compiler_static='--static'
10661        ;;
10662      nagfor*)
10663        # NAG Fortran compiler
10664        lt_prog_compiler_wl='-Wl,-Wl,,'
10665        lt_prog_compiler_pic='-PIC'
10666        lt_prog_compiler_static='-Bstatic'
10667        ;;
10668      tcc*)
10669        # Fabrice Bellard et al's Tiny C Compiler
10670        lt_prog_compiler_wl='-Wl,'
10671        lt_prog_compiler_pic='-fPIC'
10672        lt_prog_compiler_static='-static'
10673        ;;
10674      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10675        # Portland Group compilers (*not* the Pentium gcc compiler,
10676        # which looks to be a dead project)
10677        lt_prog_compiler_wl='-Wl,'
10678        lt_prog_compiler_pic='-fpic'
10679        lt_prog_compiler_static='-Bstatic'
10680        ;;
10681      ccc*)
10682        lt_prog_compiler_wl='-Wl,'
10683        # All Alpha code is PIC.
10684        lt_prog_compiler_static='-non_shared'
10685        ;;
10686      xl* | bgxl* | bgf* | mpixl*)
10687        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10688        lt_prog_compiler_wl='-Wl,'
10689        lt_prog_compiler_pic='-qpic'
10690        lt_prog_compiler_static='-qstaticlink'
10691        ;;
10692      *)
10693        case `$CC -V 2>&1 | sed 5q` in
10694        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10695          # Sun Fortran 8.3 passes all unrecognized flags to the linker
10696          lt_prog_compiler_pic='-KPIC'
10697          lt_prog_compiler_static='-Bstatic'
10698          lt_prog_compiler_wl=''
10699          ;;
10700        *Sun\ F* | *Sun*Fortran*)
10701          lt_prog_compiler_pic='-KPIC'
10702          lt_prog_compiler_static='-Bstatic'
10703          lt_prog_compiler_wl='-Qoption ld '
10704          ;;
10705        *Sun\ C*)
10706          # Sun C 5.9
10707          lt_prog_compiler_pic='-KPIC'
10708          lt_prog_compiler_static='-Bstatic'
10709          lt_prog_compiler_wl='-Wl,'
10710          ;;
10711        *Intel*\ [CF]*Compiler*)
10712          lt_prog_compiler_wl='-Wl,'
10713          lt_prog_compiler_pic='-fPIC'
10714          lt_prog_compiler_static='-static'
10715          ;;
10716        *Portland\ Group*)
10717          lt_prog_compiler_wl='-Wl,'
10718          lt_prog_compiler_pic='-fpic'
10719          lt_prog_compiler_static='-Bstatic'
10720          ;;
10721        esac
10722        ;;
10723      esac
10724      ;;
10725
10726    newsos6)
10727      lt_prog_compiler_pic='-KPIC'
10728      lt_prog_compiler_static='-Bstatic'
10729      ;;
10730
10731    *nto* | *qnx*)
10732      # QNX uses GNU C++, but need to define -shared option too, otherwise
10733      # it will coredump.
10734      lt_prog_compiler_pic='-fPIC -shared'
10735      ;;
10736
10737    osf3* | osf4* | osf5*)
10738      lt_prog_compiler_wl='-Wl,'
10739      # All OSF/1 code is PIC.
10740      lt_prog_compiler_static='-non_shared'
10741      ;;
10742
10743    rdos*)
10744      lt_prog_compiler_static='-non_shared'
10745      ;;
10746
10747    solaris*)
10748      lt_prog_compiler_pic='-KPIC'
10749      lt_prog_compiler_static='-Bstatic'
10750      case $cc_basename in
10751      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10752        lt_prog_compiler_wl='-Qoption ld ';;
10753      *)
10754        lt_prog_compiler_wl='-Wl,';;
10755      esac
10756      ;;
10757
10758    sunos4*)
10759      lt_prog_compiler_wl='-Qoption ld '
10760      lt_prog_compiler_pic='-PIC'
10761      lt_prog_compiler_static='-Bstatic'
10762      ;;
10763
10764    sysv4 | sysv4.2uw2* | sysv4.3*)
10765      lt_prog_compiler_wl='-Wl,'
10766      lt_prog_compiler_pic='-KPIC'
10767      lt_prog_compiler_static='-Bstatic'
10768      ;;
10769
10770    sysv4*MP*)
10771      if test -d /usr/nec; then
10772        lt_prog_compiler_pic='-Kconform_pic'
10773        lt_prog_compiler_static='-Bstatic'
10774      fi
10775      ;;
10776
10777    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10778      lt_prog_compiler_wl='-Wl,'
10779      lt_prog_compiler_pic='-KPIC'
10780      lt_prog_compiler_static='-Bstatic'
10781      ;;
10782
10783    unicos*)
10784      lt_prog_compiler_wl='-Wl,'
10785      lt_prog_compiler_can_build_shared=no
10786      ;;
10787
10788    uts4*)
10789      lt_prog_compiler_pic='-pic'
10790      lt_prog_compiler_static='-Bstatic'
10791      ;;
10792
10793    *)
10794      lt_prog_compiler_can_build_shared=no
10795      ;;
10796    esac
10797  fi
10798
10799case $host_os in
10800  # For platforms that do not support PIC, -DPIC is meaningless:
10801  *djgpp*)
10802    lt_prog_compiler_pic=
10803    ;;
10804  *)
10805    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10806    ;;
10807esac
10808
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10810$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10811if ${lt_cv_prog_compiler_pic+:} false; then :
10812  $as_echo_n "(cached) " >&6
10813else
10814  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10815fi
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10817$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10818lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10819
10820#
10821# Check to make sure the PIC flag actually works.
10822#
10823if test -n "$lt_prog_compiler_pic"; then
10824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10825$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10826if ${lt_cv_prog_compiler_pic_works+:} false; then :
10827  $as_echo_n "(cached) " >&6
10828else
10829  lt_cv_prog_compiler_pic_works=no
10830   ac_outfile=conftest.$ac_objext
10831   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10832   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10833   # Insert the option either (1) after the last *FLAGS variable, or
10834   # (2) before a word containing "conftest.", or (3) at the end.
10835   # Note that $ac_compile itself does not contain backslashes and begins
10836   # with a dollar sign (not a hyphen), so the echo should work correctly.
10837   # The option is referenced via a variable to avoid confusing sed.
10838   lt_compile=`echo "$ac_compile" | $SED \
10839   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10840   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10841   -e 's:$: $lt_compiler_flag:'`
10842   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10843   (eval "$lt_compile" 2>conftest.err)
10844   ac_status=$?
10845   cat conftest.err >&5
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   if (exit $ac_status) && test -s "$ac_outfile"; then
10848     # The compiler can only warn and ignore the option if not recognized
10849     # So say no if there are warnings other than the usual output.
10850     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10851     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10852     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10853       lt_cv_prog_compiler_pic_works=yes
10854     fi
10855   fi
10856   $RM conftest*
10857
10858fi
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10860$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10861
10862if test yes = "$lt_cv_prog_compiler_pic_works"; then
10863    case $lt_prog_compiler_pic in
10864     "" | " "*) ;;
10865     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10866     esac
10867else
10868    lt_prog_compiler_pic=
10869     lt_prog_compiler_can_build_shared=no
10870fi
10871
10872fi
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884#
10885# Check to make sure the static flag actually works.
10886#
10887wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10889$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10890if ${lt_cv_prog_compiler_static_works+:} false; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  lt_cv_prog_compiler_static_works=no
10894   save_LDFLAGS=$LDFLAGS
10895   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10896   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10897   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10898     # The linker can only warn and ignore the option if not recognized
10899     # So say no if there are warnings
10900     if test -s conftest.err; then
10901       # Append any errors to the config.log.
10902       cat conftest.err 1>&5
10903       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10904       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10905       if diff conftest.exp conftest.er2 >/dev/null; then
10906         lt_cv_prog_compiler_static_works=yes
10907       fi
10908     else
10909       lt_cv_prog_compiler_static_works=yes
10910     fi
10911   fi
10912   $RM -r conftest*
10913   LDFLAGS=$save_LDFLAGS
10914
10915fi
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10917$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10918
10919if test yes = "$lt_cv_prog_compiler_static_works"; then
10920    :
10921else
10922    lt_prog_compiler_static=
10923fi
10924
10925
10926
10927
10928
10929
10930
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10932$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10933if ${lt_cv_prog_compiler_c_o+:} false; then :
10934  $as_echo_n "(cached) " >&6
10935else
10936  lt_cv_prog_compiler_c_o=no
10937   $RM -r conftest 2>/dev/null
10938   mkdir conftest
10939   cd conftest
10940   mkdir out
10941   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10942
10943   lt_compiler_flag="-o out/conftest2.$ac_objext"
10944   # Insert the option either (1) after the last *FLAGS variable, or
10945   # (2) before a word containing "conftest.", or (3) at the end.
10946   # Note that $ac_compile itself does not contain backslashes and begins
10947   # with a dollar sign (not a hyphen), so the echo should work correctly.
10948   lt_compile=`echo "$ac_compile" | $SED \
10949   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10950   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10951   -e 's:$: $lt_compiler_flag:'`
10952   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10953   (eval "$lt_compile" 2>out/conftest.err)
10954   ac_status=$?
10955   cat out/conftest.err >&5
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10958   then
10959     # The compiler can only warn and ignore the option if not recognized
10960     # So say no if there are warnings
10961     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10962     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10963     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10964       lt_cv_prog_compiler_c_o=yes
10965     fi
10966   fi
10967   chmod u+w . 2>&5
10968   $RM conftest*
10969   # SGI C++ compiler will create directory out/ii_files/ for
10970   # template instantiation
10971   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10972   $RM out/* && rmdir out
10973   cd ..
10974   $RM -r conftest
10975   $RM conftest*
10976
10977fi
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10979$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10980
10981
10982
10983
10984
10985
10986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10987$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10988if ${lt_cv_prog_compiler_c_o+:} false; then :
10989  $as_echo_n "(cached) " >&6
10990else
10991  lt_cv_prog_compiler_c_o=no
10992   $RM -r conftest 2>/dev/null
10993   mkdir conftest
10994   cd conftest
10995   mkdir out
10996   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10997
10998   lt_compiler_flag="-o out/conftest2.$ac_objext"
10999   # Insert the option either (1) after the last *FLAGS variable, or
11000   # (2) before a word containing "conftest.", or (3) at the end.
11001   # Note that $ac_compile itself does not contain backslashes and begins
11002   # with a dollar sign (not a hyphen), so the echo should work correctly.
11003   lt_compile=`echo "$ac_compile" | $SED \
11004   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11005   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11006   -e 's:$: $lt_compiler_flag:'`
11007   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11008   (eval "$lt_compile" 2>out/conftest.err)
11009   ac_status=$?
11010   cat out/conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11013   then
11014     # The compiler can only warn and ignore the option if not recognized
11015     # So say no if there are warnings
11016     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11017     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11018     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11019       lt_cv_prog_compiler_c_o=yes
11020     fi
11021   fi
11022   chmod u+w . 2>&5
11023   $RM conftest*
11024   # SGI C++ compiler will create directory out/ii_files/ for
11025   # template instantiation
11026   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11027   $RM out/* && rmdir out
11028   cd ..
11029   $RM -r conftest
11030   $RM conftest*
11031
11032fi
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11034$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11035
11036
11037
11038
11039hard_links=nottested
11040if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11041  # do not overwrite the value of need_locks provided by the user
11042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11043$as_echo_n "checking if we can lock with hard links... " >&6; }
11044  hard_links=yes
11045  $RM conftest*
11046  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11047  touch conftest.a
11048  ln conftest.a conftest.b 2>&5 || hard_links=no
11049  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11051$as_echo "$hard_links" >&6; }
11052  if test no = "$hard_links"; then
11053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11054$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11055    need_locks=warn
11056  fi
11057else
11058  need_locks=no
11059fi
11060
11061
11062
11063
11064
11065
11066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11067$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }