source: trunk/configure @ 106

Last change on this file since 106 was 106, checked in by kulshres, 9 years ago

Squashed merge of branch 'master' of 'gitclone' into svn
and regenerated files to comply with coin-or repository guidelines.

  • 'master' of 'gitclone': (37 commits) fix a bug in the windows packaging script and add an examples packager add new files to dist remove old windows compile scripts and makefiles from dist allow nosparse compilation to do sparsity patterns too improve compilation and installation of windows Remove old windows Makefiles and scripts Add the examples readme file for vc++ also to dist. Add 64bit windows additions to the project files. add all the visual studio files to dist too regenerate documentation. add something about Visual Studio in the documentation. correct the documentation about include paths and the --enable- options add some more instructions for users in Readme files. ignore generated files from VC++ add project files for documented examples add ADOLC_DLL_EXPORT to taping functions add some readme instructions for users. ignore generated files from the windows build Add visual studio source files compile sparse sources only if SPARSE is defined ...

Details of the commit messages:

commit acd92df2e0402c5e2fb9853ae2185030e0e171c2
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Jun 29 11:28:18 2010 +0200

fix a bug in the windows packaging script and add an examples packager

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 79c88a7f8bc6ceff687a7104accbb8a10661e5d0
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 28 17:27:58 2010 +0200

add new files to dist

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 549de45ff5f748a2e532818ed505816cee0c6388
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 28 17:24:04 2010 +0200

remove old windows compile scripts and makefiles from dist

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit b016c67ae894e746b33df30169449066f60fba8e
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 28 17:08:22 2010 +0200

allow nosparse compilation to do sparsity patterns too

the only thing missing is colpack and we've already done a separation.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit b3bf0950428c5608319054282faf1984b0498b24
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 28 17:07:28 2010 +0200

improve compilation and installation of windows

  • add NDEBUG everywhere so no debug libraries are required
  • add the redistributable vc++ packages
  • add a script to install the compiled files in a good directory structure and create a zipfile, also including the vc++ packages and a setup.bat

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit e3e3045db66ab4efd2d56c4cce1e47117bfd981b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 28 15:25:23 2010 +0200

Remove old windows Makefiles and scripts

these are useless now and have not been maintained in ages

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit df7e7f651dd96ad54b8a0e179f3513f4157ad4cb
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Jun 22 11:11:40 2010 +0200

Add the examples readme file for vc++ also to dist.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 5b1503a589485296773cb867e0140ecd0c4ff2bb
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Jun 22 10:57:11 2010 +0200

Add 64bit windows additions to the project files.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit fcb189798ea3f160ea8a2715c0a9b62bb0219c24
Merge: cf9681b e2de127
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 16:09:11 2010 +0200

Merge branch 'visualstudio'

  • visualstudio: add all the visual studio files to dist too

commit e2de127ad54537b0ae0a83a6ce4b2e19e8539c2a
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 16:08:05 2010 +0200

add all the visual studio files to dist too

in case we make a tarball using make dist these files should be
included too.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit cf9681bbad4db565e2b4eb0657b34005048c656c
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 15:38:35 2010 +0200

regenerate documentation.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit a1292b4d3374089ea675b65188a921a4a90235ae
Merge: f4b19a1 23f4d82
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 15:37:09 2010 +0200

Merge branch 'visualstudio'

  • visualstudio: add something about Visual Studio in the documentation. add some more instructions for users in Readme files. ignore generated files from VC++ add project files for documented examples add ADOLC_DLL_EXPORT to taping functions add some readme instructions for users. ignore generated files from the windows build Add visual studio source files compile sparse sources only if SPARSE is defined visual c++ doesn't like non-void functions without return

commit 23f4d8280b10b57651353ba1b00c56126d769d95
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 15:34:59 2010 +0200

add something about Visual Studio in the documentation.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit f4b19a13d0bf95fc677fc4713dbb7f1de4803710
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 15:34:07 2010 +0200

correct the documentation about include paths and the --enable- options

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 1797588337947960a9f605f54accd77864320bd6
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 14:51:46 2010 +0200

add some more instructions for users in Readme files.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit e289fe2d47fa7488021faf8e06d4331a599f1535
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 14:36:50 2010 +0200

ignore generated files from VC++

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit ba4d6262d1344af8a27ef4c4d4633f076b4a9440
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 14:35:24 2010 +0200

add project files for documented examples

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 6b2ba4c6245b0cf0d9cc1655bbcd9bdd2187bc07
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 14:30:22 2010 +0200

add ADOLC_DLL_EXPORT to taping functions

otherwise the applications don't link with adolc.dll in VC++

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit b93770a0d8625740014bca29200f47c5ed891045
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 13:08:26 2010 +0200

add some readme instructions for users.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 9cd5a33abc32592b6f2348f651a1990520ebf731
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 12:45:09 2010 +0200

ignore generated files from the windows build

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 23c23e08c207effe526c973992b9aab5c6b9dff9
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 12:02:19 2010 +0200

