source: branches/autotools-update/Cbc/configure @ 2412

Last change on this file since 2412 was 2412, checked in by lou, 2 years ago

Merge trunk 2389 -- 2410. Propagate BuildTools? changes.

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