Add visual studio source files

the windows/adolc.sln file is the solution file which can be
used to compile both sparse and nosparse versions.
windows/adolc.vcxproj is the adolc project file containing the
configuration for both sparse and nosparse builds, the sparse build
requires the ThirdParty/ColPack/ColPack?.vcxproj project to be
compiled first.

In order to compile ColPack?, just unpack the ColPack? sources into
ThirdParty/ColPack? and apply the patch
Thirparty/ColPack?/colpack_vcxcompile.patch
which is needed for colpack to be compiled in VC++.
After this Visual Studio will be able to build the sparse version
of adolc which contains ColPack? as a static library within.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 5f7244ce2e64515020aa8ab619eea91bafb5159f
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 11:55:00 2010 +0200

compile sparse sources only if SPARSE is defined

in the autotools version -DSPARSE gets added to the command line
whenever sparse is enabled. Autotools also have a conditional
source files list. VC++ doesn't have any conditional sources
so we define SPARSE=1 in the additional defines and let the whole
source be only compiled if SPARSE was defined.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 17ad3477450ea40264f3055ec10965c5e9a3a635
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 17 11:50:57 2010 +0200

visual c++ doesn't like non-void functions without return

gcc usually only warns about it. visual c++ calls it an error.
in this case we really don't need an int to be returned so we
just make the function void.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit fc5b44bd420bcd4dd6606ed5da853bcd2f959c93
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Jun 16 11:29:51 2010 +0200

correct the logic for the warning delay in configure

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit c8efb4d5811a8045bfbbfaebc96d356f87d07045
Merge: ec60772 6203077
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Jun 15 16:59:32 2010 +0200

Merge branch 'svn'

commit ec60772e229fb09c8d8f5a71c5b55602b8245601
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 14 18:06:14 2010 +0200

distcheck seems to behave differently on each computer

make it work for a third time

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit f7ba0328297712c575e25d88f3496b2503c7949d
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 14 17:59:29 2010 +0200

let make distcheck be even more happy

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 5002f07123a276c45e0484e819c85f6e0e9c352f
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 14 16:13:39 2010 +0200

some more optimisations in configure

  • allow for simultaneous 32 and 64 bit installations whenever needed
  • writability test for the prefix directory or its parents
  • print the last comments about linking paths for all paths in ${HOME}
  • put in a pause between messages so that the user will notice the (red printed) warnings before they scroll away.
  • rename options that only enable or disable a feature appropriately

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 9f86f1d391871f26f1a61c357764e63558ad078a
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Jun 9 10:18:40 2010 +0200

let make distcheck be happy.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit fe27dfbae0a6ded19cec3e0205a60a5ee3db3ce5
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Jun 8 14:52:24 2010 +0200

ignore more generated files

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 27ac799deb4cd5a162478d489212cc4eff821797
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Jun 8 14:45:14 2010 +0200

hack in a --tag=XXX for old libtool

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 3f8bac48008b559219f965b23209be5c9761605e
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 7 17:56:17 2010 +0200

use shave and dolt to clean up the build

makes it easier to see errors and warnings

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 5e05c52bc2ebb60a15b62753a25d8e7a930b3c9e
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 7 17:38:15 2010 +0200

Separate out ColPack? dependency from sparsity patterns

In order to compute sparsity patterns we don't need ColPack?. It is
only needed to compute the compressed structures or their seeds.
This way user also has the opportunity to specify where his ColPack?
installation is located and standard library paths are also searched.

In case someone switches sparse on and doesn't have ColPack?, ADOL-C
will still compile but configure will spit out a warning in the end
as well as the functions that use ColPack?, if called, will cause an
exit(-1) with an error message.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 5713dfa2a060859061890f60adc92353d9efd4f9
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 7 15:31:50 2010 +0200

ignore more executables

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit ac57ebab0d23ee210129b9217661dc1598ef01f9
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Fri May 7 01:45:02 2010 +0200

one more generated file to be removed and ignored

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 612016c5052146fea2a719d4235dfa14e9eab7c6
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Apr 12 14:35:38 2010 +0200

correct the inclusion directories

since all public headers are pkginclude_HEADERS they must be prefixed
for inclusion always.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 5c11cac64c647fd0d129dfe53c9a2f0324ce3002
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 23 11:58:24 2009 +0200

more generated files to be ignored.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit c9a7a67b11aacf1db291a8d931b3ddfe7cfb223b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 23 11:55:59 2009 +0200

some more stuff to gitignore

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 85c1a35c43aad249ec888d4fee184b0ac132d60f
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 23 11:52:56 2009 +0200

Allow examples to be compile later

Even if the configure does not get the compile examples by default
flag, someone might want to compile one or two examples later by
calling make examplename in the examples subdirectory. This will
make that possible.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 16f920cfca7c013aecbf3a7fb7070882555a32e8
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 23 11:43:27 2009 +0200

Remove files from git that are anyway generated

I don't know why svn people like to keep them anyway.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

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