1#! /bin/sh
2# Copyright (C) 2004-2012  Internet Systems Consortium, Inc. ("ISC")
3# Copyright (C) 1996-2003  Internet Software Consortium.
4#
5# Permission to use, copy, modify, and/or distribute this software for any
6# purpose with or without fee is hereby granted, provided that the above
7# copyright notice and this permission notice appear in all copies.
8#
9# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15# PERFORMANCE OF THIS SOFTWARE.
16#
17# Id: COPYRIGHT,v 1.19 2012/01/03 23:46:59 tbox Exp 
18#
19# 	Portions of this code release fall under one or more of the
20# 	following Copyright notices.  Please see individual source
21# 	files for details.
22#
23# 	For binary releases also see: OpenSSL-LICENSE.
24#
25# Copyright (C) 1996-2001  Nominum, Inc.
26#
27# Permission to use, copy, modify, and distribute this software for any
28# purpose with or without fee is hereby granted, provided that the above
29# copyright notice and this permission notice appear in all copies.
30#
31# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
32# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
33# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
34# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
35# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
36# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
37# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
38#
39#  -----------------------------------------------------------------------------
40#
41# Copyright (C) 1995-2000 by Network Associates, Inc.
42#
43# Permission to use, copy, modify, and/or distribute this software for any
44# purpose with or without fee is hereby granted, provided that the above
45# copyright notice and this permission notice appear in all copies.
46#
47# THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NETWORK ASSOCIATES DISCLAIMS
48# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
49# WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE
50# FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
51# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
52# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
53# IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
54#
55#  -----------------------------------------------------------------------------
56#
57# Copyright (C) 2002 Stichting NLnet, Netherlands, stichting@nlnet.nl.
58#
59# Permission to use, copy, modify, and distribute this software for any
60# purpose with or without fee is hereby granted, provided that the
61# above copyright notice and this permission notice appear in all
62# copies.
63#
64# THE SOFTWARE IS PROVIDED "AS IS" AND STICHTING NLNET
65# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
66# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
67# STICHTING NLNET BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
68# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
69# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
70# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
71# USE OR PERFORMANCE OF THIS SOFTWARE.
72#
73# The development of Dynamically Loadable Zones (DLZ) for Bind 9 was
74# conceived and contributed by Rob Butler.
75#
76# Permission to use, copy, modify, and distribute this software for any
77# purpose with or without fee is hereby granted, provided that the
78# above copyright notice and this permission notice appear in all
79# copies.
80#
81# THE SOFTWARE IS PROVIDED "AS IS" AND ROB BUTLER
82# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
83# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
84# ROB BUTLER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
85# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
86# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
87# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
88# USE OR PERFORMANCE OF THIS SOFTWARE.
89#
90#  -----------------------------------------------------------------------------
91#
92# Copyright (c) 1987, 1990, 1993, 1994
93#      The Regents of the University of California.  All rights reserved.
94#
95# Redistribution and use in source and binary forms, with or without
96# modification, are permitted provided that the following conditions
97# are met:
98# 1. Redistributions of source code must retain the above copyright
99#    notice, this list of conditions and the following disclaimer.
100# 2. Redistributions in binary form must reproduce the above copyright
101#    notice, this list of conditions and the following disclaimer in the
102#    documentation and/or other materials provided with the distribution.
103# 3. All advertising materials mentioning features or use of this software
104#    must display the following acknowledgement:
105#      This product includes software developed by the University of
106#      California, Berkeley and its contributors.
107# 4. Neither the name of the University nor the names of its contributors
108#    may be used to endorse or promote products derived from this software
109#    without specific prior written permission.
110#
111# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
112# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
113# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
114# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
115# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
116# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
117# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
118# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
119# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
120# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
121# SUCH DAMAGE.
122#
123#  -----------------------------------------------------------------------------
124#
125# Copyright (C) The Internet Society 2005.  This version of
126# this module is part of RFC 4178; see the RFC itself for
127# full legal notices.
128#
129# (The above copyright notice is per RFC 3978 5.6 (a), q.v.)
130#
131#  -----------------------------------------------------------------------------
132#
133# Copyright (c) 2004 Masarykova universita
134# (Masaryk University, Brno, Czech Republic)
135# All rights reserved.
136#
137# Redistribution and use in source and binary forms, with or without
138# modification, are permitted provided that the following conditions are met:
139#
140# 1. Redistributions of source code must retain the above copyright notice,
141#    this list of conditions and the following disclaimer.
142#
143# 2. Redistributions in binary form must reproduce the above copyright
144#    notice, this list of conditions and the following disclaimer in the
145#    documentation and/or other materials provided with the distribution.
146#
147# 3. Neither the name of the University nor the names of its contributors may
148#    be used to endorse or promote products derived from this software
149#    without specific prior written permission.
150#
151# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
152# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
153# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
154# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
155# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
156# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
157# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
158# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
159# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
160# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
161# POSSIBILITY OF SUCH DAMAGE.
162#
163#  -----------------------------------------------------------------------------
164#
165# Copyright (c) 1997 - 2003 Kungliga Tekniska H�gskolan
166# (Royal Institute of Technology, Stockholm, Sweden).
167# All rights reserved.
168#
169# Redistribution and use in source and binary forms, with or without
170# modification, are permitted provided that the following conditions
171# are met:
172#
173# 1. Redistributions of source code must retain the above copyright
174#    notice, this list of conditions and the following disclaimer.
175#
176# 2. Redistributions in binary form must reproduce the above copyright
177#    notice, this list of conditions and the following disclaimer in the
178#    documentation and/or other materials provided with the distribution.
179#
180# 3. Neither the name of the Institute nor the names of its contributors
181#    may be used to endorse or promote products derived from this software
182#    without specific prior written permission.
183#
184# THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
185# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
186# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
187# ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
188# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
189# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
190# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
191# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
192# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
193# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
194# SUCH DAMAGE.
195#
196#  -----------------------------------------------------------------------------
197#
198# Copyright (c) 1998 Doug Rabson
199# All rights reserved.
200#
201# Redistribution and use in source and binary forms, with or without
202# modification, are permitted provided that the following conditions
203# are met:
204# 1. Redistributions of source code must retain the above copyright
205#    notice, this list of conditions and the following disclaimer.
206# 2. Redistributions in binary form must reproduce the above copyright
207#    notice, this list of conditions and the following disclaimer in the
208#    documentation and/or other materials provided with the distribution.
209#
210# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
211# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
212# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
213# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
214# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
215# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
216# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
217# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
218# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
219# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
220# SUCH DAMAGE.
221#
222#  -----------------------------------------------------------------------------
223#
224# Copyright ((c)) 2002, Rice University
225# All rights reserved.
226#
227# Redistribution and use in source and binary forms, with or without
228# modification, are permitted provided that the following conditions are
229# met:
230#
231#     * Redistributions of source code must retain the above copyright
232#     notice, this list of conditions and the following disclaimer.
233#
234#     * Redistributions in binary form must reproduce the above
235#     copyright notice, this list of conditions and the following
236#     disclaimer in the documentation and/or other materials provided
237#     with the distribution.
238#
239#     * Neither the name of Rice University (RICE) nor the names of its
240#     contributors may be used to endorse or promote products derived
241#     from this software without specific prior written permission.
242#
243#
244# This software is provided by RICE and the contributors on an "as is"
245# basis, without any representations or warranties of any kind, express
246# or implied including, but not limited to, representations or
247# warranties of non-infringement, merchantability or fitness for a
248# particular purpose. In no event shall RICE or contributors be liable
249# for any direct, indirect, incidental, special, exemplary, or
250# consequential damages (including, but not limited to, procurement of
251# substitute goods or services; loss of use, data, or profits; or
252# business interruption) however caused and on any theory of liability,
253# whether in contract, strict liability, or tort (including negligence
254# or otherwise) arising in any way out of the use of this software, even
255# if advised of the possibility of such damage.
256#
257#  -----------------------------------------------------------------------------
258#
259# Copyright (c) 1993 by Digital Equipment Corporation.
260#
261# Permission to use, copy, modify, and distribute this software for any
262# purpose with or without fee is hereby granted, provided that the above
263# copyright notice and this permission notice appear in all copies, and that
264# the name of Digital Equipment Corporation not be used in advertising or
265# publicity pertaining to distribution of the document or software without
266# specific, written prior permission.
267#
268# THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
269# WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
270# OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
271# CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
272# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
273# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
274# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
275# SOFTWARE.
276#
277#  -----------------------------------------------------------------------------
278#
279# Copyright 2000 Aaron D. Gifford.  All rights reserved.
280#
281# Redistribution and use in source and binary forms, with or without
282# modification, are permitted provided that the following conditions
283# are met:
284# 1. Redistributions of source code must retain the above copyright
285#    notice, this list of conditions and the following disclaimer.
286# 2. Redistributions in binary form must reproduce the above copyright
287#    notice, this list of conditions and the following disclaimer in the
288#    documentation and/or other materials provided with the distribution.
289# 3. Neither the name of the copyright holder nor the names of contributors
290#    may be used to endorse or promote products derived from this software
291#    without specific prior written permission.
292#
293# THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTOR(S) ``AS IS'' AND
294# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
295# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
296# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTOR(S) BE LIABLE
297# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
298# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
299# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
300# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
301# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
302# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
303# SUCH DAMAGE.
304#
305#  -----------------------------------------------------------------------------
306#
307# Copyright (c) 1998 Doug Rabson.
308# Copyright (c) 2001 Jake Burkholder.
309# All rights reserved.
310#
311# Redistribution and use in source and binary forms, with or without
312# modification, are permitted provided that the following conditions
313# are met:
314# 1. Redistributions of source code must retain the above copyright
315#    notice, this list of conditions and the following disclaimer.
316# 2. Redistributions in binary form must reproduce the above copyright
317#    notice, this list of conditions and the following disclaimer in the
318#    documentation and/or other materials provided with the distribution.
319#
320# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
321# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
322# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
323# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
324# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
325# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
326# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
327# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
328# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
329# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
330# SUCH DAMAGE.
331#
332#  -----------------------------------------------------------------------------
333#
334# Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
335# All rights reserved.
336#
337# Redistribution and use in source and binary forms, with or without
338# modification, are permitted provided that the following conditions
339# are met:
340# 1. Redistributions of source code must retain the above copyright
341#    notice, this list of conditions and the following disclaimer.
342# 2. Redistributions in binary form must reproduce the above copyright
343#    notice, this list of conditions and the following disclaimer in the
344#    documentation and/or other materials provided with the distribution.
345# 3. Neither the name of the project nor the names of its contributors
346#    may be used to endorse or promote products derived from this software
347#    without specific prior written permission.
348#
349# THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
350# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
351# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
352# ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
353# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
354# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
355# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
356# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
357# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
358# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
359# SUCH DAMAGE.
360#
361#  -----------------------------------------------------------------------------
362#
363# Copyright (c) 1999-2000 by Nortel Networks Corporation
364#
365# Permission to use, copy, modify, and distribute this software for any
366# purpose with or without fee is hereby granted, provided that the above
367# copyright notice and this permission notice appear in all copies.
368#
369# THE SOFTWARE IS PROVIDED "AS IS" AND NORTEL NETWORKS DISCLAIMS
370# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
371# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NORTEL NETWORKS
372# BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
373# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
374# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
375# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
376# SOFTWARE.
377#
378#  -----------------------------------------------------------------------------
379#
380# Copyright (c) 2000-2002 Japan Network Information Center.  All rights reserved.
381#
382# By using this file, you agree to the terms and conditions set forth bellow.
383#
384#                         LICENSE TERMS AND CONDITIONS
385#
386# The following License Terms and Conditions apply, unless a different
387# license is obtained from Japan Network Information Center ("JPNIC"),
388# a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,
389# Chiyoda-ku, Tokyo 101-0047, Japan.
390#
391# 1. Use, Modification and Redistribution (including distribution of any
392#    modified or derived work) in source and/or binary forms is permitted
393#    under this License Terms and Conditions.
394#
395# 2. Redistribution of source code must retain the copyright notices as they
396#    appear in each source code file, this License Terms and Conditions.
397#
398# 3. Redistribution in binary form must reproduce the Copyright Notice,
399#    this License Terms and Conditions, in the documentation and/or other
400#    materials provided with the distribution.  For the purposes of binary
401#    distribution the "Copyright Notice" refers to the following language:
402#    "Copyright (c) 2000-2002 Japan Network Information Center.  All rights
403#    reserved."
404#
405# 4. The name of JPNIC may not be used to endorse or promote products
406#    derived from this Software without specific prior written approval of
407#    JPNIC.
408#
409# 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
410#    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
411#    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
412#    PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL JPNIC BE LIABLE
413#    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
414#    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
415#    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
416#    BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
417#    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
418#    OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
419#    ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
420#
421#  -----------------------------------------------------------------------------
422#
423# Copyright (C) 2004  Nominet, Ltd.
424#
425# Permission to use, copy, modify, and distribute this software for any
426# purpose with or without fee is hereby granted, provided that the above
427# copyright notice and this permission notice appear in all copies.
428#
429# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINET DISCLAIMS ALL WARRANTIES WITH
430# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
431# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
432# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
433# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
434# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
435# PERFORMANCE OF THIS SOFTWARE.
436#
437#  -----------------------------------------------------------------------------
438#
439# Portions Copyright RSA Security Inc.
440#
441# License to copy and use this software is granted provided that it is
442# identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface
443# (Cryptoki)" in all material mentioning or referencing this software.
444#
445# License is also granted to make and use derivative works provided that
446# such works are identified as "derived from the RSA Security Inc. PKCS #11
447# Cryptographic Token Interface (Cryptoki)" in all material mentioning or
448# referencing the derived work.
449#
450# RSA Security Inc. makes no representations concerning either the
451# merchantability of this software or the suitability of this software for
452# any particular purpose. It is provided "as is" without express or implied
453# warranty of any kind.
454#
455#  -----------------------------------------------------------------------------
456#
457# Copyright (c) 1996, David Mazieres <dm@uun.org>
458# Copyright (c) 2008, Damien Miller <djm@openbsd.org>
459#
460# Permission to use, copy, modify, and distribute this software for any
461# purpose with or without fee is hereby granted, provided that the above
462# copyright notice and this permission notice appear in all copies.
463#
464# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
465# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
466# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
467# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
468# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
469# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
470# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
471#
472# -----------------------------------------------------------------------------
473#
474# Copyright (c) 2000-2001 The OpenSSL Project.  All rights reserved.
475#
476# Redistribution and use in source and binary forms, with or without
477# modification, are permitted provided that the following conditions
478# are met:
479#
480# 1. Redistributions of source code must retain the above copyright
481#    notice, this list of conditions and the following disclaimer.
482#
483# 2. Redistributions in binary form must reproduce the above copyright
484#    notice, this list of conditions and the following disclaimer in
485#    the documentation and/or other materials provided with the
486#    distribution.
487#
488# 3. All advertising materials mentioning features or use of this
489#    software must display the following acknowledgment:
490#    "This product includes software developed by the OpenSSL Project
491#    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
492#
493# 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
494#    endorse or promote products derived from this software without
495#    prior written permission. For written permission, please contact
496#    licensing@OpenSSL.org.
497#
498# 5. Products derived from this software may not be called "OpenSSL"
499#    nor may "OpenSSL" appear in their names without prior written
500#    permission of the OpenSSL Project.
501#
502# 6. Redistributions of any form whatsoever must retain the following
503#    acknowledgment:
504#    "This product includes software developed by the OpenSSL Project
505#    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
506#
507# THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
508# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
509# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
510# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
511# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
512# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
513# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
514# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
515# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
516# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
517# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
518# OF THE POSSIBILITY OF SUCH DAMAGE.
519#
520# From configure.in Revision: 1.533 .
521# Guess values for system-dependent variables and create Makefiles.
522# Generated by GNU Autoconf 2.67.
523#
524#
525# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
526# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
527# Foundation, Inc.
528#
529#
530# This configure script is free software; the Free Software Foundation
531# gives unlimited permission to copy, distribute and modify it.
532## -------------------- ##
533## M4sh Initialization. ##
534## -------------------- ##
535
536# Be more Bourne compatible
537DUALCASE=1; export DUALCASE # for MKS sh
538if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
539  emulate sh
540  NULLCMD=:
541  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
542  # is contrary to our usage.  Disable this feature.
543  alias -g '${1+"$@"}'='"$@"'
544  setopt NO_GLOB_SUBST
545else
546  case `(set -o) 2>/dev/null` in #(
547  *posix*) :
548    set -o posix ;; #(
549  *) :
550     ;;
551esac
552fi
553
554
555as_nl='
556'
557export as_nl
558# Printing a long string crashes Solaris 7 /usr/bin/printf.
559as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
560as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
561as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
562# Prefer a ksh shell builtin over an external printf program on Solaris,
563# but without wasting forks for bash or zsh.
564if test -z "$BASH_VERSION$ZSH_VERSION" \
565    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
566  as_echo='print -r --'
567  as_echo_n='print -rn --'
568elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
569  as_echo='printf %s\n'
570  as_echo_n='printf %s'
571else
572  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
573    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
574    as_echo_n='/usr/ucb/echo -n'
575  else
576    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
577    as_echo_n_body='eval
578      arg=$1;
579      case $arg in #(
580      *"$as_nl"*)
581	expr "X$arg" : "X\\(.*\\)$as_nl";
582	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
583      esac;
584      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
585    '
586    export as_echo_n_body
587    as_echo_n='sh -c $as_echo_n_body as_echo'
588  fi
589  export as_echo_body
590  as_echo='sh -c $as_echo_body as_echo'
591fi
592
593# The user is always right.
594if test "${PATH_SEPARATOR+set}" != set; then
595  PATH_SEPARATOR=:
596  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
597    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
598      PATH_SEPARATOR=';'
599  }
600fi
601
602
603# IFS
604# We need space, tab and new line, in precisely that order.  Quoting is
605# there to prevent editors from complaining about space-tab.
606# (If _AS_PATH_WALK were called with IFS unset, it would disable word
607# splitting by setting IFS to empty value.)
608IFS=" ""	$as_nl"
609
610# Find who we are.  Look in the path if we contain no directory separator.
611case $0 in #((
612  *[\\/]* ) as_myself=$0 ;;
613  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
614for as_dir in $PATH
615do
616  IFS=$as_save_IFS
617  test -z "$as_dir" && as_dir=.
618    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
619  done
620IFS=$as_save_IFS
621
622     ;;
623esac
624# We did not find ourselves, most probably we were run as `sh COMMAND'
625# in which case we are not to be found in the path.
626if test "x$as_myself" = x; then
627  as_myself=$0
628fi
629if test ! -f "$as_myself"; then
630  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
631  exit 1
632fi
633
634# Unset variables that we do not need and which cause bugs (e.g. in
635# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
636# suppresses any "Segmentation fault" message there.  '((' could
637# trigger a bug in pdksh 5.2.14.
638for as_var in BASH_ENV ENV MAIL MAILPATH
639do eval test x\${$as_var+set} = xset \
640  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
641done
642PS1='$ '
643PS2='> '
644PS4='+ '
645
646# NLS nuisances.
647LC_ALL=C
648export LC_ALL
649LANGUAGE=C
650export LANGUAGE
651
652# CDPATH.
653(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
654
655if test "x$CONFIG_SHELL" = x; then
656  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
657  emulate sh
658  NULLCMD=:
659  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
660  # is contrary to our usage.  Disable this feature.
661  alias -g '\${1+\"\$@\"}'='\"\$@\"'
662  setopt NO_GLOB_SUBST
663else
664  case \`(set -o) 2>/dev/null\` in #(
665  *posix*) :
666    set -o posix ;; #(
667  *) :
668     ;;
669esac
670fi
671"
672  as_required="as_fn_return () { (exit \$1); }
673as_fn_success () { as_fn_return 0; }
674as_fn_failure () { as_fn_return 1; }
675as_fn_ret_success () { return 0; }
676as_fn_ret_failure () { return 1; }
677
678exitcode=0
679as_fn_success || { exitcode=1; echo as_fn_success failed.; }
680as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
681as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
682as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
683if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
684
685else
686  exitcode=1; echo positional parameters were not saved.
687fi
688test x\$exitcode = x0 || exit 1"
689  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
690  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
691  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
692  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
693test \$(( 1 + 1 )) = 2 || exit 1"
694  if (eval "$as_required") 2>/dev/null; then :
695  as_have_required=yes
696else
697  as_have_required=no
698fi
699  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
700
701else
702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
703as_found=false
704for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
705do
706  IFS=$as_save_IFS
707  test -z "$as_dir" && as_dir=.
708  as_found=:
709  case $as_dir in #(
710	 /*)
711	   for as_base in sh bash ksh sh5; do
712	     # Try only shells that exist, to save several forks.
713	     as_shell=$as_dir/$as_base
714	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
715		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
716  CONFIG_SHELL=$as_shell as_have_required=yes
717		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
718  break 2
719fi
720fi
721	   done;;
722       esac
723  as_found=false
724done
725$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
726	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
727  CONFIG_SHELL=$SHELL as_have_required=yes
728fi; }
729IFS=$as_save_IFS
730
731
732      if test "x$CONFIG_SHELL" != x; then :
733  # We cannot yet assume a decent shell, so we have to provide a
734	# neutralization value for shells without unset; and this also
735	# works around shells that cannot unset nonexistent variables.
736	BASH_ENV=/dev/null
737	ENV=/dev/null
738	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
739	export CONFIG_SHELL
740	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
741fi
742
743    if test x$as_have_required = xno; then :
744  $as_echo "$0: This script requires a shell more modern than all"
745  $as_echo "$0: the shells that I found on your system."
746  if test x${ZSH_VERSION+set} = xset ; then
747    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
748    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
749  else
750    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
751$0: including any error possibly output before this
752$0: message. Then install a modern shell, or manually run
753$0: the script under such a shell if you do have one."
754  fi
755  exit 1
756fi
757fi
758fi
759SHELL=${CONFIG_SHELL-/bin/sh}
760export SHELL
761# Unset more variables known to interfere with behavior of common tools.
762CLICOLOR_FORCE= GREP_OPTIONS=
763unset CLICOLOR_FORCE GREP_OPTIONS
764
765## --------------------- ##
766## M4sh Shell Functions. ##
767## --------------------- ##
768# as_fn_unset VAR
769# ---------------
770# Portably unset VAR.
771as_fn_unset ()
772{
773  { eval $1=; unset $1;}
774}
775as_unset=as_fn_unset
776
777# as_fn_set_status STATUS
778# -----------------------
779# Set $? to STATUS, without forking.
780as_fn_set_status ()
781{
782  return $1
783} # as_fn_set_status
784
785# as_fn_exit STATUS
786# -----------------
787# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
788as_fn_exit ()
789{
790  set +e
791  as_fn_set_status $1
792  exit $1
793} # as_fn_exit
794
795# as_fn_mkdir_p
796# -------------
797# Create "$as_dir" as a directory, including parents if necessary.
798as_fn_mkdir_p ()
799{
800
801  case $as_dir in #(
802  -*) as_dir=./$as_dir;;
803  esac
804  test -d "$as_dir" || eval $as_mkdir_p || {
805    as_dirs=
806    while :; do
807      case $as_dir in #(
808      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
809      *) as_qdir=$as_dir;;
810      esac
811      as_dirs="'$as_qdir' $as_dirs"
812      as_dir=`$as_dirname -- "$as_dir" ||
813$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
814	 X"$as_dir" : 'X\(//\)[^/]' \| \
815	 X"$as_dir" : 'X\(//\)$' \| \
816	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
817$as_echo X"$as_dir" |
818    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
819	    s//\1/
820	    q
821	  }
822	  /^X\(\/\/\)[^/].*/{
823	    s//\1/
824	    q
825	  }
826	  /^X\(\/\/\)$/{
827	    s//\1/
828	    q
829	  }
830	  /^X\(\/\).*/{
831	    s//\1/
832	    q
833	  }
834	  s/.*/./; q'`
835      test -d "$as_dir" && break
836    done
837    test -z "$as_dirs" || eval "mkdir $as_dirs"
838  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
839
840
841} # as_fn_mkdir_p
842# as_fn_append VAR VALUE
843# ----------------------
844# Append the text in VALUE to the end of the definition contained in VAR. Take
845# advantage of any shell optimizations that allow amortized linear growth over
846# repeated appends, instead of the typical quadratic growth present in naive
847# implementations.
848if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
849  eval 'as_fn_append ()
850  {
851    eval $1+=\$2
852  }'
853else
854  as_fn_append ()
855  {
856    eval $1=\$$1\$2
857  }
858fi # as_fn_append
859
860# as_fn_arith ARG...
861# ------------------
862# Perform arithmetic evaluation on the ARGs, and store the result in the
863# global $as_val. Take advantage of shells that can avoid forks. The arguments
864# must be portable across $(()) and expr.
865if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
866  eval 'as_fn_arith ()
867  {
868    as_val=$(( $* ))
869  }'
870else
871  as_fn_arith ()
872  {
873    as_val=`expr "$@" || test $? -eq 1`
874  }
875fi # as_fn_arith
876
877
878# as_fn_error STATUS ERROR [LINENO LOG_FD]
879# ----------------------------------------
880# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
881# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
882# script with STATUS, using 1 if that was 0.
883as_fn_error ()
884{
885  as_status=$1; test $as_status -eq 0 && as_status=1
886  if test "$4"; then
887    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
888    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
889  fi
890  $as_echo "$as_me: error: $2" >&2
891  as_fn_exit $as_status
892} # as_fn_error
893
894if expr a : '\(a\)' >/dev/null 2>&1 &&
895   test "X`expr 00001 : '.*\(...\)'`" = X001; then
896  as_expr=expr
897else
898  as_expr=false
899fi
900
901if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
902  as_basename=basename
903else
904  as_basename=false
905fi
906
907if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
908  as_dirname=dirname
909else
910  as_dirname=false
911fi
912
913as_me=`$as_basename -- "$0" ||
914$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
915	 X"$0" : 'X\(//\)$' \| \
916	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
917$as_echo X/"$0" |
918    sed '/^.*\/\([^/][^/]*\)\/*$/{
919	    s//\1/
920	    q
921	  }
922	  /^X\/\(\/\/\)$/{
923	    s//\1/
924	    q
925	  }
926	  /^X\/\(\/\).*/{
927	    s//\1/
928	    q
929	  }
930	  s/.*/./; q'`
931
932# Avoid depending upon Character Ranges.
933as_cr_letters='abcdefghijklmnopqrstuvwxyz'
934as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
935as_cr_Letters=$as_cr_letters$as_cr_LETTERS
936as_cr_digits='0123456789'
937as_cr_alnum=$as_cr_Letters$as_cr_digits
938
939
940  as_lineno_1=$LINENO as_lineno_1a=$LINENO
941  as_lineno_2=$LINENO as_lineno_2a=$LINENO
942  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
943  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
944  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
945  sed -n '
946    p
947    /[$]LINENO/=
948  ' <$as_myself |
949    sed '
950      s/[$]LINENO.*/&-/
951      t lineno
952      b
953      :lineno
954      N
955      :loop
956      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
957      t loop
958      s/-\n.*//
959    ' >$as_me.lineno &&
960  chmod +x "$as_me.lineno" ||
961    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
962
963  # Don't try to exec as it changes $[0], causing all sort of problems
964  # (the dirname of $[0] is not the place where we might find the
965  # original and so on.  Autoconf is especially sensitive to this).
966  . "./$as_me.lineno"
967  # Exit status is that of the last command.
968  exit
969}
970
971ECHO_C= ECHO_N= ECHO_T=
972case `echo -n x` in #(((((
973-n*)
974  case `echo 'xy\c'` in
975  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
976  xy)  ECHO_C='\c';;
977  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
978       ECHO_T='	';;
979  esac;;
980*)
981  ECHO_N='-n';;
982esac
983
984rm -f conf$$ conf$$.exe conf$$.file
985if test -d conf$$.dir; then
986  rm -f conf$$.dir/conf$$.file
987else
988  rm -f conf$$.dir
989  mkdir conf$$.dir 2>/dev/null
990fi
991if (echo >conf$$.file) 2>/dev/null; then
992  if ln -s conf$$.file conf$$ 2>/dev/null; then
993    as_ln_s='ln -s'
994    # ... but there are two gotchas:
995    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
996    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
997    # In both cases, we have to default to `cp -p'.
998    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
999      as_ln_s='cp -p'
1000  elif ln conf$$.file conf$$ 2>/dev/null; then
1001    as_ln_s=ln
1002  else
1003    as_ln_s='cp -p'
1004  fi
1005else
1006  as_ln_s='cp -p'
1007fi
1008rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1009rmdir conf$$.dir 2>/dev/null
1010
1011if mkdir -p . 2>/dev/null; then
1012  as_mkdir_p='mkdir -p "$as_dir"'
1013else
1014  test -d ./-p && rmdir ./-p
1015  as_mkdir_p=false
1016fi
1017
1018if test -x / >/dev/null 2>&1; then
1019  as_test_x='test -x'
1020else
1021  if ls -dL / >/dev/null 2>&1; then
1022    as_ls_L_option=L
1023  else
1024    as_ls_L_option=
1025  fi
1026  as_test_x='
1027    eval sh -c '\''
1028      if test -d "$1"; then
1029	test -d "$1/.";
1030      else
1031	case $1 in #(
1032	-*)set "./$1";;
1033	esac;
1034	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1035	???[sx]*):;;*)false;;esac;fi
1036    '\'' sh
1037  '
1038fi
1039as_executable_p=$as_test_x
1040
1041# Sed expression to map a string onto a valid CPP name.
1042as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1043
1044# Sed expression to map a string onto a valid variable name.
1045as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1046
1047
1048
1049# Check that we are running under the correct shell.
1050SHELL=${CONFIG_SHELL-/bin/sh}
1051
1052case X$ECHO in
1053X*--fallback-echo)
1054  # Remove one level of quotation (which was required for Make).
1055  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
1056  ;;
1057esac
1058
1059echo=${ECHO-echo}
1060if test "X$1" = X--no-reexec; then
1061  # Discard the --no-reexec flag, and continue.
1062  shift
1063elif test "X$1" = X--fallback-echo; then
1064  # Avoid inline document here, it may be left over
1065  :
1066elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1067  # Yippee, $echo works!
1068  :
1069else
1070  # Restart under the correct shell.
1071  exec $SHELL "$0" --no-reexec ${1+"$@"}
1072fi
1073
1074if test "X$1" = X--fallback-echo; then
1075  # used as fallback echo
1076  shift
1077  cat <<EOF
1078$*
1079EOF
1080  exit 0
1081fi
1082
1083# The HP-UX ksh and POSIX shell print the target directory to stdout
1084# if CDPATH is set.
1085(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1086
1087if test -z "$ECHO"; then
1088if test "X${echo_test_string+set}" != Xset; then
1089# find a string as large as possible, as long as the shell can cope with it
1090  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
1091    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1092    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1093       echo_test_string=`eval $cmd` &&
1094       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1095    then
1096      break
1097    fi
1098  done
1099fi
1100
1101if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1102   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1103   test "X$echo_testing_string" = "X$echo_test_string"; then
1104  :
1105else
1106  # The Solaris, AIX, and Digital Unix default echo programs unquote
1107  # backslashes.  This makes it impossible to quote backslashes using
1108  #   echo "$something" | sed 's/\\/\\\\/g'
1109  #
1110  # So, first we look for a working echo in the user's PATH.
1111
1112  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1113  for dir in $PATH /usr/ucb; do
1114    IFS="$lt_save_ifs"
1115    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1116       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1117       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1118       test "X$echo_testing_string" = "X$echo_test_string"; then
1119      echo="$dir/echo"
1120      break
1121    fi
1122  done
1123  IFS="$lt_save_ifs"
1124
1125  if test "X$echo" = Xecho; then
1126    # We didn't find a better echo, so look for alternatives.
1127    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1128       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1129       test "X$echo_testing_string" = "X$echo_test_string"; then
1130      # This shell has a builtin print -r that does the trick.
1131      echo='print -r'
1132    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1133	 test "X$CONFIG_SHELL" != X/bin/ksh; then
1134      # If we have ksh, try running configure again with it.
1135      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1136      export ORIGINAL_CONFIG_SHELL
1137      CONFIG_SHELL=/bin/ksh
1138      export CONFIG_SHELL
1139      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
1140    else
1141      # Try using printf.
1142      echo='printf %s\n'
1143      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1144	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1145	 test "X$echo_testing_string" = "X$echo_test_string"; then
1146	# Cool, printf works
1147	:
1148      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
1149	   test "X$echo_testing_string" = 'X\t' &&
1150	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1151	   test "X$echo_testing_string" = "X$echo_test_string"; then
1152	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1153	export CONFIG_SHELL
1154	SHELL="$CONFIG_SHELL"
1155	export SHELL
1156	echo="$CONFIG_SHELL $0 --fallback-echo"
1157      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
1158	   test "X$echo_testing_string" = 'X\t' &&
1159	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1160	   test "X$echo_testing_string" = "X$echo_test_string"; then
1161	echo="$CONFIG_SHELL $0 --fallback-echo"
1162      else
1163	# maybe with a smaller string...
1164	prev=:
1165
1166	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
1167	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1168	  then
1169	    break
1170	  fi
1171	  prev="$cmd"
1172	done
1173
1174	if test "$prev" != 'sed 50q "$0"'; then
1175	  echo_test_string=`eval $prev`
1176	  export echo_test_string
1177	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
1178	else
1179	  # Oops.  We lost completely, so just stick with echo.
1180	  echo=echo
1181	fi
1182      fi
1183    fi
1184  fi
1185fi
1186fi
1187
1188# Copy echo and quote the copy suitably for passing to libtool from
1189# the Makefile, instead of quoting the original, which is used later.
1190ECHO=$echo
1191if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
1192   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1193fi
1194
1195
1196
1197
1198tagnames=${tagnames+${tagnames},}CXX
1199
1200tagnames=${tagnames+${tagnames},}F77
1201
1202test -n "$DJDIR" || exec 7<&0 </dev/null
1203exec 6>&1
1204
1205# Name of the host.
1206# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1207# so uname gets run too.
1208ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1209
1210#
1211# Initializations.
1212#
1213ac_default_prefix=/usr/local
1214ac_clean_files=
1215ac_config_libobj_dir=.
1216LIBOBJS=
1217cross_compiling=no
1218subdirs=
1219MFLAGS=
1220MAKEFLAGS=
1221
1222# Identity of this package.
1223PACKAGE_NAME=
1224PACKAGE_TARNAME=
1225PACKAGE_VERSION=
1226PACKAGE_STRING=
1227PACKAGE_BUGREPORT=
1228PACKAGE_URL=
1229
1230ac_unique_file="lib/dns/name.c"
1231# Factoring default headers for most tests.
1232ac_includes_default="\
1233#include <stdio.h>
1234#ifdef HAVE_SYS_TYPES_H
1235# include <sys/types.h>
1236#endif
1237#ifdef HAVE_SYS_STAT_H
1238# include <sys/stat.h>
1239#endif
1240#ifdef STDC_HEADERS
1241# include <stdlib.h>
1242# include <stddef.h>
1243#else
1244# ifdef HAVE_STDLIB_H
1245#  include <stdlib.h>
1246# endif
1247#endif
1248#ifdef HAVE_STRING_H
1249# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1250#  include <memory.h>
1251# endif
1252# include <string.h>
1253#endif
1254#ifdef HAVE_STRINGS_H
1255# include <strings.h>
1256#endif
1257#ifdef HAVE_INTTYPES_H
1258# include <inttypes.h>
1259#endif
1260#ifdef HAVE_STDINT_H
1261# include <stdint.h>
1262#endif
1263#ifdef HAVE_UNISTD_H
1264# include <unistd.h>
1265#endif"
1266
1267ac_subst_vars='LTLIBOBJS
1268LIBOBJS
1269BUILD_LIBS
1270BUILD_LDFLAGS
1271BUILD_CPPFLAGS
1272BUILD_CFLAGS
1273BUILD_CC
1274DLZ_SYSTEM_TEST
1275DLZ_DRIVER_OBJS
1276DLZ_DRIVER_SRCS
1277DLZ_DRIVER_LIBS
1278DLZ_DRIVER_INCLUDES
1279CONTRIB_DLZ
1280PG_CONFIG
1281SO_TARGETS
1282SO_LD
1283SO_CFLAGS
1284SO
1285BIND9_CONFIGARGS
1286BIND9_VERSION
1287BIND9_BIND9_BUILDINCLUDE
1288BIND9_LWRES_BUILDINCLUDE
1289BIND9_DNS_BUILDINCLUDE
1290BIND9_ISCCFG_BUILDINCLUDE
1291BIND9_ISCCC_BUILDINCLUDE
1292BIND9_ISC_BUILDINCLUDE
1293BIND9_TOP_BUILDDIR
1294UNITTESTS
1295ATFLIBS
1296ATFBIN
1297ATFBUILD
1298IDNLIBS
1299XSLT_DB2LATEX_ADMONITIONS
1300XSLT_DB2LATEX_STYLE
1301XSLT_DOCBOOK_MAKETOC_XHTML
1302XSLT_DOCBOOK_MAKETOC_HTML
1303XSLT_DOCBOOK_CHUNKTOC_XHTML
1304XSLT_DOCBOOK_CHUNKTOC_HTML
1305XSLT_DOCBOOK_CHUNK_XHTML
1306XSLT_DOCBOOK_CHUNK_HTML
1307XSLT_DOCBOOK_STYLE_MAN
1308XSLT_DOCBOOK_STYLE_XHTML
1309XSLT_DOCBOOK_STYLE_HTML
1310DOXYGEN
1311XMLLINT
1312XSLTPROC
1313W3M
1314PDFLATEX
1315LATEX
1316ISC_ARCH_DIR
1317ISC_PLATFORM_USEMACASM
1318ISC_PLATFORM_USESTDASM
1319ISC_PLATFORM_USEOSFASM
1320ISC_PLATFORM_USEGCCASM
1321ISC_PLATFORM_HAVEATOMICSTORE
1322ISC_PLATFORM_HAVECMPXCHG
1323ISC_PLATFORM_HAVEXADDQ
1324ISC_PLATFORM_HAVEXADD
1325ISC_PLATFORM_HAVEIFNAMETOINDEX
1326ISC_PLATFORM_HAVESTRINGSH
1327ISC_PLATFORM_BRACEPTHREADONCEINIT
1328IRS_PLATFORM_USEDECLSPEC
1329LWRES_PLATFORM_USEDECLSPEC
1330ISC_PLATFORM_USEDECLSPEC
1331ISC_PLATFORM_RLIMITTYPE
1332ISC_PLATFORM_HAVESYSUNH
1333LWRES_PLATFORM_QUADFORMAT
1334ISC_PLATFORM_QUADFORMAT
1335DST_EXTRA_SRCS
1336DST_EXTRA_OBJS
1337USE_ISC_SPNEGO
1338ISC_EXTRA_SRCS
1339ISC_EXTRA_OBJS
1340LWRES_PLATFORM_NEEDVSNPRINTF
1341ISC_PLATFORM_NEEDVSNPRINTF
1342LWRES_PLATFORM_NEEDSPRINTF
1343ISC_PLATFORM_NEEDSPRINTF
1344ISC_PLATFORM_NEEDSTRLCAT
1345ISC_PLATFORM_NEEDSTRLCPY
1346GENRANDOMLIB
1347LWRES_PLATFORM_NEEDSTRTOUL
1348ISC_PLATFORM_NEEDSTRTOUL
1349ISC_PLATFORM_NEEDMEMMOVE
1350ISC_PLATFORM_NEEDSTRSEP
1351ISC_IRS_GETNAMEINFOSOCKLEN
1352ISC_LWRES_GETNAMEINFOPROTO
1353ISC_LWRES_GETADDRINFOPROTO
1354ISC_LWRES_GETIPNODEPROTO
1355ISC_LWRES_NEEDHERRNO
1356ISC_LWRES_GETHOSTBYADDRVOID
1357ISC_LWRES_ENDNETENTINT
1358ISC_LWRES_SETNETENTINT
1359ISC_LWRES_GETNETBYADDRINADDR
1360ISC_LWRES_ENDHOSTENTINT
1361ISC_LWRES_SETHOSTENTINT
1362ISC_LWRES_NEEDRRSETINFO
1363ISC_IRS_NEEDADDRINFO
1364ISC_LWRES_NEEDADDRINFO
1365ISC_PLATFORM_NEEDPORTT
1366ISC_PLATFORM_MSGHDRFLAVOR
1367LWRES_PLATFORM_HAVESALEN
1368ISC_PLATFORM_HAVESALEN
1369ISC_PLATFORM_NEEDPTON
1370ISC_PLATFORM_NEEDNTOP
1371ISC_PLATFORM_HAVEIF_LADDRCONF
1372ISC_PLATFORM_HAVEIF_LADDRREQ
1373ISC_PLATFORM_HAVESCOPEID
1374LWRES_HAVE_SIN6_SCOPE_ID
1375ISC_IPV6_C
1376ISC_ISCIPV6_O
1377ISC_IPV6_O
1378ISC_IPV6_H
1379ISC_PLATFORM_FIXIN6ISADDR
1380ISC_PLATFORM_HAVEIN6PKTINFO
1381LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
1382ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
1383LWRES_PLATFORM_NEEDIN6ADDRANY
1384ISC_PLATFORM_NEEDIN6ADDRANY
1385LWRES_PLATFORM_HAVEINADDR6
1386ISC_PLATFORM_HAVEINADDR6
1387LWRES_PLATFORM_NEEDNETINET6IN6H
1388ISC_PLATFORM_NEEDNETINET6IN6H
1389LWRES_PLATFORM_NEEDNETINETIN6H
1390ISC_PLATFORM_NEEDNETINETIN6H
1391LWRES_PLATFORM_HAVEIPV6
1392ISC_PLATFORM_HAVEIPV6
1393export_includedir
1394export_libdir
1395BIND9_CO_RULE
1396LIBEXPORT
1397LIBTOOL_IN_MAIN
1398LIBTOOL_ALLOW_UNDEFINED
1399LIBTOOL_MODE_LINK
1400LIBTOOL_MODE_INSTALL
1401LIBTOOL_MODE_COMPILE
1402LIBTOOL_MKDEP_SED
1403SA
1404A
1405O
1406ALWAYS_MAKE_SYMTABLE
1407MKSYMTBL_PROGRAM
1408ISC_PLATFORM_USEBACKTRACE
1409PURIFY
1410purify_path
1411IRIX_DNSSEC_WARNINGS_HACK
1412MKDEPPROG
1413MKDEPCFLAGS
1414MKDEPCC
1415ISC_THREAD_DIR
1416THREADOPTSRCS
1417THREADOPTOBJS
1418ISC_PLATFORM_USETHREADS
1419ALWAYS_DEFINES
1420DNS_CRYPTO_LIBS
1421DNS_GSSAPI_LIBS
1422DST_GSSAPI_INC
1423USE_GSSAPI
1424ISC_PLATFORM_KRB5HEADER
1425ISC_PLATFORM_GSSAPI_KRB5_HEADER
1426ISC_PLATFORM_GSSAPIHEADER
1427ISC_PLATFORM_HAVEGSSAPI
1428PKCS11_PROVIDER
1429PKCS11_TOOLS
1430USE_PKCS11
1431ISC_OPENSSL_INC
1432ISC_PLATFORM_OPENSSLHASH
1433OPENSSL_GOST
1434OPENSSL_ECDSA
1435OPENSSLLINKSRCS
1436OPENSSLLINKOBJS
1437DST_OPENSSL_INC
1438USE_OPENSSL
1439LWRES_PLATFORM_NEEDSYSSELECTH
1440ISC_PLATFORM_NEEDSYSSELECTH
1441ISC_PLATFORM_HAVEDEVPOLL
1442ISC_PLATFORM_HAVEEPOLL
1443ISC_PLATFORM_HAVEKQUEUE
1444ISC_PLATFORM_HAVELIFCONF
1445ISC_PLATFORM_NORETURN_POST
1446ISC_PLATFORM_NORETURN_PRE
1447ISC_PLATFORM_HAVELONGLONG
1448ISC_SOCKADDR_LEN_T
1449PYTHON_TOOLS
1450CHECKDS
1451PYTHON
1452PERL
1453ETAGS
1454LN
1455ARFLAGS
1456CCOPT
1457STD_CWARNINGS
1458STD_CDEFINES
1459STD_CINCLUDES
1460INSTALL_DATA
1461INSTALL_SCRIPT
1462INSTALL_PROGRAM
1463LIBTOOL
1464ac_ct_F77
1465FFLAGS
1466F77
1467CXXCPP
1468ac_ct_CXX
1469CXXFLAGS
1470CXX
1471CPP
1472NMEDIT
1473DSYMUTIL
1474STRIP
1475RANLIB
1476AR
1477ECHO
1478LN_S
1479EGREP
1480GREP
1481SED
1482OBJEXT
1483EXEEXT
1484ac_ct_CC
1485CPPFLAGS
1486LDFLAGS
1487CFLAGS
1488CC
1489SET_MAKE
1490host_os
1491host_vendor
1492host_cpu
1493host
1494build_os
1495build_vendor
1496build_cpu
1497build
1498target_alias
1499host_alias
1500build_alias
1501LIBS
1502ECHO_T
1503ECHO_N
1504ECHO_C
1505DEFS
1506mandir
1507localedir
1508libdir
1509psdir
1510pdfdir
1511dvidir
1512htmldir
1513infodir
1514docdir
1515oldincludedir
1516includedir
1517localstatedir
1518sharedstatedir
1519sysconfdir
1520datadir
1521datarootdir
1522libexecdir
1523sbindir
1524bindir
1525program_transform_name
1526prefix
1527exec_prefix
1528PACKAGE_URL
1529PACKAGE_BUGREPORT
1530PACKAGE_STRING
1531PACKAGE_VERSION
1532PACKAGE_TARNAME
1533PACKAGE_NAME
1534PATH_SEPARATOR
1535SHELL'
1536ac_subst_files='BIND9_MAKE_INCLUDES
1537BIND9_MAKE_RULES
1538LIBISC_API
1539LIBISCCC_API
1540LIBISCCFG_API
1541LIBDNS_API
1542LIBBIND9_API
1543LIBLWRES_API
1544LIBIRS_API
1545DLZ_DRIVER_RULES'
1546ac_user_opts='
1547enable_option_checking
1548enable_shared
1549enable_static
1550enable_fast_install
1551with_gnu_ld
1552enable_libtool_lock
1553with_pic
1554with_tags
1555enable_libbind
1556enable_developer
1557with_python
1558enable_kqueue
1559enable_epoll
1560enable_devpoll
1561with_openssl
1562enable_openssl_version_check
1563with_gost
1564enable_openssl_hash
1565with_pkcs11
1566with_gssapi
1567with_randomdev
1568enable_threads
1569with_libxml2
1570enable_largefile
1571with_purify
1572with_libtool
1573enable_backtrace
1574enable_symtable
1575enable_exportlib
1576with_export_libdir
1577with_export_includedir
1578enable_ipv6
1579with_kame
1580enable_getifaddrs
1581with_readline
1582enable_isc_spnego
1583enable_chroot
1584enable_linux_caps
1585with_rlimtype
1586enable_atomic
1587enable_fixed_rrset
1588enable_rpz_nsip
1589enable_rpz_nsdname
1590enable_filter_aaaa
1591with_docbook_xsl
1592with_idn
1593with_libiconv
1594with_iconv
1595with_idnlib
1596with_atf
1597with_dlopen
1598with_dlz_postgres
1599with_dlz_mysql
1600with_dlz_bdb
1601with_dlz_filesystem
1602with_dlz_ldap
1603with_dlz_odbc
1604with_dlz_stub
1605with_make_clean
1606'
1607      ac_precious_vars='build_alias
1608host_alias
1609target_alias
1610CC
1611CFLAGS
1612LDFLAGS
1613LIBS
1614CPPFLAGS
1615CPP
1616CXX
1617CXXFLAGS
1618CCC
1619CXXCPP
1620F77
1621FFLAGS'
1622
1623
1624# Initialize some variables set by options.
1625ac_init_help=
1626ac_init_version=false
1627ac_unrecognized_opts=
1628ac_unrecognized_sep=
1629# The variables have the same names as the options, with
1630# dashes changed to underlines.
1631cache_file=/dev/null
1632exec_prefix=NONE
1633no_create=
1634no_recursion=
1635prefix=NONE
1636program_prefix=NONE
1637program_suffix=NONE
1638program_transform_name=s,x,x,
1639silent=
1640site=
1641srcdir=
1642verbose=
1643x_includes=NONE
1644x_libraries=NONE
1645
1646# Installation directory options.
1647# These are left unexpanded so users can "make install exec_prefix=/foo"
1648# and all the variables that are supposed to be based on exec_prefix
1649# by default will actually change.
1650# Use braces instead of parens because sh, perl, etc. also accept them.
1651# (The list follows the same order as the GNU Coding Standards.)
1652bindir='${exec_prefix}/bin'
1653sbindir='${exec_prefix}/sbin'
1654libexecdir='${exec_prefix}/libexec'
1655datarootdir='${prefix}/share'
1656datadir='${datarootdir}'
1657sysconfdir='${prefix}/etc'
1658sharedstatedir='${prefix}/com'
1659localstatedir='${prefix}/var'
1660includedir='${prefix}/include'
1661oldincludedir='/usr/include'
1662docdir='${datarootdir}/doc/${PACKAGE}'
1663infodir='${datarootdir}/info'
1664htmldir='${docdir}'
1665dvidir='${docdir}'
1666pdfdir='${docdir}'
1667psdir='${docdir}'
1668libdir='${exec_prefix}/lib'
1669localedir='${datarootdir}/locale'
1670mandir='${datarootdir}/man'
1671
1672ac_prev=
1673ac_dashdash=
1674for ac_option
1675do
1676  # If the previous option needs an argument, assign it.
1677  if test -n "$ac_prev"; then
1678    eval $ac_prev=\$ac_option
1679    ac_prev=
1680    continue
1681  fi
1682
1683  case $ac_option in
1684  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1685  *=)   ac_optarg= ;;
1686  *)    ac_optarg=yes ;;
1687  esac
1688
1689  # Accept the important Cygnus configure options, so we can diagnose typos.
1690
1691  case $ac_dashdash$ac_option in
1692  --)
1693    ac_dashdash=yes ;;
1694
1695  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1696    ac_prev=bindir ;;
1697  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1698    bindir=$ac_optarg ;;
1699
1700  -build | --build | --buil | --bui | --bu)
1701    ac_prev=build_alias ;;
1702  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1703    build_alias=$ac_optarg ;;
1704
1705  -cache-file | --cache-file | --cache-fil | --cache-fi \
1706  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1707    ac_prev=cache_file ;;
1708  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1709  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1710    cache_file=$ac_optarg ;;
1711
1712  --config-cache | -C)
1713    cache_file=config.cache ;;
1714
1715  -datadir | --datadir | --datadi | --datad)
1716    ac_prev=datadir ;;
1717  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1718    datadir=$ac_optarg ;;
1719
1720  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1721  | --dataroo | --dataro | --datar)
1722    ac_prev=datarootdir ;;
1723  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1724  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1725    datarootdir=$ac_optarg ;;
1726
1727  -disable-* | --disable-*)
1728    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1729    # Reject names that are not valid shell variable names.
1730    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1731      as_fn_error $? "invalid feature name: $ac_useropt"
1732    ac_useropt_orig=$ac_useropt
1733    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1734    case $ac_user_opts in
1735      *"
1736"enable_$ac_useropt"
1737"*) ;;
1738      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1739	 ac_unrecognized_sep=', ';;
1740    esac
1741    eval enable_$ac_useropt=no ;;
1742
1743  -docdir | --docdir | --docdi | --doc | --do)
1744    ac_prev=docdir ;;
1745  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1746    docdir=$ac_optarg ;;
1747
1748  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1749    ac_prev=dvidir ;;
1750  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1751    dvidir=$ac_optarg ;;
1752
1753  -enable-* | --enable-*)
1754    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1755    # Reject names that are not valid shell variable names.
1756    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1757      as_fn_error $? "invalid feature name: $ac_useropt"
1758    ac_useropt_orig=$ac_useropt
1759    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1760    case $ac_user_opts in
1761      *"
1762"enable_$ac_useropt"
1763"*) ;;
1764      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1765	 ac_unrecognized_sep=', ';;
1766    esac
1767    eval enable_$ac_useropt=\$ac_optarg ;;
1768
1769  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1770  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1771  | --exec | --exe | --ex)
1772    ac_prev=exec_prefix ;;
1773  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1774  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1775  | --exec=* | --exe=* | --ex=*)
1776    exec_prefix=$ac_optarg ;;
1777
1778  -gas | --gas | --ga | --g)
1779    # Obsolete; use --with-gas.
1780    with_gas=yes ;;
1781
1782  -help | --help | --hel | --he | -h)
1783    ac_init_help=long ;;
1784  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1785    ac_init_help=recursive ;;
1786  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1787    ac_init_help=short ;;
1788
1789  -host | --host | --hos | --ho)
1790    ac_prev=host_alias ;;
1791  -host=* | --host=* | --hos=* | --ho=*)
1792    host_alias=$ac_optarg ;;
1793
1794  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1795    ac_prev=htmldir ;;
1796  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1797  | --ht=*)
1798    htmldir=$ac_optarg ;;
1799
1800  -includedir | --includedir | --includedi | --included | --include \
1801  | --includ | --inclu | --incl | --inc)
1802    ac_prev=includedir ;;
1803  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1804  | --includ=* | --inclu=* | --incl=* | --inc=*)
1805    includedir=$ac_optarg ;;
1806
1807  -infodir | --infodir | --infodi | --infod | --info | --inf)
1808    ac_prev=infodir ;;
1809  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1810    infodir=$ac_optarg ;;
1811
1812  -libdir | --libdir | --libdi | --libd)
1813    ac_prev=libdir ;;
1814  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1815    libdir=$ac_optarg ;;
1816
1817  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1818  | --libexe | --libex | --libe)
1819    ac_prev=libexecdir ;;
1820  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1821  | --libexe=* | --libex=* | --libe=*)
1822    libexecdir=$ac_optarg ;;
1823
1824  -localedir | --localedir | --localedi | --localed | --locale)
1825    ac_prev=localedir ;;
1826  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1827    localedir=$ac_optarg ;;
1828
1829  -localstatedir | --localstatedir | --localstatedi | --localstated \
1830  | --localstate | --localstat | --localsta | --localst | --locals)
1831    ac_prev=localstatedir ;;
1832  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1833  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1834    localstatedir=$ac_optarg ;;
1835
1836  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1837    ac_prev=mandir ;;
1838  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1839    mandir=$ac_optarg ;;
1840
1841  -nfp | --nfp | --nf)
1842    # Obsolete; use --without-fp.
1843    with_fp=no ;;
1844
1845  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1846  | --no-cr | --no-c | -n)
1847    no_create=yes ;;
1848
1849  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1850  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1851    no_recursion=yes ;;
1852
1853  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1854  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1855  | --oldin | --oldi | --old | --ol | --o)
1856    ac_prev=oldincludedir ;;
1857  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1858  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1859  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1860    oldincludedir=$ac_optarg ;;
1861
1862  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1863    ac_prev=prefix ;;
1864  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1865    prefix=$ac_optarg ;;
1866
1867  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1868  | --program-pre | --program-pr | --program-p)
1869    ac_prev=program_prefix ;;
1870  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1871  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1872    program_prefix=$ac_optarg ;;
1873
1874  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1875  | --program-suf | --program-su | --program-s)
1876    ac_prev=program_suffix ;;
1877  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1878  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1879    program_suffix=$ac_optarg ;;
1880
1881  -program-transform-name | --program-transform-name \
1882  | --program-transform-nam | --program-transform-na \
1883  | --program-transform-n | --program-transform- \
1884  | --program-transform | --program-transfor \
1885  | --program-transfo | --program-transf \
1886  | --program-trans | --program-tran \
1887  | --progr-tra | --program-tr | --program-t)
1888    ac_prev=program_transform_name ;;
1889  -program-transform-name=* | --program-transform-name=* \
1890  | --program-transform-nam=* | --program-transform-na=* \
1891  | --program-transform-n=* | --program-transform-=* \
1892  | --program-transform=* | --program-transfor=* \
1893  | --program-transfo=* | --program-transf=* \
1894  | --program-trans=* | --program-tran=* \
1895  | --progr-tra=* | --program-tr=* | --program-t=*)
1896    program_transform_name=$ac_optarg ;;
1897
1898  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1899    ac_prev=pdfdir ;;
1900  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1901    pdfdir=$ac_optarg ;;
1902
1903  -psdir | --psdir | --psdi | --psd | --ps)
1904    ac_prev=psdir ;;
1905  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1906    psdir=$ac_optarg ;;
1907
1908  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909  | -silent | --silent | --silen | --sile | --sil)
1910    silent=yes ;;
1911
1912  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1913    ac_prev=sbindir ;;
1914  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1915  | --sbi=* | --sb=*)
1916    sbindir=$ac_optarg ;;
1917
1918  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1919  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1920  | --sharedst | --shareds | --shared | --share | --shar \
1921  | --sha | --sh)
1922    ac_prev=sharedstatedir ;;
1923  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1924  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1925  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1926  | --sha=* | --sh=*)
1927    sharedstatedir=$ac_optarg ;;
1928
1929  -site | --site | --sit)
1930    ac_prev=site ;;
1931  -site=* | --site=* | --sit=*)
1932    site=$ac_optarg ;;
1933
1934  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1935    ac_prev=srcdir ;;
1936  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1937    srcdir=$ac_optarg ;;
1938
1939  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1940  | --syscon | --sysco | --sysc | --sys | --sy)
1941    ac_prev=sysconfdir ;;
1942  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1943  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1944    sysconfdir=$ac_optarg ;;
1945
1946  -target | --target | --targe | --targ | --tar | --ta | --t)
1947    ac_prev=target_alias ;;
1948  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1949    target_alias=$ac_optarg ;;
1950
1951  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1952    verbose=yes ;;
1953
1954  -version | --version | --versio | --versi | --vers | -V)
1955    ac_init_version=: ;;
1956
1957  -with-* | --with-*)
1958    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1959    # Reject names that are not valid shell variable names.
1960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1961      as_fn_error $? "invalid package name: $ac_useropt"
1962    ac_useropt_orig=$ac_useropt
1963    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1964    case $ac_user_opts in
1965      *"
1966"with_$ac_useropt"
1967"*) ;;
1968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1969	 ac_unrecognized_sep=', ';;
1970    esac
1971    eval with_$ac_useropt=\$ac_optarg ;;
1972
1973  -without-* | --without-*)
1974    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1975    # Reject names that are not valid shell variable names.
1976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1977      as_fn_error $? "invalid package name: $ac_useropt"
1978    ac_useropt_orig=$ac_useropt
1979    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1980    case $ac_user_opts in
1981      *"
1982"with_$ac_useropt"
1983"*) ;;
1984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1985	 ac_unrecognized_sep=', ';;
1986    esac
1987    eval with_$ac_useropt=no ;;
1988
1989  --x)
1990    # Obsolete; use --with-x.
1991    with_x=yes ;;
1992
1993  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1994  | --x-incl | --x-inc | --x-in | --x-i)
1995    ac_prev=x_includes ;;
1996  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1997  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1998    x_includes=$ac_optarg ;;
1999
2000  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2001  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2002    ac_prev=x_libraries ;;
2003  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2004  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2005    x_libraries=$ac_optarg ;;
2006
2007  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2008Try \`$0 --help' for more information"
2009    ;;
2010
2011  *=*)
2012    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2013    # Reject names that are not valid shell variable names.
2014    case $ac_envvar in #(
2015      '' | [0-9]* | *[!_$as_cr_alnum]* )
2016      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2017    esac
2018    eval $ac_envvar=\$ac_optarg
2019    export $ac_envvar ;;
2020
2021  *)
2022    # FIXME: should be removed in autoconf 3.0.
2023    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2024    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2025      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2026    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2027    ;;
2028
2029  esac
2030done
2031
2032if test -n "$ac_prev"; then
2033  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2034  as_fn_error $? "missing argument to $ac_option"
2035fi
2036
2037if test -n "$ac_unrecognized_opts"; then
2038  case $enable_option_checking in
2039    no) ;;
2040    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2041    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2042  esac
2043fi
2044
2045# Check all directory arguments for consistency.
2046for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2047		datadir sysconfdir sharedstatedir localstatedir includedir \
2048		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2049		libdir localedir mandir
2050do
2051  eval ac_val=\$$ac_var
2052  # Remove trailing slashes.
2053  case $ac_val in
2054    */ )
2055      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2056      eval $ac_var=\$ac_val;;
2057  esac
2058  # Be sure to have absolute directory names.
2059  case $ac_val in
2060    [\\/$]* | ?:[\\/]* )  continue;;
2061    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2062  esac
2063  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2064done
2065
2066# There might be people who depend on the old broken behavior: `$host'
2067# used to hold the argument of --host etc.
2068# FIXME: To remove some day.
2069build=$build_alias
2070host=$host_alias
2071target=$target_alias
2072
2073# FIXME: To remove some day.
2074if test "x$host_alias" != x; then
2075  if test "x$build_alias" = x; then
2076    cross_compiling=maybe
2077    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2078    If a cross compiler is detected then cross compile mode will be used" >&2
2079  elif test "x$build_alias" != "x$host_alias"; then
2080    cross_compiling=yes
2081  fi
2082fi
2083
2084ac_tool_prefix=
2085test -n "$host_alias" && ac_tool_prefix=$host_alias-
2086
2087test "$silent" = yes && exec 6>/dev/null
2088
2089
2090ac_pwd=`pwd` && test -n "$ac_pwd" &&
2091ac_ls_di=`ls -di .` &&
2092ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2093  as_fn_error $? "working directory cannot be determined"
2094test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2095  as_fn_error $? "pwd does not report name of working directory"
2096
2097
2098# Find the source files, if location was not specified.
2099if test -z "$srcdir"; then
2100  ac_srcdir_defaulted=yes
2101  # Try the directory containing this script, then the parent directory.
2102  ac_confdir=`$as_dirname -- "$as_myself" ||
2103$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2104	 X"$as_myself" : 'X\(//\)[^/]' \| \
2105	 X"$as_myself" : 'X\(//\)$' \| \
2106	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2107$as_echo X"$as_myself" |
2108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2109	    s//\1/
2110	    q
2111	  }
2112	  /^X\(\/\/\)[^/].*/{
2113	    s//\1/
2114	    q
2115	  }
2116	  /^X\(\/\/\)$/{
2117	    s//\1/
2118	    q
2119	  }
2120	  /^X\(\/\).*/{
2121	    s//\1/
2122	    q
2123	  }
2124	  s/.*/./; q'`
2125  srcdir=$ac_confdir
2126  if test ! -r "$srcdir/$ac_unique_file"; then
2127    srcdir=..
2128  fi
2129else
2130  ac_srcdir_defaulted=no
2131fi
2132if test ! -r "$srcdir/$ac_unique_file"; then
2133  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2134  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2135fi
2136ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2137ac_abs_confdir=`(
2138	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2139	pwd)`
2140# When building in place, set srcdir=.
2141if test "$ac_abs_confdir" = "$ac_pwd"; then
2142  srcdir=.
2143fi
2144# Remove unnecessary trailing slashes from srcdir.
2145# Double slashes in file names in object file debugging info
2146# mess up M-x gdb in Emacs.
2147case $srcdir in
2148*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2149esac
2150for ac_var in $ac_precious_vars; do
2151  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2152  eval ac_env_${ac_var}_value=\$${ac_var}
2153  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2154  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2155done
2156
2157#
2158# Report the --help message.
2159#
2160if test "$ac_init_help" = "long"; then
2161  # Omit some internal or obsolete options to make the list less imposing.
2162  # This message is too long to be a string in the A/UX 3.1 sh.
2163  cat <<_ACEOF
2164\`configure' configures this package to adapt to many kinds of systems.
2165
2166Usage: $0 [OPTION]... [VAR=VALUE]...
2167
2168To assign environment variables (e.g., CC, CFLAGS...), specify them as
2169VAR=VALUE.  See below for descriptions of some of the useful variables.
2170
2171Defaults for the options are specified in brackets.
2172
2173Configuration:
2174  -h, --help              display this help and exit
2175      --help=short        display options specific to this package
2176      --help=recursive    display the short help of all the included packages
2177  -V, --version           display version information and exit
2178  -q, --quiet, --silent   do not print \`checking ...' messages
2179      --cache-file=FILE   cache test results in FILE [disabled]
2180  -C, --config-cache      alias for \`--cache-file=config.cache'
2181  -n, --no-create         do not create output files
2182      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2183
2184Installation directories:
2185  --prefix=PREFIX         install architecture-independent files in PREFIX
2186                          [$ac_default_prefix]
2187  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2188                          [PREFIX]
2189
2190By default, \`make install' will install all the files in
2191\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2192an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2193for instance \`--prefix=\$HOME'.
2194
2195For better control, use the options below.
2196
2197Fine tuning of the installation directories:
2198  --bindir=DIR            user executables [EPREFIX/bin]
2199  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2200  --libexecdir=DIR        program executables [EPREFIX/libexec]
2201  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2202  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2203  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2204  --libdir=DIR            object code libraries [EPREFIX/lib]
2205  --includedir=DIR        C header files [PREFIX/include]
2206  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2207  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2208  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2209  --infodir=DIR           info documentation [DATAROOTDIR/info]
2210  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2211  --mandir=DIR            man documentation [DATAROOTDIR/man]
2212  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2213  --htmldir=DIR           html documentation [DOCDIR]
2214  --dvidir=DIR            dvi documentation [DOCDIR]
2215  --pdfdir=DIR            pdf documentation [DOCDIR]
2216  --psdir=DIR             ps documentation [DOCDIR]
2217_ACEOF
2218
2219  cat <<\_ACEOF
2220
2221System types:
2222  --build=BUILD     configure for building on BUILD [guessed]
2223  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2224_ACEOF
2225fi
2226
2227if test -n "$ac_init_help"; then
2228
2229  cat <<\_ACEOF
2230
2231Optional Features:
2232  --disable-option-checking  ignore unrecognized --enable/--with options
2233  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2234  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2235  --enable-shared[=PKGS]  build shared libraries [default=yes]
2236  --enable-static[=PKGS]  build static libraries [default=yes]
2237  --enable-fast-install[=PKGS]
2238                          optimize for fast installation [default=yes]
2239  --disable-libtool-lock  avoid locking (might break parallel builds)
2240  --enable-libbind	  deprecated
2241  --enable-developer     enable developer build settings
2242  --enable-kqueue         use BSD kqueue when available [default=yes]
2243  --enable-epoll          use Linux epoll when available [default=auto]
2244  --enable-devpoll        use /dev/poll when available [default=yes]
2245  --enable-openssl-version-check
2246                          Check OpenSSL Version [default=yes]
2247  --enable-openssl-hash   use OpenSSL for hash functions [default=no]
2248  --enable-threads	enable multithreading
2249  --enable-largefile	  64-bit file support
2250  --enable-backtrace      log stack backtrace on abort [default=yes]
2251  --enable-symtable       use internal symbol table for backtrace
2252                          [all|minimal(default)|none]
2253  --enable-exportlib	build exportable library (GNU make required)
2254                        [default=no]
2255  --enable-ipv6           use IPv6 default=autodetect
2256  --enable-getifaddrs     Enable the use of getifaddrs() [yes|no].
2257  --disable-isc-spnego    use SPNEGO from GSSAPI library
2258  --disable-chroot        disable chroot
2259  --disable-linux-caps	  disable linux capabilities
2260  --enable-atomic	  enable machine specific atomic operations
2261			  [default=autodetect]
2262  --enable-fixed-rrset    enable fixed rrset ordering
2263			  [default=no]
2264  --enable-rpz-nsip	  enable rpz-nsip rules [default=no]
2265  --enable-rpz-nsdname	  enable rpz-nsdname rules [default=no]
2266  --enable-filter-aaaa    enable filtering of AAAA records over IPv4
2267			  [default=no]
2268
2269Optional Packages:
2270  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2271  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2272  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2273  --with-pic              try to use only PIC/non-PIC objects [default=use
2274                          both]
2275  --with-tags[=TAGS]      include additional configurations [automatic]
2276  --with-python=PATH   Specify path to python interpreter
2277  --with-openssl=PATH     Build with OpenSSL yes|no|path.
2278			  (Required for DNSSEC)
2279
2280  --with-pkcs11=PATH      Build with PKCS11 support yes|no|path
2281                          (PATH is for the PKCS11 provider)
2282  --with-gssapi=PATH      Specify path for system-supplied GSSAPI [default=yes]
2283  --with-randomdev=PATH   Specify path for random device
2284  --with-libxml2=PATH     Build with libxml2 library yes|no|path
2285  --with-purify=PATH      use Rational purify
2286  --with-libtool          use GNU libtool
2287  --with-export-libdir=PATH
2288                        installation directory for the export library
2289                        [EPREFIX/lib/bind9]
2290  --with-export-includedir=PATH
2291                        installation directory for the header files of the
2292                        export library [PREFIX/include/bind9]
2293  --with-kame=PATH	  use Kame IPv6 default path /usr/local/v6
2294  --with-readline=LIBSPEC    specify readline library default -lreadline
2295  --with-docbook-xsl=PATH Specify path for Docbook-XSL stylesheets
2296  --with-idn=MPREFIX      enable IDN support using idnkit default PREFIX
2297  --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX
2298  --with-iconv=LIBSPEC    specify iconv library default -liconv
2299  --with-idnlib=ARG       specify libidnkit
2300  --with-atf=ARG       Automated Test Framework support
2301  --with-dlopen=ARG       Support dynamically loadable DLZ drivers
2302  --with-dlz-postgres=PATH   Build with Postgres DLZ driver yes|no|path.
2303                               (Required to use Postgres with DLZ)
2304  --with-dlz-mysql=PATH   Build with MySQL DLZ driver yes|no|path.
2305                               (Required to use MySQL with DLZ)
2306  --with-dlz-bdb=PATH   Build with Berkeley DB DLZ driver yes|no|path.
2307                               (Required to use Berkeley DB with DLZ)
2308  --with-dlz-filesystem=PATH   Build with filesystem DLZ driver yes|no.
2309                               (Required to use file system driver with DLZ)
2310  --with-dlz-ldap=PATH   Build with LDAP DLZ driver yes|no|path.
2311                               (Required to use LDAP with DLZ)
2312  --with-dlz-odbc=PATH   Build with ODBC DLZ driver yes|no|path.
2313                               (Required to use ODBC with DLZ)
2314  --with-dlz-stub=PATH   Build with stub DLZ driver yes|no.
2315                               (Required to use stub driver with DLZ)
2316  --with-make-clean      Run "make clean" at end of configure [yes|no].
2317
2318Some influential environment variables:
2319  CC          C compiler command
2320  CFLAGS      C compiler flags
2321  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2322              nonstandard directory <lib dir>
2323  LIBS        libraries to pass to the linker, e.g. -l<library>
2324  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2325              you have headers in a nonstandard directory <include dir>
2326  CPP         C preprocessor
2327  CXX         C++ compiler command
2328  CXXFLAGS    C++ compiler flags
2329  CXXCPP      C++ preprocessor
2330  F77         Fortran 77 compiler command
2331  FFLAGS      Fortran 77 compiler flags
2332
2333Use these variables to override the choices made by `configure' or to help
2334it to find libraries and programs with nonstandard names/locations.
2335
2336Report bugs to the package provider.
2337_ACEOF
2338ac_status=$?
2339fi
2340
2341if test "$ac_init_help" = "recursive"; then
2342  # If there are subdirs, report their specific --help.
2343  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2344    test -d "$ac_dir" ||
2345      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2346      continue
2347    ac_builddir=.
2348
2349case "$ac_dir" in
2350.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2351*)
2352  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2353  # A ".." for each directory in $ac_dir_suffix.
2354  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2355  case $ac_top_builddir_sub in
2356  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2357  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2358  esac ;;
2359esac
2360ac_abs_top_builddir=$ac_pwd
2361ac_abs_builddir=$ac_pwd$ac_dir_suffix
2362# for backward compatibility:
2363ac_top_builddir=$ac_top_build_prefix
2364
2365case $srcdir in
2366  .)  # We are building in place.
2367    ac_srcdir=.
2368    ac_top_srcdir=$ac_top_builddir_sub
2369    ac_abs_top_srcdir=$ac_pwd ;;
2370  [\\/]* | ?:[\\/]* )  # Absolute name.
2371    ac_srcdir=$srcdir$ac_dir_suffix;
2372    ac_top_srcdir=$srcdir
2373    ac_abs_top_srcdir=$srcdir ;;
2374  *) # Relative name.
2375    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2376    ac_top_srcdir=$ac_top_build_prefix$srcdir
2377    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2378esac
2379ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2380
2381    cd "$ac_dir" || { ac_status=$?; continue; }
2382    # Check for guested configure.
2383    if test -f "$ac_srcdir/configure.gnu"; then
2384      echo &&
2385      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2386    elif test -f "$ac_srcdir/configure"; then
2387      echo &&
2388      $SHELL "$ac_srcdir/configure" --help=recursive
2389    else
2390      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2391    fi || ac_status=$?
2392    cd "$ac_pwd" || { ac_status=$?; break; }
2393  done
2394fi
2395
2396test -n "$ac_init_help" && exit $ac_status
2397if $ac_init_version; then
2398  cat <<\_ACEOF
2399configure
2400generated by GNU Autoconf 2.67
2401
2402Copyright (C) 2010 Free Software Foundation, Inc.
2403This configure script is free software; the Free Software Foundation
2404gives unlimited permission to copy, distribute and modify it.
2405_ACEOF
2406  exit
2407fi
2408
2409## ------------------------ ##
2410## Autoconf initialization. ##
2411## ------------------------ ##
2412
2413# ac_fn_c_try_compile LINENO
2414# --------------------------
2415# Try to compile conftest.$ac_ext, and return whether this succeeded.
2416ac_fn_c_try_compile ()
2417{
2418  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419  rm -f conftest.$ac_objext
2420  if { { ac_try="$ac_compile"
2421case "(($ac_try" in
2422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423  *) ac_try_echo=$ac_try;;
2424esac
2425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426$as_echo "$ac_try_echo"; } >&5
2427  (eval "$ac_compile") 2>conftest.err
2428  ac_status=$?
2429  if test -s conftest.err; then
2430    grep -v '^ *+' conftest.err >conftest.er1
2431    cat conftest.er1 >&5
2432    mv -f conftest.er1 conftest.err
2433  fi
2434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2435  test $ac_status = 0; } && {
2436	 test -z "$ac_c_werror_flag" ||
2437	 test ! -s conftest.err
2438       } && test -s conftest.$ac_objext; then :
2439  ac_retval=0
2440else
2441  $as_echo "$as_me: failed program was:" >&5
2442sed 's/^/| /' conftest.$ac_ext >&5
2443
2444	ac_retval=1
2445fi
2446  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447  as_fn_set_status $ac_retval
2448
2449} # ac_fn_c_try_compile
2450
2451# ac_fn_c_try_link LINENO
2452# -----------------------
2453# Try to link conftest.$ac_ext, and return whether this succeeded.
2454ac_fn_c_try_link ()
2455{
2456  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457  rm -f conftest.$ac_objext conftest$ac_exeext
2458  if { { ac_try="$ac_link"
2459case "(($ac_try" in
2460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461  *) ac_try_echo=$ac_try;;
2462esac
2463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2464$as_echo "$ac_try_echo"; } >&5
2465  (eval "$ac_link") 2>conftest.err
2466  ac_status=$?
2467  if test -s conftest.err; then
2468    grep -v '^ *+' conftest.err >conftest.er1
2469    cat conftest.er1 >&5
2470    mv -f conftest.er1 conftest.err
2471  fi
2472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2473  test $ac_status = 0; } && {
2474	 test -z "$ac_c_werror_flag" ||
2475	 test ! -s conftest.err
2476       } && test -s conftest$ac_exeext && {
2477	 test "$cross_compiling" = yes ||
2478	 $as_test_x conftest$ac_exeext
2479       }; then :
2480  ac_retval=0
2481else
2482  $as_echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485	ac_retval=1
2486fi
2487  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2488  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2489  # interfere with the next link command; also delete a directory that is
2490  # left behind by Apple's compiler.  We do this before executing the actions.
2491  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2492  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2493  as_fn_set_status $ac_retval
2494
2495} # ac_fn_c_try_link
2496
2497# ac_fn_c_try_cpp LINENO
2498# ----------------------
2499# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2500ac_fn_c_try_cpp ()
2501{
2502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503  if { { ac_try="$ac_cpp conftest.$ac_ext"
2504case "(($ac_try" in
2505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506  *) ac_try_echo=$ac_try;;
2507esac
2508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2509$as_echo "$ac_try_echo"; } >&5
2510  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2511  ac_status=$?
2512  if test -s conftest.err; then
2513    grep -v '^ *+' conftest.err >conftest.er1
2514    cat conftest.er1 >&5
2515    mv -f conftest.er1 conftest.err
2516  fi
2517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2518  test $ac_status = 0; } > conftest.i && {
2519	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2520	 test ! -s conftest.err
2521       }; then :
2522  ac_retval=0
2523else
2524  $as_echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
2527    ac_retval=1
2528fi
2529  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530  as_fn_set_status $ac_retval
2531
2532} # ac_fn_c_try_cpp
2533
2534# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2535# -------------------------------------------------------
2536# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2537# the include files in INCLUDES and setting the cache variable VAR
2538# accordingly.
2539ac_fn_c_check_header_mongrel ()
2540{
2541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542  if eval "test \"\${$3+set}\"" = set; then :
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544$as_echo_n "checking for $2... " >&6; }
2545if eval "test \"\${$3+set}\"" = set; then :
2546  $as_echo_n "(cached) " >&6
2547fi
2548eval ac_res=\$$3
2549	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550$as_echo "$ac_res" >&6; }
2551else
2552  # Is the header compilable?
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2554$as_echo_n "checking $2 usability... " >&6; }
2555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556/* end confdefs.h.  */
2557$4
2558#include <$2>
2559_ACEOF
2560if ac_fn_c_try_compile "$LINENO"; then :
2561  ac_header_compiler=yes
2562else
2563  ac_header_compiler=no
2564fi
2565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2567$as_echo "$ac_header_compiler" >&6; }
2568
2569# Is the header present?
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2571$as_echo_n "checking $2 presence... " >&6; }
2572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573/* end confdefs.h.  */
2574#include <$2>
2575_ACEOF
2576if ac_fn_c_try_cpp "$LINENO"; then :
2577  ac_header_preproc=yes
2578else
2579  ac_header_preproc=no
2580fi
2581rm -f conftest.err conftest.i conftest.$ac_ext
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2583$as_echo "$ac_header_preproc" >&6; }
2584
2585# So?  What about this header?
2586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2587  yes:no: )
2588    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2589$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2590    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2591$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2592    ;;
2593  no:yes:* )
2594    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2595$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2596    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2597$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2598    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2599$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2600    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2601$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2602    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2603$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2604    ;;
2605esac
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607$as_echo_n "checking for $2... " >&6; }
2608if eval "test \"\${$3+set}\"" = set; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  eval "$3=\$ac_header_compiler"
2612fi
2613eval ac_res=\$$3
2614	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615$as_echo "$ac_res" >&6; }
2616fi
2617  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2618
2619} # ac_fn_c_check_header_mongrel
2620
2621# ac_fn_c_try_run LINENO
2622# ----------------------
2623# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2624# that executables *can* be run.
2625ac_fn_c_try_run ()
2626{
2627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628  if { { ac_try="$ac_link"
2629case "(($ac_try" in
2630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631  *) ac_try_echo=$ac_try;;
2632esac
2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634$as_echo "$ac_try_echo"; } >&5
2635  (eval "$ac_link") 2>&5
2636  ac_status=$?
2637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2639  { { case "(($ac_try" in
2640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641  *) ac_try_echo=$ac_try;;
2642esac
2643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644$as_echo "$ac_try_echo"; } >&5
2645  (eval "$ac_try") 2>&5
2646  ac_status=$?
2647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648  test $ac_status = 0; }; }; then :
2649  ac_retval=0
2650else
2651  $as_echo "$as_me: program exited with status $ac_status" >&5
2652       $as_echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
2655       ac_retval=$ac_status
2656fi
2657  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659  as_fn_set_status $ac_retval
2660
2661} # ac_fn_c_try_run
2662
2663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2664# -------------------------------------------------------
2665# Tests whether HEADER exists and can be compiled using the include files in
2666# INCLUDES, setting the cache variable VAR accordingly.
2667ac_fn_c_check_header_compile ()
2668{
2669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2671$as_echo_n "checking for $2... " >&6; }
2672if eval "test \"\${$3+set}\"" = set; then :
2673  $as_echo_n "(cached) " >&6
2674else
2675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676/* end confdefs.h.  */
2677$4
2678#include <$2>
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681  eval "$3=yes"
2682else
2683  eval "$3=no"
2684fi
2685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686fi
2687eval ac_res=\$$3
2688	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689$as_echo "$ac_res" >&6; }
2690  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2691
2692} # ac_fn_c_check_header_compile
2693
2694# ac_fn_c_check_func LINENO FUNC VAR
2695# ----------------------------------
2696# Tests whether FUNC exists, setting the cache variable VAR accordingly
2697ac_fn_c_check_func ()
2698{
2699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701$as_echo_n "checking for $2... " >&6; }
2702if eval "test \"\${$3+set}\"" = set; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706/* end confdefs.h.  */
2707/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2708   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2709#define $2 innocuous_$2
2710
2711/* System header to define __stub macros and hopefully few prototypes,
2712    which can conflict with char $2 (); below.
2713    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2714    <limits.h> exists even on freestanding compilers.  */
2715
2716#ifdef __STDC__
2717# include <limits.h>
2718#else
2719# include <assert.h>
2720#endif
2721
2722#undef $2
2723
2724/* Override any GCC internal prototype to avoid an error.
2725   Use char because int might match the return type of a GCC
2726   builtin and then its argument prototype would still apply.  */
2727#ifdef __cplusplus
2728extern "C"
2729#endif
2730char $2 ();
2731/* The GNU C library defines this for functions which it implements
2732    to always fail with ENOSYS.  Some functions are actually named
2733    something starting with __ and the normal name is an alias.  */
2734#if defined __stub_$2 || defined __stub___$2
2735choke me
2736#endif
2737
2738int
2739main ()
2740{
2741return $2 ();
2742  ;
2743  return 0;
2744}
2745_ACEOF
2746if ac_fn_c_try_link "$LINENO"; then :
2747  eval "$3=yes"
2748else
2749  eval "$3=no"
2750fi
2751rm -f core conftest.err conftest.$ac_objext \
2752    conftest$ac_exeext conftest.$ac_ext
2753fi
2754eval ac_res=\$$3
2755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756$as_echo "$ac_res" >&6; }
2757  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2758
2759} # ac_fn_c_check_func
2760
2761# ac_fn_cxx_try_compile LINENO
2762# ----------------------------
2763# Try to compile conftest.$ac_ext, and return whether this succeeded.
2764ac_fn_cxx_try_compile ()
2765{
2766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2767  rm -f conftest.$ac_objext
2768  if { { ac_try="$ac_compile"
2769case "(($ac_try" in
2770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771  *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774$as_echo "$ac_try_echo"; } >&5
2775  (eval "$ac_compile") 2>conftest.err
2776  ac_status=$?
2777  if test -s conftest.err; then
2778    grep -v '^ *+' conftest.err >conftest.er1
2779    cat conftest.er1 >&5
2780    mv -f conftest.er1 conftest.err
2781  fi
2782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783  test $ac_status = 0; } && {
2784	 test -z "$ac_cxx_werror_flag" ||
2785	 test ! -s conftest.err
2786       } && test -s conftest.$ac_objext; then :
2787  ac_retval=0
2788else
2789  $as_echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792	ac_retval=1
2793fi
2794  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2795  as_fn_set_status $ac_retval
2796
2797} # ac_fn_cxx_try_compile
2798
2799# ac_fn_cxx_try_cpp LINENO
2800# ------------------------
2801# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2802ac_fn_cxx_try_cpp ()
2803{
2804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2805  if { { ac_try="$ac_cpp conftest.$ac_ext"
2806case "(($ac_try" in
2807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808  *) ac_try_echo=$ac_try;;
2809esac
2810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811$as_echo "$ac_try_echo"; } >&5
2812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2813  ac_status=$?
2814  if test -s conftest.err; then
2815    grep -v '^ *+' conftest.err >conftest.er1
2816    cat conftest.er1 >&5
2817    mv -f conftest.er1 conftest.err
2818  fi
2819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2820  test $ac_status = 0; } > conftest.i && {
2821	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2822	 test ! -s conftest.err
2823       }; then :
2824  ac_retval=0
2825else
2826  $as_echo "$as_me: failed program was:" >&5
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
2829    ac_retval=1
2830fi
2831  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2832  as_fn_set_status $ac_retval
2833
2834} # ac_fn_cxx_try_cpp
2835
2836# ac_fn_cxx_try_link LINENO
2837# -------------------------
2838# Try to link conftest.$ac_ext, and return whether this succeeded.
2839ac_fn_cxx_try_link ()
2840{
2841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2842  rm -f conftest.$ac_objext conftest$ac_exeext
2843  if { { ac_try="$ac_link"
2844case "(($ac_try" in
2845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846  *) ac_try_echo=$ac_try;;
2847esac
2848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849$as_echo "$ac_try_echo"; } >&5
2850  (eval "$ac_link") 2>conftest.err
2851  ac_status=$?
2852  if test -s conftest.err; then
2853    grep -v '^ *+' conftest.err >conftest.er1
2854    cat conftest.er1 >&5
2855    mv -f conftest.er1 conftest.err
2856  fi
2857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858  test $ac_status = 0; } && {
2859	 test -z "$ac_cxx_werror_flag" ||
2860	 test ! -s conftest.err
2861       } && test -s conftest$ac_exeext && {
2862	 test "$cross_compiling" = yes ||
2863	 $as_test_x conftest$ac_exeext
2864       }; then :
2865  ac_retval=0
2866else
2867  $as_echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870	ac_retval=1
2871fi
2872  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2873  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2874  # interfere with the next link command; also delete a directory that is
2875  # left behind by Apple's compiler.  We do this before executing the actions.
2876  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2877  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2878  as_fn_set_status $ac_retval
2879
2880} # ac_fn_cxx_try_link
2881
2882# ac_fn_f77_try_compile LINENO
2883# ----------------------------
2884# Try to compile conftest.$ac_ext, and return whether this succeeded.
2885ac_fn_f77_try_compile ()
2886{
2887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2888  rm -f conftest.$ac_objext
2889  if { { ac_try="$ac_compile"
2890case "(($ac_try" in
2891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892  *) ac_try_echo=$ac_try;;
2893esac
2894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895$as_echo "$ac_try_echo"; } >&5
2896  (eval "$ac_compile") 2>conftest.err
2897  ac_status=$?
2898  if test -s conftest.err; then
2899    grep -v '^ *+' conftest.err >conftest.er1
2900    cat conftest.er1 >&5
2901    mv -f conftest.er1 conftest.err
2902  fi
2903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904  test $ac_status = 0; } && {
2905	 test -z "$ac_f77_werror_flag" ||
2906	 test ! -s conftest.err
2907       } && test -s conftest.$ac_objext; then :
2908  ac_retval=0
2909else
2910  $as_echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913	ac_retval=1
2914fi
2915  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2916  as_fn_set_status $ac_retval
2917
2918} # ac_fn_f77_try_compile
2919
2920# ac_fn_f77_try_link LINENO
2921# -------------------------
2922# Try to link conftest.$ac_ext, and return whether this succeeded.
2923ac_fn_f77_try_link ()
2924{
2925  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2926  rm -f conftest.$ac_objext conftest$ac_exeext
2927  if { { ac_try="$ac_link"
2928case "(($ac_try" in
2929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930  *) ac_try_echo=$ac_try;;
2931esac
2932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2933$as_echo "$ac_try_echo"; } >&5
2934  (eval "$ac_link") 2>conftest.err
2935  ac_status=$?
2936  if test -s conftest.err; then
2937    grep -v '^ *+' conftest.err >conftest.er1
2938    cat conftest.er1 >&5
2939    mv -f conftest.er1 conftest.err
2940  fi
2941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942  test $ac_status = 0; } && {
2943	 test -z "$ac_f77_werror_flag" ||
2944	 test ! -s conftest.err
2945       } && test -s conftest$ac_exeext && {
2946	 test "$cross_compiling" = yes ||
2947	 $as_test_x conftest$ac_exeext
2948       }; then :
2949  ac_retval=0
2950else
2951  $as_echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954	ac_retval=1
2955fi
2956  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2957  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2958  # interfere with the next link command; also delete a directory that is
2959  # left behind by Apple's compiler.  We do this before executing the actions.
2960  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2961  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2962  as_fn_set_status $ac_retval
2963
2964} # ac_fn_f77_try_link
2965
2966# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2967# -------------------------------------------
2968# Tests whether TYPE exists after having included INCLUDES, setting cache
2969# variable VAR accordingly.
2970ac_fn_c_check_type ()
2971{
2972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2974$as_echo_n "checking for $2... " >&6; }
2975if eval "test \"\${$3+set}\"" = set; then :
2976  $as_echo_n "(cached) " >&6
2977else
2978  eval "$3=no"
2979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2980/* end confdefs.h.  */
2981$4
2982int
2983main ()
2984{
2985if (sizeof ($2))
2986	 return 0;
2987  ;
2988  return 0;
2989}
2990_ACEOF
2991if ac_fn_c_try_compile "$LINENO"; then :
2992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993/* end confdefs.h.  */
2994$4
2995int
2996main ()
2997{
2998if (sizeof (($2)))
2999	    return 0;
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004if ac_fn_c_try_compile "$LINENO"; then :
3005
3006else
3007  eval "$3=yes"
3008fi
3009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010fi
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012fi
3013eval ac_res=\$$3
3014	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3015$as_echo "$ac_res" >&6; }
3016  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3017
3018} # ac_fn_c_check_type
3019
3020# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3021# --------------------------------------------
3022# Tries to find the compile-time value of EXPR in a program that includes
3023# INCLUDES, setting VAR accordingly. Returns whether the value could be
3024# computed
3025ac_fn_c_compute_int ()
3026{
3027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3028  if test "$cross_compiling" = yes; then
3029    # Depending upon the size, compute the lo and hi bounds.
3030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h.  */
3032$4
3033int
3034main ()
3035{
3036static int test_array [1 - 2 * !(($2) >= 0)];
3037test_array [0] = 0
3038
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043if ac_fn_c_try_compile "$LINENO"; then :
3044  ac_lo=0 ac_mid=0
3045  while :; do
3046    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h.  */
3048$4
3049int
3050main ()
3051{
3052static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3053test_array [0] = 0
3054
3055  ;
3056  return 0;
3057}
3058_ACEOF
3059if ac_fn_c_try_compile "$LINENO"; then :
3060  ac_hi=$ac_mid; break
3061else
3062  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3063			if test $ac_lo -le $ac_mid; then
3064			  ac_lo= ac_hi=
3065			  break
3066			fi
3067			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3068fi
3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070  done
3071else
3072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h.  */
3074$4
3075int
3076main ()
3077{
3078static int test_array [1 - 2 * !(($2) < 0)];
3079test_array [0] = 0
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085if ac_fn_c_try_compile "$LINENO"; then :
3086  ac_hi=-1 ac_mid=-1
3087  while :; do
3088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h.  */
3090$4
3091int
3092main ()
3093{
3094static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3095test_array [0] = 0
3096
3097  ;
3098  return 0;
3099}
3100_ACEOF
3101if ac_fn_c_try_compile "$LINENO"; then :
3102  ac_lo=$ac_mid; break
3103else
3104  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3105			if test $ac_mid -le $ac_hi; then
3106			  ac_lo= ac_hi=
3107			  break
3108			fi
3109			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112  done
3113else
3114  ac_lo= ac_hi=
3115fi
3116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117fi
3118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119# Binary search between lo and hi bounds.
3120while test "x$ac_lo" != "x$ac_hi"; do
3121  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123/* end confdefs.h.  */
3124$4
3125int
3126main ()
3127{
3128static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3129test_array [0] = 0
3130
3131  ;
3132  return 0;
3133}
3134_ACEOF
3135if ac_fn_c_try_compile "$LINENO"; then :
3136  ac_hi=$ac_mid
3137else
3138  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3139fi
3140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141done
3142case $ac_lo in #((
3143?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3144'') ac_retval=1 ;;
3145esac
3146  else
3147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148/* end confdefs.h.  */
3149$4
3150static long int longval () { return $2; }
3151static unsigned long int ulongval () { return $2; }
3152#include <stdio.h>
3153#include <stdlib.h>
3154int
3155main ()
3156{
3157
3158  FILE *f = fopen ("conftest.val", "w");
3159  if (! f)
3160    return 1;
3161  if (($2) < 0)
3162    {
3163      long int i = longval ();
3164      if (i != ($2))
3165	return 1;
3166      fprintf (f, "%ld", i);
3167    }
3168  else
3169    {
3170      unsigned long int i = ulongval ();
3171      if (i != ($2))
3172	return 1;
3173      fprintf (f, "%lu", i);
3174    }
3175  /* Do not output a trailing newline, as this causes \r\n confusion
3176     on some platforms.  */
3177  return ferror (f) || fclose (f) != 0;
3178
3179  ;
3180  return 0;
3181}
3182_ACEOF
3183if ac_fn_c_try_run "$LINENO"; then :
3184  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3185else
3186  ac_retval=1
3187fi
3188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3189  conftest.$ac_objext conftest.beam conftest.$ac_ext
3190rm -f conftest.val
3191
3192  fi
3193  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3194  as_fn_set_status $ac_retval
3195
3196} # ac_fn_c_compute_int
3197cat >config.log <<_ACEOF
3198This file contains any messages produced by compilers while
3199running configure, to aid debugging if configure makes a mistake.
3200
3201It was created by $as_me, which was
3202generated by GNU Autoconf 2.67.  Invocation command line was
3203
3204  $ $0 $@
3205
3206_ACEOF
3207exec 5>>config.log
3208{
3209cat <<_ASUNAME
3210## --------- ##
3211## Platform. ##
3212## --------- ##
3213
3214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3215uname -m = `(uname -m) 2>/dev/null || echo unknown`
3216uname -r = `(uname -r) 2>/dev/null || echo unknown`
3217uname -s = `(uname -s) 2>/dev/null || echo unknown`
3218uname -v = `(uname -v) 2>/dev/null || echo unknown`
3219
3220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3221/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3222
3223/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3224/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3226/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3227/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3228/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3229/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3230
3231_ASUNAME
3232
3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236  IFS=$as_save_IFS
3237  test -z "$as_dir" && as_dir=.
3238    $as_echo "PATH: $as_dir"
3239  done
3240IFS=$as_save_IFS
3241
3242} >&5
3243
3244cat >&5 <<_ACEOF
3245
3246
3247## ----------- ##
3248## Core tests. ##
3249## ----------- ##
3250
3251_ACEOF
3252
3253
3254# Keep a trace of the command line.
3255# Strip out --no-create and --no-recursion so they do not pile up.
3256# Strip out --silent because we don't want to record it for future runs.
3257# Also quote any args containing shell meta-characters.
3258# Make two passes to allow for proper duplicate-argument suppression.
3259ac_configure_args=
3260ac_configure_args0=
3261ac_configure_args1=
3262ac_must_keep_next=false
3263for ac_pass in 1 2
3264do
3265  for ac_arg
3266  do
3267    case $ac_arg in
3268    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3269    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3270    | -silent | --silent | --silen | --sile | --sil)
3271      continue ;;
3272    *\'*)
3273      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3274    esac
3275    case $ac_pass in
3276    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3277    2)
3278      as_fn_append ac_configure_args1 " '$ac_arg'"
3279      if test $ac_must_keep_next = true; then
3280	ac_must_keep_next=false # Got value, back to normal.
3281      else
3282	case $ac_arg in
3283	  *=* | --config-cache | -C | -disable-* | --disable-* \
3284	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3285	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3286	  | -with-* | --with-* | -without-* | --without-* | --x)
3287	    case "$ac_configure_args0 " in
3288	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3289	    esac
3290	    ;;
3291	  -* ) ac_must_keep_next=true ;;
3292	esac
3293      fi
3294      as_fn_append ac_configure_args " '$ac_arg'"
3295      ;;
3296    esac
3297  done
3298done
3299{ ac_configure_args0=; unset ac_configure_args0;}
3300{ ac_configure_args1=; unset ac_configure_args1;}
3301
3302# When interrupted or exit'd, cleanup temporary files, and complete
3303# config.log.  We remove comments because anyway the quotes in there
3304# would cause problems or look ugly.
3305# WARNING: Use '\'' to represent an apostrophe within the trap.
3306# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3307trap 'exit_status=$?
3308  # Save into config.log some information that might help in debugging.
3309  {
3310    echo
3311
3312    $as_echo "## ---------------- ##
3313## Cache variables. ##
3314## ---------------- ##"
3315    echo
3316    # The following way of writing the cache mishandles newlines in values,
3317(
3318  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3319    eval ac_val=\$$ac_var
3320    case $ac_val in #(
3321    *${as_nl}*)
3322      case $ac_var in #(
3323      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3324$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3325      esac
3326      case $ac_var in #(
3327      _ | IFS | as_nl) ;; #(
3328      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3329      *) { eval $ac_var=; unset $ac_var;} ;;
3330      esac ;;
3331    esac
3332  done
3333  (set) 2>&1 |
3334    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3335    *${as_nl}ac_space=\ *)
3336      sed -n \
3337	"s/'\''/'\''\\\\'\'''\''/g;
3338	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3339      ;; #(
3340    *)
3341      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3342      ;;
3343    esac |
3344    sort
3345)
3346    echo
3347
3348    $as_echo "## ----------------- ##
3349## Output variables. ##
3350## ----------------- ##"
3351    echo
3352    for ac_var in $ac_subst_vars
3353    do
3354      eval ac_val=\$$ac_var
3355      case $ac_val in
3356      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3357      esac
3358      $as_echo "$ac_var='\''$ac_val'\''"
3359    done | sort
3360    echo
3361
3362    if test -n "$ac_subst_files"; then
3363      $as_echo "## ------------------- ##
3364## File substitutions. ##
3365## ------------------- ##"
3366      echo
3367      for ac_var in $ac_subst_files
3368      do
3369	eval ac_val=\$$ac_var
3370	case $ac_val in
3371	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3372	esac
3373	$as_echo "$ac_var='\''$ac_val'\''"
3374      done | sort
3375      echo
3376    fi
3377
3378    if test -s confdefs.h; then
3379      $as_echo "## ----------- ##
3380## confdefs.h. ##
3381## ----------- ##"
3382      echo
3383      cat confdefs.h
3384      echo
3385    fi
3386    test "$ac_signal" != 0 &&
3387      $as_echo "$as_me: caught signal $ac_signal"
3388    $as_echo "$as_me: exit $exit_status"
3389  } >&5
3390  rm -f core *.core core.conftest.* &&
3391    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3392    exit $exit_status
3393' 0
3394for ac_signal in 1 2 13 15; do
3395  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3396done
3397ac_signal=0
3398
3399# confdefs.h avoids OS command line length limits that DEFS can exceed.
3400rm -f -r conftest* confdefs.h
3401
3402$as_echo "/* confdefs.h */" > confdefs.h
3403
3404# Predefined preprocessor variables.
3405
3406cat >>confdefs.h <<_ACEOF
3407#define PACKAGE_NAME "$PACKAGE_NAME"
3408_ACEOF
3409
3410cat >>confdefs.h <<_ACEOF
3411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3412_ACEOF
3413
3414cat >>confdefs.h <<_ACEOF
3415#define PACKAGE_VERSION "$PACKAGE_VERSION"
3416_ACEOF
3417
3418cat >>confdefs.h <<_ACEOF
3419#define PACKAGE_STRING "$PACKAGE_STRING"
3420_ACEOF
3421
3422cat >>confdefs.h <<_ACEOF
3423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3424_ACEOF
3425
3426cat >>confdefs.h <<_ACEOF
3427#define PACKAGE_URL "$PACKAGE_URL"
3428_ACEOF
3429
3430
3431# Let the site file select an alternate cache file if it wants to.
3432# Prefer an explicitly selected file to automatically selected ones.
3433ac_site_file1=NONE
3434ac_site_file2=NONE
3435if test -n "$CONFIG_SITE"; then
3436  # We do not want a PATH search for config.site.
3437  case $CONFIG_SITE in #((
3438    -*)  ac_site_file1=./$CONFIG_SITE;;
3439    */*) ac_site_file1=$CONFIG_SITE;;
3440    *)   ac_site_file1=./$CONFIG_SITE;;
3441  esac
3442elif test "x$prefix" != xNONE; then
3443  ac_site_file1=$prefix/share/config.site
3444  ac_site_file2=$prefix/etc/config.site
3445else
3446  ac_site_file1=$ac_default_prefix/share/config.site
3447  ac_site_file2=$ac_default_prefix/etc/config.site
3448fi
3449for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3450do
3451  test "x$ac_site_file" = xNONE && continue
3452  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3453    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3454$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3455    sed 's/^/| /' "$ac_site_file" >&5
3456    . "$ac_site_file" \
3457      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459as_fn_error $? "failed to load site script $ac_site_file
3460See \`config.log' for more details" "$LINENO" 5; }
3461  fi
3462done
3463
3464if test -r "$cache_file"; then
3465  # Some versions of bash will fail to source /dev/null (special files
3466  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3467  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3468    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3469$as_echo "$as_me: loading cache $cache_file" >&6;}
3470    case $cache_file in
3471      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3472      *)                      . "./$cache_file";;
3473    esac
3474  fi
3475else
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3477$as_echo "$as_me: creating cache $cache_file" >&6;}
3478  >$cache_file
3479fi
3480
3481# Check that the precious variables saved in the cache have kept the same
3482# value.
3483ac_cache_corrupted=false
3484for ac_var in $ac_precious_vars; do
3485  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3486  eval ac_new_set=\$ac_env_${ac_var}_set
3487  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3488  eval ac_new_val=\$ac_env_${ac_var}_value
3489  case $ac_old_set,$ac_new_set in
3490    set,)
3491      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3492$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3493      ac_cache_corrupted=: ;;
3494    ,set)
3495      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3496$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3497      ac_cache_corrupted=: ;;
3498    ,);;
3499    *)
3500      if test "x$ac_old_val" != "x$ac_new_val"; then
3501	# differences in whitespace do not lead to failure.
3502	ac_old_val_w=`echo x $ac_old_val`
3503	ac_new_val_w=`echo x $ac_new_val`
3504	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3505	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3506$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3507	  ac_cache_corrupted=:
3508	else
3509	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3510$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3511	  eval $ac_var=\$ac_old_val
3512	fi
3513	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3514$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3515	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3516$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3517      fi;;
3518  esac
3519  # Pass precious variables to config.status.
3520  if test "$ac_new_set" = set; then
3521    case $ac_new_val in
3522    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3523    *) ac_arg=$ac_var=$ac_new_val ;;
3524    esac
3525    case " $ac_configure_args " in
3526      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3527      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3528    esac
3529  fi
3530done
3531if $ac_cache_corrupted; then
3532  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3535$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3536  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3537fi
3538## -------------------- ##
3539## Main body of script. ##
3540## -------------------- ##
3541
3542ac_ext=c
3543ac_cpp='$CPP $CPPFLAGS'
3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548
3549
3550
3551ac_config_headers="$ac_config_headers config.h"
3552
3553
3554ac_aux_dir=
3555for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3556  if test -f "$ac_dir/install-sh"; then
3557    ac_aux_dir=$ac_dir
3558    ac_install_sh="$ac_aux_dir/install-sh -c"
3559    break
3560  elif test -f "$ac_dir/install.sh"; then
3561    ac_aux_dir=$ac_dir
3562    ac_install_sh="$ac_aux_dir/install.sh -c"
3563    break
3564  elif test -f "$ac_dir/shtool"; then
3565    ac_aux_dir=$ac_dir
3566    ac_install_sh="$ac_aux_dir/shtool install -c"
3567    break
3568  fi
3569done
3570if test -z "$ac_aux_dir"; then
3571  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3572fi
3573
3574# These three variables are undocumented and unsupported,
3575# and are intended to be withdrawn in a future Autoconf release.
3576# They can cause serious problems if a builder's source tree is in a directory
3577# whose full name contains unusual characters.
3578ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3579ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3580ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3581
3582
3583# Make sure we can run config.sub.
3584$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3585  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3588$as_echo_n "checking build system type... " >&6; }
3589if test "${ac_cv_build+set}" = set; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  ac_build_alias=$build_alias
3593test "x$ac_build_alias" = x &&
3594  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3595test "x$ac_build_alias" = x &&
3596  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3597ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3598  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3599
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3602$as_echo "$ac_cv_build" >&6; }
3603case $ac_cv_build in
3604*-*-*) ;;
3605*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3606esac
3607build=$ac_cv_build
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_build
3610shift
3611build_cpu=$1
3612build_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616build_os=$*
3617IFS=$ac_save_IFS
3618case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3619
3620
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3622$as_echo_n "checking host system type... " >&6; }
3623if test "${ac_cv_host+set}" = set; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  if test "x$host_alias" = x; then
3627  ac_cv_host=$ac_cv_build
3628else
3629  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3630    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3631fi
3632
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3635$as_echo "$ac_cv_host" >&6; }
3636case $ac_cv_host in
3637*-*-*) ;;
3638*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3639esac
3640host=$ac_cv_host
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_host
3643shift
3644host_cpu=$1
3645host_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649host_os=$*
3650IFS=$ac_save_IFS
3651case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3652
3653
3654
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3656$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3657set x ${MAKE-make}
3658ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3659if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3660  $as_echo_n "(cached) " >&6
3661else
3662  cat >conftest.make <<\_ACEOF
3663SHELL = /bin/sh
3664all:
3665	@echo '@@@%%%=$(MAKE)=@@@%%%'
3666_ACEOF
3667# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3668case `${MAKE-make} -f conftest.make 2>/dev/null` in
3669  *@@@%%%=?*=@@@%%%*)
3670    eval ac_cv_prog_make_${ac_make}_set=yes;;
3671  *)
3672    eval ac_cv_prog_make_${ac_make}_set=no;;
3673esac
3674rm -f conftest.make
3675fi
3676if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3678$as_echo "yes" >&6; }
3679  SET_MAKE=
3680else
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682$as_echo "no" >&6; }
3683  SET_MAKE="MAKE=${MAKE-make}"
3684fi
3685
3686
3687#
3688# GNU libtool support
3689#
3690case $build_os in
3691sunos*)
3692    # Just set the maximum command line length for sunos as it otherwise
3693    # takes a exceptionally long time to work it out. Required for libtool.
3694
3695    lt_cv_sys_max_cmd_len=4096;
3696    ;;
3697esac
3698
3699# Check whether --enable-shared was given.
3700if test "${enable_shared+set}" = set; then :
3701  enableval=$enable_shared; p=${PACKAGE-default}
3702    case $enableval in
3703    yes) enable_shared=yes ;;
3704    no) enable_shared=no ;;
3705    *)
3706      enable_shared=no
3707      # Look at the argument we got.  We use all the common list separators.
3708      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709      for pkg in $enableval; do
3710	IFS="$lt_save_ifs"
3711	if test "X$pkg" = "X$p"; then
3712	  enable_shared=yes
3713	fi
3714      done
3715      IFS="$lt_save_ifs"
3716      ;;
3717    esac
3718else
3719  enable_shared=yes
3720fi
3721
3722
3723# Check whether --enable-static was given.
3724if test "${enable_static+set}" = set; then :
3725  enableval=$enable_static; p=${PACKAGE-default}
3726    case $enableval in
3727    yes) enable_static=yes ;;
3728    no) enable_static=no ;;
3729    *)
3730     enable_static=no
3731      # Look at the argument we got.  We use all the common list separators.
3732      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3733      for pkg in $enableval; do
3734	IFS="$lt_save_ifs"
3735	if test "X$pkg" = "X$p"; then
3736	  enable_static=yes
3737	fi
3738      done
3739      IFS="$lt_save_ifs"
3740      ;;
3741    esac
3742else
3743  enable_static=yes
3744fi
3745
3746
3747# Check whether --enable-fast-install was given.
3748if test "${enable_fast_install+set}" = set; then :
3749  enableval=$enable_fast_install; p=${PACKAGE-default}
3750    case $enableval in
3751    yes) enable_fast_install=yes ;;
3752    no) enable_fast_install=no ;;
3753    *)
3754      enable_fast_install=no
3755      # Look at the argument we got.  We use all the common list separators.
3756      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3757      for pkg in $enableval; do
3758	IFS="$lt_save_ifs"
3759	if test "X$pkg" = "X$p"; then
3760	  enable_fast_install=yes
3761	fi
3762      done
3763      IFS="$lt_save_ifs"
3764      ;;
3765    esac
3766else
3767  enable_fast_install=yes
3768fi
3769
3770
3771ac_ext=c
3772ac_cpp='$CPP $CPPFLAGS'
3773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776if test -n "$ac_tool_prefix"; then
3777  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3778set dummy ${ac_tool_prefix}gcc; ac_word=$2
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780$as_echo_n "checking for $ac_word... " >&6; }
3781if test "${ac_cv_prog_CC+set}" = set; then :
3782  $as_echo_n "(cached) " >&6
3783else
3784  if test -n "$CC"; then
3785  ac_cv_prog_CC="$CC" # Let the user override the test.
3786else
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790  IFS=$as_save_IFS
3791  test -z "$as_dir" && as_dir=.
3792    for ac_exec_ext in '' $ac_executable_extensions; do
3793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796    break 2
3797  fi
3798done
3799  done
3800IFS=$as_save_IFS
3801
3802fi
3803fi
3804CC=$ac_cv_prog_CC
3805if test -n "$CC"; then
3806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807$as_echo "$CC" >&6; }
3808else
3809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810$as_echo "no" >&6; }
3811fi
3812
3813
3814fi
3815if test -z "$ac_cv_prog_CC"; then
3816  ac_ct_CC=$CC
3817  # Extract the first word of "gcc", so it can be a program name with args.
3818set dummy gcc; ac_word=$2
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820$as_echo_n "checking for $ac_word... " >&6; }
3821if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  if test -n "$ac_ct_CC"; then
3825  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3826else
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830  IFS=$as_save_IFS
3831  test -z "$as_dir" && as_dir=.
3832    for ac_exec_ext in '' $ac_executable_extensions; do
3833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834    ac_cv_prog_ac_ct_CC="gcc"
3835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836    break 2
3837  fi
3838done
3839  done
3840IFS=$as_save_IFS
3841
3842fi
3843fi
3844ac_ct_CC=$ac_cv_prog_ac_ct_CC
3845if test -n "$ac_ct_CC"; then
3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3847$as_echo "$ac_ct_CC" >&6; }
3848else
3849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850$as_echo "no" >&6; }
3851fi
3852
3853  if test "x$ac_ct_CC" = x; then
3854    CC=""
3855  else
3856    case $cross_compiling:$ac_tool_warned in
3857yes:)
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3860ac_tool_warned=yes ;;
3861esac
3862    CC=$ac_ct_CC
3863  fi
3864else
3865  CC="$ac_cv_prog_CC"
3866fi
3867
3868if test -z "$CC"; then
3869          if test -n "$ac_tool_prefix"; then
3870    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3871set dummy ${ac_tool_prefix}cc; ac_word=$2
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873$as_echo_n "checking for $ac_word... " >&6; }
3874if test "${ac_cv_prog_CC+set}" = set; then :
3875  $as_echo_n "(cached) " >&6
3876else
3877  if test -n "$CC"; then
3878  ac_cv_prog_CC="$CC" # Let the user override the test.
3879else
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH
3882do
3883  IFS=$as_save_IFS
3884  test -z "$as_dir" && as_dir=.
3885    for ac_exec_ext in '' $ac_executable_extensions; do
3886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3887    ac_cv_prog_CC="${ac_tool_prefix}cc"
3888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889    break 2
3890  fi
3891done
3892  done
3893IFS=$as_save_IFS
3894
3895fi
3896fi
3897CC=$ac_cv_prog_CC
3898if test -n "$CC"; then
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900$as_echo "$CC" >&6; }
3901else
3902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903$as_echo "no" >&6; }
3904fi
3905
3906
3907  fi
3908fi
3909if test -z "$CC"; then
3910  # Extract the first word of "cc", so it can be a program name with args.
3911set dummy cc; ac_word=$2
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913$as_echo_n "checking for $ac_word... " >&6; }
3914if test "${ac_cv_prog_CC+set}" = set; then :
3915  $as_echo_n "(cached) " >&6
3916else
3917  if test -n "$CC"; then
3918  ac_cv_prog_CC="$CC" # Let the user override the test.
3919else
3920  ac_prog_rejected=no
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924  IFS=$as_save_IFS
3925  test -z "$as_dir" && as_dir=.
3926    for ac_exec_ext in '' $ac_executable_extensions; do
3927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3929       ac_prog_rejected=yes
3930       continue
3931     fi
3932    ac_cv_prog_CC="cc"
3933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934    break 2
3935  fi
3936done
3937  done
3938IFS=$as_save_IFS
3939
3940if test $ac_prog_rejected = yes; then
3941  # We found a bogon in the path, so make sure we never use it.
3942  set dummy $ac_cv_prog_CC
3943  shift
3944  if test $# != 0; then
3945    # We chose a different compiler from the bogus one.
3946    # However, it has the same basename, so the bogon will be chosen
3947    # first if we set CC to just the basename; use the full file name.
3948    shift
3949    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3950  fi
3951fi
3952fi
3953fi
3954CC=$ac_cv_prog_CC
3955if test -n "$CC"; then
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957$as_echo "$CC" >&6; }
3958else
3959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963
3964fi
3965if test -z "$CC"; then
3966  if test -n "$ac_tool_prefix"; then
3967  for ac_prog in cl.exe
3968  do
3969    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972$as_echo_n "checking for $ac_word... " >&6; }
3973if test "${ac_cv_prog_CC+set}" = set; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  if test -n "$CC"; then
3977  ac_cv_prog_CC="$CC" # Let the user override the test.
3978else
3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982  IFS=$as_save_IFS
3983  test -z "$as_dir" && as_dir=.
3984    for ac_exec_ext in '' $ac_executable_extensions; do
3985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988    break 2
3989  fi
3990done
3991  done
3992IFS=$as_save_IFS
3993
3994fi
3995fi
3996CC=$ac_cv_prog_CC
3997if test -n "$CC"; then
3998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3999$as_echo "$CC" >&6; }
4000else
4001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003fi
4004
4005
4006    test -n "$CC" && break
4007  done
4008fi
4009if test -z "$CC"; then
4010  ac_ct_CC=$CC
4011  for ac_prog in cl.exe
4012do
4013  # Extract the first word of "$ac_prog", so it can be a program name with args.
4014set dummy $ac_prog; ac_word=$2
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
4017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4018  $as_echo_n "(cached) " >&6
4019else
4020  if test -n "$ac_ct_CC"; then
4021  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4022else
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026  IFS=$as_save_IFS
4027  test -z "$as_dir" && as_dir=.
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4030    ac_cv_prog_ac_ct_CC="$ac_prog"
4031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032    break 2
4033  fi
4034done
4035  done
4036IFS=$as_save_IFS
4037
4038fi
4039fi
4040ac_ct_CC=$ac_cv_prog_ac_ct_CC
4041if test -n "$ac_ct_CC"; then
4042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4043$as_echo "$ac_ct_CC" >&6; }
4044else
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
4047fi
4048
4049
4050  test -n "$ac_ct_CC" && break
4051done
4052
4053  if test "x$ac_ct_CC" = x; then
4054    CC=""
4055  else
4056    case $cross_compiling:$ac_tool_warned in
4057yes:)
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4060ac_tool_warned=yes ;;
4061esac
4062    CC=$ac_ct_CC
4063  fi
4064fi
4065
4066fi
4067
4068
4069test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071as_fn_error $? "no acceptable C compiler found in \$PATH
4072See \`config.log' for more details" "$LINENO" 5; }
4073
4074# Provide some information about the compiler.
4075$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4076set X $ac_compile
4077ac_compiler=$2
4078for ac_option in --version -v -V -qversion; do
4079  { { ac_try="$ac_compiler $ac_option >&5"
4080case "(($ac_try" in
4081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082  *) ac_try_echo=$ac_try;;
4083esac
4084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085$as_echo "$ac_try_echo"; } >&5
4086  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4087  ac_status=$?
4088  if test -s conftest.err; then
4089    sed '10a\
4090... rest of stderr output deleted ...
4091         10q' conftest.err >conftest.er1
4092    cat conftest.er1 >&5
4093  fi
4094  rm -f conftest.er1 conftest.err
4095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096  test $ac_status = 0; }
4097done
4098
4099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h.  */
4101
4102int
4103main ()
4104{
4105
4106  ;
4107  return 0;
4108}
4109_ACEOF
4110ac_clean_files_save=$ac_clean_files
4111ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4112# Try to create an executable without -o first, disregard a.out.
4113# It will help us diagnose broken compilers, and finding out an intuition
4114# of exeext.
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4116$as_echo_n "checking whether the C compiler works... " >&6; }
4117ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4118
4119# The possible output files:
4120ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4121
4122ac_rmfiles=
4123for ac_file in $ac_files
4124do
4125  case $ac_file in
4126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4127    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4128  esac
4129done
4130rm -f $ac_rmfiles
4131
4132if { { ac_try="$ac_link_default"
4133case "(($ac_try" in
4134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135  *) ac_try_echo=$ac_try;;
4136esac
4137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138$as_echo "$ac_try_echo"; } >&5
4139  (eval "$ac_link_default") 2>&5
4140  ac_status=$?
4141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142  test $ac_status = 0; }; then :
4143  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4144# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4145# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4146# so that the user can short-circuit this test for compilers unknown to
4147# Autoconf.
4148for ac_file in $ac_files ''
4149do
4150  test -f "$ac_file" || continue
4151  case $ac_file in
4152    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4153	;;
4154    [ab].out )
4155	# We found the default executable, but exeext='' is most
4156	# certainly right.
4157	break;;
4158    *.* )
4159	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4160	then :; else
4161	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4162	fi
4163	# We set ac_cv_exeext here because the later test for it is not
4164	# safe: cross compilers may not add the suffix if given an `-o'
4165	# argument, so we may need to know it at that point already.
4166	# Even if this section looks crufty: it has the advantage of
4167	# actually working.
4168	break;;
4169    * )
4170	break;;
4171  esac
4172done
4173test "$ac_cv_exeext" = no && ac_cv_exeext=
4174
4175else
4176  ac_file=''
4177fi
4178if test -z "$ac_file"; then :
4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
4181$as_echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186as_fn_error 77 "C compiler cannot create executables
4187See \`config.log' for more details" "$LINENO" 5; }
4188else
4189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4190$as_echo "yes" >&6; }
4191fi
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4193$as_echo_n "checking for C compiler default output file name... " >&6; }
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4195$as_echo "$ac_file" >&6; }
4196ac_exeext=$ac_cv_exeext
4197
4198rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4199ac_clean_files=$ac_clean_files_save
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4201$as_echo_n "checking for suffix of executables... " >&6; }
4202if { { ac_try="$ac_link"
4203case "(($ac_try" in
4204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205  *) ac_try_echo=$ac_try;;
4206esac
4207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208$as_echo "$ac_try_echo"; } >&5
4209  (eval "$ac_link") 2>&5
4210  ac_status=$?
4211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212  test $ac_status = 0; }; then :
4213  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4214# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4215# work properly (i.e., refer to `conftest.exe'), while it won't with
4216# `rm'.
4217for ac_file in conftest.exe conftest conftest.*; do
4218  test -f "$ac_file" || continue
4219  case $ac_file in
4220    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4221    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4222	  break;;
4223    * ) break;;
4224  esac
4225done
4226else
4227  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4230See \`config.log' for more details" "$LINENO" 5; }
4231fi
4232rm -f conftest conftest$ac_cv_exeext
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4234$as_echo "$ac_cv_exeext" >&6; }
4235
4236rm -f conftest.$ac_ext
4237EXEEXT=$ac_cv_exeext
4238ac_exeext=$EXEEXT
4239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h.  */
4241#include <stdio.h>
4242int
4243main ()
4244{
4245FILE *f = fopen ("conftest.out", "w");
4246 return ferror (f) || fclose (f) != 0;
4247
4248  ;
4249  return 0;
4250}
4251_ACEOF
4252ac_clean_files="$ac_clean_files conftest.out"
4253# Check that the compiler produces executables we can run.  If not, either
4254# the compiler is broken, or we cross compile.
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4256$as_echo_n "checking whether we are cross compiling... " >&6; }
4257if test "$cross_compiling" != yes; then
4258  { { ac_try="$ac_link"
4259case "(($ac_try" in
4260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261  *) ac_try_echo=$ac_try;;
4262esac
4263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4264$as_echo "$ac_try_echo"; } >&5
4265  (eval "$ac_link") 2>&5
4266  ac_status=$?
4267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268  test $ac_status = 0; }
4269  if { ac_try='./conftest$ac_cv_exeext'
4270  { { case "(($ac_try" in
4271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272  *) ac_try_echo=$ac_try;;
4273esac
4274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275$as_echo "$ac_try_echo"; } >&5
4276  (eval "$ac_try") 2>&5
4277  ac_status=$?
4278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279  test $ac_status = 0; }; }; then
4280    cross_compiling=no
4281  else
4282    if test "$cross_compiling" = maybe; then
4283	cross_compiling=yes
4284    else
4285	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287as_fn_error $? "cannot run C compiled programs.
4288If you meant to cross compile, use \`--host'.
4289See \`config.log' for more details" "$LINENO" 5; }
4290    fi
4291  fi
4292fi
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4294$as_echo "$cross_compiling" >&6; }
4295
4296rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4297ac_clean_files=$ac_clean_files_save
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4299$as_echo_n "checking for suffix of object files... " >&6; }
4300if test "${ac_cv_objext+set}" = set; then :
4301  $as_echo_n "(cached) " >&6
4302else
4303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h.  */
4305
4306int
4307main ()
4308{
4309
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314rm -f conftest.o conftest.obj
4315if { { ac_try="$ac_compile"
4316case "(($ac_try" in
4317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318  *) ac_try_echo=$ac_try;;
4319esac
4320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321$as_echo "$ac_try_echo"; } >&5
4322  (eval "$ac_compile") 2>&5
4323  ac_status=$?
4324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325  test $ac_status = 0; }; then :
4326  for ac_file in conftest.o conftest.obj conftest.*; do
4327  test -f "$ac_file" || continue;
4328  case $ac_file in
4329    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4330    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4331       break;;
4332  esac
4333done
4334else
4335  $as_echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
4338{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340as_fn_error $? "cannot compute suffix of object files: cannot compile
4341See \`config.log' for more details" "$LINENO" 5; }
4342fi
4343rm -f conftest.$ac_cv_objext conftest.$ac_ext
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4346$as_echo "$ac_cv_objext" >&6; }
4347OBJEXT=$ac_cv_objext
4348ac_objext=$OBJEXT
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4350$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4351if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4352  $as_echo_n "(cached) " >&6
4353else
4354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h.  */
4356
4357int
4358main ()
4359{
4360#ifndef __GNUC__
4361       choke me
4362#endif
4363
4364  ;
4365  return 0;
4366}
4367_ACEOF
4368if ac_fn_c_try_compile "$LINENO"; then :
4369  ac_compiler_gnu=yes
4370else
4371  ac_compiler_gnu=no
4372fi
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374ac_cv_c_compiler_gnu=$ac_compiler_gnu
4375
4376fi
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4378$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4379if test $ac_compiler_gnu = yes; then
4380  GCC=yes
4381else
4382  GCC=
4383fi
4384ac_test_CFLAGS=${CFLAGS+set}
4385ac_save_CFLAGS=$CFLAGS
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4387$as_echo_n "checking whether $CC accepts -g... " >&6; }
4388if test "${ac_cv_prog_cc_g+set}" = set; then :
4389  $as_echo_n "(cached) " >&6
4390else
4391  ac_save_c_werror_flag=$ac_c_werror_flag
4392   ac_c_werror_flag=yes
4393   ac_cv_prog_cc_g=no
4394   CFLAGS="-g"
4395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396/* end confdefs.h.  */
4397
4398int
4399main ()
4400{
4401
4402  ;
4403  return 0;
4404}
4405_ACEOF
4406if ac_fn_c_try_compile "$LINENO"; then :
4407  ac_cv_prog_cc_g=yes
4408else
4409  CFLAGS=""
4410      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411/* end confdefs.h.  */
4412
4413int
4414main ()
4415{
4416
4417  ;
4418  return 0;
4419}
4420_ACEOF
4421if ac_fn_c_try_compile "$LINENO"; then :
4422
4423else
4424  ac_c_werror_flag=$ac_save_c_werror_flag
4425	 CFLAGS="-g"
4426	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h.  */
4428
4429int
4430main ()
4431{
4432
4433  ;
4434  return 0;
4435}
4436_ACEOF
4437if ac_fn_c_try_compile "$LINENO"; then :
4438  ac_cv_prog_cc_g=yes
4439fi
4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441fi
4442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443fi
4444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445   ac_c_werror_flag=$ac_save_c_werror_flag
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4448$as_echo "$ac_cv_prog_cc_g" >&6; }
4449if test "$ac_test_CFLAGS" = set; then
4450  CFLAGS=$ac_save_CFLAGS
4451elif test $ac_cv_prog_cc_g = yes; then
4452  if test "$GCC" = yes; then
4453    CFLAGS="-g -O2"
4454  else
4455    CFLAGS="-g"
4456  fi
4457else
4458  if test "$GCC" = yes; then
4459    CFLAGS="-O2"
4460  else
4461    CFLAGS=
4462  fi
4463fi
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4465$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4466if test "${ac_cv_prog_cc_c89+set}" = set; then :
4467  $as_echo_n "(cached) " >&6
4468else
4469  ac_cv_prog_cc_c89=no
4470ac_save_CC=$CC
4471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472/* end confdefs.h.  */
4473#include <stdarg.h>
4474#include <stdio.h>
4475#include <sys/types.h>
4476#include <sys/stat.h>
4477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4478struct buf { int x; };
4479FILE * (*rcsopen) (struct buf *, struct stat *, int);
4480static char *e (p, i)
4481     char **p;
4482     int i;
4483{
4484  return p[i];
4485}
4486static char *f (char * (*g) (char **, int), char **p, ...)
4487{
4488  char *s;
4489  va_list v;
4490  va_start (v,p);
4491  s = g (p, va_arg (v,int));
4492  va_end (v);
4493  return s;
4494}
4495
4496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4497   function prototypes and stuff, but not '\xHH' hex character constants.
4498   These don't provoke an error unfortunately, instead are silently treated
4499   as 'x'.  The following induces an error, until -std is added to get
4500   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4501   array size at least.  It's necessary to write '\x00'==0 to get something
4502   that's true only with -std.  */
4503int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4504
4505/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4506   inside strings and character constants.  */
4507#define FOO(x) 'x'
4508int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4509
4510int test (int i, double x);
4511struct s1 {int (*f) (int a);};
4512struct s2 {int (*f) (double a);};
4513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4514int argc;
4515char **argv;
4516int
4517main ()
4518{
4519return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4520  ;
4521  return 0;
4522}
4523_ACEOF
4524for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4525	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4526do
4527  CC="$ac_save_CC $ac_arg"
4528  if ac_fn_c_try_compile "$LINENO"; then :
4529  ac_cv_prog_cc_c89=$ac_arg
4530fi
4531rm -f core conftest.err conftest.$ac_objext
4532  test "x$ac_cv_prog_cc_c89" != "xno" && break
4533done
4534rm -f conftest.$ac_ext
4535CC=$ac_save_CC
4536
4537fi
4538# AC_CACHE_VAL
4539case "x$ac_cv_prog_cc_c89" in
4540  x)
4541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4542$as_echo "none needed" >&6; } ;;
4543  xno)
4544    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4545$as_echo "unsupported" >&6; } ;;
4546  *)
4547    CC="$CC $ac_cv_prog_cc_c89"
4548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4549$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4550esac
4551if test "x$ac_cv_prog_cc_c89" != xno; then :
4552
4553fi
4554
4555ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4562$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4563if test "${lt_cv_path_SED+set}" = set; then :
4564  $as_echo_n "(cached) " >&6
4565else
4566  # Loop through the user's path and test for sed and gsed.
4567# Then use that list of sed's as ones to test for truncation.
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571  IFS=$as_save_IFS
4572  test -z "$as_dir" && as_dir=.
4573  for lt_ac_prog in sed gsed; do
4574    for ac_exec_ext in '' $ac_executable_extensions; do
4575      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4576        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4577      fi
4578    done
4579  done
4580done
4581IFS=$as_save_IFS
4582lt_ac_max=0
4583lt_ac_count=0
4584# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4585# along with /bin/sed that truncates output.
4586for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4587  test ! -f $lt_ac_sed && continue
4588  cat /dev/null > conftest.in
4589  lt_ac_count=0
4590  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4591  # Check for GNU sed and select it if it is found.
4592  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4593    lt_cv_path_SED=$lt_ac_sed
4594    break
4595  fi
4596  while true; do
4597    cat conftest.in conftest.in >conftest.tmp
4598    mv conftest.tmp conftest.in
4599    cp conftest.in conftest.nl
4600    echo >>conftest.nl
4601    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4602    cmp -s conftest.out conftest.nl || break
4603    # 10000 chars as input seems more than enough
4604    test $lt_ac_count -gt 10 && break
4605    lt_ac_count=`expr $lt_ac_count + 1`
4606    if test $lt_ac_count -gt $lt_ac_max; then
4607      lt_ac_max=$lt_ac_count
4608      lt_cv_path_SED=$lt_ac_sed
4609    fi
4610  done
4611done
4612
4613fi
4614
4615SED=$lt_cv_path_SED
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4618$as_echo "$SED" >&6; }
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4621$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4622if test "${ac_cv_path_GREP+set}" = set; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test -z "$GREP"; then
4626  ac_path_GREP_found=false
4627  # Loop through the user's path and test for each of PROGNAME-LIST
4628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630do
4631  IFS=$as_save_IFS
4632  test -z "$as_dir" && as_dir=.
4633    for ac_prog in grep ggrep; do
4634    for ac_exec_ext in '' $ac_executable_extensions; do
4635      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4636      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4637# Check for GNU ac_path_GREP and select it if it is found.
4638  # Check for GNU $ac_path_GREP
4639case `"$ac_path_GREP" --version 2>&1` in
4640*GNU*)
4641  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4642*)
4643  ac_count=0
4644  $as_echo_n 0123456789 >"conftest.in"
4645  while :
4646  do
4647    cat "conftest.in" "conftest.in" >"conftest.tmp"
4648    mv "conftest.tmp" "conftest.in"
4649    cp "conftest.in" "conftest.nl"
4650    $as_echo 'GREP' >> "conftest.nl"
4651    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653    as_fn_arith $ac_count + 1 && ac_count=$as_val
4654    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4655      # Best one so far, save it but keep looking for a better one
4656      ac_cv_path_GREP="$ac_path_GREP"
4657      ac_path_GREP_max=$ac_count
4658    fi
4659    # 10*(2^10) chars as input seems more than enough
4660    test $ac_count -gt 10 && break
4661  done
4662  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663esac
4664
4665      $ac_path_GREP_found && break 3
4666    done
4667  done
4668  done
4669IFS=$as_save_IFS
4670  if test -z "$ac_cv_path_GREP"; then
4671    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672  fi
4673else
4674  ac_cv_path_GREP=$GREP
4675fi
4676
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4679$as_echo "$ac_cv_path_GREP" >&6; }
4680 GREP="$ac_cv_path_GREP"
4681
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4684$as_echo_n "checking for egrep... " >&6; }
4685if test "${ac_cv_path_EGREP+set}" = set; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4689   then ac_cv_path_EGREP="$GREP -E"
4690   else
4691     if test -z "$EGREP"; then
4692  ac_path_EGREP_found=false
4693  # Loop through the user's path and test for each of PROGNAME-LIST
4694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699    for ac_prog in egrep; do
4700    for ac_exec_ext in '' $ac_executable_extensions; do
4701      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4702      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4703# Check for GNU ac_path_EGREP and select it if it is found.
4704  # Check for GNU $ac_path_EGREP
4705case `"$ac_path_EGREP" --version 2>&1` in
4706*GNU*)
4707  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4708*)
4709  ac_count=0
4710  $as_echo_n 0123456789 >"conftest.in"
4711  while :
4712  do
4713    cat "conftest.in" "conftest.in" >"conftest.tmp"
4714    mv "conftest.tmp" "conftest.in"
4715    cp "conftest.in" "conftest.nl"
4716    $as_echo 'EGREP' >> "conftest.nl"
4717    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719    as_fn_arith $ac_count + 1 && ac_count=$as_val
4720    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4721      # Best one so far, save it but keep looking for a better one
4722      ac_cv_path_EGREP="$ac_path_EGREP"
4723      ac_path_EGREP_max=$ac_count
4724    fi
4725    # 10*(2^10) chars as input seems more than enough
4726    test $ac_count -gt 10 && break
4727  done
4728  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729esac
4730
4731      $ac_path_EGREP_found && break 3
4732    done
4733  done
4734  done
4735IFS=$as_save_IFS
4736  if test -z "$ac_cv_path_EGREP"; then
4737    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738  fi
4739else
4740  ac_cv_path_EGREP=$EGREP
4741fi
4742
4743   fi
4744fi
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4746$as_echo "$ac_cv_path_EGREP" >&6; }
4747 EGREP="$ac_cv_path_EGREP"
4748
4749
4750
4751# Check whether --with-gnu-ld was given.
4752if test "${with_gnu_ld+set}" = set; then :
4753  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4754else
4755  with_gnu_ld=no
4756fi
4757
4758ac_prog=ld
4759if test "$GCC" = yes; then
4760  # Check if gcc -print-prog-name=ld gives a path.
4761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4762$as_echo_n "checking for ld used by $CC... " >&6; }
4763  case $host in
4764  *-*-mingw*)
4765    # gcc leaves a trailing carriage return which upsets mingw
4766    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4767  *)
4768    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4769  esac
4770  case $ac_prog in
4771    # Accept absolute paths.
4772    [\\/]* | ?:[\\/]*)
4773      re_direlt='/[^/][^/]*/\.\./'
4774      # Canonicalize the pathname of ld
4775      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4776      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4777	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4778      done
4779      test -z "$LD" && LD="$ac_prog"
4780      ;;
4781  "")
4782    # If it fails, then pretend we aren't using GCC.
4783    ac_prog=ld
4784    ;;
4785  *)
4786    # If it is relative, then search for the first ld in PATH.
4787    with_gnu_ld=unknown
4788    ;;
4789  esac
4790elif test "$with_gnu_ld" = yes; then
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4792$as_echo_n "checking for GNU ld... " >&6; }
4793else
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4795$as_echo_n "checking for non-GNU ld... " >&6; }
4796fi
4797if test "${lt_cv_path_LD+set}" = set; then :
4798  $as_echo_n "(cached) " >&6
4799else
4800  if test -z "$LD"; then
4801  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4802  for ac_dir in $PATH; do
4803    IFS="$lt_save_ifs"
4804    test -z "$ac_dir" && ac_dir=.
4805    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4806      lt_cv_path_LD="$ac_dir/$ac_prog"
4807      # Check to see if the program is GNU ld.  I'd rather use --version,
4808      # but apparently some variants of GNU ld only accept -v.
4809      # Break only if it was the GNU/non-GNU ld that we prefer.
4810      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4811      *GNU* | *'with BFD'*)
4812	test "$with_gnu_ld" != no && break
4813	;;
4814      *)
4815	test "$with_gnu_ld" != yes && break
4816	;;
4817      esac
4818    fi
4819  done
4820  IFS="$lt_save_ifs"
4821else
4822  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4823fi
4824fi
4825
4826LD="$lt_cv_path_LD"
4827if test -n "$LD"; then
4828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4829$as_echo "$LD" >&6; }
4830else
4831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832$as_echo "no" >&6; }
4833fi
4834test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4836$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4837if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4838  $as_echo_n "(cached) " >&6
4839else
4840  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4841case `$LD -v 2>&1 </dev/null` in
4842*GNU* | *'with BFD'*)
4843  lt_cv_prog_gnu_ld=yes
4844  ;;
4845*)
4846  lt_cv_prog_gnu_ld=no
4847  ;;
4848esac
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4851$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4852with_gnu_ld=$lt_cv_prog_gnu_ld
4853
4854
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4856$as_echo_n "checking for $LD option to reload object files... " >&6; }
4857if test "${lt_cv_ld_reload_flag+set}" = set; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860  lt_cv_ld_reload_flag='-r'
4861fi
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4863$as_echo "$lt_cv_ld_reload_flag" >&6; }
4864reload_flag=$lt_cv_ld_reload_flag
4865case $reload_flag in
4866"" | " "*) ;;
4867*) reload_flag=" $reload_flag" ;;
4868esac
4869reload_cmds='$LD$reload_flag -o $output$reload_objs'
4870case $host_os in
4871  darwin*)
4872    if test "$GCC" = yes; then
4873      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4874    else
4875      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4876    fi
4877    ;;
4878esac
4879
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4881$as_echo_n "checking for BSD-compatible nm... " >&6; }
4882if test "${lt_cv_path_NM+set}" = set; then :
4883  $as_echo_n "(cached) " >&6
4884else
4885  if test -n "$NM"; then
4886  # Let the user override the test.
4887  lt_cv_path_NM="$NM"
4888else
4889  lt_nm_to_check="${ac_tool_prefix}nm"
4890  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4891    lt_nm_to_check="$lt_nm_to_check nm"
4892  fi
4893  for lt_tmp_nm in $lt_nm_to_check; do
4894    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4895    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4896      IFS="$lt_save_ifs"
4897      test -z "$ac_dir" && ac_dir=.
4898      tmp_nm="$ac_dir/$lt_tmp_nm"
4899      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4900	# Check to see if the nm accepts a BSD-compat flag.
4901	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4902	#   nm: unknown option "B" ignored
4903	# Tru64's nm complains that /dev/null is an invalid object file
4904	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4905	*/dev/null* | *'Invalid file or object type'*)
4906	  lt_cv_path_NM="$tmp_nm -B"
4907	  break
4908	  ;;
4909	*)
4910	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4911	  */dev/null*)
4912	    lt_cv_path_NM="$tmp_nm -p"
4913	    break
4914	    ;;
4915	  *)
4916	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4917	    continue # so that we can try to find one that supports BSD flags
4918	    ;;
4919	  esac
4920	  ;;
4921	esac
4922      fi
4923    done
4924    IFS="$lt_save_ifs"
4925  done
4926  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4927fi
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4930$as_echo "$lt_cv_path_NM" >&6; }
4931NM="$lt_cv_path_NM"
4932
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4934$as_echo_n "checking whether ln -s works... " >&6; }
4935LN_S=$as_ln_s
4936if test "$LN_S" = "ln -s"; then
4937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938$as_echo "yes" >&6; }
4939else
4940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4941$as_echo "no, using $LN_S" >&6; }
4942fi
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4945$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4946if test "${lt_cv_deplibs_check_method+set}" = set; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  lt_cv_file_magic_cmd='$MAGIC_CMD'
4950lt_cv_file_magic_test_file=
4951lt_cv_deplibs_check_method='unknown'
4952# Need to set the preceding variable on all platforms that support
4953# interlibrary dependencies.
4954# 'none' -- dependencies not supported.
4955# `unknown' -- same as none, but documents that we really don't know.
4956# 'pass_all' -- all dependencies passed with no checks.
4957# 'test_compile' -- check by making test program.
4958# 'file_magic [[regex]]' -- check by looking for files in library path
4959# which responds to the $file_magic_cmd with a given extended regex.
4960# If you have `file' or equivalent on your system and you're not sure
4961# whether `pass_all' will *always* work, you probably want this one.
4962
4963case $host_os in
4964aix[4-9]*)
4965  lt_cv_deplibs_check_method=pass_all
4966  ;;
4967
4968beos*)
4969  lt_cv_deplibs_check_method=pass_all
4970  ;;
4971
4972bsdi[45]*)
4973  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4974  lt_cv_file_magic_cmd='/usr/bin/file -L'
4975  lt_cv_file_magic_test_file=/shlib/libc.so
4976  ;;
4977
4978cygwin*)
4979  # func_win32_libid is a shell function defined in ltmain.sh
4980  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4981  lt_cv_file_magic_cmd='func_win32_libid'
4982  ;;
4983
4984mingw* | pw32*)
4985  # Base MSYS/MinGW do not provide the 'file' command needed by
4986  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4987  # unless we find 'file', for example because we are cross-compiling.
4988  if ( file / ) >/dev/null 2>&1; then
4989    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4990    lt_cv_file_magic_cmd='func_win32_libid'
4991  else
4992    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4993    lt_cv_file_magic_cmd='$OBJDUMP -f'
4994  fi
4995  ;;
4996
4997darwin* | rhapsody*)
4998  lt_cv_deplibs_check_method=pass_all
4999  ;;
5000
5001freebsd* | dragonfly*)
5002  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5003    case $host_cpu in
5004    i*86 )
5005      # Not sure whether the presence of OpenBSD here was a mistake.
5006      # Let's accept both of them until this is cleared up.
5007      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5008      lt_cv_file_magic_cmd=/usr/bin/file
5009      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5010      ;;
5011    esac
5012  else
5013    lt_cv_deplibs_check_method=pass_all
5014  fi
5015  ;;
5016
5017gnu*)
5018  lt_cv_deplibs_check_method=pass_all
5019  ;;
5020
5021hpux10.20* | hpux11*)
5022  lt_cv_file_magic_cmd=/usr/bin/file
5023  case $host_cpu in
5024  ia64*)
5025    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5026    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5027    ;;
5028  hppa*64*)
5029    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]'
5030    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5031    ;;
5032  *)
5033    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5034    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5035    ;;
5036  esac
5037  ;;
5038
5039interix[3-9]*)
5040  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5041  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5042  ;;
5043
5044irix5* | irix6* | nonstopux*)
5045  case $LD in
5046  *-32|*"-32 ") libmagic=32-bit;;
5047  *-n32|*"-n32 ") libmagic=N32;;
5048  *-64|*"-64 ") libmagic=64-bit;;
5049  *) libmagic=never-match;;
5050  esac
5051  lt_cv_deplibs_check_method=pass_all
5052  ;;
5053
5054# This must be Linux ELF.
5055linux* | k*bsd*-gnu)
5056  lt_cv_deplibs_check_method=pass_all
5057  ;;
5058
5059netbsd*)
5060  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5061    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5062  else
5063    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5064  fi
5065  ;;
5066
5067newos6*)
5068  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5069  lt_cv_file_magic_cmd=/usr/bin/file
5070  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5071  ;;
5072
5073nto-qnx*)
5074  lt_cv_deplibs_check_method=unknown
5075  ;;
5076
5077openbsd*)
5078  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5079    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5080  else
5081    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5082  fi
5083  ;;
5084
5085osf3* | osf4* | osf5*)
5086  lt_cv_deplibs_check_method=pass_all
5087  ;;
5088
5089rdos*)
5090  lt_cv_deplibs_check_method=pass_all
5091  ;;
5092
5093solaris*)
5094  lt_cv_deplibs_check_method=pass_all
5095  ;;
5096
5097sysv4 | sysv4.3*)
5098  case $host_vendor in
5099  motorola)
5100    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]'
5101    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5102    ;;
5103  ncr)
5104    lt_cv_deplibs_check_method=pass_all
5105    ;;
5106  sequent)
5107    lt_cv_file_magic_cmd='/bin/file'
5108    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5109    ;;
5110  sni)
5111    lt_cv_file_magic_cmd='/bin/file'
5112    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5113    lt_cv_file_magic_test_file=/lib/libc.so
5114    ;;
5115  siemens)
5116    lt_cv_deplibs_check_method=pass_all
5117    ;;
5118  pc)
5119    lt_cv_deplibs_check_method=pass_all
5120    ;;
5121  esac
5122  ;;
5123
5124sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5125  lt_cv_deplibs_check_method=pass_all
5126  ;;
5127esac
5128
5129fi
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5131$as_echo "$lt_cv_deplibs_check_method" >&6; }
5132file_magic_cmd=$lt_cv_file_magic_cmd
5133deplibs_check_method=$lt_cv_deplibs_check_method
5134test -z "$deplibs_check_method" && deplibs_check_method=unknown
5135
5136
5137
5138
5139# If no C compiler was specified, use CC.
5140LTCC=${LTCC-"$CC"}
5141
5142# If no C compiler flags were specified, use CFLAGS.
5143LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5144
5145# Allow CC to be a program name with arguments.
5146compiler=$CC
5147
5148
5149# Check whether --enable-libtool-lock was given.
5150if test "${enable_libtool_lock+set}" = set; then :
5151  enableval=$enable_libtool_lock;
5152fi
5153
5154test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5155
5156# Some flags need to be propagated to the compiler or linker for good
5157# libtool support.
5158case $host in
5159ia64-*-hpux*)
5160  # Find out which ABI we are using.
5161  echo 'int i;' > conftest.$ac_ext
5162  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5163  (eval $ac_compile) 2>&5
5164  ac_status=$?
5165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166  test $ac_status = 0; }; then
5167    case `/usr/bin/file conftest.$ac_objext` in
5168    *ELF-32*)
5169      HPUX_IA64_MODE="32"
5170      ;;
5171    *ELF-64*)
5172      HPUX_IA64_MODE="64"
5173      ;;
5174    esac
5175  fi
5176  rm -rf conftest*
5177  ;;
5178*-*-irix6*)
5179  # Find out which ABI we are using.
5180  echo '#line 5180 "configure"' > conftest.$ac_ext
5181  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5182  (eval $ac_compile) 2>&5
5183  ac_status=$?
5184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5185  test $ac_status = 0; }; then
5186   if test "$lt_cv_prog_gnu_ld" = yes; then
5187    case `/usr/bin/file conftest.$ac_objext` in
5188    *32-bit*)
5189      LD="${LD-ld} -melf32bsmip"
5190      ;;
5191    *N32*)
5192      LD="${LD-ld} -melf32bmipn32"
5193      ;;
5194    *64-bit*)
5195      LD="${LD-ld} -melf64bmip"
5196      ;;
5197    esac
5198   else
5199    case `/usr/bin/file conftest.$ac_objext` in
5200    *32-bit*)
5201      LD="${LD-ld} -32"
5202      ;;
5203    *N32*)
5204      LD="${LD-ld} -n32"
5205      ;;
5206    *64-bit*)
5207      LD="${LD-ld} -64"
5208      ;;
5209    esac
5210   fi
5211  fi
5212  rm -rf conftest*
5213  ;;
5214
5215x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5216s390*-*linux*|sparc*-*linux*)
5217  # Find out which ABI we are using.
5218  echo 'int i;' > conftest.$ac_ext
5219  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5220  (eval $ac_compile) 2>&5
5221  ac_status=$?
5222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223  test $ac_status = 0; }; then
5224    case `/usr/bin/file conftest.o` in
5225    *32-bit*)
5226      case $host in
5227        x86_64-*kfreebsd*-gnu)
5228          LD="${LD-ld} -m elf_i386_fbsd"
5229          ;;
5230        x86_64-*linux*)
5231          LD="${LD-ld} -m elf_i386"
5232          ;;
5233        ppc64-*linux*|powerpc64-*linux*)
5234          LD="${LD-ld} -m elf32ppclinux"
5235          ;;
5236        s390x-*linux*)
5237          LD="${LD-ld} -m elf_s390"
5238          ;;
5239        sparc64-*linux*)
5240          LD="${LD-ld} -m elf32_sparc"
5241          ;;
5242      esac
5243      ;;
5244    *64-bit*)
5245      case $host in
5246        x86_64-*kfreebsd*-gnu)
5247          LD="${LD-ld} -m elf_x86_64_fbsd"
5248          ;;
5249        x86_64-*linux*)
5250          LD="${LD-ld} -m elf_x86_64"
5251          ;;
5252        ppc*-*linux*|powerpc*-*linux*)
5253          LD="${LD-ld} -m elf64ppc"
5254          ;;
5255        s390*-*linux*)
5256          LD="${LD-ld} -m elf64_s390"
5257          ;;
5258        sparc*-*linux*)
5259          LD="${LD-ld} -m elf64_sparc"
5260          ;;
5261      esac
5262      ;;
5263    esac
5264  fi
5265  rm -rf conftest*
5266  ;;
5267
5268*-*-sco3.2v5*)
5269  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5270  SAVE_CFLAGS="$CFLAGS"
5271  CFLAGS="$CFLAGS -belf"
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5273$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5274if test "${lt_cv_cc_needs_belf+set}" = set; then :
5275  $as_echo_n "(cached) " >&6
5276else
5277  ac_ext=c
5278ac_cpp='$CPP $CPPFLAGS'
5279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281ac_compiler_gnu=$ac_cv_c_compiler_gnu
5282
5283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h.  */
5285
5286int
5287main ()
5288{
5289
5290  ;
5291  return 0;
5292}
5293_ACEOF
5294if ac_fn_c_try_link "$LINENO"; then :
5295  lt_cv_cc_needs_belf=yes
5296else
5297  lt_cv_cc_needs_belf=no
5298fi
5299rm -f core conftest.err conftest.$ac_objext \
5300    conftest$ac_exeext conftest.$ac_ext
5301     ac_ext=c
5302ac_cpp='$CPP $CPPFLAGS'
5303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5305ac_compiler_gnu=$ac_cv_c_compiler_gnu
5306
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5309$as_echo "$lt_cv_cc_needs_belf" >&6; }
5310  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5311    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5312    CFLAGS="$SAVE_CFLAGS"
5313  fi
5314  ;;
5315sparc*-*solaris*)
5316  # Find out which ABI we are using.
5317  echo 'int i;' > conftest.$ac_ext
5318  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5319  (eval $ac_compile) 2>&5
5320  ac_status=$?
5321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5322  test $ac_status = 0; }; then
5323    case `/usr/bin/file conftest.o` in
5324    *64-bit*)
5325      case $lt_cv_prog_gnu_ld in
5326      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5327      *)
5328        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5329	  LD="${LD-ld} -64"
5330	fi
5331	;;
5332      esac
5333      ;;
5334    esac
5335  fi
5336  rm -rf conftest*
5337  ;;
5338
5339
5340esac
5341
5342need_locks="$enable_libtool_lock"
5343
5344
5345ac_ext=c
5346ac_cpp='$CPP $CPPFLAGS'
5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5351$as_echo_n "checking how to run the C preprocessor... " >&6; }
5352# On Suns, sometimes $CPP names a directory.
5353if test -n "$CPP" && test -d "$CPP"; then
5354  CPP=
5355fi
5356if test -z "$CPP"; then
5357  if test "${ac_cv_prog_CPP+set}" = set; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360      # Double quotes because CPP needs to be expanded
5361    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5362    do
5363      ac_preproc_ok=false
5364for ac_c_preproc_warn_flag in '' yes
5365do
5366  # Use a header file that comes with gcc, so configuring glibc
5367  # with a fresh cross-compiler works.
5368  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369  # <limits.h> exists even on freestanding compilers.
5370  # On the NeXT, cc -E runs the code through the compiler's parser,
5371  # not just through cpp. "Syntax error" is here to catch this case.
5372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h.  */
5374#ifdef __STDC__
5375# include <limits.h>
5376#else
5377# include <assert.h>
5378#endif
5379		     Syntax error
5380_ACEOF
5381if ac_fn_c_try_cpp "$LINENO"; then :
5382
5383else
5384  # Broken: fails on valid input.
5385continue
5386fi
5387rm -f conftest.err conftest.i conftest.$ac_ext
5388
5389  # OK, works on sane cases.  Now check whether nonexistent headers
5390  # can be detected and how.
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393#include <ac_nonexistent.h>
5394_ACEOF
5395if ac_fn_c_try_cpp "$LINENO"; then :
5396  # Broken: success on invalid input.
5397continue
5398else
5399  # Passes both tests.
5400ac_preproc_ok=:
5401break
5402fi
5403rm -f conftest.err conftest.i conftest.$ac_ext
5404
5405done
5406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407rm -f conftest.i conftest.err conftest.$ac_ext
5408if $ac_preproc_ok; then :
5409  break
5410fi
5411
5412    done
5413    ac_cv_prog_CPP=$CPP
5414
5415fi
5416  CPP=$ac_cv_prog_CPP
5417else
5418  ac_cv_prog_CPP=$CPP
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5421$as_echo "$CPP" >&6; }
5422ac_preproc_ok=false
5423for ac_c_preproc_warn_flag in '' yes
5424do
5425  # Use a header file that comes with gcc, so configuring glibc
5426  # with a fresh cross-compiler works.
5427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428  # <limits.h> exists even on freestanding compilers.
5429  # On the NeXT, cc -E runs the code through the compiler's parser,
5430  # not just through cpp. "Syntax error" is here to catch this case.
5431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h.  */
5433#ifdef __STDC__
5434# include <limits.h>
5435#else
5436# include <assert.h>
5437#endif
5438		     Syntax error
5439_ACEOF
5440if ac_fn_c_try_cpp "$LINENO"; then :
5441
5442else
5443  # Broken: fails on valid input.
5444continue
5445fi
5446rm -f conftest.err conftest.i conftest.$ac_ext
5447
5448  # OK, works on sane cases.  Now check whether nonexistent headers
5449  # can be detected and how.
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452#include <ac_nonexistent.h>
5453_ACEOF
5454if ac_fn_c_try_cpp "$LINENO"; then :
5455  # Broken: success on invalid input.
5456continue
5457else
5458  # Passes both tests.
5459ac_preproc_ok=:
5460break
5461fi
5462rm -f conftest.err conftest.i conftest.$ac_ext
5463
5464done
5465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5466rm -f conftest.i conftest.err conftest.$ac_ext
5467if $ac_preproc_ok; then :
5468
5469else
5470  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5472as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5473See \`config.log' for more details" "$LINENO" 5; }
5474fi
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5484$as_echo_n "checking for ANSI C header files... " >&6; }
5485if test "${ac_cv_header_stdc+set}" = set; then :
5486  $as_echo_n "(cached) " >&6
5487else
5488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h.  */
5490#include <stdlib.h>
5491#include <stdarg.h>
5492#include <string.h>
5493#include <float.h>
5494
5495int
5496main ()
5497{
5498
5499  ;
5500  return 0;
5501}
5502_ACEOF
5503if ac_fn_c_try_compile "$LINENO"; then :
5504  ac_cv_header_stdc=yes
5505else
5506  ac_cv_header_stdc=no
5507fi
5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509
5510if test $ac_cv_header_stdc = yes; then
5511  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514#include <string.h>
5515
5516_ACEOF
5517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518  $EGREP "memchr" >/dev/null 2>&1; then :
5519
5520else
5521  ac_cv_header_stdc=no
5522fi
5523rm -f conftest*
5524
5525fi
5526
5527if test $ac_cv_header_stdc = yes; then
5528  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531#include <stdlib.h>
5532
5533_ACEOF
5534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535  $EGREP "free" >/dev/null 2>&1; then :
5536
5537else
5538  ac_cv_header_stdc=no
5539fi
5540rm -f conftest*
5541
5542fi
5543
5544if test $ac_cv_header_stdc = yes; then
5545  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5546  if test "$cross_compiling" = yes; then :
5547  :
5548else
5549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550/* end confdefs.h.  */
5551#include <ctype.h>
5552#include <stdlib.h>
5553#if ((' ' & 0x0FF) == 0x020)
5554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5556#else
5557# define ISLOWER(c) \
5558		   (('a' <= (c) && (c) <= 'i') \
5559		     || ('j' <= (c) && (c) <= 'r') \
5560		     || ('s' <= (c) && (c) <= 'z'))
5561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5562#endif
5563
5564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5565int
5566main ()
5567{
5568  int i;
5569  for (i = 0; i < 256; i++)
5570    if (XOR (islower (i), ISLOWER (i))
5571	|| toupper (i) != TOUPPER (i))
5572      return 2;
5573  return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_run "$LINENO"; then :
5577
5578else
5579  ac_cv_header_stdc=no
5580fi
5581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5582  conftest.$ac_objext conftest.beam conftest.$ac_ext
5583fi
5584
5585fi
5586fi
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5588$as_echo "$ac_cv_header_stdc" >&6; }
5589if test $ac_cv_header_stdc = yes; then
5590
5591$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5592
5593fi
5594
5595# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5596for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5597		  inttypes.h stdint.h unistd.h
5598do :
5599  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5601"
5602if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5603  cat >>confdefs.h <<_ACEOF
5604#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5605_ACEOF
5606
5607fi
5608
5609done
5610
5611
5612for ac_header in dlfcn.h
5613do :
5614  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5615if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5616  cat >>confdefs.h <<_ACEOF
5617#define HAVE_DLFCN_H 1
5618_ACEOF
5619
5620fi
5621
5622done
5623
5624ac_ext=cpp
5625ac_cpp='$CXXCPP $CPPFLAGS'
5626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5629if test -z "$CXX"; then
5630  if test -n "$CCC"; then
5631    CXX=$CCC
5632  else
5633    if test -n "$ac_tool_prefix"; then
5634  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5635  do
5636    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639$as_echo_n "checking for $ac_word... " >&6; }
5640if test "${ac_cv_prog_CXX+set}" = set; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  if test -n "$CXX"; then
5644  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649  IFS=$as_save_IFS
5650  test -z "$as_dir" && as_dir=.
5651    for ac_exec_ext in '' $ac_executable_extensions; do
5652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655    break 2
5656  fi
5657done
5658  done
5659IFS=$as_save_IFS
5660
5661fi
5662fi
5663CXX=$ac_cv_prog_CXX
5664if test -n "$CXX"; then
5665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5666$as_echo "$CXX" >&6; }
5667else
5668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }
5670fi
5671
5672
5673    test -n "$CXX" && break
5674  done
5675fi
5676if test -z "$CXX"; then
5677  ac_ct_CXX=$CXX
5678  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5679do
5680  # Extract the first word of "$ac_prog", so it can be a program name with args.
5681set dummy $ac_prog; ac_word=$2
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683$as_echo_n "checking for $ac_word... " >&6; }
5684if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  if test -n "$ac_ct_CXX"; then
5688  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693  IFS=$as_save_IFS
5694  test -z "$as_dir" && as_dir=.
5695    for ac_exec_ext in '' $ac_executable_extensions; do
5696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697    ac_cv_prog_ac_ct_CXX="$ac_prog"
5698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699    break 2
5700  fi
5701done
5702  done
5703IFS=$as_save_IFS
5704
5705fi
5706fi
5707ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5708if test -n "$ac_ct_CXX"; then
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5710$as_echo "$ac_ct_CXX" >&6; }
5711else
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714fi
5715
5716
5717  test -n "$ac_ct_CXX" && break
5718done
5719
5720  if test "x$ac_ct_CXX" = x; then
5721    CXX="g++"
5722  else
5723    case $cross_compiling:$ac_tool_warned in
5724yes:)
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727ac_tool_warned=yes ;;
5728esac
5729    CXX=$ac_ct_CXX
5730  fi
5731fi
5732
5733  fi
5734fi
5735# Provide some information about the compiler.
5736$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5737set X $ac_compile
5738ac_compiler=$2
5739for ac_option in --version -v -V -qversion; do
5740  { { ac_try="$ac_compiler $ac_option >&5"
5741case "(($ac_try" in
5742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743  *) ac_try_echo=$ac_try;;
5744esac
5745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5746$as_echo "$ac_try_echo"; } >&5
5747  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5748  ac_status=$?
5749  if test -s conftest.err; then
5750    sed '10a\
5751... rest of stderr output deleted ...
5752         10q' conftest.err >conftest.er1
5753    cat conftest.er1 >&5
5754  fi
5755  rm -f conftest.er1 conftest.err
5756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757  test $ac_status = 0; }
5758done
5759
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5761$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5762if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h.  */
5767
5768int
5769main ()
5770{
5771#ifndef __GNUC__
5772       choke me
5773#endif
5774
5775  ;
5776  return 0;
5777}
5778_ACEOF
5779if ac_fn_cxx_try_compile "$LINENO"; then :
5780  ac_compiler_gnu=yes
5781else
5782  ac_compiler_gnu=no
5783fi
5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5786
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5789$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5790if test $ac_compiler_gnu = yes; then
5791  GXX=yes
5792else
5793  GXX=
5794fi
5795ac_test_CXXFLAGS=${CXXFLAGS+set}
5796ac_save_CXXFLAGS=$CXXFLAGS
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5798$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5799if test "${ac_cv_prog_cxx_g+set}" = set; then :
5800  $as_echo_n "(cached) " >&6
5801else
5802  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5803   ac_cxx_werror_flag=yes
5804   ac_cv_prog_cxx_g=no
5805   CXXFLAGS="-g"
5806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h.  */
5808
5809int
5810main ()
5811{
5812
5813  ;
5814  return 0;
5815}
5816_ACEOF
5817if ac_fn_cxx_try_compile "$LINENO"; then :
5818  ac_cv_prog_cxx_g=yes
5819else
5820  CXXFLAGS=""
5821      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h.  */
5823
5824int
5825main ()
5826{
5827
5828  ;
5829  return 0;
5830}
5831_ACEOF
5832if ac_fn_cxx_try_compile "$LINENO"; then :
5833
5834else
5835  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5836	 CXXFLAGS="-g"
5837	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h.  */
5839
5840int
5841main ()
5842{
5843
5844  ;
5845  return 0;
5846}
5847_ACEOF
5848if ac_fn_cxx_try_compile "$LINENO"; then :
5849  ac_cv_prog_cxx_g=yes
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852fi
5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854fi
5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5857fi
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5859$as_echo "$ac_cv_prog_cxx_g" >&6; }
5860if test "$ac_test_CXXFLAGS" = set; then
5861  CXXFLAGS=$ac_save_CXXFLAGS
5862elif test $ac_cv_prog_cxx_g = yes; then
5863  if test "$GXX" = yes; then
5864    CXXFLAGS="-g -O2"
5865  else
5866    CXXFLAGS="-g"
5867  fi
5868else
5869  if test "$GXX" = yes; then
5870    CXXFLAGS="-O2"
5871  else
5872    CXXFLAGS=
5873  fi
5874fi
5875ac_ext=cpp
5876ac_cpp='$CXXCPP $CPPFLAGS'
5877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5880
5881
5882
5883if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5884    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5885    (test "X$CXX" != "Xg++"))) ; then
5886  ac_ext=cpp
5887ac_cpp='$CXXCPP $CPPFLAGS'
5888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5892$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5893if test -z "$CXXCPP"; then
5894  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897      # Double quotes because CXXCPP needs to be expanded
5898    for CXXCPP in "$CXX -E" "/lib/cpp"
5899    do
5900      ac_preproc_ok=false
5901for ac_cxx_preproc_warn_flag in '' yes
5902do
5903  # Use a header file that comes with gcc, so configuring glibc
5904  # with a fresh cross-compiler works.
5905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5906  # <limits.h> exists even on freestanding compilers.
5907  # On the NeXT, cc -E runs the code through the compiler's parser,
5908  # not just through cpp. "Syntax error" is here to catch this case.
5909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911#ifdef __STDC__
5912# include <limits.h>
5913#else
5914# include <assert.h>
5915#endif
5916		     Syntax error
5917_ACEOF
5918if ac_fn_cxx_try_cpp "$LINENO"; then :
5919
5920else
5921  # Broken: fails on valid input.
5922continue
5923fi
5924rm -f conftest.err conftest.i conftest.$ac_ext
5925
5926  # OK, works on sane cases.  Now check whether nonexistent headers
5927  # can be detected and how.
5928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h.  */
5930#include <ac_nonexistent.h>
5931_ACEOF
5932if ac_fn_cxx_try_cpp "$LINENO"; then :
5933  # Broken: success on invalid input.
5934continue
5935else
5936  # Passes both tests.
5937ac_preproc_ok=:
5938break
5939fi
5940rm -f conftest.err conftest.i conftest.$ac_ext
5941
5942done
5943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5944rm -f conftest.i conftest.err conftest.$ac_ext
5945if $ac_preproc_ok; then :
5946  break
5947fi
5948
5949    done
5950    ac_cv_prog_CXXCPP=$CXXCPP
5951
5952fi
5953  CXXCPP=$ac_cv_prog_CXXCPP
5954else
5955  ac_cv_prog_CXXCPP=$CXXCPP
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5958$as_echo "$CXXCPP" >&6; }
5959ac_preproc_ok=false
5960for ac_cxx_preproc_warn_flag in '' yes
5961do
5962  # Use a header file that comes with gcc, so configuring glibc
5963  # with a fresh cross-compiler works.
5964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5965  # <limits.h> exists even on freestanding compilers.
5966  # On the NeXT, cc -E runs the code through the compiler's parser,
5967  # not just through cpp. "Syntax error" is here to catch this case.
5968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h.  */
5970#ifdef __STDC__
5971# include <limits.h>
5972#else
5973# include <assert.h>
5974#endif
5975		     Syntax error
5976_ACEOF
5977if ac_fn_cxx_try_cpp "$LINENO"; then :
5978
5979else
5980  # Broken: fails on valid input.
5981continue
5982fi
5983rm -f conftest.err conftest.i conftest.$ac_ext
5984
5985  # OK, works on sane cases.  Now check whether nonexistent headers
5986  # can be detected and how.
5987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h.  */
5989#include <ac_nonexistent.h>
5990_ACEOF
5991if ac_fn_cxx_try_cpp "$LINENO"; then :
5992  # Broken: success on invalid input.
5993continue
5994else
5995  # Passes both tests.
5996ac_preproc_ok=:
5997break
5998fi
5999rm -f conftest.err conftest.i conftest.$ac_ext
6000
6001done
6002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6003rm -f conftest.i conftest.err conftest.$ac_ext
6004if $ac_preproc_ok; then :
6005
6006else
6007  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6010See \`config.log' for more details" "$LINENO" 5; }
6011fi
6012
6013ac_ext=cpp
6014ac_cpp='$CXXCPP $CPPFLAGS'
6015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6018
6019fi
6020
6021
6022ac_ext=f
6023ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6024ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6025ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6026if test -n "$ac_tool_prefix"; then
6027  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
6028  do
6029    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
6033if test "${ac_cv_prog_F77+set}" = set; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  if test -n "$F77"; then
6037  ac_cv_prog_F77="$F77" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042  IFS=$as_save_IFS
6043  test -z "$as_dir" && as_dir=.
6044    for ac_exec_ext in '' $ac_executable_extensions; do
6045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048    break 2
6049  fi
6050done
6051  done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056F77=$ac_cv_prog_F77
6057if test -n "$F77"; then
6058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6059$as_echo "$F77" >&6; }
6060else
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065
6066    test -n "$F77" && break
6067  done
6068fi
6069if test -z "$F77"; then
6070  ac_ct_F77=$F77
6071  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
6072do
6073  # Extract the first word of "$ac_prog", so it can be a program name with args.
6074set dummy $ac_prog; ac_word=$2
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076$as_echo_n "checking for $ac_word... " >&6; }
6077if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6078  $as_echo_n "(cached) " >&6
6079else
6080  if test -n "$ac_ct_F77"; then
6081  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086  IFS=$as_save_IFS
6087  test -z "$as_dir" && as_dir=.
6088    for ac_exec_ext in '' $ac_executable_extensions; do
6089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090    ac_cv_prog_ac_ct_F77="$ac_prog"
6091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092    break 2
6093  fi
6094done
6095  done
6096IFS=$as_save_IFS
6097
6098fi
6099fi
6100ac_ct_F77=$ac_cv_prog_ac_ct_F77
6101if test -n "$ac_ct_F77"; then
6102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6103$as_echo "$ac_ct_F77" >&6; }
6104else
6105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106$as_echo "no" >&6; }
6107fi
6108
6109
6110  test -n "$ac_ct_F77" && break
6111done
6112
6113  if test "x$ac_ct_F77" = x; then
6114    F77=""
6115  else
6116    case $cross_compiling:$ac_tool_warned in
6117yes:)
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120ac_tool_warned=yes ;;
6121esac
6122    F77=$ac_ct_F77
6123  fi
6124fi
6125
6126
6127# Provide some information about the compiler.
6128$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6129set X $ac_compile
6130ac_compiler=$2
6131for ac_option in --version -v -V -qversion; do
6132  { { ac_try="$ac_compiler $ac_option >&5"
6133case "(($ac_try" in
6134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135  *) ac_try_echo=$ac_try;;
6136esac
6137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6138$as_echo "$ac_try_echo"; } >&5
6139  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6140  ac_status=$?
6141  if test -s conftest.err; then
6142    sed '10a\
6143... rest of stderr output deleted ...
6144         10q' conftest.err >conftest.er1
6145    cat conftest.er1 >&5
6146  fi
6147  rm -f conftest.er1 conftest.err
6148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149  test $ac_status = 0; }
6150done
6151rm -f a.out
6152
6153# If we don't use `.F' as extension, the preprocessor is not run on the
6154# input file.  (Note that this only needs to work for GNU compilers.)
6155ac_save_ext=$ac_ext
6156ac_ext=F
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6158$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6159if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  cat > conftest.$ac_ext <<_ACEOF
6163      program main
6164#ifndef __GNUC__
6165       choke me
6166#endif
6167
6168      end
6169_ACEOF
6170if ac_fn_f77_try_compile "$LINENO"; then :
6171  ac_compiler_gnu=yes
6172else
6173  ac_compiler_gnu=no
6174fi
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6177
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6180$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6181ac_ext=$ac_save_ext
6182ac_test_FFLAGS=${FFLAGS+set}
6183ac_save_FFLAGS=$FFLAGS
6184FFLAGS=
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6186$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6187if test "${ac_cv_prog_f77_g+set}" = set; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  FFLAGS=-g
6191cat > conftest.$ac_ext <<_ACEOF
6192      program main
6193
6194      end
6195_ACEOF
6196if ac_fn_f77_try_compile "$LINENO"; then :
6197  ac_cv_prog_f77_g=yes
6198else
6199  ac_cv_prog_f77_g=no
6200fi
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6205$as_echo "$ac_cv_prog_f77_g" >&6; }
6206if test "$ac_test_FFLAGS" = set; then
6207  FFLAGS=$ac_save_FFLAGS
6208elif test $ac_cv_prog_f77_g = yes; then
6209  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6210    FFLAGS="-g -O2"
6211  else
6212    FFLAGS="-g"
6213  fi
6214else
6215  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6216    FFLAGS="-O2"
6217  else
6218    FFLAGS=
6219  fi
6220fi
6221
6222if test $ac_compiler_gnu = yes; then
6223  G77=yes
6224else
6225  G77=
6226fi
6227ac_ext=c
6228ac_cpp='$CPP $CPPFLAGS'
6229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231ac_compiler_gnu=$ac_cv_c_compiler_gnu
6232
6233
6234
6235# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6236# find the maximum length of command line arguments
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6238$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6239if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242    i=0
6243  teststring="ABCD"
6244
6245  case $build_os in
6246  msdosdjgpp*)
6247    # On DJGPP, this test can blow up pretty badly due to problems in libc
6248    # (any single argument exceeding 2000 bytes causes a buffer overrun
6249    # during glob expansion).  Even if it were fixed, the result of this
6250    # check would be larger than it should be.
6251    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6252    ;;
6253
6254  gnu*)
6255    # Under GNU Hurd, this test is not required because there is
6256    # no limit to the length of command line arguments.
6257    # Libtool will interpret -1 as no limit whatsoever
6258    lt_cv_sys_max_cmd_len=-1;
6259    ;;
6260
6261  cygwin* | mingw*)
6262    # On Win9x/ME, this test blows up -- it succeeds, but takes
6263    # about 5 minutes as the teststring grows exponentially.
6264    # Worse, since 9x/ME are not pre-emptively multitasking,
6265    # you end up with a "frozen" computer, even though with patience
6266    # the test eventually succeeds (with a max line length of 256k).
6267    # Instead, let's just punt: use the minimum linelength reported by
6268    # all of the supported platforms: 8192 (on NT/2K/XP).
6269    lt_cv_sys_max_cmd_len=8192;
6270    ;;
6271
6272  amigaos*)
6273    # On AmigaOS with pdksh, this test takes hours, literally.
6274    # So we just punt and use a minimum line length of 8192.
6275    lt_cv_sys_max_cmd_len=8192;
6276    ;;
6277
6278  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6279    # This has been around since 386BSD, at least.  Likely further.
6280    if test -x /sbin/sysctl; then
6281      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6282    elif test -x /usr/sbin/sysctl; then
6283      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6284    else
6285      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6286    fi
6287    # And add a safety zone
6288    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6289    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6290    ;;
6291
6292  interix*)
6293    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6294    lt_cv_sys_max_cmd_len=196608
6295    ;;
6296
6297  osf*)
6298    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6299    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6300    # nice to cause kernel panics so lets avoid the loop below.
6301    # First set a reasonable default.
6302    lt_cv_sys_max_cmd_len=16384
6303    #
6304    if test -x /sbin/sysconfig; then
6305      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6306        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6307      esac
6308    fi
6309    ;;
6310  sco3.2v5*)
6311    lt_cv_sys_max_cmd_len=102400
6312    ;;
6313  sysv5* | sco5v6* | sysv4.2uw2*)
6314    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6315    if test -n "$kargmax"; then
6316      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6317    else
6318      lt_cv_sys_max_cmd_len=32768
6319    fi
6320    ;;
6321  *)
6322    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6323    if test -n "$lt_cv_sys_max_cmd_len"; then
6324      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6325      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6326    else
6327      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6328      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6329	       = "XX$teststring") >/dev/null 2>&1 &&
6330	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6331	      lt_cv_sys_max_cmd_len=$new_result &&
6332	      test $i != 17 # 1/2 MB should be enough
6333      do
6334        i=`expr $i + 1`
6335        teststring=$teststring$teststring
6336      done
6337      teststring=
6338      # Add a significant safety factor because C++ compilers can tack on massive
6339      # amounts of additional arguments before passing them to the linker.
6340      # It appears as though 1/2 is a usable value.
6341      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6342    fi
6343    ;;
6344  esac
6345
6346fi
6347
6348if test -n $lt_cv_sys_max_cmd_len ; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6350$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6353$as_echo "none" >&6; }
6354fi
6355
6356
6357
6358
6359
6360# Check for command to grab the raw symbol name followed by C symbol from nm.
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6362$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6363if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366
6367# These are sane defaults that work on at least a few old systems.
6368# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6369
6370# Character class describing NM global symbol codes.
6371symcode='[BCDEGRST]'
6372
6373# Regexp to match symbols that can be accessed directly from C.
6374sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6375
6376# Transform an extracted symbol line into a proper C declaration
6377lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6378
6379# Transform an extracted symbol line into symbol name and symbol address
6380lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6381
6382# Define system-specific variables.
6383case $host_os in
6384aix*)
6385  symcode='[BCDT]'
6386  ;;
6387cygwin* | mingw* | pw32*)
6388  symcode='[ABCDGISTW]'
6389  ;;
6390hpux*) # Its linker distinguishes data from code symbols
6391  if test "$host_cpu" = ia64; then
6392    symcode='[ABCDEGRST]'
6393  fi
6394  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6395  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6396  ;;
6397linux* | k*bsd*-gnu)
6398  if test "$host_cpu" = ia64; then
6399    symcode='[ABCDGIRSTW]'
6400    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6401    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6402  fi
6403  ;;
6404irix* | nonstopux*)
6405  symcode='[BCDEGRST]'
6406  ;;
6407osf*)
6408  symcode='[BCDEGQRST]'
6409  ;;
6410solaris*)
6411  symcode='[BDRT]'
6412  ;;
6413sco3.2v5*)
6414  symcode='[DT]'
6415  ;;
6416sysv4.2uw2*)
6417  symcode='[DT]'
6418  ;;
6419sysv5* | sco5v6* | unixware* | OpenUNIX*)
6420  symcode='[ABDT]'
6421  ;;
6422sysv4)
6423  symcode='[DFNSTU]'
6424  ;;
6425esac
6426
6427# Handle CRLF in mingw tool chain
6428opt_cr=
6429case $build_os in
6430mingw*)
6431  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6432  ;;
6433esac
6434
6435# If we're using GNU nm, then use its standard symbol codes.
6436case `$NM -V 2>&1` in
6437*GNU* | *'with BFD'*)
6438  symcode='[ABCDGIRSTW]' ;;
6439esac
6440
6441# Try without a prefix undercore, then with it.
6442for ac_symprfx in "" "_"; do
6443
6444  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6445  symxfrm="\\1 $ac_symprfx\\2 \\2"
6446
6447  # Write the raw and C identifiers.
6448  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6449
6450  # Check to see that the pipe works correctly.
6451  pipe_works=no
6452
6453  rm -f conftest*
6454  cat > conftest.$ac_ext <<EOF
6455#ifdef __cplusplus
6456extern "C" {
6457#endif
6458char nm_test_var;
6459void nm_test_func(){}
6460#ifdef __cplusplus
6461}
6462#endif
6463int main(){nm_test_var='a';nm_test_func();return(0);}
6464EOF
6465
6466  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6467  (eval $ac_compile) 2>&5
6468  ac_status=$?
6469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470  test $ac_status = 0; }; then
6471    # Now try to grab the symbols.
6472    nlist=conftest.nm
6473    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6474  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6475  ac_status=$?
6476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477  test $ac_status = 0; } && test -s "$nlist"; then
6478      # Try sorting and uniquifying the output.
6479      if sort "$nlist" | uniq > "$nlist"T; then
6480	mv -f "$nlist"T "$nlist"
6481      else
6482	rm -f "$nlist"T
6483      fi
6484
6485      # Make sure that we snagged all the symbols we need.
6486      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6487	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6488	  cat <<EOF > conftest.$ac_ext
6489#ifdef __cplusplus
6490extern "C" {
6491#endif
6492
6493EOF
6494	  # Now generate the symbol file.
6495	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6496
6497	  cat <<EOF >> conftest.$ac_ext
6498#if defined (__STDC__) && __STDC__
6499# define lt_ptr_t void *
6500#else
6501# define lt_ptr_t char *
6502# define const
6503#endif
6504
6505/* The mapping between symbol names and symbols. */
6506const struct {
6507  const char *name;
6508  lt_ptr_t address;
6509}
6510lt_preloaded_symbols[] =
6511{
6512EOF
6513	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6514	  cat <<\EOF >> conftest.$ac_ext
6515  {0, (lt_ptr_t) 0}
6516};
6517
6518#ifdef __cplusplus
6519}
6520#endif
6521EOF
6522	  # Now try linking the two files.
6523	  mv conftest.$ac_objext conftstm.$ac_objext
6524	  lt_save_LIBS="$LIBS"
6525	  lt_save_CFLAGS="$CFLAGS"
6526	  LIBS="conftstm.$ac_objext"
6527	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6528	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6529  (eval $ac_link) 2>&5
6530  ac_status=$?
6531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6533	    pipe_works=yes
6534	  fi
6535	  LIBS="$lt_save_LIBS"
6536	  CFLAGS="$lt_save_CFLAGS"
6537	else
6538	  echo "cannot find nm_test_func in $nlist" >&5
6539	fi
6540      else
6541	echo "cannot find nm_test_var in $nlist" >&5
6542      fi
6543    else
6544      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6545    fi
6546  else
6547    echo "$progname: failed program was:" >&5
6548    cat conftest.$ac_ext >&5
6549  fi
6550  rm -rf conftest* conftst*
6551
6552  # Do not use the global_symbol_pipe unless it works.
6553  if test "$pipe_works" = yes; then
6554    break
6555  else
6556    lt_cv_sys_global_symbol_pipe=
6557  fi
6558done
6559
6560fi
6561
6562if test -z "$lt_cv_sys_global_symbol_pipe"; then
6563  lt_cv_sys_global_symbol_to_cdecl=
6564fi
6565if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6567$as_echo "failed" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6570$as_echo "ok" >&6; }
6571fi
6572
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6574$as_echo_n "checking for objdir... " >&6; }
6575if test "${lt_cv_objdir+set}" = set; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  rm -f .libs 2>/dev/null
6579mkdir .libs 2>/dev/null
6580if test -d .libs; then
6581  lt_cv_objdir=.libs
6582else
6583  # MS-DOS does not allow filenames that begin with a dot.
6584  lt_cv_objdir=_libs
6585fi
6586rmdir .libs 2>/dev/null
6587fi
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6589$as_echo "$lt_cv_objdir" >&6; }
6590objdir=$lt_cv_objdir
6591
6592
6593
6594
6595
6596case $host_os in
6597aix3*)
6598  # AIX sometimes has problems with the GCC collect2 program.  For some
6599  # reason, if we set the COLLECT_NAMES environment variable, the problems
6600  # vanish in a puff of smoke.
6601  if test "X${COLLECT_NAMES+set}" != Xset; then
6602    COLLECT_NAMES=
6603    export COLLECT_NAMES
6604  fi
6605  ;;
6606esac
6607
6608# Sed substitution that helps us do robust quoting.  It backslashifies
6609# metacharacters that are still active within double-quoted strings.
6610Xsed='sed -e 1s/^X//'
6611sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6612
6613# Same as above, but do not quote variable references.
6614double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6615
6616# Sed substitution to delay expansion of an escaped shell variable in a
6617# double_quote_subst'ed string.
6618delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6619
6620# Sed substitution to avoid accidental globbing in evaled expressions
6621no_glob_subst='s/\*/\\\*/g'
6622
6623# Constants:
6624rm="rm -f"
6625
6626# Global variables:
6627default_ofile=libtool
6628can_build_shared=yes
6629
6630# All known linkers require a `.a' archive for static linking (except MSVC,
6631# which needs '.lib').
6632libext=a
6633ltmain="$ac_aux_dir/ltmain.sh"
6634ofile="$default_ofile"
6635with_gnu_ld="$lt_cv_prog_gnu_ld"
6636
6637if test -n "$ac_tool_prefix"; then
6638  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}ar; ac_word=$2
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if test "${ac_cv_prog_AR+set}" = set; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  if test -n "$AR"; then
6646  ac_cv_prog_AR="$AR" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  test -z "$as_dir" && as_dir=.
6653    for ac_exec_ext in '' $ac_executable_extensions; do
6654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655    ac_cv_prog_AR="${ac_tool_prefix}ar"
6656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657    break 2
6658  fi
6659done
6660  done
6661IFS=$as_save_IFS
6662
6663fi
6664fi
6665AR=$ac_cv_prog_AR
6666if test -n "$AR"; then
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668$as_echo "$AR" >&6; }
6669else
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674
6675fi
6676if test -z "$ac_cv_prog_AR"; then
6677  ac_ct_AR=$AR
6678  # Extract the first word of "ar", so it can be a program name with args.
6679set dummy ar; ac_word=$2
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681$as_echo_n "checking for $ac_word... " >&6; }
6682if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6683  $as_echo_n "(cached) " >&6
6684else
6685  if test -n "$ac_ct_AR"; then
6686  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6687else
6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691  IFS=$as_save_IFS
6692  test -z "$as_dir" && as_dir=.
6693    for ac_exec_ext in '' $ac_executable_extensions; do
6694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695    ac_cv_prog_ac_ct_AR="ar"
6696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697    break 2
6698  fi
6699done
6700  done
6701IFS=$as_save_IFS
6702
6703fi
6704fi
6705ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706if test -n "$ac_ct_AR"; then
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6708$as_echo "$ac_ct_AR" >&6; }
6709else
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711$as_echo "no" >&6; }
6712fi
6713
6714  if test "x$ac_ct_AR" = x; then
6715    AR="false"
6716  else
6717    case $cross_compiling:$ac_tool_warned in
6718yes:)
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721ac_tool_warned=yes ;;
6722esac
6723    AR=$ac_ct_AR
6724  fi
6725else
6726  AR="$ac_cv_prog_AR"
6727fi
6728
6729if test -n "$ac_tool_prefix"; then
6730  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6731set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733$as_echo_n "checking for $ac_word... " >&6; }
6734if test "${ac_cv_prog_RANLIB+set}" = set; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  if test -n "$RANLIB"; then
6738  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6739else
6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743  IFS=$as_save_IFS
6744  test -z "$as_dir" && as_dir=.
6745    for ac_exec_ext in '' $ac_executable_extensions; do
6746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749    break 2
6750  fi
6751done
6752  done
6753IFS=$as_save_IFS
6754
6755fi
6756fi
6757RANLIB=$ac_cv_prog_RANLIB
6758if test -n "$RANLIB"; then
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6760$as_echo "$RANLIB" >&6; }
6761else
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763$as_echo "no" >&6; }
6764fi
6765
6766
6767fi
6768if test -z "$ac_cv_prog_RANLIB"; then
6769  ac_ct_RANLIB=$RANLIB
6770  # Extract the first word of "ranlib", so it can be a program name with args.
6771set dummy ranlib; ac_word=$2
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773$as_echo_n "checking for $ac_word... " >&6; }
6774if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  if test -n "$ac_ct_RANLIB"; then
6778  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6779else
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783  IFS=$as_save_IFS
6784  test -z "$as_dir" && as_dir=.
6785    for ac_exec_ext in '' $ac_executable_extensions; do
6786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787    ac_cv_prog_ac_ct_RANLIB="ranlib"
6788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789    break 2
6790  fi
6791done
6792  done
6793IFS=$as_save_IFS
6794
6795fi
6796fi
6797ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6798if test -n "$ac_ct_RANLIB"; then
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6800$as_echo "$ac_ct_RANLIB" >&6; }
6801else
6802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803$as_echo "no" >&6; }
6804fi
6805
6806  if test "x$ac_ct_RANLIB" = x; then
6807    RANLIB=":"
6808  else
6809    case $cross_compiling:$ac_tool_warned in
6810yes:)
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813ac_tool_warned=yes ;;
6814esac
6815    RANLIB=$ac_ct_RANLIB
6816  fi
6817else
6818  RANLIB="$ac_cv_prog_RANLIB"
6819fi
6820
6821if test -n "$ac_tool_prefix"; then
6822  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}strip; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if test "${ac_cv_prog_STRIP+set}" = set; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$STRIP"; then
6830  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837    for ac_exec_ext in '' $ac_executable_extensions; do
6838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844  done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849STRIP=$ac_cv_prog_STRIP
6850if test -n "$STRIP"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6852$as_echo "$STRIP" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859fi
6860if test -z "$ac_cv_prog_STRIP"; then
6861  ac_ct_STRIP=$STRIP
6862  # Extract the first word of "strip", so it can be a program name with args.
6863set dummy strip; ac_word=$2
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865$as_echo_n "checking for $ac_word... " >&6; }
6866if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869  if test -n "$ac_ct_STRIP"; then
6870  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  test -z "$as_dir" && as_dir=.
6877    for ac_exec_ext in '' $ac_executable_extensions; do
6878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879    ac_cv_prog_ac_ct_STRIP="strip"
6880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884  done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6890if test -n "$ac_ct_STRIP"; then
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6892$as_echo "$ac_ct_STRIP" >&6; }
6893else
6894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895$as_echo "no" >&6; }
6896fi
6897
6898  if test "x$ac_ct_STRIP" = x; then
6899    STRIP=":"
6900  else
6901    case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907    STRIP=$ac_ct_STRIP
6908  fi
6909else
6910  STRIP="$ac_cv_prog_STRIP"
6911fi
6912
6913
6914old_CC="$CC"
6915old_CFLAGS="$CFLAGS"
6916
6917# Set sane defaults for various variables
6918test -z "$AR" && AR=ar
6919test -z "$AR_FLAGS" && AR_FLAGS=cru
6920test -z "$AS" && AS=as
6921test -z "$CC" && CC=cc
6922test -z "$LTCC" && LTCC=$CC
6923test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6924test -z "$DLLTOOL" && DLLTOOL=dlltool
6925test -z "$LD" && LD=ld
6926test -z "$LN_S" && LN_S="ln -s"
6927test -z "$MAGIC_CMD" && MAGIC_CMD=file
6928test -z "$NM" && NM=nm
6929test -z "$SED" && SED=sed
6930test -z "$OBJDUMP" && OBJDUMP=objdump
6931test -z "$RANLIB" && RANLIB=:
6932test -z "$STRIP" && STRIP=:
6933test -z "$ac_objext" && ac_objext=o
6934
6935# Determine commands to create old-style static archives.
6936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6937old_postinstall_cmds='chmod 644 $oldlib'
6938old_postuninstall_cmds=
6939
6940if test -n "$RANLIB"; then
6941  case $host_os in
6942  openbsd*)
6943    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6944    ;;
6945  *)
6946    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6947    ;;
6948  esac
6949  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6950fi
6951
6952for cc_temp in $compiler""; do
6953  case $cc_temp in
6954    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6955    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6956    \-*) ;;
6957    *) break;;
6958  esac
6959done
6960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6961
6962
6963# Only perform the check for file, if the check method requires it
6964case $deplibs_check_method in
6965file_magic*)
6966  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6968$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6969if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6970  $as_echo_n "(cached) " >&6
6971else
6972  case $MAGIC_CMD in
6973[\\/*] |  ?:[\\/]*)
6974  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6975  ;;
6976*)
6977  lt_save_MAGIC_CMD="$MAGIC_CMD"
6978  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6979  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6980  for ac_dir in $ac_dummy; do
6981    IFS="$lt_save_ifs"
6982    test -z "$ac_dir" && ac_dir=.
6983    if test -f $ac_dir/${ac_tool_prefix}file; then
6984      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6985      if test -n "$file_magic_test_file"; then
6986	case $deplibs_check_method in
6987	"file_magic "*)
6988	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6989	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6991	    $EGREP "$file_magic_regex" > /dev/null; then
6992	    :
6993	  else
6994	    cat <<EOF 1>&2
6995
6996*** Warning: the command libtool uses to detect shared libraries,
6997*** $file_magic_cmd, produces output that libtool cannot recognize.
6998*** The result is that libtool may fail to recognize shared libraries
6999*** as such.  This will affect the creation of libtool libraries that
7000*** depend on shared libraries, but programs linked with such libtool
7001*** libraries will work regardless of this problem.  Nevertheless, you
7002*** may want to report the problem to your system manager and/or to
7003*** bug-libtool@gnu.org
7004
7005EOF
7006	  fi ;;
7007	esac
7008      fi
7009      break
7010    fi
7011  done
7012  IFS="$lt_save_ifs"
7013  MAGIC_CMD="$lt_save_MAGIC_CMD"
7014  ;;
7015esac
7016fi
7017
7018MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7019if test -n "$MAGIC_CMD"; then
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7021$as_echo "$MAGIC_CMD" >&6; }
7022else
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024$as_echo "no" >&6; }
7025fi
7026
7027if test -z "$lt_cv_path_MAGIC_CMD"; then
7028  if test -n "$ac_tool_prefix"; then
7029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7030$as_echo_n "checking for file... " >&6; }
7031if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  case $MAGIC_CMD in
7035[\\/*] |  ?:[\\/]*)
7036  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7037  ;;
7038*)
7039  lt_save_MAGIC_CMD="$MAGIC_CMD"
7040  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7041  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7042  for ac_dir in $ac_dummy; do
7043    IFS="$lt_save_ifs"
7044    test -z "$ac_dir" && ac_dir=.
7045    if test -f $ac_dir/file; then
7046      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7047      if test -n "$file_magic_test_file"; then
7048	case $deplibs_check_method in
7049	"file_magic "*)
7050	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7051	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7053	    $EGREP "$file_magic_regex" > /dev/null; then
7054	    :
7055	  else
7056	    cat <<EOF 1>&2
7057
7058*** Warning: the command libtool uses to detect shared libraries,
7059*** $file_magic_cmd, produces output that libtool cannot recognize.
7060*** The result is that libtool may fail to recognize shared libraries
7061*** as such.  This will affect the creation of libtool libraries that
7062*** depend on shared libraries, but programs linked with such libtool
7063*** libraries will work regardless of this problem.  Nevertheless, you
7064*** may want to report the problem to your system manager and/or to
7065*** bug-libtool@gnu.org
7066
7067EOF
7068	  fi ;;
7069	esac
7070      fi
7071      break
7072    fi
7073  done
7074  IFS="$lt_save_ifs"
7075  MAGIC_CMD="$lt_save_MAGIC_CMD"
7076  ;;
7077esac
7078fi
7079
7080MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7081if test -n "$MAGIC_CMD"; then
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7083$as_echo "$MAGIC_CMD" >&6; }
7084else
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087fi
7088
7089  else
7090    MAGIC_CMD=:
7091  fi
7092fi
7093
7094  fi
7095  ;;
7096esac
7097
7098
7099  case $host_os in
7100    rhapsody* | darwin*)
7101    if test -n "$ac_tool_prefix"; then
7102  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7103set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105$as_echo_n "checking for $ac_word... " >&6; }
7106if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  if test -n "$DSYMUTIL"; then
7110  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115  IFS=$as_save_IFS
7116  test -z "$as_dir" && as_dir=.
7117    for ac_exec_ext in '' $ac_executable_extensions; do
7118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121    break 2
7122  fi
7123done
7124  done
7125IFS=$as_save_IFS
7126
7127fi
7128fi
7129DSYMUTIL=$ac_cv_prog_DSYMUTIL
7130if test -n "$DSYMUTIL"; then
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7132$as_echo "$DSYMUTIL" >&6; }
7133else
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135$as_echo "no" >&6; }
7136fi
7137
7138
7139fi
7140if test -z "$ac_cv_prog_DSYMUTIL"; then
7141  ac_ct_DSYMUTIL=$DSYMUTIL
7142  # Extract the first word of "dsymutil", so it can be a program name with args.
7143set dummy dsymutil; ac_word=$2
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145$as_echo_n "checking for $ac_word... " >&6; }
7146if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7147  $as_echo_n "(cached) " >&6
7148else
7149  if test -n "$ac_ct_DSYMUTIL"; then
7150  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7151else
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155  IFS=$as_save_IFS
7156  test -z "$as_dir" && as_dir=.
7157    for ac_exec_ext in '' $ac_executable_extensions; do
7158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7159    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161    break 2
7162  fi
7163done
7164  done
7165IFS=$as_save_IFS
7166
7167fi
7168fi
7169ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7170if test -n "$ac_ct_DSYMUTIL"; then
7171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7172$as_echo "$ac_ct_DSYMUTIL" >&6; }
7173else
7174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175$as_echo "no" >&6; }
7176fi
7177
7178  if test "x$ac_ct_DSYMUTIL" = x; then
7179    DSYMUTIL=":"
7180  else
7181    case $cross_compiling:$ac_tool_warned in
7182yes:)
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185ac_tool_warned=yes ;;
7186esac
7187    DSYMUTIL=$ac_ct_DSYMUTIL
7188  fi
7189else
7190  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7191fi
7192
7193    if test -n "$ac_tool_prefix"; then
7194  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7195set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  if test -n "$NMEDIT"; then
7202  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  test -z "$as_dir" && as_dir=.
7209    for ac_exec_ext in '' $ac_executable_extensions; do
7210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213    break 2
7214  fi
7215done
7216  done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221NMEDIT=$ac_cv_prog_NMEDIT
7222if test -n "$NMEDIT"; then
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7224$as_echo "$NMEDIT" >&6; }
7225else
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230
7231fi
7232if test -z "$ac_cv_prog_NMEDIT"; then
7233  ac_ct_NMEDIT=$NMEDIT
7234  # Extract the first word of "nmedit", so it can be a program name with args.
7235set dummy nmedit; ac_word=$2
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237$as_echo_n "checking for $ac_word... " >&6; }
7238if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  if test -n "$ac_ct_NMEDIT"; then
7242  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7243else
7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247  IFS=$as_save_IFS
7248  test -z "$as_dir" && as_dir=.
7249    for ac_exec_ext in '' $ac_executable_extensions; do
7250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253    break 2
7254  fi
7255done
7256  done
7257IFS=$as_save_IFS
7258
7259fi
7260fi
7261ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7262if test -n "$ac_ct_NMEDIT"; then
7263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7264$as_echo "$ac_ct_NMEDIT" >&6; }
7265else
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
7268fi
7269
7270  if test "x$ac_ct_NMEDIT" = x; then
7271    NMEDIT=":"
7272  else
7273    case $cross_compiling:$ac_tool_warned in
7274yes:)
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277ac_tool_warned=yes ;;
7278esac
7279    NMEDIT=$ac_ct_NMEDIT
7280  fi
7281else
7282  NMEDIT="$ac_cv_prog_NMEDIT"
7283fi
7284
7285
7286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7287$as_echo_n "checking for -single_module linker flag... " >&6; }
7288if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  lt_cv_apple_cc_single_mod=no
7292      if test -z "${LT_MULTI_MODULE}"; then
7293   # By default we will add the -single_module flag. You can override
7294   # by either setting the environment variable LT_MULTI_MODULE
7295   # non-empty at configure time, or by adding -multi_module to the
7296   # link flags.
7297   echo "int foo(void){return 1;}" > conftest.c
7298   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7299     -dynamiclib ${wl}-single_module conftest.c
7300   if test -f libconftest.dylib; then
7301     lt_cv_apple_cc_single_mod=yes
7302     rm -rf libconftest.dylib*
7303   fi
7304   rm conftest.c
7305      fi
7306fi
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7308$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7310$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7311if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7312  $as_echo_n "(cached) " >&6
7313else
7314  lt_cv_ld_exported_symbols_list=no
7315      save_LDFLAGS=$LDFLAGS
7316      echo "_main" > conftest.sym
7317      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7318      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320
7321int
7322main ()
7323{
7324
7325  ;
7326  return 0;
7327}
7328_ACEOF
7329if ac_fn_c_try_link "$LINENO"; then :
7330  lt_cv_ld_exported_symbols_list=yes
7331else
7332  lt_cv_ld_exported_symbols_list=no
7333fi
7334rm -f core conftest.err conftest.$ac_objext \
7335    conftest$ac_exeext conftest.$ac_ext
7336   LDFLAGS="$save_LDFLAGS"
7337
7338fi
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7340$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7341    case $host_os in
7342    rhapsody* | darwin1.[0123])
7343      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7344    darwin1.*)
7345     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7346    darwin*)
7347      # if running on 10.5 or later, the deployment target defaults
7348      # to the OS version, if on x86, and 10.4, the deployment
7349      # target defaults to 10.4. Don't you love it?
7350      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7351   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7352     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7353   10.[012]*)
7354     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7355   10.*)
7356     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7357      esac
7358    ;;
7359  esac
7360    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7361      _lt_dar_single_mod='$single_module'
7362    fi
7363    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7364      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7365    else
7366      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7367    fi
7368    if test "$DSYMUTIL" != ":"; then
7369      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7370    else
7371      _lt_dsymutil=
7372    fi
7373    ;;
7374  esac
7375
7376
7377enable_dlopen=no
7378enable_win32_dll=no
7379
7380# Check whether --enable-libtool-lock was given.
7381if test "${enable_libtool_lock+set}" = set; then :
7382  enableval=$enable_libtool_lock;
7383fi
7384
7385test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7386
7387
7388# Check whether --with-pic was given.
7389if test "${with_pic+set}" = set; then :
7390  withval=$with_pic; pic_mode="$withval"
7391else
7392  pic_mode=default
7393fi
7394
7395test -z "$pic_mode" && pic_mode=default
7396
7397# Use C for the default configuration in the libtool script
7398tagname=
7399lt_save_CC="$CC"
7400ac_ext=c
7401ac_cpp='$CPP $CPPFLAGS'
7402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405
7406
7407# Source file extension for C test sources.
7408ac_ext=c
7409
7410# Object file extension for compiled C test sources.
7411objext=o
7412objext=$objext
7413
7414# Code to be used in simple compile tests
7415lt_simple_compile_test_code="int some_variable = 0;"
7416
7417# Code to be used in simple link tests
7418lt_simple_link_test_code='int main(){return(0);}'
7419
7420
7421# If no C compiler was specified, use CC.
7422LTCC=${LTCC-"$CC"}
7423
7424# If no C compiler flags were specified, use CFLAGS.
7425LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7426
7427# Allow CC to be a program name with arguments.
7428compiler=$CC
7429
7430
7431# save warnings/boilerplate of simple test code
7432ac_outfile=conftest.$ac_objext
7433echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7434eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7435_lt_compiler_boilerplate=`cat conftest.err`
7436$rm conftest*
7437
7438ac_outfile=conftest.$ac_objext
7439echo "$lt_simple_link_test_code" >conftest.$ac_ext
7440eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7441_lt_linker_boilerplate=`cat conftest.err`
7442$rm -r conftest*
7443
7444
7445## CAVEAT EMPTOR:
7446## There is no encapsulation within the following macros, do not change
7447## the running order or otherwise move them around unless you know exactly
7448## what you are doing...
7449
7450lt_prog_compiler_no_builtin_flag=
7451
7452if test "$GCC" = yes; then
7453  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7454
7455
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7457$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7458if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  lt_cv_prog_compiler_rtti_exceptions=no
7462  ac_outfile=conftest.$ac_objext
7463   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7464   lt_compiler_flag="-fno-rtti -fno-exceptions"
7465   # Insert the option either (1) after the last *FLAGS variable, or
7466   # (2) before a word containing "conftest.", or (3) at the end.
7467   # Note that $ac_compile itself does not contain backslashes and begins
7468   # with a dollar sign (not a hyphen), so the echo should work correctly.
7469   # The option is referenced via a variable to avoid confusing sed.
7470   lt_compile=`echo "$ac_compile" | $SED \
7471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7473   -e 's:$: $lt_compiler_flag:'`
7474   (eval echo "\"\$as_me:7474: $lt_compile\"" >&5)
7475   (eval "$lt_compile" 2>conftest.err)
7476   ac_status=$?
7477   cat conftest.err >&5
7478   echo "$as_me:7478: \$? = $ac_status" >&5
7479   if (exit $ac_status) && test -s "$ac_outfile"; then
7480     # The compiler can only warn and ignore the option if not recognized
7481     # So say no if there are warnings other than the usual output.
7482     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7483     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7484     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7485       lt_cv_prog_compiler_rtti_exceptions=yes
7486     fi
7487   fi
7488   $rm conftest*
7489
7490fi
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7492$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7493
7494if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7495    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7496else
7497    :
7498fi
7499
7500fi
7501
7502lt_prog_compiler_wl=
7503lt_prog_compiler_pic=
7504lt_prog_compiler_static=
7505
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7507$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7508
7509  if test "$GCC" = yes; then
7510    lt_prog_compiler_wl='-Wl,'
7511    lt_prog_compiler_static='-static'
7512
7513    case $host_os in
7514      aix*)
7515      # All AIX code is PIC.
7516      if test "$host_cpu" = ia64; then
7517	# AIX 5 now supports IA64 processor
7518	lt_prog_compiler_static='-Bstatic'
7519      fi
7520      ;;
7521
7522    amigaos*)
7523      # FIXME: we need at least 68020 code to build shared libraries, but
7524      # adding the `-m68020' flag to GCC prevents building anything better,
7525      # like `-m68040'.
7526      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7527      ;;
7528
7529    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7530      # PIC is the default for these OSes.
7531      ;;
7532
7533    mingw* | cygwin* | pw32* | os2*)
7534      # This hack is so that the source file can tell whether it is being
7535      # built for inclusion in a dll (and should export symbols for example).
7536      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7537      # (--disable-auto-import) libraries
7538      lt_prog_compiler_pic='-DDLL_EXPORT'
7539      ;;
7540
7541    darwin* | rhapsody*)
7542      # PIC is the default on this platform
7543      # Common symbols not allowed in MH_DYLIB files
7544      lt_prog_compiler_pic='-fno-common'
7545      ;;
7546
7547    interix[3-9]*)
7548      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7549      # Instead, we relocate shared libraries at runtime.
7550      ;;
7551
7552    msdosdjgpp*)
7553      # Just because we use GCC doesn't mean we suddenly get shared libraries
7554      # on systems that don't support them.
7555      lt_prog_compiler_can_build_shared=no
7556      enable_shared=no
7557      ;;
7558
7559    sysv4*MP*)
7560      if test -d /usr/nec; then
7561	lt_prog_compiler_pic=-Kconform_pic
7562      fi
7563      ;;
7564
7565    hpux*)
7566      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7567      # not for PA HP-UX.
7568      case $host_cpu in
7569      hppa*64*|ia64*)
7570	# +Z the default
7571	;;
7572      *)
7573	lt_prog_compiler_pic='-fPIC'
7574	;;
7575      esac
7576      ;;
7577
7578    *)
7579      lt_prog_compiler_pic='-fPIC'
7580      ;;
7581    esac
7582  else
7583    # PORTME Check for flag to pass linker flags through the system compiler.
7584    case $host_os in
7585    aix*)
7586      lt_prog_compiler_wl='-Wl,'
7587      if test "$host_cpu" = ia64; then
7588	# AIX 5 now supports IA64 processor
7589	lt_prog_compiler_static='-Bstatic'
7590      else
7591	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7592      fi
7593      ;;
7594      darwin*)
7595        # PIC is the default on this platform
7596        # Common symbols not allowed in MH_DYLIB files
7597       case $cc_basename in
7598         xlc*)
7599         lt_prog_compiler_pic='-qnocommon'
7600         lt_prog_compiler_wl='-Wl,'
7601         ;;
7602       esac
7603       ;;
7604
7605    mingw* | cygwin* | pw32* | os2*)
7606      # This hack is so that the source file can tell whether it is being
7607      # built for inclusion in a dll (and should export symbols for example).
7608      lt_prog_compiler_pic='-DDLL_EXPORT'
7609      ;;
7610
7611    hpux9* | hpux10* | hpux11*)
7612      lt_prog_compiler_wl='-Wl,'
7613      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7614      # not for PA HP-UX.
7615      case $host_cpu in
7616      hppa*64*|ia64*)
7617	# +Z the default
7618	;;
7619      *)
7620	lt_prog_compiler_pic='+Z'
7621	;;
7622      esac
7623      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7624      lt_prog_compiler_static='${wl}-a ${wl}archive'
7625      ;;
7626
7627    irix5* | irix6* | nonstopux*)
7628      lt_prog_compiler_wl='-Wl,'
7629      # PIC (with -KPIC) is the default.
7630      lt_prog_compiler_static='-non_shared'
7631      ;;
7632
7633    newsos6)
7634      lt_prog_compiler_pic='-KPIC'
7635      lt_prog_compiler_static='-Bstatic'
7636      ;;
7637
7638    linux* | k*bsd*-gnu)
7639      case $cc_basename in
7640      icc* | ecc*)
7641	lt_prog_compiler_wl='-Wl,'
7642	lt_prog_compiler_pic='-KPIC'
7643	lt_prog_compiler_static='-static'
7644        ;;
7645      pgcc* | pgf77* | pgf90* | pgf95*)
7646        # Portland Group compilers (*not* the Pentium gcc compiler,
7647	# which looks to be a dead project)
7648	lt_prog_compiler_wl='-Wl,'
7649	lt_prog_compiler_pic='-fpic'
7650	lt_prog_compiler_static='-Bstatic'
7651        ;;
7652      ccc*)
7653        lt_prog_compiler_wl='-Wl,'
7654        # All Alpha code is PIC.
7655        lt_prog_compiler_static='-non_shared'
7656        ;;
7657      *)
7658        case `$CC -V 2>&1 | sed 5q` in
7659	*Sun\ C*)
7660	  # Sun C 5.9
7661	  lt_prog_compiler_pic='-KPIC'
7662	  lt_prog_compiler_static='-Bstatic'
7663	  lt_prog_compiler_wl='-Wl,'
7664	  ;;
7665	*Sun\ F*)
7666	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7667	  lt_prog_compiler_pic='-KPIC'
7668	  lt_prog_compiler_static='-Bstatic'
7669	  lt_prog_compiler_wl=''
7670	  ;;
7671	esac
7672	;;
7673      esac
7674      ;;
7675
7676    osf3* | osf4* | osf5*)
7677      lt_prog_compiler_wl='-Wl,'
7678      # All OSF/1 code is PIC.
7679      lt_prog_compiler_static='-non_shared'
7680      ;;
7681
7682    rdos*)
7683      lt_prog_compiler_static='-non_shared'
7684      ;;
7685
7686    solaris*)
7687      lt_prog_compiler_pic='-KPIC'
7688      lt_prog_compiler_static='-Bstatic'
7689      case $cc_basename in
7690      f77* | f90* | f95*)
7691	lt_prog_compiler_wl='-Qoption ld ';;
7692      *)
7693	lt_prog_compiler_wl='-Wl,';;
7694      esac
7695      ;;
7696
7697    sunos4*)
7698      lt_prog_compiler_wl='-Qoption ld '
7699      lt_prog_compiler_pic='-PIC'
7700      lt_prog_compiler_static='-Bstatic'
7701      ;;
7702
7703    sysv4 | sysv4.2uw2* | sysv4.3*)
7704      lt_prog_compiler_wl='-Wl,'
7705      lt_prog_compiler_pic='-KPIC'
7706      lt_prog_compiler_static='-Bstatic'
7707      ;;
7708
7709    sysv4*MP*)
7710      if test -d /usr/nec ;then
7711	lt_prog_compiler_pic='-Kconform_pic'
7712	lt_prog_compiler_static='-Bstatic'
7713      fi
7714      ;;
7715
7716    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7717      lt_prog_compiler_wl='-Wl,'
7718      lt_prog_compiler_pic='-KPIC'
7719      lt_prog_compiler_static='-Bstatic'
7720      ;;
7721
7722    unicos*)
7723      lt_prog_compiler_wl='-Wl,'
7724      lt_prog_compiler_can_build_shared=no
7725      ;;
7726
7727    uts4*)
7728      lt_prog_compiler_pic='-pic'
7729      lt_prog_compiler_static='-Bstatic'
7730      ;;
7731
7732    *)
7733      lt_prog_compiler_can_build_shared=no
7734      ;;
7735    esac
7736  fi
7737
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7739$as_echo "$lt_prog_compiler_pic" >&6; }
7740
7741#
7742# Check to make sure the PIC flag actually works.
7743#
7744if test -n "$lt_prog_compiler_pic"; then
7745
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7747$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7748if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7749  $as_echo_n "(cached) " >&6
7750else
7751  lt_cv_prog_compiler_pic_works=no
7752  ac_outfile=conftest.$ac_objext
7753   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7754   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7755   # Insert the option either (1) after the last *FLAGS variable, or
7756   # (2) before a word containing "conftest.", or (3) at the end.
7757   # Note that $ac_compile itself does not contain backslashes and begins
7758   # with a dollar sign (not a hyphen), so the echo should work correctly.
7759   # The option is referenced via a variable to avoid confusing sed.
7760   lt_compile=`echo "$ac_compile" | $SED \
7761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7763   -e 's:$: $lt_compiler_flag:'`
7764   (eval echo "\"\$as_me:7764: $lt_compile\"" >&5)
7765   (eval "$lt_compile" 2>conftest.err)
7766   ac_status=$?
7767   cat conftest.err >&5
7768   echo "$as_me:7768: \$? = $ac_status" >&5
7769   if (exit $ac_status) && test -s "$ac_outfile"; then
7770     # The compiler can only warn and ignore the option if not recognized
7771     # So say no if there are warnings other than the usual output.
7772     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7773     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7774     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7775       lt_cv_prog_compiler_pic_works=yes
7776     fi
7777   fi
7778   $rm conftest*
7779
7780fi
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7782$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7783
7784if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7785    case $lt_prog_compiler_pic in
7786     "" | " "*) ;;
7787     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7788     esac
7789else
7790    lt_prog_compiler_pic=
7791     lt_prog_compiler_can_build_shared=no
7792fi
7793
7794fi
7795case $host_os in
7796  # For platforms which do not support PIC, -DPIC is meaningless:
7797  *djgpp*)
7798    lt_prog_compiler_pic=
7799    ;;
7800  *)
7801    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7802    ;;
7803esac
7804
7805#
7806# Check to make sure the static flag actually works.
7807#
7808wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7810$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7811if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  lt_cv_prog_compiler_static_works=no
7815   save_LDFLAGS="$LDFLAGS"
7816   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7817   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7818   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7819     # The linker can only warn and ignore the option if not recognized
7820     # So say no if there are warnings
7821     if test -s conftest.err; then
7822       # Append any errors to the config.log.
7823       cat conftest.err 1>&5
7824       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7825       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7826       if diff conftest.exp conftest.er2 >/dev/null; then
7827         lt_cv_prog_compiler_static_works=yes
7828       fi
7829     else
7830       lt_cv_prog_compiler_static_works=yes
7831     fi
7832   fi
7833   $rm -r conftest*
7834   LDFLAGS="$save_LDFLAGS"
7835
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7838$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7839
7840if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7841    :
7842else
7843    lt_prog_compiler_static=
7844fi
7845
7846
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7848$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7849if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7850  $as_echo_n "(cached) " >&6
7851else
7852  lt_cv_prog_compiler_c_o=no
7853   $rm -r conftest 2>/dev/null
7854   mkdir conftest
7855   cd conftest
7856   mkdir out
7857   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858
7859   lt_compiler_flag="-o out/conftest2.$ac_objext"
7860   # Insert the option either (1) after the last *FLAGS variable, or
7861   # (2) before a word containing "conftest.", or (3) at the end.
7862   # Note that $ac_compile itself does not contain backslashes and begins
7863   # with a dollar sign (not a hyphen), so the echo should work correctly.
7864   lt_compile=`echo "$ac_compile" | $SED \
7865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867   -e 's:$: $lt_compiler_flag:'`
7868   (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869   (eval "$lt_compile" 2>out/conftest.err)
7870   ac_status=$?
7871   cat out/conftest.err >&5
7872   echo "$as_me:7872: \$? = $ac_status" >&5
7873   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7874   then
7875     # The compiler can only warn and ignore the option if not recognized
7876     # So say no if there are warnings
7877     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7878     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7879     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7880       lt_cv_prog_compiler_c_o=yes
7881     fi
7882   fi
7883   chmod u+w . 2>&5
7884   $rm conftest*
7885   # SGI C++ compiler will create directory out/ii_files/ for
7886   # template instantiation
7887   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7888   $rm out/* && rmdir out
7889   cd ..
7890   rmdir conftest
7891   $rm conftest*
7892
7893fi
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7895$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7896
7897
7898hard_links="nottested"
7899if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7900  # do not overwrite the value of need_locks provided by the user
7901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7902$as_echo_n "checking if we can lock with hard links... " >&6; }
7903  hard_links=yes
7904  $rm conftest*
7905  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7906  touch conftest.a
7907  ln conftest.a conftest.b 2>&5 || hard_links=no
7908  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7910$as_echo "$hard_links" >&6; }
7911  if test "$hard_links" = no; then
7912    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7913$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7914    need_locks=warn
7915  fi
7916else
7917  need_locks=no
7918fi
7919
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7921$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7922
7923  runpath_var=
7924  allow_undefined_flag=
7925  enable_shared_with_static_runtimes=no
7926  archive_cmds=
7927  archive_expsym_cmds=
7928  old_archive_From_new_cmds=
7929  old_archive_from_expsyms_cmds=
7930  export_dynamic_flag_spec=
7931  whole_archive_flag_spec=
7932  thread_safe_flag_spec=
7933  hardcode_libdir_flag_spec=
7934  hardcode_libdir_flag_spec_ld=
7935  hardcode_libdir_separator=
7936  hardcode_direct=no
7937  hardcode_minus_L=no
7938  hardcode_shlibpath_var=unsupported
7939  link_all_deplibs=unknown
7940  hardcode_automatic=no
7941  module_cmds=
7942  module_expsym_cmds=
7943  always_export_symbols=no
7944  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7945  # include_expsyms should be a list of space-separated symbols to be *always*
7946  # included in the symbol list
7947  include_expsyms=
7948  # exclude_expsyms can be an extended regexp of symbols to exclude
7949  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7950  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7951  # as well as any symbol that contains `d'.
7952  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7953  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7954  # platforms (ab)use it in PIC code, but their linkers get confused if
7955  # the symbol is explicitly referenced.  Since portable code cannot
7956  # rely on this symbol name, it's probably fine to never include it in
7957  # preloaded symbol tables.
7958  # Exclude shared library initialization/finalization symbols.
7959  extract_expsyms_cmds=
7960  # Just being paranoid about ensuring that cc_basename is set.
7961  for cc_temp in $compiler""; do
7962  case $cc_temp in
7963    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7964    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7965    \-*) ;;
7966    *) break;;
7967  esac
7968done
7969cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7970
7971  case $host_os in
7972  cygwin* | mingw* | pw32*)
7973    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7974    # When not using gcc, we currently assume that we are using
7975    # Microsoft Visual C++.
7976    if test "$GCC" != yes; then
7977      with_gnu_ld=no
7978    fi
7979    ;;
7980  interix*)
7981    # we just hope/assume this is gcc and not c89 (= MSVC++)
7982    with_gnu_ld=yes
7983    ;;
7984  openbsd*)
7985    with_gnu_ld=no
7986    ;;
7987  esac
7988
7989  ld_shlibs=yes
7990  if test "$with_gnu_ld" = yes; then
7991    # If archive_cmds runs LD, not CC, wlarc should be empty
7992    wlarc='${wl}'
7993
7994    # Set some defaults for GNU ld with shared library support. These
7995    # are reset later if shared libraries are not supported. Putting them
7996    # here allows them to be overridden if necessary.
7997    runpath_var=LD_RUN_PATH
7998    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7999    export_dynamic_flag_spec='${wl}--export-dynamic'
8000    # ancient GNU ld didn't support --whole-archive et. al.
8001    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8002	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8003      else
8004  	whole_archive_flag_spec=
8005    fi
8006    supports_anon_versioning=no
8007    case `$LD -v 2>/dev/null` in
8008      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8009      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8010      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8011      *\ 2.11.*) ;; # other 2.11 versions
8012      *) supports_anon_versioning=yes ;;
8013    esac
8014
8015    # See if GNU ld supports shared libraries.
8016    case $host_os in
8017    aix[3-9]*)
8018      # On AIX/PPC, the GNU linker is very broken
8019      if test "$host_cpu" != ia64; then
8020	ld_shlibs=no
8021	cat <<EOF 1>&2
8022
8023*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8024*** to be unable to reliably create shared libraries on AIX.
8025*** Therefore, libtool is disabling shared libraries support.  If you
8026*** really care for shared libraries, you may want to modify your PATH
8027*** so that a non-GNU linker is found, and then restart.
8028
8029EOF
8030      fi
8031      ;;
8032
8033    amigaos*)
8034      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)'
8035      hardcode_libdir_flag_spec='-L$libdir'
8036      hardcode_minus_L=yes
8037
8038      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8039      # that the semantics of dynamic libraries on AmigaOS, at least up
8040      # to version 4, is to share data among multiple programs linked
8041      # with the same dynamic library.  Since this doesn't match the
8042      # behavior of shared libraries on other platforms, we can't use
8043      # them.
8044      ld_shlibs=no
8045      ;;
8046
8047    beos*)
8048      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8049	allow_undefined_flag=unsupported
8050	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8051	# support --undefined.  This deserves some investigation.  FIXME
8052	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053      else
8054	ld_shlibs=no
8055      fi
8056      ;;
8057
8058    cygwin* | mingw* | pw32*)
8059      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8060      # as there is no search path for DLLs.
8061      hardcode_libdir_flag_spec='-L$libdir'
8062      allow_undefined_flag=unsupported
8063      always_export_symbols=no
8064      enable_shared_with_static_runtimes=yes
8065      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8066
8067      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8068        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8069	# If the export-symbols file already is a .def file (1st line
8070	# is EXPORTS), use it as is; otherwise, prepend...
8071	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8072	  cp $export_symbols $output_objdir/$soname.def;
8073	else
8074	  echo EXPORTS > $output_objdir/$soname.def;
8075	  cat $export_symbols >> $output_objdir/$soname.def;
8076	fi~
8077	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8078      else
8079	ld_shlibs=no
8080      fi
8081      ;;
8082
8083    interix[3-9]*)
8084      hardcode_direct=no
8085      hardcode_shlibpath_var=no
8086      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8087      export_dynamic_flag_spec='${wl}-E'
8088      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8089      # Instead, shared libraries are loaded at an image base (0x10000000 by
8090      # default) and relocated if they conflict, which is a slow very memory
8091      # consuming and fragmenting process.  To avoid this, we pick a random,
8092      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8093      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8094      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8095      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'
8096      ;;
8097
8098    gnu* | linux* | k*bsd*-gnu)
8099      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8100	tmp_addflag=
8101	case $cc_basename,$host_cpu in
8102	pgcc*)				# Portland Group C compiler
8103	  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'
8104	  tmp_addflag=' $pic_flag'
8105	  ;;
8106	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8107	  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'
8108	  tmp_addflag=' $pic_flag -Mnomain' ;;
8109	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8110	  tmp_addflag=' -i_dynamic' ;;
8111	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8112	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8113	ifc* | ifort*)			# Intel Fortran compiler
8114	  tmp_addflag=' -nofor_main' ;;
8115	esac
8116	case `$CC -V 2>&1 | sed 5q` in
8117	*Sun\ C*)			# Sun C 5.9
8118	  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'
8119	  tmp_sharedflag='-G' ;;
8120	*Sun\ F*)			# Sun Fortran 8.3
8121	  tmp_sharedflag='-G' ;;
8122	*)
8123	  tmp_sharedflag='-shared' ;;
8124	esac
8125	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126
8127	if test $supports_anon_versioning = yes; then
8128	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8129  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8130  $echo "local: *; };" >> $output_objdir/$libname.ver~
8131	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8132	fi
8133      else
8134	ld_shlibs=no
8135      fi
8136      ;;
8137
8138    netbsd*)
8139      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8140	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8141	wlarc=
8142      else
8143	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8145      fi
8146      ;;
8147
8148    solaris*)
8149      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8150	ld_shlibs=no
8151	cat <<EOF 1>&2
8152
8153*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8154*** create shared libraries on Solaris systems.  Therefore, libtool
8155*** is disabling shared libraries support.  We urge you to upgrade GNU
8156*** binutils to release 2.9.1 or newer.  Another option is to modify
8157*** your PATH or compiler configuration so that the native linker is
8158*** used, and then restart.
8159
8160EOF
8161      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8162	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8164      else
8165	ld_shlibs=no
8166      fi
8167      ;;
8168
8169    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8170      case `$LD -v 2>&1` in
8171        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8172	ld_shlibs=no
8173	cat <<_LT_EOF 1>&2
8174
8175*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8176*** reliably create shared libraries on SCO systems.  Therefore, libtool
8177*** is disabling shared libraries support.  We urge you to upgrade GNU
8178*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8179*** your PATH or compiler configuration so that the native linker is
8180*** used, and then restart.
8181
8182_LT_EOF
8183	;;
8184	*)
8185	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8186	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8187	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8188	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8189	  else
8190	    ld_shlibs=no
8191	  fi
8192	;;
8193      esac
8194      ;;
8195
8196    sunos4*)
8197      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8198      wlarc=
8199      hardcode_direct=yes
8200      hardcode_shlibpath_var=no
8201      ;;
8202
8203    *)
8204      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8207      else
8208	ld_shlibs=no
8209      fi
8210      ;;
8211    esac
8212
8213    if test "$ld_shlibs" = no; then
8214      runpath_var=
8215      hardcode_libdir_flag_spec=
8216      export_dynamic_flag_spec=
8217      whole_archive_flag_spec=
8218    fi
8219  else
8220    # PORTME fill in a description of your system's linker (not GNU ld)
8221    case $host_os in
8222    aix3*)
8223      allow_undefined_flag=unsupported
8224      always_export_symbols=yes
8225      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'
8226      # Note: this linker hardcodes the directories in LIBPATH if there
8227      # are no directories specified by -L.
8228      hardcode_minus_L=yes
8229      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8230	# Neither direct hardcoding nor static linking is supported with a
8231	# broken collect2.
8232	hardcode_direct=unsupported
8233      fi
8234      ;;
8235
8236    aix[4-9]*)
8237      if test "$host_cpu" = ia64; then
8238	# On IA64, the linker does run time linking by default, so we don't
8239	# have to do anything special.
8240	aix_use_runtimelinking=no
8241	exp_sym_flag='-Bexport'
8242	no_entry_flag=""
8243      else
8244	# If we're using GNU nm, then we don't want the "-C" option.
8245	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8246	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8247	  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'
8248	else
8249	  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'
8250	fi
8251	aix_use_runtimelinking=no
8252
8253	# Test if we are trying to use run time linking or normal
8254	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8255	# need to do runtime linking.
8256	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8257	  for ld_flag in $LDFLAGS; do
8258  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8259  	    aix_use_runtimelinking=yes
8260  	    break
8261  	  fi
8262	  done
8263	  ;;
8264	esac
8265
8266	exp_sym_flag='-bexport'
8267	no_entry_flag='-bnoentry'
8268      fi
8269
8270      # When large executables or shared objects are built, AIX ld can
8271      # have problems creating the table of contents.  If linking a library
8272      # or program results in "error TOC overflow" add -mminimal-toc to
8273      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8274      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8275
8276      archive_cmds=''
8277      hardcode_direct=yes
8278      hardcode_libdir_separator=':'
8279      link_all_deplibs=yes
8280
8281      if test "$GCC" = yes; then
8282	case $host_os in aix4.[012]|aix4.[012].*)
8283	# We only want to do this on AIX 4.2 and lower, the check
8284	# below for broken collect2 doesn't work under 4.3+
8285	  collect2name=`${CC} -print-prog-name=collect2`
8286	  if test -f "$collect2name" && \
8287  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8288	  then
8289  	  # We have reworked collect2
8290  	  :
8291	  else
8292  	  # We have old collect2
8293  	  hardcode_direct=unsupported
8294  	  # It fails to find uninstalled libraries when the uninstalled
8295  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8296  	  # to unsupported forces relinking
8297  	  hardcode_minus_L=yes
8298  	  hardcode_libdir_flag_spec='-L$libdir'
8299  	  hardcode_libdir_separator=
8300	  fi
8301	  ;;
8302	esac
8303	shared_flag='-shared'
8304	if test "$aix_use_runtimelinking" = yes; then
8305	  shared_flag="$shared_flag "'${wl}-G'
8306	fi
8307      else
8308	# not using gcc
8309	if test "$host_cpu" = ia64; then
8310  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8311  	# chokes on -Wl,-G. The following line is correct:
8312	  shared_flag='-G'
8313	else
8314	  if test "$aix_use_runtimelinking" = yes; then
8315	    shared_flag='${wl}-G'
8316	  else
8317	    shared_flag='${wl}-bM:SRE'
8318	  fi
8319	fi
8320      fi
8321
8322      # It seems that -bexpall does not export symbols beginning with
8323      # underscore (_), so it is better to generate a list of symbols to export.
8324      always_export_symbols=yes
8325      if test "$aix_use_runtimelinking" = yes; then
8326	# Warning - without using the other runtime loading flags (-brtl),
8327	# -berok will link without error, but may produce a broken library.
8328	allow_undefined_flag='-berok'
8329       # Determine the default libpath from the value encoded in an empty executable.
8330       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332
8333int
8334main ()
8335{
8336
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341if ac_fn_c_try_link "$LINENO"; then :
8342
8343lt_aix_libpath_sed='
8344    /Import File Strings/,/^$/ {
8345	/^0/ {
8346	    s/^0  *\(.*\)$/\1/
8347	    p
8348	}
8349    }'
8350aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8351# Check for a 64-bit object if we didn't find anything.
8352if test -z "$aix_libpath"; then
8353  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8354fi
8355fi
8356rm -f core conftest.err conftest.$ac_objext \
8357    conftest$ac_exeext conftest.$ac_ext
8358if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8359
8360       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8361	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8362       else
8363	if test "$host_cpu" = ia64; then
8364	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8365	  allow_undefined_flag="-z nodefs"
8366	  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"
8367	else
8368	 # Determine the default libpath from the value encoded in an empty executable.
8369	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h.  */
8371
8372int
8373main ()
8374{
8375
8376  ;
8377  return 0;
8378}
8379_ACEOF
8380if ac_fn_c_try_link "$LINENO"; then :
8381
8382lt_aix_libpath_sed='
8383    /Import File Strings/,/^$/ {
8384	/^0/ {
8385	    s/^0  *\(.*\)$/\1/
8386	    p
8387	}
8388    }'
8389aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8390# Check for a 64-bit object if we didn't find anything.
8391if test -z "$aix_libpath"; then
8392  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8393fi
8394fi
8395rm -f core conftest.err conftest.$ac_objext \
8396    conftest$ac_exeext conftest.$ac_ext
8397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8398
8399	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8400	  # Warning - without using the other run time loading flags,
8401	  # -berok will link without error, but may produce a broken library.
8402	  no_undefined_flag=' ${wl}-bernotok'
8403	  allow_undefined_flag=' ${wl}-berok'
8404	  # Exported symbols can be pulled into shared objects from archives
8405	  whole_archive_flag_spec='$convenience'
8406	  archive_cmds_need_lc=yes
8407	  # This is similar to how AIX traditionally builds its shared libraries.
8408	  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'
8409	fi
8410      fi
8411      ;;
8412
8413    amigaos*)
8414      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)'
8415      hardcode_libdir_flag_spec='-L$libdir'
8416      hardcode_minus_L=yes
8417      # see comment about different semantics on the GNU ld section
8418      ld_shlibs=no
8419      ;;
8420
8421    bsdi[45]*)
8422      export_dynamic_flag_spec=-rdynamic
8423      ;;
8424
8425    cygwin* | mingw* | pw32*)
8426      # When not using gcc, we currently assume that we are using
8427      # Microsoft Visual C++.
8428      # hardcode_libdir_flag_spec is actually meaningless, as there is
8429      # no search path for DLLs.
8430      hardcode_libdir_flag_spec=' '
8431      allow_undefined_flag=unsupported
8432      # Tell ltmain to make .lib files, not .a files.
8433      libext=lib
8434      # Tell ltmain to make .dll files, not .so files.
8435      shrext_cmds=".dll"
8436      # FIXME: Setting linknames here is a bad hack.
8437      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8438      # The linker will automatically build a .lib file if we build a DLL.
8439      old_archive_From_new_cmds='true'
8440      # FIXME: Should let the user specify the lib program.
8441      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8442      fix_srcfile_path='`cygpath -w "$srcfile"`'
8443      enable_shared_with_static_runtimes=yes
8444      ;;
8445
8446    darwin* | rhapsody*)
8447      case $host_os in
8448        rhapsody* | darwin1.[012])
8449         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8450         ;;
8451       *) # Darwin 1.3 on
8452         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8453           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8454         else
8455           case ${MACOSX_DEPLOYMENT_TARGET} in
8456             10.[012])
8457               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8458               ;;
8459             10.*)
8460               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8461               ;;
8462           esac
8463         fi
8464         ;;
8465      esac
8466      archive_cmds_need_lc=no
8467      hardcode_direct=no
8468      hardcode_automatic=yes
8469      hardcode_shlibpath_var=unsupported
8470      whole_archive_flag_spec=''
8471      link_all_deplibs=yes
8472    if test "$GCC" = yes ; then
8473    	output_verbose_link_cmd='echo'
8474        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8475        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8476        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}"
8477        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}"
8478    else
8479      case $cc_basename in
8480        xlc*)
8481         output_verbose_link_cmd='echo'
8482         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8483         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8484          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8485         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8486          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8487          ;;
8488       *)
8489         ld_shlibs=no
8490          ;;
8491      esac
8492    fi
8493      ;;
8494
8495    dgux*)
8496      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497      hardcode_libdir_flag_spec='-L$libdir'
8498      hardcode_shlibpath_var=no
8499      ;;
8500
8501    freebsd1*)
8502      ld_shlibs=no
8503      ;;
8504
8505    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8506    # support.  Future versions do this automatically, but an explicit c++rt0.o
8507    # does not break anything, and helps significantly (at the cost of a little
8508    # extra space).
8509    freebsd2.2*)
8510      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8511      hardcode_libdir_flag_spec='-R$libdir'
8512      hardcode_direct=yes
8513      hardcode_shlibpath_var=no
8514      ;;
8515
8516    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8517    freebsd2*)
8518      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8519      hardcode_direct=yes
8520      hardcode_minus_L=yes
8521      hardcode_shlibpath_var=no
8522      ;;
8523
8524    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8525    freebsd* | dragonfly*)
8526      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8527      hardcode_libdir_flag_spec='-R$libdir'
8528      hardcode_direct=yes
8529      hardcode_shlibpath_var=no
8530      ;;
8531
8532    hpux9*)
8533      if test "$GCC" = yes; then
8534	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'
8535      else
8536	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'
8537      fi
8538      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8539      hardcode_libdir_separator=:
8540      hardcode_direct=yes
8541
8542      # hardcode_minus_L: Not really in the search PATH,
8543      # but as the default location of the library.
8544      hardcode_minus_L=yes
8545      export_dynamic_flag_spec='${wl}-E'
8546      ;;
8547
8548    hpux10*)
8549      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8550	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551      else
8552	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8553      fi
8554      if test "$with_gnu_ld" = no; then
8555	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8556	hardcode_libdir_separator=:
8557
8558	hardcode_direct=yes
8559	export_dynamic_flag_spec='${wl}-E'
8560
8561	# hardcode_minus_L: Not really in the search PATH,
8562	# but as the default location of the library.
8563	hardcode_minus_L=yes
8564      fi
8565      ;;
8566
8567    hpux11*)
8568      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8569	case $host_cpu in
8570	hppa*64*)
8571	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8572	  ;;
8573	ia64*)
8574	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8575	  ;;
8576	*)
8577	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8578	  ;;
8579	esac
8580      else
8581	case $host_cpu in
8582	hppa*64*)
8583	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584	  ;;
8585	ia64*)
8586	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8587	  ;;
8588	*)
8589	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8590	  ;;
8591	esac
8592      fi
8593      if test "$with_gnu_ld" = no; then
8594	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8595	hardcode_libdir_separator=:
8596
8597	case $host_cpu in
8598	hppa*64*|ia64*)
8599	  hardcode_libdir_flag_spec_ld='+b $libdir'
8600	  hardcode_direct=no
8601	  hardcode_shlibpath_var=no
8602	  ;;
8603	*)
8604	  hardcode_direct=yes
8605	  export_dynamic_flag_spec='${wl}-E'
8606
8607	  # hardcode_minus_L: Not really in the search PATH,
8608	  # but as the default location of the library.
8609	  hardcode_minus_L=yes
8610	  ;;
8611	esac
8612      fi
8613      ;;
8614
8615    irix5* | irix6* | nonstopux*)
8616      if test "$GCC" = yes; then
8617	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8618      else
8619	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8620	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8621      fi
8622      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8623      hardcode_libdir_separator=:
8624      link_all_deplibs=yes
8625      ;;
8626
8627    netbsd*)
8628      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8629	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8630      else
8631	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8632      fi
8633      hardcode_libdir_flag_spec='-R$libdir'
8634      hardcode_direct=yes
8635      hardcode_shlibpath_var=no
8636      ;;
8637
8638    newsos6)
8639      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8640      hardcode_direct=yes
8641      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642      hardcode_libdir_separator=:
8643      hardcode_shlibpath_var=no
8644      ;;
8645
8646    openbsd*)
8647      if test -f /usr/libexec/ld.so; then
8648	hardcode_direct=yes
8649	hardcode_shlibpath_var=no
8650	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8651	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8652	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8653	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654	  export_dynamic_flag_spec='${wl}-E'
8655	else
8656	  case $host_os in
8657	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8658	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8659	     hardcode_libdir_flag_spec='-R$libdir'
8660	     ;;
8661	   *)
8662	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8664	     ;;
8665	  esac
8666        fi
8667      else
8668	ld_shlibs=no
8669      fi
8670      ;;
8671
8672    os2*)
8673      hardcode_libdir_flag_spec='-L$libdir'
8674      hardcode_minus_L=yes
8675      allow_undefined_flag=unsupported
8676      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'
8677      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8678      ;;
8679
8680    osf3*)
8681      if test "$GCC" = yes; then
8682	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8684      else
8685	allow_undefined_flag=' -expect_unresolved \*'
8686	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8687      fi
8688      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689      hardcode_libdir_separator=:
8690      ;;
8691
8692    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8693      if test "$GCC" = yes; then
8694	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8695	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8696	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697      else
8698	allow_undefined_flag=' -expect_unresolved \*'
8699	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8700	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8701	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8702
8703	# Both c and cxx compiler support -rpath directly
8704	hardcode_libdir_flag_spec='-rpath $libdir'
8705      fi
8706      hardcode_libdir_separator=:
8707      ;;
8708
8709    solaris*)
8710      no_undefined_flag=' -z text'
8711      if test "$GCC" = yes; then
8712	wlarc='${wl}'
8713	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8715	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8716      else
8717	wlarc=''
8718	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8720  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8721      fi
8722      hardcode_libdir_flag_spec='-R$libdir'
8723      hardcode_shlibpath_var=no
8724      case $host_os in
8725      solaris2.[0-5] | solaris2.[0-5].*) ;;
8726      *)
8727	# The compiler driver will combine and reorder linker options,
8728	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8729	# but is careful enough not to reorder.
8730 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8731	if test "$GCC" = yes; then
8732	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8733	else
8734	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8735	fi
8736	;;
8737      esac
8738      link_all_deplibs=yes
8739      ;;
8740
8741    sunos4*)
8742      if test "x$host_vendor" = xsequent; then
8743	# Use $CC to link under sequent, because it throws in some extra .o
8744	# files that make .init and .fini sections work.
8745	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8746      else
8747	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8748      fi
8749      hardcode_libdir_flag_spec='-L$libdir'
8750      hardcode_direct=yes
8751      hardcode_minus_L=yes
8752      hardcode_shlibpath_var=no
8753      ;;
8754
8755    sysv4)
8756      case $host_vendor in
8757	sni)
8758	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759	  hardcode_direct=yes # is this really true???
8760	;;
8761	siemens)
8762	  ## LD is ld it makes a PLAMLIB
8763	  ## CC just makes a GrossModule.
8764	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8765	  reload_cmds='$CC -r -o $output$reload_objs'
8766	  hardcode_direct=no
8767        ;;
8768	motorola)
8769	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8771	;;
8772      esac
8773      runpath_var='LD_RUN_PATH'
8774      hardcode_shlibpath_var=no
8775      ;;
8776
8777    sysv4.3*)
8778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779      hardcode_shlibpath_var=no
8780      export_dynamic_flag_spec='-Bexport'
8781      ;;
8782
8783    sysv4*MP*)
8784      if test -d /usr/nec; then
8785	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786	hardcode_shlibpath_var=no
8787	runpath_var=LD_RUN_PATH
8788	hardcode_runpath_var=yes
8789	ld_shlibs=yes
8790      fi
8791      ;;
8792
8793    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8794      no_undefined_flag='${wl}-z,text'
8795      archive_cmds_need_lc=no
8796      hardcode_shlibpath_var=no
8797      runpath_var='LD_RUN_PATH'
8798
8799      if test "$GCC" = yes; then
8800	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802      else
8803	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805      fi
8806      ;;
8807
8808    sysv5* | sco3.2v5* | sco5v6*)
8809      # Note: We can NOT use -z defs as we might desire, because we do not
8810      # link with -lc, and that would cause any symbols used from libc to
8811      # always be unresolved, which means just about no library would
8812      # ever link correctly.  If we're not using GNU ld we use -z text
8813      # though, which does catch some bad symbols but isn't as heavy-handed
8814      # as -z defs.
8815      no_undefined_flag='${wl}-z,text'
8816      allow_undefined_flag='${wl}-z,nodefs'
8817      archive_cmds_need_lc=no
8818      hardcode_shlibpath_var=no
8819      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8820      hardcode_libdir_separator=':'
8821      link_all_deplibs=yes
8822      export_dynamic_flag_spec='${wl}-Bexport'
8823      runpath_var='LD_RUN_PATH'
8824
8825      if test "$GCC" = yes; then
8826	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828      else
8829	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831      fi
8832      ;;
8833
8834    uts4*)
8835      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8836      hardcode_libdir_flag_spec='-L$libdir'
8837      hardcode_shlibpath_var=no
8838      ;;
8839
8840    *)
8841      ld_shlibs=no
8842      ;;
8843    esac
8844  fi
8845
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8847$as_echo "$ld_shlibs" >&6; }
8848test "$ld_shlibs" = no && can_build_shared=no
8849
8850#
8851# Do we need to explicitly link libc?
8852#
8853case "x$archive_cmds_need_lc" in
8854x|xyes)
8855  # Assume -lc should be added
8856  archive_cmds_need_lc=yes
8857
8858  if test "$enable_shared" = yes && test "$GCC" = yes; then
8859    case $archive_cmds in
8860    *'~'*)
8861      # FIXME: we may have to deal with multi-command sequences.
8862      ;;
8863    '$CC '*)
8864      # Test whether the compiler implicitly links with -lc since on some
8865      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8866      # to ld, don't add -lc before -lgcc.
8867      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8868$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8869      $rm conftest*
8870      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871
8872      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8873  (eval $ac_compile) 2>&5
8874  ac_status=$?
8875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8876  test $ac_status = 0; } 2>conftest.err; then
8877        soname=conftest
8878        lib=conftest
8879        libobjs=conftest.$ac_objext
8880        deplibs=
8881        wl=$lt_prog_compiler_wl
8882	pic_flag=$lt_prog_compiler_pic
8883        compiler_flags=-v
8884        linker_flags=-v
8885        verstring=
8886        output_objdir=.
8887        libname=conftest
8888        lt_save_allow_undefined_flag=$allow_undefined_flag
8889        allow_undefined_flag=
8890        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8891  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8892  ac_status=$?
8893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8894  test $ac_status = 0; }
8895        then
8896	  archive_cmds_need_lc=no
8897        else
8898	  archive_cmds_need_lc=yes
8899        fi
8900        allow_undefined_flag=$lt_save_allow_undefined_flag
8901      else
8902        cat conftest.err 1>&5
8903      fi
8904      $rm conftest*
8905      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8906$as_echo "$archive_cmds_need_lc" >&6; }
8907      ;;
8908    esac
8909  fi
8910  ;;
8911esac
8912
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8914$as_echo_n "checking dynamic linker characteristics... " >&6; }
8915library_names_spec=
8916libname_spec='lib$name'
8917soname_spec=
8918shrext_cmds=".so"
8919postinstall_cmds=
8920postuninstall_cmds=
8921finish_cmds=
8922finish_eval=
8923shlibpath_var=
8924shlibpath_overrides_runpath=unknown
8925version_type=none
8926dynamic_linker="$host_os ld.so"
8927sys_lib_dlsearch_path_spec="/lib /usr/lib"
8928
8929if test "$GCC" = yes; then
8930  case $host_os in
8931    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8932    *) lt_awk_arg="/^libraries:/" ;;
8933  esac
8934  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8935  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8936    # if the path contains ";" then we assume it to be the separator
8937    # otherwise default to the standard path separator (i.e. ":") - it is
8938    # assumed that no part of a normal pathname contains ";" but that should
8939    # okay in the real world where ";" in dirpaths is itself problematic.
8940    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8941  else
8942    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8943  fi
8944  # Ok, now we have the path, separated by spaces, we can step through it
8945  # and add multilib dir if necessary.
8946  lt_tmp_lt_search_path_spec=
8947  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8948  for lt_sys_path in $lt_search_path_spec; do
8949    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8950      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8951    else
8952      test -d "$lt_sys_path" && \
8953	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8954    fi
8955  done
8956  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8957BEGIN {RS=" "; FS="/|\n";} {
8958  lt_foo="";
8959  lt_count=0;
8960  for (lt_i = NF; lt_i > 0; lt_i--) {
8961    if ($lt_i != "" && $lt_i != ".") {
8962      if ($lt_i == "..") {
8963        lt_count++;
8964      } else {
8965        if (lt_count == 0) {
8966          lt_foo="/" $lt_i lt_foo;
8967        } else {
8968          lt_count--;
8969        }
8970      }
8971    }
8972  }
8973  if (lt_foo != "") { lt_freq[lt_foo]++; }
8974  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8975}'`
8976  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8977else
8978  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8979fi
8980need_lib_prefix=unknown
8981hardcode_into_libs=no
8982
8983# when you set need_version to no, make sure it does not cause -set_version
8984# flags to be left without arguments
8985need_version=unknown
8986
8987case $host_os in
8988aix3*)
8989  version_type=linux
8990  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8991  shlibpath_var=LIBPATH
8992
8993  # AIX 3 has no versioning support, so we append a major version to the name.
8994  soname_spec='${libname}${release}${shared_ext}$major'
8995  ;;
8996
8997aix[4-9]*)
8998  version_type=linux
8999  need_lib_prefix=no
9000  need_version=no
9001  hardcode_into_libs=yes
9002  if test "$host_cpu" = ia64; then
9003    # AIX 5 supports IA64
9004    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9005    shlibpath_var=LD_LIBRARY_PATH
9006  else
9007    # With GCC up to 2.95.x, collect2 would create an import file
9008    # for dependence libraries.  The import file would start with
9009    # the line `#! .'.  This would cause the generated library to
9010    # depend on `.', always an invalid library.  This was fixed in
9011    # development snapshots of GCC prior to 3.0.
9012    case $host_os in
9013      aix4 | aix4.[01] | aix4.[01].*)
9014      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9015	   echo ' yes '
9016	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9017	:
9018      else
9019	can_build_shared=no
9020      fi
9021      ;;
9022    esac
9023    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9024    # soname into executable. Probably we can add versioning support to
9025    # collect2, so additional links can be useful in future.
9026    if test "$aix_use_runtimelinking" = yes; then
9027      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9028      # instead of lib<name>.a to let people know that these are not
9029      # typical AIX shared libraries.
9030      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031    else
9032      # We preserve .a as extension for shared libraries through AIX4.2
9033      # and later when we are not doing run time linking.
9034      library_names_spec='${libname}${release}.a $libname.a'
9035      soname_spec='${libname}${release}${shared_ext}$major'
9036    fi
9037    shlibpath_var=LIBPATH
9038  fi
9039  ;;
9040
9041amigaos*)
9042  library_names_spec='$libname.ixlibrary $libname.a'
9043  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9044  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9045  ;;
9046
9047beos*)
9048  library_names_spec='${libname}${shared_ext}'
9049  dynamic_linker="$host_os ld.so"
9050  shlibpath_var=LIBRARY_PATH
9051  ;;
9052
9053bsdi[45]*)
9054  version_type=linux
9055  need_version=no
9056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057  soname_spec='${libname}${release}${shared_ext}$major'
9058  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9059  shlibpath_var=LD_LIBRARY_PATH
9060  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9061  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9062  # the default ld.so.conf also contains /usr/contrib/lib and
9063  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9064  # libtool to hard-code these into programs
9065  ;;
9066
9067cygwin* | mingw* | pw32*)
9068  version_type=windows
9069  shrext_cmds=".dll"
9070  need_version=no
9071  need_lib_prefix=no
9072
9073  case $GCC,$host_os in
9074  yes,cygwin* | yes,mingw* | yes,pw32*)
9075    library_names_spec='$libname.dll.a'
9076    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9077    postinstall_cmds='base_file=`basename \${file}`~
9078      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9079      dldir=$destdir/`dirname \$dlpath`~
9080      test -d \$dldir || mkdir -p \$dldir~
9081      $install_prog $dir/$dlname \$dldir/$dlname~
9082      chmod a+x \$dldir/$dlname'
9083    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9084      dlpath=$dir/\$dldll~
9085       $rm \$dlpath'
9086    shlibpath_overrides_runpath=yes
9087
9088    case $host_os in
9089    cygwin*)
9090      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9091      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9092      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9093      ;;
9094    mingw*)
9095      # MinGW DLLs use traditional 'lib' prefix
9096      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9097      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9098      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9099        # It is most probably a Windows format PATH printed by
9100        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9101        # path with ; separators, and with drive letters. We can handle the
9102        # drive letters (cygwin fileutils understands them), so leave them,
9103        # especially as we might pass files found there to a mingw objdump,
9104        # which wouldn't understand a cygwinified path. Ahh.
9105        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9106      else
9107        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9108      fi
9109      ;;
9110    pw32*)
9111      # pw32 DLLs use 'pw' prefix rather than 'lib'
9112      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113      ;;
9114    esac
9115    ;;
9116
9117  *)
9118    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9119    ;;
9120  esac
9121  dynamic_linker='Win32 ld.exe'
9122  # FIXME: first we should search . and the directory the executable is in
9123  shlibpath_var=PATH
9124  ;;
9125
9126darwin* | rhapsody*)
9127  dynamic_linker="$host_os dyld"
9128  version_type=darwin
9129  need_lib_prefix=no
9130  need_version=no
9131  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9132  soname_spec='${libname}${release}${major}$shared_ext'
9133  shlibpath_overrides_runpath=yes
9134  shlibpath_var=DYLD_LIBRARY_PATH
9135  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9136
9137  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9138  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9139  ;;
9140
9141dgux*)
9142  version_type=linux
9143  need_lib_prefix=no
9144  need_version=no
9145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9146  soname_spec='${libname}${release}${shared_ext}$major'
9147  shlibpath_var=LD_LIBRARY_PATH
9148  ;;
9149
9150freebsd1*)
9151  dynamic_linker=no
9152  ;;
9153
9154freebsd* | dragonfly*)
9155  # DragonFly does not have aout.  When/if they implement a new
9156  # versioning mechanism, adjust this.
9157  if test -x /usr/bin/objformat; then
9158    objformat=`/usr/bin/objformat`
9159  else
9160    case $host_os in
9161    freebsd[123]*) objformat=aout ;;
9162    *) objformat=elf ;;
9163    esac
9164  fi
9165  version_type=freebsd-$objformat
9166  case $version_type in
9167    freebsd-elf*)
9168      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9169      need_version=no
9170      need_lib_prefix=no
9171      ;;
9172    freebsd-*)
9173      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9174      need_version=yes
9175      ;;
9176  esac
9177  shlibpath_var=LD_LIBRARY_PATH
9178  case $host_os in
9179  freebsd2*)
9180    shlibpath_overrides_runpath=yes
9181    ;;
9182  freebsd3.[01]* | freebsdelf3.[01]*)
9183    shlibpath_overrides_runpath=yes
9184    hardcode_into_libs=yes
9185    ;;
9186  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9187  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9188    shlibpath_overrides_runpath=no
9189    hardcode_into_libs=yes
9190    ;;
9191  *) # from 4.6 on, and DragonFly
9192    shlibpath_overrides_runpath=yes
9193    hardcode_into_libs=yes
9194    ;;
9195  esac
9196  ;;
9197
9198gnu*)
9199  version_type=linux
9200  need_lib_prefix=no
9201  need_version=no
9202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9203  soname_spec='${libname}${release}${shared_ext}$major'
9204  shlibpath_var=LD_LIBRARY_PATH
9205  hardcode_into_libs=yes
9206  ;;
9207
9208hpux9* | hpux10* | hpux11*)
9209  # Give a soname corresponding to the major version so that dld.sl refuses to
9210  # link against other versions.
9211  version_type=sunos
9212  need_lib_prefix=no
9213  need_version=no
9214  case $host_cpu in
9215  ia64*)
9216    shrext_cmds='.so'
9217    hardcode_into_libs=yes
9218    dynamic_linker="$host_os dld.so"
9219    shlibpath_var=LD_LIBRARY_PATH
9220    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9221    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222    soname_spec='${libname}${release}${shared_ext}$major'
9223    if test "X$HPUX_IA64_MODE" = X32; then
9224      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9225    else
9226      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9227    fi
9228    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9229    ;;
9230   hppa*64*)
9231     shrext_cmds='.sl'
9232     hardcode_into_libs=yes
9233     dynamic_linker="$host_os dld.sl"
9234     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9235     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237     soname_spec='${libname}${release}${shared_ext}$major'
9238     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9239     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9240     ;;
9241   *)
9242    shrext_cmds='.sl'
9243    dynamic_linker="$host_os dld.sl"
9244    shlibpath_var=SHLIB_PATH
9245    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9246    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247    soname_spec='${libname}${release}${shared_ext}$major'
9248    ;;
9249  esac
9250  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9251  postinstall_cmds='chmod 555 $lib'
9252  ;;
9253
9254interix[3-9]*)
9255  version_type=linux
9256  need_lib_prefix=no
9257  need_version=no
9258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9259  soname_spec='${libname}${release}${shared_ext}$major'
9260  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9261  shlibpath_var=LD_LIBRARY_PATH
9262  shlibpath_overrides_runpath=no
9263  hardcode_into_libs=yes
9264  ;;
9265
9266irix5* | irix6* | nonstopux*)
9267  case $host_os in
9268    nonstopux*) version_type=nonstopux ;;
9269    *)
9270	if test "$lt_cv_prog_gnu_ld" = yes; then
9271		version_type=linux
9272	else
9273		version_type=irix
9274	fi ;;
9275  esac
9276  need_lib_prefix=no
9277  need_version=no
9278  soname_spec='${libname}${release}${shared_ext}$major'
9279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9280  case $host_os in
9281  irix5* | nonstopux*)
9282    libsuff= shlibsuff=
9283    ;;
9284  *)
9285    case $LD in # libtool.m4 will add one of these switches to LD
9286    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9287      libsuff= shlibsuff= libmagic=32-bit;;
9288    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9289      libsuff=32 shlibsuff=N32 libmagic=N32;;
9290    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9291      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9292    *) libsuff= shlibsuff= libmagic=never-match;;
9293    esac
9294    ;;
9295  esac
9296  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9297  shlibpath_overrides_runpath=no
9298  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9299  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9300  hardcode_into_libs=yes
9301  ;;
9302
9303# No shared lib support for Linux oldld, aout, or coff.
9304linux*oldld* | linux*aout* | linux*coff*)
9305  dynamic_linker=no
9306  ;;
9307
9308# This must be Linux ELF.
9309linux* | k*bsd*-gnu)
9310  version_type=linux
9311  need_lib_prefix=no
9312  need_version=no
9313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314  soname_spec='${libname}${release}${shared_ext}$major'
9315  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9316  shlibpath_var=LD_LIBRARY_PATH
9317  shlibpath_overrides_runpath=no
9318  # This implies no fast_install, which is unacceptable.
9319  # Some rework will be needed to allow for fast_install
9320  # before this can be enabled.
9321  hardcode_into_libs=yes
9322
9323  # Append ld.so.conf contents to the search path
9324  if test -f /etc/ld.so.conf; then
9325    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9326    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9327  fi
9328
9329  # We used to test for /lib/ld.so.1 and disable shared libraries on
9330  # powerpc, because MkLinux only supported shared libraries with the
9331  # GNU dynamic linker.  Since this was broken with cross compilers,
9332  # most powerpc-linux boxes support dynamic linking these days and
9333  # people can always --disable-shared, the test was removed, and we
9334  # assume the GNU/Linux dynamic linker is in use.
9335  dynamic_linker='GNU/Linux ld.so'
9336  ;;
9337
9338netbsd*)
9339  version_type=sunos
9340  need_lib_prefix=no
9341  need_version=no
9342  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9343    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9345    dynamic_linker='NetBSD (a.out) ld.so'
9346  else
9347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9348    soname_spec='${libname}${release}${shared_ext}$major'
9349    dynamic_linker='NetBSD ld.elf_so'
9350  fi
9351  shlibpath_var=LD_LIBRARY_PATH
9352  shlibpath_overrides_runpath=yes
9353  hardcode_into_libs=yes
9354  ;;
9355
9356newsos6)
9357  version_type=linux
9358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359  shlibpath_var=LD_LIBRARY_PATH
9360  shlibpath_overrides_runpath=yes
9361  ;;
9362
9363nto-qnx*)
9364  version_type=linux
9365  need_lib_prefix=no
9366  need_version=no
9367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368  soname_spec='${libname}${release}${shared_ext}$major'
9369  shlibpath_var=LD_LIBRARY_PATH
9370  shlibpath_overrides_runpath=yes
9371  ;;
9372
9373openbsd*)
9374  version_type=sunos
9375  sys_lib_dlsearch_path_spec="/usr/lib"
9376  need_lib_prefix=no
9377  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9378  case $host_os in
9379    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9380    *)                         need_version=no  ;;
9381  esac
9382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9383  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9384  shlibpath_var=LD_LIBRARY_PATH
9385  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9386    case $host_os in
9387      openbsd2.[89] | openbsd2.[89].*)
9388	shlibpath_overrides_runpath=no
9389	;;
9390      *)
9391	shlibpath_overrides_runpath=yes
9392	;;
9393      esac
9394  else
9395    shlibpath_overrides_runpath=yes
9396  fi
9397  ;;
9398
9399os2*)
9400  libname_spec='$name'
9401  shrext_cmds=".dll"
9402  need_lib_prefix=no
9403  library_names_spec='$libname${shared_ext} $libname.a'
9404  dynamic_linker='OS/2 ld.exe'
9405  shlibpath_var=LIBPATH
9406  ;;
9407
9408osf3* | osf4* | osf5*)
9409  version_type=osf
9410  need_lib_prefix=no
9411  need_version=no
9412  soname_spec='${libname}${release}${shared_ext}$major'
9413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414  shlibpath_var=LD_LIBRARY_PATH
9415  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9416  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9417  ;;
9418
9419rdos*)
9420  dynamic_linker=no
9421  ;;
9422
9423solaris*)
9424  version_type=linux
9425  need_lib_prefix=no
9426  need_version=no
9427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428  soname_spec='${libname}${release}${shared_ext}$major'
9429  shlibpath_var=LD_LIBRARY_PATH
9430  shlibpath_overrides_runpath=yes
9431  hardcode_into_libs=yes
9432  # ldd complains unless libraries are executable
9433  postinstall_cmds='chmod +x $lib'
9434  ;;
9435
9436sunos4*)
9437  version_type=sunos
9438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9439  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9440  shlibpath_var=LD_LIBRARY_PATH
9441  shlibpath_overrides_runpath=yes
9442  if test "$with_gnu_ld" = yes; then
9443    need_lib_prefix=no
9444  fi
9445  need_version=yes
9446  ;;
9447
9448sysv4 | sysv4.3*)
9449  version_type=linux
9450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451  soname_spec='${libname}${release}${shared_ext}$major'
9452  shlibpath_var=LD_LIBRARY_PATH
9453  case $host_vendor in
9454    sni)
9455      shlibpath_overrides_runpath=no
9456      need_lib_prefix=no
9457      export_dynamic_flag_spec='${wl}-Blargedynsym'
9458      runpath_var=LD_RUN_PATH
9459      ;;
9460    siemens)
9461      need_lib_prefix=no
9462      ;;
9463    motorola)
9464      need_lib_prefix=no
9465      need_version=no
9466      shlibpath_overrides_runpath=no
9467      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9468      ;;
9469  esac
9470  ;;
9471
9472sysv4*MP*)
9473  if test -d /usr/nec ;then
9474    version_type=linux
9475    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9476    soname_spec='$libname${shared_ext}.$major'
9477    shlibpath_var=LD_LIBRARY_PATH
9478  fi
9479  ;;
9480
9481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9482  version_type=freebsd-elf
9483  need_lib_prefix=no
9484  need_version=no
9485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9486  soname_spec='${libname}${release}${shared_ext}$major'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  hardcode_into_libs=yes
9489  if test "$with_gnu_ld" = yes; then
9490    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9491    shlibpath_overrides_runpath=no
9492  else
9493    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9494    shlibpath_overrides_runpath=yes
9495    case $host_os in
9496      sco3.2v5*)
9497        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9498	;;
9499    esac
9500  fi
9501  sys_lib_dlsearch_path_spec='/usr/lib'
9502  ;;
9503
9504uts4*)
9505  version_type=linux
9506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507  soname_spec='${libname}${release}${shared_ext}$major'
9508  shlibpath_var=LD_LIBRARY_PATH
9509  ;;
9510
9511*)
9512  dynamic_linker=no
9513  ;;
9514esac
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9516$as_echo "$dynamic_linker" >&6; }
9517test "$dynamic_linker" = no && can_build_shared=no
9518
9519if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9520  $as_echo_n "(cached) " >&6
9521else
9522  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9523fi
9524
9525sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9526if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9527  $as_echo_n "(cached) " >&6
9528else
9529  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9530fi
9531
9532sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9533
9534variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9535if test "$GCC" = yes; then
9536  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9537fi
9538
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9540$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9541hardcode_action=
9542if test -n "$hardcode_libdir_flag_spec" || \
9543   test -n "$runpath_var" || \
9544   test "X$hardcode_automatic" = "Xyes" ; then
9545
9546  # We can hardcode non-existant directories.
9547  if test "$hardcode_direct" != no &&
9548     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9549     # have to relink, otherwise we might link with an installed library
9550     # when we should be linking with a yet-to-be-installed one
9551     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9552     test "$hardcode_minus_L" != no; then
9553    # Linking always hardcodes the temporary library directory.
9554    hardcode_action=relink
9555  else
9556    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9557    hardcode_action=immediate
9558  fi
9559else
9560  # We cannot hardcode anything, or else we can only hardcode existing
9561  # directories.
9562  hardcode_action=unsupported
9563fi
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9565$as_echo "$hardcode_action" >&6; }
9566
9567if test "$hardcode_action" = relink; then
9568  # Fast installation is not supported
9569  enable_fast_install=no
9570elif test "$shlibpath_overrides_runpath" = yes ||
9571     test "$enable_shared" = no; then
9572  # Fast installation is not necessary
9573  enable_fast_install=needless
9574fi
9575
9576striplib=
9577old_striplib=
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9579$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9580if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9581  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9582  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9584$as_echo "yes" >&6; }
9585else
9586# FIXME - insert some real tests, host_os isn't really good enough
9587  case $host_os in
9588   darwin*)
9589       if test -n "$STRIP" ; then
9590         striplib="$STRIP -x"
9591         old_striplib="$STRIP -S"
9592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9593$as_echo "yes" >&6; }
9594       else
9595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596$as_echo "no" >&6; }
9597fi
9598       ;;
9599   *)
9600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601$as_echo "no" >&6; }
9602    ;;
9603  esac
9604fi
9605
9606if test "x$enable_dlopen" != xyes; then
9607  enable_dlopen=unknown
9608  enable_dlopen_self=unknown
9609  enable_dlopen_self_static=unknown
9610else
9611  lt_cv_dlopen=no
9612  lt_cv_dlopen_libs=
9613
9614  case $host_os in
9615  beos*)
9616    lt_cv_dlopen="load_add_on"
9617    lt_cv_dlopen_libs=
9618    lt_cv_dlopen_self=yes
9619    ;;
9620
9621  mingw* | pw32*)
9622    lt_cv_dlopen="LoadLibrary"
9623    lt_cv_dlopen_libs=
9624   ;;
9625
9626  cygwin*)
9627    lt_cv_dlopen="dlopen"
9628    lt_cv_dlopen_libs=
9629   ;;
9630
9631  darwin*)
9632  # if libdl is installed we need to link against it
9633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9634$as_echo_n "checking for dlopen in -ldl... " >&6; }
9635if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9636  $as_echo_n "(cached) " >&6
9637else
9638  ac_check_lib_save_LIBS=$LIBS
9639LIBS="-ldl  $LIBS"
9640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h.  */
9642
9643/* Override any GCC internal prototype to avoid an error.
9644   Use char because int might match the return type of a GCC
9645   builtin and then its argument prototype would still apply.  */
9646#ifdef __cplusplus
9647extern "C"
9648#endif
9649char dlopen ();
9650int
9651main ()
9652{
9653return dlopen ();
9654  ;
9655  return 0;
9656}
9657_ACEOF
9658if ac_fn_c_try_link "$LINENO"; then :
9659  ac_cv_lib_dl_dlopen=yes
9660else
9661  ac_cv_lib_dl_dlopen=no
9662fi
9663rm -f core conftest.err conftest.$ac_objext \
9664    conftest$ac_exeext conftest.$ac_ext
9665LIBS=$ac_check_lib_save_LIBS
9666fi
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9668$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9669if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9670  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9671else
9672
9673    lt_cv_dlopen="dyld"
9674    lt_cv_dlopen_libs=
9675    lt_cv_dlopen_self=yes
9676
9677fi
9678
9679   ;;
9680
9681  *)
9682    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9683if test "x$ac_cv_func_shl_load" = x""yes; then :
9684  lt_cv_dlopen="shl_load"
9685else
9686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9687$as_echo_n "checking for shl_load in -ldld... " >&6; }
9688if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9689  $as_echo_n "(cached) " >&6
9690else
9691  ac_check_lib_save_LIBS=$LIBS
9692LIBS="-ldld  $LIBS"
9693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694/* end confdefs.h.  */
9695
9696/* Override any GCC internal prototype to avoid an error.
9697   Use char because int might match the return type of a GCC
9698   builtin and then its argument prototype would still apply.  */
9699#ifdef __cplusplus
9700extern "C"
9701#endif
9702char shl_load ();
9703int
9704main ()
9705{
9706return shl_load ();
9707  ;
9708  return 0;
9709}
9710_ACEOF
9711if ac_fn_c_try_link "$LINENO"; then :
9712  ac_cv_lib_dld_shl_load=yes
9713else
9714  ac_cv_lib_dld_shl_load=no
9715fi
9716rm -f core conftest.err conftest.$ac_objext \
9717    conftest$ac_exeext conftest.$ac_ext
9718LIBS=$ac_check_lib_save_LIBS
9719fi
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9721$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9722if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9723  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9724else
9725  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9726if test "x$ac_cv_func_dlopen" = x""yes; then :
9727  lt_cv_dlopen="dlopen"
9728else
9729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9730$as_echo_n "checking for dlopen in -ldl... " >&6; }
9731if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9732  $as_echo_n "(cached) " >&6
9733else
9734  ac_check_lib_save_LIBS=$LIBS
9735LIBS="-ldl  $LIBS"
9736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738
9739/* Override any GCC internal prototype to avoid an error.
9740   Use char because int might match the return type of a GCC
9741   builtin and then its argument prototype would still apply.  */
9742#ifdef __cplusplus
9743extern "C"
9744#endif
9745char dlopen ();
9746int
9747main ()
9748{
9749return dlopen ();
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_link "$LINENO"; then :
9755  ac_cv_lib_dl_dlopen=yes
9756else
9757  ac_cv_lib_dl_dlopen=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext \
9760    conftest$ac_exeext conftest.$ac_ext
9761LIBS=$ac_check_lib_save_LIBS
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9764$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9765if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9766  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9767else
9768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9769$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9770if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9771  $as_echo_n "(cached) " >&6
9772else
9773  ac_check_lib_save_LIBS=$LIBS
9774LIBS="-lsvld  $LIBS"
9775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h.  */
9777
9778/* Override any GCC internal prototype to avoid an error.
9779   Use char because int might match the return type of a GCC
9780   builtin and then its argument prototype would still apply.  */
9781#ifdef __cplusplus
9782extern "C"
9783#endif
9784char dlopen ();
9785int
9786main ()
9787{
9788return dlopen ();
9789  ;
9790  return 0;
9791}
9792_ACEOF
9793if ac_fn_c_try_link "$LINENO"; then :
9794  ac_cv_lib_svld_dlopen=yes
9795else
9796  ac_cv_lib_svld_dlopen=no
9797fi
9798rm -f core conftest.err conftest.$ac_objext \
9799    conftest$ac_exeext conftest.$ac_ext
9800LIBS=$ac_check_lib_save_LIBS
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9803$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9804if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9805  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9806else
9807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9808$as_echo_n "checking for dld_link in -ldld... " >&6; }
9809if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9810  $as_echo_n "(cached) " >&6
9811else
9812  ac_check_lib_save_LIBS=$LIBS
9813LIBS="-ldld  $LIBS"
9814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815/* end confdefs.h.  */
9816
9817/* Override any GCC internal prototype to avoid an error.
9818   Use char because int might match the return type of a GCC
9819   builtin and then its argument prototype would still apply.  */
9820#ifdef __cplusplus
9821extern "C"
9822#endif
9823char dld_link ();
9824int
9825main ()
9826{
9827return dld_link ();
9828  ;
9829  return 0;
9830}
9831_ACEOF
9832if ac_fn_c_try_link "$LINENO"; then :
9833  ac_cv_lib_dld_dld_link=yes
9834else
9835  ac_cv_lib_dld_dld_link=no
9836fi
9837rm -f core conftest.err conftest.$ac_objext \
9838    conftest$ac_exeext conftest.$ac_ext
9839LIBS=$ac_check_lib_save_LIBS
9840fi
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9842$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9843if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9844  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9845fi
9846
9847
9848fi
9849
9850
9851fi
9852
9853
9854fi
9855
9856
9857fi
9858
9859
9860fi
9861
9862    ;;
9863  esac
9864
9865  if test "x$lt_cv_dlopen" != xno; then
9866    enable_dlopen=yes
9867  else
9868    enable_dlopen=no
9869  fi
9870
9871  case $lt_cv_dlopen in
9872  dlopen)
9873    save_CPPFLAGS="$CPPFLAGS"
9874    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9875
9876    save_LDFLAGS="$LDFLAGS"
9877    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9878
9879    save_LIBS="$LIBS"
9880    LIBS="$lt_cv_dlopen_libs $LIBS"
9881
9882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9883$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9884if test "${lt_cv_dlopen_self+set}" = set; then :
9885  $as_echo_n "(cached) " >&6
9886else
9887  	  if test "$cross_compiling" = yes; then :
9888  lt_cv_dlopen_self=cross
9889else
9890  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9891  lt_status=$lt_dlunknown
9892  cat > conftest.$ac_ext <<EOF
9893#line 9893 "configure"
9894#include "confdefs.h"
9895
9896#if HAVE_DLFCN_H
9897#include <dlfcn.h>
9898#endif
9899
9900#include <stdio.h>
9901
9902#ifdef RTLD_GLOBAL
9903#  define LT_DLGLOBAL		RTLD_GLOBAL
9904#else
9905#  ifdef DL_GLOBAL
9906#    define LT_DLGLOBAL		DL_GLOBAL
9907#  else
9908#    define LT_DLGLOBAL		0
9909#  endif
9910#endif
9911
9912/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9913   find out it does not work in some platform. */
9914#ifndef LT_DLLAZY_OR_NOW
9915#  ifdef RTLD_LAZY
9916#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9917#  else
9918#    ifdef DL_LAZY
9919#      define LT_DLLAZY_OR_NOW		DL_LAZY
9920#    else
9921#      ifdef RTLD_NOW
9922#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9923#      else
9924#        ifdef DL_NOW
9925#          define LT_DLLAZY_OR_NOW	DL_NOW
9926#        else
9927#          define LT_DLLAZY_OR_NOW	0
9928#        endif
9929#      endif
9930#    endif
9931#  endif
9932#endif
9933
9934#ifdef __cplusplus
9935extern "C" void exit (int);
9936#endif
9937
9938void fnord() { int i=42;}
9939int main ()
9940{
9941  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9942  int status = $lt_dlunknown;
9943
9944  if (self)
9945    {
9946      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9947      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9948      /* dlclose (self); */
9949    }
9950  else
9951    puts (dlerror ());
9952
9953    exit (status);
9954}
9955EOF
9956  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9957  (eval $ac_link) 2>&5
9958  ac_status=$?
9959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9960  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9961    (./conftest; exit; ) >&5 2>/dev/null
9962    lt_status=$?
9963    case x$lt_status in
9964      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9965      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9966      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9967    esac
9968  else :
9969    # compilation failed
9970    lt_cv_dlopen_self=no
9971  fi
9972fi
9973rm -fr conftest*
9974
9975
9976fi
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9978$as_echo "$lt_cv_dlopen_self" >&6; }
9979
9980    if test "x$lt_cv_dlopen_self" = xyes; then
9981      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9982      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9983$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9984if test "${lt_cv_dlopen_self_static+set}" = set; then :
9985  $as_echo_n "(cached) " >&6
9986else
9987  	  if test "$cross_compiling" = yes; then :
9988  lt_cv_dlopen_self_static=cross
9989else
9990  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9991  lt_status=$lt_dlunknown
9992  cat > conftest.$ac_ext <<EOF
9993#line 9993 "configure"
9994#include "confdefs.h"
9995
9996#if HAVE_DLFCN_H
9997#include <dlfcn.h>
9998#endif
9999
10000#include <stdio.h>
10001
10002#ifdef RTLD_GLOBAL
10003#  define LT_DLGLOBAL		RTLD_GLOBAL
10004#else
10005#  ifdef DL_GLOBAL
10006#    define LT_DLGLOBAL		DL_GLOBAL
10007#  else
10008#    define LT_DLGLOBAL		0
10009#  endif
10010#endif
10011
10012/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10013   find out it does not work in some platform. */
10014#ifndef LT_DLLAZY_OR_NOW
10015#  ifdef RTLD_LAZY
10016#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10017#  else
10018#    ifdef DL_LAZY
10019#      define LT_DLLAZY_OR_NOW		DL_LAZY
10020#    else
10021#      ifdef RTLD_NOW
10022#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10023#      else
10024#        ifdef DL_NOW
10025#          define LT_DLLAZY_OR_NOW	DL_NOW
10026#        else
10027#          define LT_DLLAZY_OR_NOW	0
10028#        endif
10029#      endif
10030#    endif
10031#  endif
10032#endif
10033
10034#ifdef __cplusplus
10035extern "C" void exit (int);
10036#endif
10037
10038void fnord() { int i=42;}
10039int main ()
10040{
10041  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10042  int status = $lt_dlunknown;
10043
10044  if (self)
10045    {
10046      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10047      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10048      /* dlclose (self); */
10049    }
10050  else
10051    puts (dlerror ());
10052
10053    exit (status);
10054}
10055EOF
10056  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10057  (eval $ac_link) 2>&5
10058  ac_status=$?
10059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10060  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10061    (./conftest; exit; ) >&5 2>/dev/null
10062    lt_status=$?
10063    case x$lt_status in
10064      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10065      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10066      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10067    esac
10068  else :
10069    # compilation failed
10070    lt_cv_dlopen_self_static=no
10071  fi
10072fi
10073rm -fr conftest*
10074
10075
10076fi
10077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10078$as_echo "$lt_cv_dlopen_self_static" >&6; }
10079    fi
10080
10081    CPPFLAGS="$save_CPPFLAGS"
10082    LDFLAGS="$save_LDFLAGS"
10083    LIBS="$save_LIBS"
10084    ;;
10085  esac
10086
10087  case $lt_cv_dlopen_self in
10088  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10089  *) enable_dlopen_self=unknown ;;
10090  esac
10091
10092  case $lt_cv_dlopen_self_static in
10093  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10094  *) enable_dlopen_self_static=unknown ;;
10095  esac
10096fi
10097
10098
10099# Report which library types will actually be built
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10101$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10103$as_echo "$can_build_shared" >&6; }
10104
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10106$as_echo_n "checking whether to build shared libraries... " >&6; }
10107test "$can_build_shared" = "no" && enable_shared=no
10108
10109# On AIX, shared libraries and static libraries use the same namespace, and
10110# are all built from PIC.
10111case $host_os in
10112aix3*)
10113  test "$enable_shared" = yes && enable_static=no
10114  if test -n "$RANLIB"; then
10115    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10116    postinstall_cmds='$RANLIB $lib'
10117  fi
10118  ;;
10119
10120aix[4-9]*)
10121  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10122    test "$enable_shared" = yes && enable_static=no
10123  fi
10124    ;;
10125esac
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10127$as_echo "$enable_shared" >&6; }
10128
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10130$as_echo_n "checking whether to build static libraries... " >&6; }
10131# Make sure either enable_shared or enable_static is yes.
10132test "$enable_shared" = yes || enable_static=yes
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10134$as_echo "$enable_static" >&6; }
10135
10136# The else clause should only fire when bootstrapping the
10137# libtool distribution, otherwise you forgot to ship ltmain.sh
10138# with your package, and you will get complaints that there are
10139# no rules to generate ltmain.sh.
10140if test -f "$ltmain"; then
10141  # See if we are running on zsh, and set the options which allow our commands through
10142  # without removal of \ escapes.
10143  if test -n "${ZSH_VERSION+set}" ; then
10144    setopt NO_GLOB_SUBST
10145  fi
10146  # Now quote all the things that may contain metacharacters while being
10147  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10148  # variables and quote the copies for generation of the libtool script.
10149  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10150    SED SHELL STRIP \
10151    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10152    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10153    deplibs_check_method reload_flag reload_cmds need_locks \
10154    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10155    lt_cv_sys_global_symbol_to_c_name_address \
10156    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10157    old_postinstall_cmds old_postuninstall_cmds \
10158    compiler \
10159    CC \
10160    LD \
10161    lt_prog_compiler_wl \
10162    lt_prog_compiler_pic \
10163    lt_prog_compiler_static \
10164    lt_prog_compiler_no_builtin_flag \
10165    export_dynamic_flag_spec \
10166    thread_safe_flag_spec \
10167    whole_archive_flag_spec \
10168    enable_shared_with_static_runtimes \
10169    old_archive_cmds \
10170    old_archive_from_new_cmds \
10171    predep_objects \
10172    postdep_objects \
10173    predeps \
10174    postdeps \
10175    compiler_lib_search_path \
10176    compiler_lib_search_dirs \
10177    archive_cmds \
10178    archive_expsym_cmds \
10179    postinstall_cmds \
10180    postuninstall_cmds \
10181    old_archive_from_expsyms_cmds \
10182    allow_undefined_flag \
10183    no_undefined_flag \
10184    export_symbols_cmds \
10185    hardcode_libdir_flag_spec \
10186    hardcode_libdir_flag_spec_ld \
10187    hardcode_libdir_separator \
10188    hardcode_automatic \
10189    module_cmds \
10190    module_expsym_cmds \
10191    lt_cv_prog_compiler_c_o \
10192    fix_srcfile_path \
10193    exclude_expsyms \
10194    include_expsyms; do
10195
10196    case $var in
10197    old_archive_cmds | \
10198    old_archive_from_new_cmds | \
10199    archive_cmds | \
10200    archive_expsym_cmds | \
10201    module_cmds | \
10202    module_expsym_cmds | \
10203    old_archive_from_expsyms_cmds | \
10204    export_symbols_cmds | \
10205    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10206    postinstall_cmds | postuninstall_cmds | \
10207    old_postinstall_cmds | old_postuninstall_cmds | \
10208    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10209      # Double-quote double-evaled strings.
10210      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10211      ;;
10212    *)
10213      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10214      ;;
10215    esac
10216  done
10217
10218  case $lt_echo in
10219  *'\$0 --fallback-echo"')
10220    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10221    ;;
10222  esac
10223
10224cfgfile="${ofile}T"
10225  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10226  $rm -f "$cfgfile"
10227  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10228$as_echo "$as_me: creating $ofile" >&6;}
10229
10230  cat <<__EOF__ >> "$cfgfile"
10231#! $SHELL
10232
10233# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10234# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10235# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10236#
10237# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10238# Free Software Foundation, Inc.
10239#
10240# This file is part of GNU Libtool:
10241# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10242#
10243# This program is free software; you can redistribute it and/or modify
10244# it under the terms of the GNU General Public License as published by
10245# the Free Software Foundation; either version 2 of the License, or
10246# (at your option) any later version.
10247#
10248# This program is distributed in the hope that it will be useful, but
10249# WITHOUT ANY WARRANTY; without even the implied warranty of
10250# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10251# General Public License for more details.
10252#
10253# You should have received a copy of the GNU General Public License
10254# along with this program; if not, write to the Free Software
10255# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10256#
10257# As a special exception to the GNU General Public License, if you
10258# distribute this file as part of a program that contains a
10259# configuration script generated by Autoconf, you may include it under
10260# the same distribution terms that you use for the rest of that program.
10261
10262# A sed program that does not truncate output.
10263SED=$lt_SED
10264
10265# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10266Xsed="$SED -e 1s/^X//"
10267
10268# The HP-UX ksh and POSIX shell print the target directory to stdout
10269# if CDPATH is set.
10270(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10271
10272# The names of the tagged configurations supported by this script.
10273available_tags=
10274
10275# ### BEGIN LIBTOOL CONFIG
10276
10277# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10278
10279# Shell to use when invoking shell scripts.
10280SHELL=$lt_SHELL
10281
10282# Whether or not to build shared libraries.
10283build_libtool_libs=$enable_shared
10284
10285# Whether or not to build static libraries.
10286build_old_libs=$enable_static
10287
10288# Whether or not to add -lc for building shared libraries.
10289build_libtool_need_lc=$archive_cmds_need_lc
10290
10291# Whether or not to disallow shared libs when runtime libs are static
10292allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10293
10294# Whether or not to optimize for fast installation.
10295fast_install=$enable_fast_install
10296
10297# The host system.
10298host_alias=$host_alias
10299host=$host
10300host_os=$host_os
10301
10302# The build system.
10303build_alias=$build_alias
10304build=$build
10305build_os=$build_os
10306
10307# An echo program that does not interpret backslashes.
10308echo=$lt_echo
10309
10310# The archiver.
10311AR=$lt_AR
10312AR_FLAGS=$lt_AR_FLAGS
10313
10314# A C compiler.
10315LTCC=$lt_LTCC
10316
10317# LTCC compiler flags.
10318LTCFLAGS=$lt_LTCFLAGS
10319
10320# A language-specific compiler.
10321CC=$lt_compiler
10322
10323# Is the compiler the GNU C compiler?
10324with_gcc=$GCC
10325
10326# An ERE matcher.
10327EGREP=$lt_EGREP
10328
10329# The linker used to build libraries.
10330LD=$lt_LD
10331
10332# Whether we need hard or soft links.
10333LN_S=$lt_LN_S
10334
10335# A BSD-compatible nm program.
10336NM=$lt_NM
10337
10338# A symbol stripping program
10339STRIP=$lt_STRIP
10340
10341# Used to examine libraries when file_magic_cmd begins "file"
10342MAGIC_CMD=$MAGIC_CMD
10343
10344# Used on cygwin: DLL creation program.
10345DLLTOOL="$DLLTOOL"
10346
10347# Used on cygwin: object dumper.
10348OBJDUMP="$OBJDUMP"
10349
10350# Used on cygwin: assembler.
10351AS="$AS"
10352
10353# The name of the directory that contains temporary libtool files.
10354objdir=$objdir
10355
10356# How to create reloadable object files.
10357reload_flag=$lt_reload_flag
10358reload_cmds=$lt_reload_cmds
10359
10360# How to pass a linker flag through the compiler.
10361wl=$lt_lt_prog_compiler_wl
10362
10363# Object file suffix (normally "o").
10364objext="$ac_objext"
10365
10366# Old archive suffix (normally "a").
10367libext="$libext"
10368
10369# Shared library suffix (normally ".so").
10370shrext_cmds='$shrext_cmds'
10371
10372# Executable file suffix (normally "").
10373exeext="$exeext"
10374
10375# Additional compiler flags for building library objects.
10376pic_flag=$lt_lt_prog_compiler_pic
10377pic_mode=$pic_mode
10378
10379# What is the maximum length of a command?
10380max_cmd_len=$lt_cv_sys_max_cmd_len
10381
10382# Does compiler simultaneously support -c and -o options?
10383compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10384
10385# Must we lock files when doing compilation?
10386need_locks=$lt_need_locks
10387
10388# Do we need the lib prefix for modules?
10389need_lib_prefix=$need_lib_prefix
10390
10391# Do we need a version for libraries?
10392need_version=$need_version
10393
10394# Whether dlopen is supported.
10395dlopen_support=$enable_dlopen
10396
10397# Whether dlopen of programs is supported.
10398dlopen_self=$enable_dlopen_self
10399
10400# Whether dlopen of statically linked programs is supported.
10401dlopen_self_static=$enable_dlopen_self_static
10402
10403# Compiler flag to prevent dynamic linking.
10404link_static_flag=$lt_lt_prog_compiler_static
10405
10406# Compiler flag to turn off builtin functions.
10407no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10408
10409# Compiler flag to allow reflexive dlopens.
10410export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10411
10412# Compiler flag to generate shared objects directly from archives.
10413whole_archive_flag_spec=$lt_whole_archive_flag_spec
10414
10415# Compiler flag to generate thread-safe objects.
10416thread_safe_flag_spec=$lt_thread_safe_flag_spec
10417
10418# Library versioning type.
10419version_type=$version_type
10420
10421# Format of library name prefix.
10422libname_spec=$lt_libname_spec
10423
10424# List of archive names.  First name is the real one, the rest are links.
10425# The last name is the one that the linker finds with -lNAME.
10426library_names_spec=$lt_library_names_spec
10427
10428# The coded name of the library, if different from the real name.
10429soname_spec=$lt_soname_spec
10430
10431# Commands used to build and install an old-style archive.
10432RANLIB=$lt_RANLIB
10433old_archive_cmds=$lt_old_archive_cmds
10434old_postinstall_cmds=$lt_old_postinstall_cmds
10435old_postuninstall_cmds=$lt_old_postuninstall_cmds
10436
10437# Create an old-style archive from a shared archive.
10438old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10439
10440# Create a temporary old-style archive to link instead of a shared archive.
10441old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10442
10443# Commands used to build and install a shared archive.
10444archive_cmds=$lt_archive_cmds
10445archive_expsym_cmds=$lt_archive_expsym_cmds
10446postinstall_cmds=$lt_postinstall_cmds
10447postuninstall_cmds=$lt_postuninstall_cmds
10448
10449# Commands used to build a loadable module (assumed same as above if empty)
10450module_cmds=$lt_module_cmds
10451module_expsym_cmds=$lt_module_expsym_cmds
10452
10453# Commands to strip libraries.
10454old_striplib=$lt_old_striplib
10455striplib=$lt_striplib
10456
10457# Dependencies to place before the objects being linked to create a
10458# shared library.
10459predep_objects=$lt_predep_objects
10460
10461# Dependencies to place after the objects being linked to create a
10462# shared library.
10463postdep_objects=$lt_postdep_objects
10464
10465# Dependencies to place before the objects being linked to create a
10466# shared library.
10467predeps=$lt_predeps
10468
10469# Dependencies to place after the objects being linked to create a
10470# shared library.
10471postdeps=$lt_postdeps
10472
10473# The directories searched by this compiler when creating a shared
10474# library
10475compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10476
10477# The library search path used internally by the compiler when linking
10478# a shared library.
10479compiler_lib_search_path=$lt_compiler_lib_search_path
10480
10481# Method to check whether dependent libraries are shared objects.
10482deplibs_check_method=$lt_deplibs_check_method
10483
10484# Command to use when deplibs_check_method == file_magic.
10485file_magic_cmd=$lt_file_magic_cmd
10486
10487# Flag that allows shared libraries with undefined symbols to be built.
10488allow_undefined_flag=$lt_allow_undefined_flag
10489
10490# Flag that forces no undefined symbols.
10491no_undefined_flag=$lt_no_undefined_flag
10492
10493# Commands used to finish a libtool library installation in a directory.
10494finish_cmds=$lt_finish_cmds
10495
10496# Same as above, but a single script fragment to be evaled but not shown.
10497finish_eval=$lt_finish_eval
10498
10499# Take the output of nm and produce a listing of raw symbols and C names.
10500global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10501
10502# Transform the output of nm in a proper C declaration
10503global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10504
10505# Transform the output of nm in a C name address pair
10506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10507
10508# This is the shared library runtime path variable.
10509runpath_var=$runpath_var
10510
10511# This is the shared library path variable.
10512shlibpath_var=$shlibpath_var
10513
10514# Is shlibpath searched before the hard-coded library search path?
10515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10516
10517# How to hardcode a shared library path into an executable.
10518hardcode_action=$hardcode_action
10519
10520# Whether we should hardcode library paths into libraries.
10521hardcode_into_libs=$hardcode_into_libs
10522
10523# Flag to hardcode \$libdir into a binary during linking.
10524# This must work even if \$libdir does not exist.
10525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10526
10527# If ld is used when linking, flag to hardcode \$libdir into
10528# a binary during linking. This must work even if \$libdir does
10529# not exist.
10530hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10531
10532# Whether we need a single -rpath flag with a separated argument.
10533hardcode_libdir_separator=$lt_hardcode_libdir_separator
10534
10535# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10536# resulting binary.
10537hardcode_direct=$hardcode_direct
10538
10539# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10540# resulting binary.
10541hardcode_minus_L=$hardcode_minus_L
10542
10543# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10544# the resulting binary.
10545hardcode_shlibpath_var=$hardcode_shlibpath_var
10546
10547# Set to yes if building a shared library automatically hardcodes DIR into the library
10548# and all subsequent libraries and executables linked against it.
10549hardcode_automatic=$hardcode_automatic
10550
10551# Variables whose values should be saved in libtool wrapper scripts and
10552# restored at relink time.
10553variables_saved_for_relink="$variables_saved_for_relink"
10554
10555# Whether libtool must link a program against all its dependency libraries.
10556link_all_deplibs=$link_all_deplibs
10557
10558# Compile-time system search path for libraries
10559sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10560
10561# Run-time system search path for libraries
10562sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10563
10564# Fix the shell variable \$srcfile for the compiler.
10565fix_srcfile_path=$lt_fix_srcfile_path
10566
10567# Set to yes if exported symbols are required.
10568always_export_symbols=$always_export_symbols
10569
10570# The commands to list exported symbols.
10571export_symbols_cmds=$lt_export_symbols_cmds
10572
10573# The commands to extract the exported symbol list from a shared archive.
10574extract_expsyms_cmds=$lt_extract_expsyms_cmds
10575
10576# Symbols that should not be listed in the preloaded symbols.
10577exclude_expsyms=$lt_exclude_expsyms
10578
10579# Symbols that must always be exported.
10580include_expsyms=$lt_include_expsyms
10581
10582# ### END LIBTOOL CONFIG
10583
10584__EOF__
10585
10586
10587  case $host_os in
10588  aix3*)
10589    cat <<\EOF >> "$cfgfile"
10590
10591# AIX sometimes has problems with the GCC collect2 program.  For some
10592# reason, if we set the COLLECT_NAMES environment variable, the problems
10593# vanish in a puff of smoke.
10594if test "X${COLLECT_NAMES+set}" != Xset; then
10595  COLLECT_NAMES=
10596  export COLLECT_NAMES
10597fi
10598EOF
10599    ;;
10600  esac
10601
10602  # We use sed instead of cat because bash on DJGPP gets confused if
10603  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10604  # text mode, it properly converts lines to CR/LF.  This bash problem
10605  # is reportedly fixed, but why not run on old versions too?
10606  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10607
10608  mv -f "$cfgfile" "$ofile" || \
10609    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10610  chmod +x "$ofile"
10611
10612else
10613  # If there is no Makefile yet, we rely on a make rule to execute
10614  # `config.status --recheck' to rerun these tests and create the
10615  # libtool script then.
10616  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10617  if test -f "$ltmain_in"; then
10618    test -f Makefile && make "$ltmain"
10619  fi
10620fi
10621
10622
10623ac_ext=c
10624ac_cpp='$CPP $CPPFLAGS'
10625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627ac_compiler_gnu=$ac_cv_c_compiler_gnu
10628
10629CC="$lt_save_CC"
10630
10631
10632# Check whether --with-tags was given.
10633if test "${with_tags+set}" = set; then :
10634  withval=$with_tags; tagnames="$withval"
10635fi
10636
10637
10638if test -f "$ltmain" && test -n "$tagnames"; then
10639  if test ! -f "${ofile}"; then
10640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10641$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10642  fi
10643
10644  if test -z "$LTCC"; then
10645    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10646    if test -z "$LTCC"; then
10647      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10648$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10649    else
10650      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10651$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10652    fi
10653  fi
10654  if test -z "$LTCFLAGS"; then
10655    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10656  fi
10657
10658  # Extract list of available tagged configurations in $ofile.
10659  # Note that this assumes the entire list is on one line.
10660  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10661
10662  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10663  for tagname in $tagnames; do
10664    IFS="$lt_save_ifs"
10665    # Check whether tagname contains only valid characters
10666    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10667    "") ;;
10668    *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10669	;;
10670    esac
10671
10672    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10673    then
10674      as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10675    fi
10676
10677    # Update the list of available tags.
10678    if test -n "$tagname"; then
10679      echo appending configuration tag \"$tagname\" to $ofile
10680
10681      case $tagname in
10682      CXX)
10683	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10684	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10685	    (test "X$CXX" != "Xg++"))) ; then
10686	  ac_ext=cpp
10687ac_cpp='$CXXCPP $CPPFLAGS'
10688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10691
10692
10693
10694
10695archive_cmds_need_lc_CXX=no
10696allow_undefined_flag_CXX=
10697always_export_symbols_CXX=no
10698archive_expsym_cmds_CXX=
10699export_dynamic_flag_spec_CXX=
10700hardcode_direct_CXX=no
10701hardcode_libdir_flag_spec_CXX=
10702hardcode_libdir_flag_spec_ld_CXX=
10703hardcode_libdir_separator_CXX=
10704hardcode_minus_L_CXX=no
10705hardcode_shlibpath_var_CXX=unsupported
10706hardcode_automatic_CXX=no
10707module_cmds_CXX=
10708module_expsym_cmds_CXX=
10709link_all_deplibs_CXX=unknown
10710old_archive_cmds_CXX=$old_archive_cmds
10711no_undefined_flag_CXX=
10712whole_archive_flag_spec_CXX=
10713enable_shared_with_static_runtimes_CXX=no
10714
10715# Dependencies to place before and after the object being linked:
10716predep_objects_CXX=
10717postdep_objects_CXX=
10718predeps_CXX=
10719postdeps_CXX=
10720compiler_lib_search_path_CXX=
10721compiler_lib_search_dirs_CXX=
10722
10723# Source file extension for C++ test sources.
10724ac_ext=cpp
10725
10726# Object file extension for compiled C++ test sources.
10727objext=o
10728objext_CXX=$objext
10729
10730# Code to be used in simple compile tests
10731lt_simple_compile_test_code="int some_variable = 0;"
10732
10733# Code to be used in simple link tests
10734lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10735
10736# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10737
10738# If no C compiler was specified, use CC.
10739LTCC=${LTCC-"$CC"}
10740
10741# If no C compiler flags were specified, use CFLAGS.
10742LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10743
10744# Allow CC to be a program name with arguments.
10745compiler=$CC
10746
10747
10748# save warnings/boilerplate of simple test code
10749ac_outfile=conftest.$ac_objext
10750echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10751eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10752_lt_compiler_boilerplate=`cat conftest.err`
10753$rm conftest*
10754
10755ac_outfile=conftest.$ac_objext
10756echo "$lt_simple_link_test_code" >conftest.$ac_ext
10757eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10758_lt_linker_boilerplate=`cat conftest.err`
10759$rm -r conftest*
10760
10761
10762# Allow CC to be a program name with arguments.
10763lt_save_CC=$CC
10764lt_save_LD=$LD
10765lt_save_GCC=$GCC
10766GCC=$GXX
10767lt_save_with_gnu_ld=$with_gnu_ld
10768lt_save_path_LD=$lt_cv_path_LD
10769if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10770  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10771else
10772  $as_unset lt_cv_prog_gnu_ld
10773fi
10774if test -n "${lt_cv_path_LDCXX+set}"; then
10775  lt_cv_path_LD=$lt_cv_path_LDCXX
10776else
10777  $as_unset lt_cv_path_LD
10778fi
10779test -z "${LDCXX+set}" || LD=$LDCXX
10780CC=${CXX-"c++"}
10781compiler=$CC
10782compiler_CXX=$CC
10783for cc_temp in $compiler""; do
10784  case $cc_temp in
10785    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10786    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10787    \-*) ;;
10788    *) break;;
10789  esac
10790done
10791cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10792
10793
10794# We don't want -fno-exception wen compiling C++ code, so set the
10795# no_builtin_flag separately
10796if test "$GXX" = yes; then
10797  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10798else
10799  lt_prog_compiler_no_builtin_flag_CXX=
10800fi
10801
10802if test "$GXX" = yes; then
10803  # Set up default GNU C++ configuration
10804
10805
10806# Check whether --with-gnu-ld was given.
10807if test "${with_gnu_ld+set}" = set; then :
10808  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10809else
10810  with_gnu_ld=no
10811fi
10812
10813ac_prog=ld
10814if test "$GCC" = yes; then
10815  # Check if gcc -print-prog-name=ld gives a path.
10816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10817$as_echo_n "checking for ld used by $CC... " >&6; }
10818  case $host in
10819  *-*-mingw*)
10820    # gcc leaves a trailing carriage return which upsets mingw
10821    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10822  *)
10823    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10824  esac
10825  case $ac_prog in
10826    # Accept absolute paths.
10827    [\\/]* | ?:[\\/]*)
10828      re_direlt='/[^/][^/]*/\.\./'
10829      # Canonicalize the pathname of ld
10830      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10831      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10832	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10833      done
10834      test -z "$LD" && LD="$ac_prog"
10835      ;;
10836  "")
10837    # If it fails, then pretend we aren't using GCC.
10838    ac_prog=ld
10839    ;;
10840  *)
10841    # If it is relative, then search for the first ld in PATH.
10842    with_gnu_ld=unknown
10843    ;;
10844  esac
10845elif test "$with_gnu_ld" = yes; then
10846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10847$as_echo_n "checking for GNU ld... " >&6; }
10848else
10849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10850$as_echo_n "checking for non-GNU ld... " >&6; }
10851fi
10852if test "${lt_cv_path_LD+set}" = set; then :
10853  $as_echo_n "(cached) " >&6
10854else
10855  if test -z "$LD"; then
10856  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10857  for ac_dir in $PATH; do
10858    IFS="$lt_save_ifs"
10859    test -z "$ac_dir" && ac_dir=.
10860    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10861      lt_cv_path_LD="$ac_dir/$ac_prog"
10862      # Check to see if the program is GNU ld.  I'd rather use --version,
10863      # but apparently some variants of GNU ld only accept -v.
10864      # Break only if it was the GNU/non-GNU ld that we prefer.
10865      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10866      *GNU* | *'with BFD'*)
10867	test "$with_gnu_ld" != no && break
10868	;;
10869      *)
10870	test "$with_gnu_ld" != yes && break
10871	;;
10872      esac
10873    fi
10874  done
10875  IFS="$lt_save_ifs"
10876else
10877  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10878fi
10879fi
10880
10881LD="$lt_cv_path_LD"
10882if test -n "$LD"; then
10883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10884$as_echo "$LD" >&6; }
10885else
10886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887$as_echo "no" >&6; }
10888fi
10889test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10891$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10892if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10893  $as_echo_n "(cached) " >&6
10894else
10895  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10896case `$LD -v 2>&1 </dev/null` in
10897*GNU* | *'with BFD'*)
10898  lt_cv_prog_gnu_ld=yes
10899  ;;
10900*)
10901  lt_cv_prog_gnu_ld=no
10902  ;;
10903esac
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10906$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10907with_gnu_ld=$lt_cv_prog_gnu_ld
10908
10909
10910
10911  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10912  # archiving commands below assume that GNU ld is being used.
10913  if test "$with_gnu_ld" = yes; then
10914    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10915    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10916
10917    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10918    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10919
10920    # If archive_cmds runs LD, not CC, wlarc should be empty
10921    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10922    #     investigate it a little bit more. (MM)
10923    wlarc='${wl}'
10924
10925    # ancient GNU ld didn't support --whole-archive et. al.
10926    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10927	grep 'no-whole-archive' > /dev/null; then
10928      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10929    else
10930      whole_archive_flag_spec_CXX=
10931    fi
10932  else
10933    with_gnu_ld=no
10934    wlarc=
10935
10936    # A generic and very simple default shared library creation
10937    # command for GNU C++ for the case where it uses the native
10938    # linker, instead of GNU ld.  If possible, this setting should
10939    # overridden to take advantage of the native linker features on
10940    # the platform it is being used on.
10941    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10942  fi
10943
10944  # Commands to make compiler produce verbose output that lists
10945  # what "hidden" libraries, object files and flags are used when
10946  # linking a shared library.
10947  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10948
10949else
10950  GXX=no
10951  with_gnu_ld=no
10952  wlarc=
10953fi
10954
10955# PORTME: fill in a description of your system's C++ link characteristics
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10957$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10958ld_shlibs_CXX=yes
10959case $host_os in
10960  aix3*)
10961    # FIXME: insert proper C++ library support
10962    ld_shlibs_CXX=no
10963    ;;
10964  aix[4-9]*)
10965    if test "$host_cpu" = ia64; then
10966      # On IA64, the linker does run time linking by default, so we don't
10967      # have to do anything special.
10968      aix_use_runtimelinking=no
10969      exp_sym_flag='-Bexport'
10970      no_entry_flag=""
10971    else
10972      aix_use_runtimelinking=no
10973
10974      # Test if we are trying to use run time linking or normal
10975      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10976      # need to do runtime linking.
10977      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10978	for ld_flag in $LDFLAGS; do
10979	  case $ld_flag in
10980	  *-brtl*)
10981	    aix_use_runtimelinking=yes
10982	    break
10983	    ;;
10984	  esac
10985	done
10986	;;
10987      esac
10988
10989      exp_sym_flag='-bexport'
10990      no_entry_flag='-bnoentry'
10991    fi
10992
10993    # When large executables or shared objects are built, AIX ld can
10994    # have problems creating the table of contents.  If linking a library
10995    # or program results in "error TOC overflow" add -mminimal-toc to
10996    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10997    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10998
10999    archive_cmds_CXX=''
11000    hardcode_direct_CXX=yes
11001    hardcode_libdir_separator_CXX=':'
11002    link_all_deplibs_CXX=yes
11003
11004    if test "$GXX" = yes; then
11005      case $host_os in aix4.[012]|aix4.[012].*)
11006      # We only want to do this on AIX 4.2 and lower, the check
11007      # below for broken collect2 doesn't work under 4.3+
11008	collect2name=`${CC} -print-prog-name=collect2`
11009	if test -f "$collect2name" && \
11010	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11011	then
11012	  # We have reworked collect2
11013	  :
11014	else
11015	  # We have old collect2
11016	  hardcode_direct_CXX=unsupported
11017	  # It fails to find uninstalled libraries when the uninstalled
11018	  # path is not listed in the libpath.  Setting hardcode_minus_L
11019	  # to unsupported forces relinking
11020	  hardcode_minus_L_CXX=yes
11021	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11022	  hardcode_libdir_separator_CXX=
11023	fi
11024	;;
11025      esac
11026      shared_flag='-shared'
11027      if test "$aix_use_runtimelinking" = yes; then
11028	shared_flag="$shared_flag "'${wl}-G'
11029      fi
11030    else
11031      # not using gcc
11032      if test "$host_cpu" = ia64; then
11033	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11034	# chokes on -Wl,-G. The following line is correct:
11035	shared_flag='-G'
11036      else
11037	if test "$aix_use_runtimelinking" = yes; then
11038	  shared_flag='${wl}-G'
11039	else
11040	  shared_flag='${wl}-bM:SRE'
11041	fi
11042      fi
11043    fi
11044
11045    # It seems that -bexpall does not export symbols beginning with
11046    # underscore (_), so it is better to generate a list of symbols to export.
11047    always_export_symbols_CXX=yes
11048    if test "$aix_use_runtimelinking" = yes; then
11049      # Warning - without using the other runtime loading flags (-brtl),
11050      # -berok will link without error, but may produce a broken library.
11051      allow_undefined_flag_CXX='-berok'
11052      # Determine the default libpath from the value encoded in an empty executable.
11053      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054/* end confdefs.h.  */
11055
11056int
11057main ()
11058{
11059
11060  ;
11061  return 0;
11062}
11063_ACEOF
11064if ac_fn_cxx_try_link "$LINENO"; then :
11065
11066lt_aix_libpath_sed='
11067    /Import File Strings/,/^$/ {
11068	/^0/ {
11069	    s/^0  *\(.*\)$/\1/
11070	    p
11071	}
11072    }'
11073aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11074# Check for a 64-bit object if we didn't find anything.
11075if test -z "$aix_libpath"; then
11076  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11077fi
11078fi
11079rm -f core conftest.err conftest.$ac_objext \
11080    conftest$ac_exeext conftest.$ac_ext
11081if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11082
11083      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11084
11085      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11086     else
11087      if test "$host_cpu" = ia64; then
11088	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11089	allow_undefined_flag_CXX="-z nodefs"
11090	archive_expsym_cmds_CXX="\$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"
11091      else
11092	# Determine the default libpath from the value encoded in an empty executable.
11093	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094/* end confdefs.h.  */
11095
11096int
11097main ()
11098{
11099
11100  ;
11101  return 0;
11102}
11103_ACEOF
11104if ac_fn_cxx_try_link "$LINENO"; then :
11105
11106lt_aix_libpath_sed='
11107    /Import File Strings/,/^$/ {
11108	/^0/ {
11109	    s/^0  *\(.*\)$/\1/
11110	    p
11111	}
11112    }'
11113aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11114# Check for a 64-bit object if we didn't find anything.
11115if test -z "$aix_libpath"; then
11116  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11117fi
11118fi
11119rm -f core conftest.err conftest.$ac_objext \
11120    conftest$ac_exeext conftest.$ac_ext
11121if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11122
11123	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11124	# Warning - without using the other run time loading flags,
11125	# -berok will link without error, but may produce a broken library.
11126	no_undefined_flag_CXX=' ${wl}-bernotok'
11127	allow_undefined_flag_CXX=' ${wl}-berok'
11128	# Exported symbols can be pulled into shared objects from archives
11129	whole_archive_flag_spec_CXX='$convenience'
11130	archive_cmds_need_lc_CXX=yes
11131	# This is similar to how AIX traditionally builds its shared libraries.
11132	archive_expsym_cmds_CXX="\$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'
11133      fi
11134    fi
11135    ;;
11136
11137  beos*)
11138    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11139      allow_undefined_flag_CXX=unsupported
11140      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11141      # support --undefined.  This deserves some investigation.  FIXME
11142      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11143    else
11144      ld_shlibs_CXX=no
11145    fi
11146    ;;
11147
11148  chorus*)
11149    case $cc_basename in
11150      *)
11151	# FIXME: insert proper C++ library support
11152	ld_shlibs_CXX=no
11153	;;
11154    esac
11155    ;;
11156
11157  cygwin* | mingw* | pw32*)
11158    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11159    # as there is no search path for DLLs.
11160    hardcode_libdir_flag_spec_CXX='-L$libdir'
11161    allow_undefined_flag_CXX=unsupported
11162    always_export_symbols_CXX=no
11163    enable_shared_with_static_runtimes_CXX=yes
11164
11165    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11166      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11167      # If the export-symbols file already is a .def file (1st line
11168      # is EXPORTS), use it as is; otherwise, prepend...
11169      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11170	cp $export_symbols $output_objdir/$soname.def;
11171      else
11172	echo EXPORTS > $output_objdir/$soname.def;
11173	cat $export_symbols >> $output_objdir/$soname.def;
11174      fi~
11175      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11176    else
11177      ld_shlibs_CXX=no
11178    fi
11179  ;;
11180      darwin* | rhapsody*)
11181      archive_cmds_need_lc_CXX=no
11182      hardcode_direct_CXX=no
11183      hardcode_automatic_CXX=yes
11184      hardcode_shlibpath_var_CXX=unsupported
11185      whole_archive_flag_spec_CXX=''
11186      link_all_deplibs_CXX=yes
11187      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11188      if test "$GXX" = yes ; then
11189      output_verbose_link_cmd='echo'
11190      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11191      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11192      archive_expsym_cmds_CXX="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}"
11193      module_expsym_cmds_CXX="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}"
11194      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11195        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11196        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11197      fi
11198      else
11199      case $cc_basename in
11200        xlc*)
11201         output_verbose_link_cmd='echo'
11202          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11203          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11204          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11205          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11206          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11207          ;;
11208       *)
11209         ld_shlibs_CXX=no
11210          ;;
11211      esac
11212      fi
11213        ;;
11214
11215  dgux*)
11216    case $cc_basename in
11217      ec++*)
11218	# FIXME: insert proper C++ library support
11219	ld_shlibs_CXX=no
11220	;;
11221      ghcx*)
11222	# Green Hills C++ Compiler
11223	# FIXME: insert proper C++ library support
11224	ld_shlibs_CXX=no
11225	;;
11226      *)
11227	# FIXME: insert proper C++ library support
11228	ld_shlibs_CXX=no
11229	;;
11230    esac
11231    ;;
11232  freebsd[12]*)
11233    # C++ shared libraries reported to be fairly broken before switch to ELF
11234    ld_shlibs_CXX=no
11235    ;;
11236  freebsd-elf*)
11237    archive_cmds_need_lc_CXX=no
11238    ;;
11239  freebsd* | dragonfly*)
11240    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11241    # conventions
11242    ld_shlibs_CXX=yes
11243    ;;
11244  gnu*)
11245    ;;
11246  hpux9*)
11247    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11248    hardcode_libdir_separator_CXX=:
11249    export_dynamic_flag_spec_CXX='${wl}-E'
11250    hardcode_direct_CXX=yes
11251    hardcode_minus_L_CXX=yes # Not in the search PATH,
11252				# but as the default
11253				# location of the library.
11254
11255    case $cc_basename in
11256    CC*)
11257      # FIXME: insert proper C++ library support
11258      ld_shlibs_CXX=no
11259      ;;
11260    aCC*)
11261      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11262      # Commands to make compiler produce verbose output that lists
11263      # what "hidden" libraries, object files and flags are used when
11264      # linking a shared library.
11265      #
11266      # There doesn't appear to be a way to prevent this compiler from
11267      # explicitly linking system object files so we need to strip them
11268      # from the output so that they don't get included in the library
11269      # dependencies.
11270      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11271      ;;
11272    *)
11273      if test "$GXX" = yes; then
11274        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11275      else
11276        # FIXME: insert proper C++ library support
11277        ld_shlibs_CXX=no
11278      fi
11279      ;;
11280    esac
11281    ;;
11282  hpux10*|hpux11*)
11283    if test $with_gnu_ld = no; then
11284      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11285      hardcode_libdir_separator_CXX=:
11286
11287      case $host_cpu in
11288      hppa*64*|ia64*) ;;
11289      *)
11290	export_dynamic_flag_spec_CXX='${wl}-E'
11291        ;;
11292      esac
11293    fi
11294    case $host_cpu in
11295    hppa*64*|ia64*)
11296      hardcode_direct_CXX=no
11297      hardcode_shlibpath_var_CXX=no
11298      ;;
11299    *)
11300      hardcode_direct_CXX=yes
11301      hardcode_minus_L_CXX=yes # Not in the search PATH,
11302					      # but as the default
11303					      # location of the library.
11304      ;;
11305    esac
11306
11307    case $cc_basename in
11308      CC*)
11309	# FIXME: insert proper C++ library support
11310	ld_shlibs_CXX=no
11311	;;
11312      aCC*)
11313	case $host_cpu in
11314	hppa*64*)
11315	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11316	  ;;
11317	ia64*)
11318	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11319	  ;;
11320	*)
11321	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11322	  ;;
11323	esac
11324	# Commands to make compiler produce verbose output that lists
11325	# what "hidden" libraries, object files and flags are used when
11326	# linking a shared library.
11327	#
11328	# There doesn't appear to be a way to prevent this compiler from
11329	# explicitly linking system object files so we need to strip them
11330	# from the output so that they don't get included in the library
11331	# dependencies.
11332	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11333	;;
11334      *)
11335	if test "$GXX" = yes; then
11336	  if test $with_gnu_ld = no; then
11337	    case $host_cpu in
11338	    hppa*64*)
11339	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11340	      ;;
11341	    ia64*)
11342	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11343	      ;;
11344	    *)
11345	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11346	      ;;
11347	    esac
11348	  fi
11349	else
11350	  # FIXME: insert proper C++ library support
11351	  ld_shlibs_CXX=no
11352	fi
11353	;;
11354    esac
11355    ;;
11356  interix[3-9]*)
11357    hardcode_direct_CXX=no
11358    hardcode_shlibpath_var_CXX=no
11359    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11360    export_dynamic_flag_spec_CXX='${wl}-E'
11361    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11362    # Instead, shared libraries are loaded at an image base (0x10000000 by
11363    # default) and relocated if they conflict, which is a slow very memory
11364    # consuming and fragmenting process.  To avoid this, we pick a random,
11365    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11366    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11367    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11368    archive_expsym_cmds_CXX='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'
11369    ;;
11370  irix5* | irix6*)
11371    case $cc_basename in
11372      CC*)
11373	# SGI C++
11374	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11375
11376	# Archives containing C++ object files must be created using
11377	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11378	# necessary to make sure instantiated templates are included
11379	# in the archive.
11380	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11381	;;
11382      *)
11383	if test "$GXX" = yes; then
11384	  if test "$with_gnu_ld" = no; then
11385	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11386	  else
11387	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11388	  fi
11389	fi
11390	link_all_deplibs_CXX=yes
11391	;;
11392    esac
11393    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11394    hardcode_libdir_separator_CXX=:
11395    ;;
11396  linux* | k*bsd*-gnu)
11397    case $cc_basename in
11398      KCC*)
11399	# Kuck and Associates, Inc. (KAI) C++ Compiler
11400
11401	# KCC will only create a shared library if the output file
11402	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11403	# to its proper name (with version) after linking.
11404	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11405	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11406	# Commands to make compiler produce verbose output that lists
11407	# what "hidden" libraries, object files and flags are used when
11408	# linking a shared library.
11409	#
11410	# There doesn't appear to be a way to prevent this compiler from
11411	# explicitly linking system object files so we need to strip them
11412	# from the output so that they don't get included in the library
11413	# dependencies.
11414	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11415
11416	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11417	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11418
11419	# Archives containing C++ object files must be created using
11420	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11421	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11422	;;
11423      icpc*)
11424	# Intel C++
11425	with_gnu_ld=yes
11426	# version 8.0 and above of icpc choke on multiply defined symbols
11427	# if we add $predep_objects and $postdep_objects, however 7.1 and
11428	# earlier do not add the objects themselves.
11429	case `$CC -V 2>&1` in
11430	*"Version 7."*)
11431  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11432  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11433	  ;;
11434	*)  # Version 8.0 or newer
11435	  tmp_idyn=
11436	  case $host_cpu in
11437	    ia64*) tmp_idyn=' -i_dynamic';;
11438	  esac
11439  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11440	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11441	  ;;
11442	esac
11443	archive_cmds_need_lc_CXX=no
11444	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11445	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11446	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11447	;;
11448      pgCC* | pgcpp*)
11449        # Portland Group C++ compiler
11450	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11451  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11452
11453	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11454	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11455	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11456        ;;
11457      cxx*)
11458	# Compaq C++
11459	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11460	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11461
11462	runpath_var=LD_RUN_PATH
11463	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11464	hardcode_libdir_separator_CXX=:
11465
11466	# Commands to make compiler produce verbose output that lists
11467	# what "hidden" libraries, object files and flags are used when
11468	# linking a shared library.
11469	#
11470	# There doesn't appear to be a way to prevent this compiler from
11471	# explicitly linking system object files so we need to strip them
11472	# from the output so that they don't get included in the library
11473	# dependencies.
11474	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11475	;;
11476      *)
11477	case `$CC -V 2>&1 | sed 5q` in
11478	*Sun\ C*)
11479	  # Sun C++ 5.9
11480	  no_undefined_flag_CXX=' -zdefs'
11481	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11482	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11483	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11484	  whole_archive_flag_spec_CXX='${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'
11485
11486	  # Not sure whether something based on
11487	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11488	  # would be better.
11489	  output_verbose_link_cmd='echo'
11490
11491	  # Archives containing C++ object files must be created using
11492	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11493	  # necessary to make sure instantiated templates are included
11494	  # in the archive.
11495	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11496	  ;;
11497	esac
11498	;;
11499    esac
11500    ;;
11501  lynxos*)
11502    # FIXME: insert proper C++ library support
11503    ld_shlibs_CXX=no
11504    ;;
11505  m88k*)
11506    # FIXME: insert proper C++ library support
11507    ld_shlibs_CXX=no
11508    ;;
11509  mvs*)
11510    case $cc_basename in
11511      cxx*)
11512	# FIXME: insert proper C++ library support
11513	ld_shlibs_CXX=no
11514	;;
11515      *)
11516	# FIXME: insert proper C++ library support
11517	ld_shlibs_CXX=no
11518	;;
11519    esac
11520    ;;
11521  netbsd*)
11522    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11523      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11524      wlarc=
11525      hardcode_libdir_flag_spec_CXX='-R$libdir'
11526      hardcode_direct_CXX=yes
11527      hardcode_shlibpath_var_CXX=no
11528    fi
11529    # Workaround some broken pre-1.5 toolchains
11530    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11531    ;;
11532  openbsd2*)
11533    # C++ shared libraries are fairly broken
11534    ld_shlibs_CXX=no
11535    ;;
11536  openbsd*)
11537    if test -f /usr/libexec/ld.so; then
11538      hardcode_direct_CXX=yes
11539      hardcode_shlibpath_var_CXX=no
11540      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11541      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11542      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11543	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11544	export_dynamic_flag_spec_CXX='${wl}-E'
11545	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11546      fi
11547      output_verbose_link_cmd='echo'
11548    else
11549      ld_shlibs_CXX=no
11550    fi
11551    ;;
11552  osf3*)
11553    case $cc_basename in
11554      KCC*)
11555	# Kuck and Associates, Inc. (KAI) C++ Compiler
11556
11557	# KCC will only create a shared library if the output file
11558	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11559	# to its proper name (with version) after linking.
11560	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11561
11562	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11563	hardcode_libdir_separator_CXX=:
11564
11565	# Archives containing C++ object files must be created using
11566	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11567	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11568
11569	;;
11570      RCC*)
11571	# Rational C++ 2.4.1
11572	# FIXME: insert proper C++ library support
11573	ld_shlibs_CXX=no
11574	;;
11575      cxx*)
11576	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11577	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11578
11579	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11580	hardcode_libdir_separator_CXX=:
11581
11582	# Commands to make compiler produce verbose output that lists
11583	# what "hidden" libraries, object files and flags are used when
11584	# linking a shared library.
11585	#
11586	# There doesn't appear to be a way to prevent this compiler from
11587	# explicitly linking system object files so we need to strip them
11588	# from the output so that they don't get included in the library
11589	# dependencies.
11590	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11591	;;
11592      *)
11593	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11594	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11595	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11596
11597	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11598	  hardcode_libdir_separator_CXX=:
11599
11600	  # Commands to make compiler produce verbose output that lists
11601	  # what "hidden" libraries, object files and flags are used when
11602	  # linking a shared library.
11603	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11604
11605	else
11606	  # FIXME: insert proper C++ library support
11607	  ld_shlibs_CXX=no
11608	fi
11609	;;
11610    esac
11611    ;;
11612  osf4* | osf5*)
11613    case $cc_basename in
11614      KCC*)
11615	# Kuck and Associates, Inc. (KAI) C++ Compiler
11616
11617	# KCC will only create a shared library if the output file
11618	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11619	# to its proper name (with version) after linking.
11620	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11621
11622	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11623	hardcode_libdir_separator_CXX=:
11624
11625	# Archives containing C++ object files must be created using
11626	# the KAI C++ compiler.
11627	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11628	;;
11629      RCC*)
11630	# Rational C++ 2.4.1
11631	# FIXME: insert proper C++ library support
11632	ld_shlibs_CXX=no
11633	;;
11634      cxx*)
11635	allow_undefined_flag_CXX=' -expect_unresolved \*'
11636	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11637	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11638	  echo "-hidden">> $lib.exp~
11639	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11640	  $rm $lib.exp'
11641
11642	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11643	hardcode_libdir_separator_CXX=:
11644
11645	# Commands to make compiler produce verbose output that lists
11646	# what "hidden" libraries, object files and flags are used when
11647	# linking a shared library.
11648	#
11649	# There doesn't appear to be a way to prevent this compiler from
11650	# explicitly linking system object files so we need to strip them
11651	# from the output so that they don't get included in the library
11652	# dependencies.
11653	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11654	;;
11655      *)
11656	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11657	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11658	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11659
11660	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11661	  hardcode_libdir_separator_CXX=:
11662
11663	  # Commands to make compiler produce verbose output that lists
11664	  # what "hidden" libraries, object files and flags are used when
11665	  # linking a shared library.
11666	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11667
11668	else
11669	  # FIXME: insert proper C++ library support
11670	  ld_shlibs_CXX=no
11671	fi
11672	;;
11673    esac
11674    ;;
11675  psos*)
11676    # FIXME: insert proper C++ library support
11677    ld_shlibs_CXX=no
11678    ;;
11679  sunos4*)
11680    case $cc_basename in
11681      CC*)
11682	# Sun C++ 4.x
11683	# FIXME: insert proper C++ library support
11684	ld_shlibs_CXX=no
11685	;;
11686      lcc*)
11687	# Lucid
11688	# FIXME: insert proper C++ library support
11689	ld_shlibs_CXX=no
11690	;;
11691      *)
11692	# FIXME: insert proper C++ library support
11693	ld_shlibs_CXX=no
11694	;;
11695    esac
11696    ;;
11697  solaris*)
11698    case $cc_basename in
11699      CC*)
11700	# Sun C++ 4.2, 5.x and Centerline C++
11701        archive_cmds_need_lc_CXX=yes
11702	no_undefined_flag_CXX=' -zdefs'
11703	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11704	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11705	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11706
11707	hardcode_libdir_flag_spec_CXX='-R$libdir'
11708	hardcode_shlibpath_var_CXX=no
11709	case $host_os in
11710	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11711	  *)
11712	    # The compiler driver will combine and reorder linker options,
11713	    # but understands `-z linker_flag'.
11714	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11715	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11716	    ;;
11717	esac
11718	link_all_deplibs_CXX=yes
11719
11720	output_verbose_link_cmd='echo'
11721
11722	# Archives containing C++ object files must be created using
11723	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11724	# necessary to make sure instantiated templates are included
11725	# in the archive.
11726	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11727	;;
11728      gcx*)
11729	# Green Hills C++ Compiler
11730	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11731
11732	# The C++ compiler must be used to create the archive.
11733	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11734	;;
11735      *)
11736	# GNU C++ compiler with Solaris linker
11737	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11738	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11739	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11740	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11741	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11742		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11743
11744	    # Commands to make compiler produce verbose output that lists
11745	    # what "hidden" libraries, object files and flags are used when
11746	    # linking a shared library.
11747	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11748	  else
11749	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11750	    # platform.
11751	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11752	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11753		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11754
11755	    # Commands to make compiler produce verbose output that lists
11756	    # what "hidden" libraries, object files and flags are used when
11757	    # linking a shared library.
11758	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11759	  fi
11760
11761	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11762	  case $host_os in
11763	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11764	  *)
11765	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11766	    ;;
11767	  esac
11768	fi
11769	;;
11770    esac
11771    ;;
11772  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11773    no_undefined_flag_CXX='${wl}-z,text'
11774    archive_cmds_need_lc_CXX=no
11775    hardcode_shlibpath_var_CXX=no
11776    runpath_var='LD_RUN_PATH'
11777
11778    case $cc_basename in
11779      CC*)
11780	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11781	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11782	;;
11783      *)
11784	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11785	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786	;;
11787    esac
11788    ;;
11789  sysv5* | sco3.2v5* | sco5v6*)
11790    # Note: We can NOT use -z defs as we might desire, because we do not
11791    # link with -lc, and that would cause any symbols used from libc to
11792    # always be unresolved, which means just about no library would
11793    # ever link correctly.  If we're not using GNU ld we use -z text
11794    # though, which does catch some bad symbols but isn't as heavy-handed
11795    # as -z defs.
11796    # For security reasons, it is highly recommended that you always
11797    # use absolute paths for naming shared libraries, and exclude the
11798    # DT_RUNPATH tag from executables and libraries.  But doing so
11799    # requires that you compile everything twice, which is a pain.
11800    # So that behaviour is only enabled if SCOABSPATH is set to a
11801    # non-empty value in the environment.  Most likely only useful for
11802    # creating official distributions of packages.
11803    # This is a hack until libtool officially supports absolute path
11804    # names for shared libraries.
11805    no_undefined_flag_CXX='${wl}-z,text'
11806    allow_undefined_flag_CXX='${wl}-z,nodefs'
11807    archive_cmds_need_lc_CXX=no
11808    hardcode_shlibpath_var_CXX=no
11809    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11810    hardcode_libdir_separator_CXX=':'
11811    link_all_deplibs_CXX=yes
11812    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11813    runpath_var='LD_RUN_PATH'
11814
11815    case $cc_basename in
11816      CC*)
11817	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11818	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11819	;;
11820      *)
11821	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11822	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11823	;;
11824    esac
11825    ;;
11826  tandem*)
11827    case $cc_basename in
11828      NCC*)
11829	# NonStop-UX NCC 3.20
11830	# FIXME: insert proper C++ library support
11831	ld_shlibs_CXX=no
11832	;;
11833      *)
11834	# FIXME: insert proper C++ library support
11835	ld_shlibs_CXX=no
11836	;;
11837    esac
11838    ;;
11839  vxworks*)
11840    # FIXME: insert proper C++ library support
11841    ld_shlibs_CXX=no
11842    ;;
11843  *)
11844    # FIXME: insert proper C++ library support
11845    ld_shlibs_CXX=no
11846    ;;
11847esac
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11849$as_echo "$ld_shlibs_CXX" >&6; }
11850test "$ld_shlibs_CXX" = no && can_build_shared=no
11851
11852GCC_CXX="$GXX"
11853LD_CXX="$LD"
11854
11855## CAVEAT EMPTOR:
11856## There is no encapsulation within the following macros, do not change
11857## the running order or otherwise move them around unless you know exactly
11858## what you are doing...
11859cat > conftest.$ac_ext <<EOF
11860class Foo
11861{
11862public:
11863  Foo (void) { a = 0; }
11864private:
11865  int a;
11866};
11867EOF
11868
11869if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11870  (eval $ac_compile) 2>&5
11871  ac_status=$?
11872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873  test $ac_status = 0; }; then
11874  # Parse the compiler output and extract the necessary
11875  # objects, libraries and library flags.
11876
11877  # Sentinel used to keep track of whether or not we are before
11878  # the conftest object file.
11879  pre_test_object_deps_done=no
11880
11881  # The `*' in the case matches for architectures that use `case' in
11882  # $output_verbose_cmd can trigger glob expansion during the loop
11883  # eval without this substitution.
11884  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11885
11886  for p in `eval $output_verbose_link_cmd`; do
11887    case $p in
11888
11889    -L* | -R* | -l*)
11890       # Some compilers place space between "-{L,R}" and the path.
11891       # Remove the space.
11892       if test $p = "-L" \
11893	  || test $p = "-R"; then
11894	 prev=$p
11895	 continue
11896       else
11897	 prev=
11898       fi
11899
11900       if test "$pre_test_object_deps_done" = no; then
11901	 case $p in
11902	 -L* | -R*)
11903	   # Internal compiler library paths should come after those
11904	   # provided the user.  The postdeps already come after the
11905	   # user supplied libs so there is no need to process them.
11906	   if test -z "$compiler_lib_search_path_CXX"; then
11907	     compiler_lib_search_path_CXX="${prev}${p}"
11908	   else
11909	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11910	   fi
11911	   ;;
11912	 # The "-l" case would never come before the object being
11913	 # linked, so don't bother handling this case.
11914	 esac
11915       else
11916	 if test -z "$postdeps_CXX"; then
11917	   postdeps_CXX="${prev}${p}"
11918	 else
11919	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11920	 fi
11921       fi
11922       ;;
11923
11924    *.$objext)
11925       # This assumes that the test object file only shows up
11926       # once in the compiler output.
11927       if test "$p" = "conftest.$objext"; then
11928	 pre_test_object_deps_done=yes
11929	 continue
11930       fi
11931
11932       if test "$pre_test_object_deps_done" = no; then
11933	 if test -z "$predep_objects_CXX"; then
11934	   predep_objects_CXX="$p"
11935	 else
11936	   predep_objects_CXX="$predep_objects_CXX $p"
11937	 fi
11938       else
11939	 if test -z "$postdep_objects_CXX"; then
11940	   postdep_objects_CXX="$p"
11941	 else
11942	   postdep_objects_CXX="$postdep_objects_CXX $p"
11943	 fi
11944       fi
11945       ;;
11946
11947    *) ;; # Ignore the rest.
11948
11949    esac
11950  done
11951
11952  # Clean up.
11953  rm -f a.out a.exe
11954else
11955  echo "libtool.m4: error: problem compiling CXX test program"
11956fi
11957
11958$rm -f confest.$objext
11959
11960compiler_lib_search_dirs_CXX=
11961if test -n "$compiler_lib_search_path_CXX"; then
11962  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11963fi
11964
11965# PORTME: override above test on systems where it is broken
11966case $host_os in
11967interix[3-9]*)
11968  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11969  # hack all around it, let's just trust "g++" to DTRT.
11970  predep_objects_CXX=
11971  postdep_objects_CXX=
11972  postdeps_CXX=
11973  ;;
11974
11975linux*)
11976  case `$CC -V 2>&1 | sed 5q` in
11977  *Sun\ C*)
11978    # Sun C++ 5.9
11979    #
11980    # The more standards-conforming stlport4 library is
11981    # incompatible with the Cstd library. Avoid specifying
11982    # it if it's in CXXFLAGS. Ignore libCrun as
11983    # -library=stlport4 depends on it.
11984    case " $CXX $CXXFLAGS " in
11985    *" -library=stlport4 "*)
11986      solaris_use_stlport4=yes
11987      ;;
11988    esac
11989    if test "$solaris_use_stlport4" != yes; then
11990      postdeps_CXX='-library=Cstd -library=Crun'
11991    fi
11992    ;;
11993  esac
11994  ;;
11995
11996solaris*)
11997  case $cc_basename in
11998  CC*)
11999    # The more standards-conforming stlport4 library is
12000    # incompatible with the Cstd library. Avoid specifying
12001    # it if it's in CXXFLAGS. Ignore libCrun as
12002    # -library=stlport4 depends on it.
12003    case " $CXX $CXXFLAGS " in
12004    *" -library=stlport4 "*)
12005      solaris_use_stlport4=yes
12006      ;;
12007    esac
12008
12009    # Adding this requires a known-good setup of shared libraries for
12010    # Sun compiler versions before 5.6, else PIC objects from an old
12011    # archive will be linked into the output, leading to subtle bugs.
12012    if test "$solaris_use_stlport4" != yes; then
12013      postdeps_CXX='-library=Cstd -library=Crun'
12014    fi
12015    ;;
12016  esac
12017  ;;
12018esac
12019
12020case " $postdeps_CXX " in
12021*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12022esac
12023
12024lt_prog_compiler_wl_CXX=
12025lt_prog_compiler_pic_CXX=
12026lt_prog_compiler_static_CXX=
12027
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12029$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12030
12031  # C++ specific cases for pic, static, wl, etc.
12032  if test "$GXX" = yes; then
12033    lt_prog_compiler_wl_CXX='-Wl,'
12034    lt_prog_compiler_static_CXX='-static'
12035
12036    case $host_os in
12037    aix*)
12038      # All AIX code is PIC.
12039      if test "$host_cpu" = ia64; then
12040	# AIX 5 now supports IA64 processor
12041	lt_prog_compiler_static_CXX='-Bstatic'
12042      fi
12043      ;;
12044    amigaos*)
12045      # FIXME: we need at least 68020 code to build shared libraries, but
12046      # adding the `-m68020' flag to GCC prevents building anything better,
12047      # like `-m68040'.
12048      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12049      ;;
12050    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12051      # PIC is the default for these OSes.
12052      ;;
12053    mingw* | cygwin* | os2* | pw32*)
12054      # This hack is so that the source file can tell whether it is being
12055      # built for inclusion in a dll (and should export symbols for example).
12056      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12057      # (--disable-auto-import) libraries
12058      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12059      ;;
12060    darwin* | rhapsody*)
12061      # PIC is the default on this platform
12062      # Common symbols not allowed in MH_DYLIB files
12063      lt_prog_compiler_pic_CXX='-fno-common'
12064      ;;
12065    *djgpp*)
12066      # DJGPP does not support shared libraries at all
12067      lt_prog_compiler_pic_CXX=
12068      ;;
12069    interix[3-9]*)
12070      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12071      # Instead, we relocate shared libraries at runtime.
12072      ;;
12073    sysv4*MP*)
12074      if test -d /usr/nec; then
12075	lt_prog_compiler_pic_CXX=-Kconform_pic
12076      fi
12077      ;;
12078    hpux*)
12079      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12080      # not for PA HP-UX.
12081      case $host_cpu in
12082      hppa*64*|ia64*)
12083	;;
12084      *)
12085	lt_prog_compiler_pic_CXX='-fPIC'
12086	;;
12087      esac
12088      ;;
12089    *)
12090      lt_prog_compiler_pic_CXX='-fPIC'
12091      ;;
12092    esac
12093  else
12094    case $host_os in
12095      aix[4-9]*)
12096	# All AIX code is PIC.
12097	if test "$host_cpu" = ia64; then
12098	  # AIX 5 now supports IA64 processor
12099	  lt_prog_compiler_static_CXX='-Bstatic'
12100	else
12101	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12102	fi
12103	;;
12104      chorus*)
12105	case $cc_basename in
12106	cxch68*)
12107	  # Green Hills C++ Compiler
12108	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12109	  ;;
12110	esac
12111	;;
12112       darwin*)
12113         # PIC is the default on this platform
12114         # Common symbols not allowed in MH_DYLIB files
12115         case $cc_basename in
12116           xlc*)
12117           lt_prog_compiler_pic_CXX='-qnocommon'
12118           lt_prog_compiler_wl_CXX='-Wl,'
12119           ;;
12120         esac
12121       ;;
12122      dgux*)
12123	case $cc_basename in
12124	  ec++*)
12125	    lt_prog_compiler_pic_CXX='-KPIC'
12126	    ;;
12127	  ghcx*)
12128	    # Green Hills C++ Compiler
12129	    lt_prog_compiler_pic_CXX='-pic'
12130	    ;;
12131	  *)
12132	    ;;
12133	esac
12134	;;
12135      freebsd* | dragonfly*)
12136	# FreeBSD uses GNU C++
12137	;;
12138      hpux9* | hpux10* | hpux11*)
12139	case $cc_basename in
12140	  CC*)
12141	    lt_prog_compiler_wl_CXX='-Wl,'
12142	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12143	    if test "$host_cpu" != ia64; then
12144	      lt_prog_compiler_pic_CXX='+Z'
12145	    fi
12146	    ;;
12147	  aCC*)
12148	    lt_prog_compiler_wl_CXX='-Wl,'
12149	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12150	    case $host_cpu in
12151	    hppa*64*|ia64*)
12152	      # +Z the default
12153	      ;;
12154	    *)
12155	      lt_prog_compiler_pic_CXX='+Z'
12156	      ;;
12157	    esac
12158	    ;;
12159	  *)
12160	    ;;
12161	esac
12162	;;
12163      interix*)
12164	# This is c89, which is MS Visual C++ (no shared libs)
12165	# Anyone wants to do a port?
12166	;;
12167      irix5* | irix6* | nonstopux*)
12168	case $cc_basename in
12169	  CC*)
12170	    lt_prog_compiler_wl_CXX='-Wl,'
12171	    lt_prog_compiler_static_CXX='-non_shared'
12172	    # CC pic flag -KPIC is the default.
12173	    ;;
12174	  *)
12175	    ;;
12176	esac
12177	;;
12178      linux* | k*bsd*-gnu)
12179	case $cc_basename in
12180	  KCC*)
12181	    # KAI C++ Compiler
12182	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12183	    lt_prog_compiler_pic_CXX='-fPIC'
12184	    ;;
12185	  icpc* | ecpc*)
12186	    # Intel C++
12187	    lt_prog_compiler_wl_CXX='-Wl,'
12188	    lt_prog_compiler_pic_CXX='-KPIC'
12189	    lt_prog_compiler_static_CXX='-static'
12190	    ;;
12191	  pgCC* | pgcpp*)
12192	    # Portland Group C++ compiler.
12193	    lt_prog_compiler_wl_CXX='-Wl,'
12194	    lt_prog_compiler_pic_CXX='-fpic'
12195	    lt_prog_compiler_static_CXX='-Bstatic'
12196	    ;;
12197	  cxx*)
12198	    # Compaq C++
12199	    # Make sure the PIC flag is empty.  It appears that all Alpha
12200	    # Linux and Compaq Tru64 Unix objects are PIC.
12201	    lt_prog_compiler_pic_CXX=
12202	    lt_prog_compiler_static_CXX='-non_shared'
12203	    ;;
12204	  *)
12205	    case `$CC -V 2>&1 | sed 5q` in
12206	    *Sun\ C*)
12207	      # Sun C++ 5.9
12208	      lt_prog_compiler_pic_CXX='-KPIC'
12209	      lt_prog_compiler_static_CXX='-Bstatic'
12210	      lt_prog_compiler_wl_CXX='-Qoption ld '
12211	      ;;
12212	    esac
12213	    ;;
12214	esac
12215	;;
12216      lynxos*)
12217	;;
12218      m88k*)
12219	;;
12220      mvs*)
12221	case $cc_basename in
12222	  cxx*)
12223	    lt_prog_compiler_pic_CXX='-W c,exportall'
12224	    ;;
12225	  *)
12226	    ;;
12227	esac
12228	;;
12229      netbsd*)
12230	;;
12231      osf3* | osf4* | osf5*)
12232	case $cc_basename in
12233	  KCC*)
12234	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12235	    ;;
12236	  RCC*)
12237	    # Rational C++ 2.4.1
12238	    lt_prog_compiler_pic_CXX='-pic'
12239	    ;;
12240	  cxx*)
12241	    # Digital/Compaq C++
12242	    lt_prog_compiler_wl_CXX='-Wl,'
12243	    # Make sure the PIC flag is empty.  It appears that all Alpha
12244	    # Linux and Compaq Tru64 Unix objects are PIC.
12245	    lt_prog_compiler_pic_CXX=
12246	    lt_prog_compiler_static_CXX='-non_shared'
12247	    ;;
12248	  *)
12249	    ;;
12250	esac
12251	;;
12252      psos*)
12253	;;
12254      solaris*)
12255	case $cc_basename in
12256	  CC*)
12257	    # Sun C++ 4.2, 5.x and Centerline C++
12258	    lt_prog_compiler_pic_CXX='-KPIC'
12259	    lt_prog_compiler_static_CXX='-Bstatic'
12260	    lt_prog_compiler_wl_CXX='-Qoption ld '
12261	    ;;
12262	  gcx*)
12263	    # Green Hills C++ Compiler
12264	    lt_prog_compiler_pic_CXX='-PIC'
12265	    ;;
12266	  *)
12267	    ;;
12268	esac
12269	;;
12270      sunos4*)
12271	case $cc_basename in
12272	  CC*)
12273	    # Sun C++ 4.x
12274	    lt_prog_compiler_pic_CXX='-pic'
12275	    lt_prog_compiler_static_CXX='-Bstatic'
12276	    ;;
12277	  lcc*)
12278	    # Lucid
12279	    lt_prog_compiler_pic_CXX='-pic'
12280	    ;;
12281	  *)
12282	    ;;
12283	esac
12284	;;
12285      tandem*)
12286	case $cc_basename in
12287	  NCC*)
12288	    # NonStop-UX NCC 3.20
12289	    lt_prog_compiler_pic_CXX='-KPIC'
12290	    ;;
12291	  *)
12292	    ;;
12293	esac
12294	;;
12295      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12296	case $cc_basename in
12297	  CC*)
12298	    lt_prog_compiler_wl_CXX='-Wl,'
12299	    lt_prog_compiler_pic_CXX='-KPIC'
12300	    lt_prog_compiler_static_CXX='-Bstatic'
12301	    ;;
12302	esac
12303	;;
12304      vxworks*)
12305	;;
12306      *)
12307	lt_prog_compiler_can_build_shared_CXX=no
12308	;;
12309    esac
12310  fi
12311
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12313$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12314
12315#
12316# Check to make sure the PIC flag actually works.
12317#
12318if test -n "$lt_prog_compiler_pic_CXX"; then
12319
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12321$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12322if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12323  $as_echo_n "(cached) " >&6
12324else
12325  lt_cv_prog_compiler_pic_works_CXX=no
12326  ac_outfile=conftest.$ac_objext
12327   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12328   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12329   # Insert the option either (1) after the last *FLAGS variable, or
12330   # (2) before a word containing "conftest.", or (3) at the end.
12331   # Note that $ac_compile itself does not contain backslashes and begins
12332   # with a dollar sign (not a hyphen), so the echo should work correctly.
12333   # The option is referenced via a variable to avoid confusing sed.
12334   lt_compile=`echo "$ac_compile" | $SED \
12335   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12336   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12337   -e 's:$: $lt_compiler_flag:'`
12338   (eval echo "\"\$as_me:12338: $lt_compile\"" >&5)
12339   (eval "$lt_compile" 2>conftest.err)
12340   ac_status=$?
12341   cat conftest.err >&5
12342   echo "$as_me:12342: \$? = $ac_status" >&5
12343   if (exit $ac_status) && test -s "$ac_outfile"; then
12344     # The compiler can only warn and ignore the option if not recognized
12345     # So say no if there are warnings other than the usual output.
12346     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12347     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12348     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12349       lt_cv_prog_compiler_pic_works_CXX=yes
12350     fi
12351   fi
12352   $rm conftest*
12353
12354fi
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12356$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12357
12358if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12359    case $lt_prog_compiler_pic_CXX in
12360     "" | " "*) ;;
12361     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12362     esac
12363else
12364    lt_prog_compiler_pic_CXX=
12365     lt_prog_compiler_can_build_shared_CXX=no
12366fi
12367
12368fi
12369case $host_os in
12370  # For platforms which do not support PIC, -DPIC is meaningless:
12371  *djgpp*)
12372    lt_prog_compiler_pic_CXX=
12373    ;;
12374  *)
12375    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12376    ;;
12377esac
12378
12379#
12380# Check to make sure the static flag actually works.
12381#
12382wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12384$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12385if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12386  $as_echo_n "(cached) " >&6
12387else
12388  lt_cv_prog_compiler_static_works_CXX=no
12389   save_LDFLAGS="$LDFLAGS"
12390   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12391   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12392   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12393     # The linker can only warn and ignore the option if not recognized
12394     # So say no if there are warnings
12395     if test -s conftest.err; then
12396       # Append any errors to the config.log.
12397       cat conftest.err 1>&5
12398       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12399       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400       if diff conftest.exp conftest.er2 >/dev/null; then
12401         lt_cv_prog_compiler_static_works_CXX=yes
12402       fi
12403     else
12404       lt_cv_prog_compiler_static_works_CXX=yes
12405     fi
12406   fi
12407   $rm -r conftest*
12408   LDFLAGS="$save_LDFLAGS"
12409
12410fi
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12412$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12413
12414if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12415    :
12416else
12417    lt_prog_compiler_static_CXX=
12418fi
12419
12420
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12422$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12423if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12424  $as_echo_n "(cached) " >&6
12425else
12426  lt_cv_prog_compiler_c_o_CXX=no
12427   $rm -r conftest 2>/dev/null
12428   mkdir conftest
12429   cd conftest
12430   mkdir out
12431   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12432
12433   lt_compiler_flag="-o out/conftest2.$ac_objext"
12434   # Insert the option either (1) after the last *FLAGS variable, or
12435   # (2) before a word containing "conftest.", or (3) at the end.
12436   # Note that $ac_compile itself does not contain backslashes and begins
12437   # with a dollar sign (not a hyphen), so the echo should work correctly.
12438   lt_compile=`echo "$ac_compile" | $SED \
12439   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441   -e 's:$: $lt_compiler_flag:'`
12442   (eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
12443   (eval "$lt_compile" 2>out/conftest.err)
12444   ac_status=$?
12445   cat out/conftest.err >&5
12446   echo "$as_me:12446: \$? = $ac_status" >&5
12447   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12448   then
12449     # The compiler can only warn and ignore the option if not recognized
12450     # So say no if there are warnings
12451     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12452     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12453     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12454       lt_cv_prog_compiler_c_o_CXX=yes
12455     fi
12456   fi
12457   chmod u+w . 2>&5
12458   $rm conftest*
12459   # SGI C++ compiler will create directory out/ii_files/ for
12460   # template instantiation
12461   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12462   $rm out/* && rmdir out
12463   cd ..
12464   rmdir conftest
12465   $rm conftest*
12466
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12469$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12470
12471
12472hard_links="nottested"
12473if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12474  # do not overwrite the value of need_locks provided by the user
12475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12476$as_echo_n "checking if we can lock with hard links... " >&6; }
12477  hard_links=yes
12478  $rm conftest*
12479  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12480  touch conftest.a
12481  ln conftest.a conftest.b 2>&5 || hard_links=no
12482  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12484$as_echo "$hard_links" >&6; }
12485  if test "$hard_links" = no; then
12486    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12487$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12488    need_locks=warn
12489  fi
12490else
12491  need_locks=no
12492fi
12493
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12495$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12496
12497  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12498  case $host_os in
12499  aix[4-9]*)
12500    # If we're using GNU nm, then we don't want the "-C" option.
12501    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12502    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12503      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12504    else
12505      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12506    fi
12507    ;;
12508  pw32*)
12509    export_symbols_cmds_CXX="$ltdll_cmds"
12510  ;;
12511  cygwin* | mingw*)
12512    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12513  ;;
12514  *)
12515    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12516  ;;
12517  esac
12518  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12519
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12521$as_echo "$ld_shlibs_CXX" >&6; }
12522test "$ld_shlibs_CXX" = no && can_build_shared=no
12523
12524#
12525# Do we need to explicitly link libc?
12526#
12527case "x$archive_cmds_need_lc_CXX" in
12528x|xyes)
12529  # Assume -lc should be added
12530  archive_cmds_need_lc_CXX=yes
12531
12532  if test "$enable_shared" = yes && test "$GCC" = yes; then
12533    case $archive_cmds_CXX in
12534    *'~'*)
12535      # FIXME: we may have to deal with multi-command sequences.
12536      ;;
12537    '$CC '*)
12538      # Test whether the compiler implicitly links with -lc since on some
12539      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12540      # to ld, don't add -lc before -lgcc.
12541      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12542$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12543      $rm conftest*
12544      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12545
12546      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12547  (eval $ac_compile) 2>&5
12548  ac_status=$?
12549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550  test $ac_status = 0; } 2>conftest.err; then
12551        soname=conftest
12552        lib=conftest
12553        libobjs=conftest.$ac_objext
12554        deplibs=
12555        wl=$lt_prog_compiler_wl_CXX
12556	pic_flag=$lt_prog_compiler_pic_CXX
12557        compiler_flags=-v
12558        linker_flags=-v
12559        verstring=
12560        output_objdir=.
12561        libname=conftest
12562        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12563        allow_undefined_flag_CXX=
12564        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12565  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12566  ac_status=$?
12567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12568  test $ac_status = 0; }
12569        then
12570	  archive_cmds_need_lc_CXX=no
12571        else
12572	  archive_cmds_need_lc_CXX=yes
12573        fi
12574        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12575      else
12576        cat conftest.err 1>&5
12577      fi
12578      $rm conftest*
12579      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12580$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12581      ;;
12582    esac
12583  fi
12584  ;;
12585esac
12586
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12588$as_echo_n "checking dynamic linker characteristics... " >&6; }
12589library_names_spec=
12590libname_spec='lib$name'
12591soname_spec=
12592shrext_cmds=".so"
12593postinstall_cmds=
12594postuninstall_cmds=
12595finish_cmds=
12596finish_eval=
12597shlibpath_var=
12598shlibpath_overrides_runpath=unknown
12599version_type=none
12600dynamic_linker="$host_os ld.so"
12601sys_lib_dlsearch_path_spec="/lib /usr/lib"
12602
12603need_lib_prefix=unknown
12604hardcode_into_libs=no
12605
12606# when you set need_version to no, make sure it does not cause -set_version
12607# flags to be left without arguments
12608need_version=unknown
12609
12610case $host_os in
12611aix3*)
12612  version_type=linux
12613  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12614  shlibpath_var=LIBPATH
12615
12616  # AIX 3 has no versioning support, so we append a major version to the name.
12617  soname_spec='${libname}${release}${shared_ext}$major'
12618  ;;
12619
12620aix[4-9]*)
12621  version_type=linux
12622  need_lib_prefix=no
12623  need_version=no
12624  hardcode_into_libs=yes
12625  if test "$host_cpu" = ia64; then
12626    # AIX 5 supports IA64
12627    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12628    shlibpath_var=LD_LIBRARY_PATH
12629  else
12630    # With GCC up to 2.95.x, collect2 would create an import file
12631    # for dependence libraries.  The import file would start with
12632    # the line `#! .'.  This would cause the generated library to
12633    # depend on `.', always an invalid library.  This was fixed in
12634    # development snapshots of GCC prior to 3.0.
12635    case $host_os in
12636      aix4 | aix4.[01] | aix4.[01].*)
12637      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12638	   echo ' yes '
12639	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12640	:
12641      else
12642	can_build_shared=no
12643      fi
12644      ;;
12645    esac
12646    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12647    # soname into executable. Probably we can add versioning support to
12648    # collect2, so additional links can be useful in future.
12649    if test "$aix_use_runtimelinking" = yes; then
12650      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12651      # instead of lib<name>.a to let people know that these are not
12652      # typical AIX shared libraries.
12653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654    else
12655      # We preserve .a as extension for shared libraries through AIX4.2
12656      # and later when we are not doing run time linking.
12657      library_names_spec='${libname}${release}.a $libname.a'
12658      soname_spec='${libname}${release}${shared_ext}$major'
12659    fi
12660    shlibpath_var=LIBPATH
12661  fi
12662  ;;
12663
12664amigaos*)
12665  library_names_spec='$libname.ixlibrary $libname.a'
12666  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12667  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12668  ;;
12669
12670beos*)
12671  library_names_spec='${libname}${shared_ext}'
12672  dynamic_linker="$host_os ld.so"
12673  shlibpath_var=LIBRARY_PATH
12674  ;;
12675
12676bsdi[45]*)
12677  version_type=linux
12678  need_version=no
12679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12680  soname_spec='${libname}${release}${shared_ext}$major'
12681  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12682  shlibpath_var=LD_LIBRARY_PATH
12683  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12684  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12685  # the default ld.so.conf also contains /usr/contrib/lib and
12686  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12687  # libtool to hard-code these into programs
12688  ;;
12689
12690cygwin* | mingw* | pw32*)
12691  version_type=windows
12692  shrext_cmds=".dll"
12693  need_version=no
12694  need_lib_prefix=no
12695
12696  case $GCC,$host_os in
12697  yes,cygwin* | yes,mingw* | yes,pw32*)
12698    library_names_spec='$libname.dll.a'
12699    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12700    postinstall_cmds='base_file=`basename \${file}`~
12701      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12702      dldir=$destdir/`dirname \$dlpath`~
12703      test -d \$dldir || mkdir -p \$dldir~
12704      $install_prog $dir/$dlname \$dldir/$dlname~
12705      chmod a+x \$dldir/$dlname'
12706    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12707      dlpath=$dir/\$dldll~
12708       $rm \$dlpath'
12709    shlibpath_overrides_runpath=yes
12710
12711    case $host_os in
12712    cygwin*)
12713      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12714      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12715      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12716      ;;
12717    mingw*)
12718      # MinGW DLLs use traditional 'lib' prefix
12719      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12720      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12721      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12722        # It is most probably a Windows format PATH printed by
12723        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12724        # path with ; separators, and with drive letters. We can handle the
12725        # drive letters (cygwin fileutils understands them), so leave them,
12726        # especially as we might pass files found there to a mingw objdump,
12727        # which wouldn't understand a cygwinified path. Ahh.
12728        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12729      else
12730        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12731      fi
12732      ;;
12733    pw32*)
12734      # pw32 DLLs use 'pw' prefix rather than 'lib'
12735      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12736      ;;
12737    esac
12738    ;;
12739
12740  *)
12741    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12742    ;;
12743  esac
12744  dynamic_linker='Win32 ld.exe'
12745  # FIXME: first we should search . and the directory the executable is in
12746  shlibpath_var=PATH
12747  ;;
12748
12749darwin* | rhapsody*)
12750  dynamic_linker="$host_os dyld"
12751  version_type=darwin
12752  need_lib_prefix=no
12753  need_version=no
12754  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12755  soname_spec='${libname}${release}${major}$shared_ext'
12756  shlibpath_overrides_runpath=yes
12757  shlibpath_var=DYLD_LIBRARY_PATH
12758  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12759
12760  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12761  ;;
12762
12763dgux*)
12764  version_type=linux
12765  need_lib_prefix=no
12766  need_version=no
12767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12768  soname_spec='${libname}${release}${shared_ext}$major'
12769  shlibpath_var=LD_LIBRARY_PATH
12770  ;;
12771
12772freebsd1*)
12773  dynamic_linker=no
12774  ;;
12775
12776freebsd* | dragonfly*)
12777  # DragonFly does not have aout.  When/if they implement a new
12778  # versioning mechanism, adjust this.
12779  if test -x /usr/bin/objformat; then
12780    objformat=`/usr/bin/objformat`
12781  else
12782    case $host_os in
12783    freebsd[123]*) objformat=aout ;;
12784    *) objformat=elf ;;
12785    esac
12786  fi
12787  version_type=freebsd-$objformat
12788  case $version_type in
12789    freebsd-elf*)
12790      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12791      need_version=no
12792      need_lib_prefix=no
12793      ;;
12794    freebsd-*)
12795      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12796      need_version=yes
12797      ;;
12798  esac
12799  shlibpath_var=LD_LIBRARY_PATH
12800  case $host_os in
12801  freebsd2*)
12802    shlibpath_overrides_runpath=yes
12803    ;;
12804  freebsd3.[01]* | freebsdelf3.[01]*)
12805    shlibpath_overrides_runpath=yes
12806    hardcode_into_libs=yes
12807    ;;
12808  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12809  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12810    shlibpath_overrides_runpath=no
12811    hardcode_into_libs=yes
12812    ;;
12813  *) # from 4.6 on, and DragonFly
12814    shlibpath_overrides_runpath=yes
12815    hardcode_into_libs=yes
12816    ;;
12817  esac
12818  ;;
12819
12820gnu*)
12821  version_type=linux
12822  need_lib_prefix=no
12823  need_version=no
12824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12825  soname_spec='${libname}${release}${shared_ext}$major'
12826  shlibpath_var=LD_LIBRARY_PATH
12827  hardcode_into_libs=yes
12828  ;;
12829
12830hpux9* | hpux10* | hpux11*)
12831  # Give a soname corresponding to the major version so that dld.sl refuses to
12832  # link against other versions.
12833  version_type=sunos
12834  need_lib_prefix=no
12835  need_version=no
12836  case $host_cpu in
12837  ia64*)
12838    shrext_cmds='.so'
12839    hardcode_into_libs=yes
12840    dynamic_linker="$host_os dld.so"
12841    shlibpath_var=LD_LIBRARY_PATH
12842    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12843    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844    soname_spec='${libname}${release}${shared_ext}$major'
12845    if test "X$HPUX_IA64_MODE" = X32; then
12846      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12847    else
12848      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12849    fi
12850    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12851    ;;
12852   hppa*64*)
12853     shrext_cmds='.sl'
12854     hardcode_into_libs=yes
12855     dynamic_linker="$host_os dld.sl"
12856     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12857     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12859     soname_spec='${libname}${release}${shared_ext}$major'
12860     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12861     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12862     ;;
12863   *)
12864    shrext_cmds='.sl'
12865    dynamic_linker="$host_os dld.sl"
12866    shlibpath_var=SHLIB_PATH
12867    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12868    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12869    soname_spec='${libname}${release}${shared_ext}$major'
12870    ;;
12871  esac
12872  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12873  postinstall_cmds='chmod 555 $lib'
12874  ;;
12875
12876interix[3-9]*)
12877  version_type=linux
12878  need_lib_prefix=no
12879  need_version=no
12880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12881  soname_spec='${libname}${release}${shared_ext}$major'
12882  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12883  shlibpath_var=LD_LIBRARY_PATH
12884  shlibpath_overrides_runpath=no
12885  hardcode_into_libs=yes
12886  ;;
12887
12888irix5* | irix6* | nonstopux*)
12889  case $host_os in
12890    nonstopux*) version_type=nonstopux ;;
12891    *)
12892	if test "$lt_cv_prog_gnu_ld" = yes; then
12893		version_type=linux
12894	else
12895		version_type=irix
12896	fi ;;
12897  esac
12898  need_lib_prefix=no
12899  need_version=no
12900  soname_spec='${libname}${release}${shared_ext}$major'
12901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12902  case $host_os in
12903  irix5* | nonstopux*)
12904    libsuff= shlibsuff=
12905    ;;
12906  *)
12907    case $LD in # libtool.m4 will add one of these switches to LD
12908    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12909      libsuff= shlibsuff= libmagic=32-bit;;
12910    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12911      libsuff=32 shlibsuff=N32 libmagic=N32;;
12912    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12913      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12914    *) libsuff= shlibsuff= libmagic=never-match;;
12915    esac
12916    ;;
12917  esac
12918  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12919  shlibpath_overrides_runpath=no
12920  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12921  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12922  hardcode_into_libs=yes
12923  ;;
12924
12925# No shared lib support for Linux oldld, aout, or coff.
12926linux*oldld* | linux*aout* | linux*coff*)
12927  dynamic_linker=no
12928  ;;
12929
12930# This must be Linux ELF.
12931linux* | k*bsd*-gnu)
12932  version_type=linux
12933  need_lib_prefix=no
12934  need_version=no
12935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936  soname_spec='${libname}${release}${shared_ext}$major'
12937  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12938  shlibpath_var=LD_LIBRARY_PATH
12939  shlibpath_overrides_runpath=no
12940  # This implies no fast_install, which is unacceptable.
12941  # Some rework will be needed to allow for fast_install
12942  # before this can be enabled.
12943  hardcode_into_libs=yes
12944
12945  # Append ld.so.conf contents to the search path
12946  if test -f /etc/ld.so.conf; then
12947    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12948    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12949  fi
12950
12951  # We used to test for /lib/ld.so.1 and disable shared libraries on
12952  # powerpc, because MkLinux only supported shared libraries with the
12953  # GNU dynamic linker.  Since this was broken with cross compilers,
12954  # most powerpc-linux boxes support dynamic linking these days and
12955  # people can always --disable-shared, the test was removed, and we
12956  # assume the GNU/Linux dynamic linker is in use.
12957  dynamic_linker='GNU/Linux ld.so'
12958  ;;
12959
12960netbsd*)
12961  version_type=sunos
12962  need_lib_prefix=no
12963  need_version=no
12964  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12965    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12967    dynamic_linker='NetBSD (a.out) ld.so'
12968  else
12969    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12970    soname_spec='${libname}${release}${shared_ext}$major'
12971    dynamic_linker='NetBSD ld.elf_so'
12972  fi
12973  shlibpath_var=LD_LIBRARY_PATH
12974  shlibpath_overrides_runpath=yes
12975  hardcode_into_libs=yes
12976  ;;
12977
12978newsos6)
12979  version_type=linux
12980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981  shlibpath_var=LD_LIBRARY_PATH
12982  shlibpath_overrides_runpath=yes
12983  ;;
12984
12985nto-qnx*)
12986  version_type=linux
12987  need_lib_prefix=no
12988  need_version=no
12989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990  soname_spec='${libname}${release}${shared_ext}$major'
12991  shlibpath_var=LD_LIBRARY_PATH
12992  shlibpath_overrides_runpath=yes
12993  ;;
12994
12995openbsd*)
12996  version_type=sunos
12997  sys_lib_dlsearch_path_spec="/usr/lib"
12998  need_lib_prefix=no
12999  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13000  case $host_os in
13001    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13002    *)                         need_version=no  ;;
13003  esac
13004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13005  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13006  shlibpath_var=LD_LIBRARY_PATH
13007  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13008    case $host_os in
13009      openbsd2.[89] | openbsd2.[89].*)
13010	shlibpath_overrides_runpath=no
13011	;;
13012      *)
13013	shlibpath_overrides_runpath=yes
13014	;;
13015      esac
13016  else
13017    shlibpath_overrides_runpath=yes
13018  fi
13019  ;;
13020
13021os2*)
13022  libname_spec='$name'
13023  shrext_cmds=".dll"
13024  need_lib_prefix=no
13025  library_names_spec='$libname${shared_ext} $libname.a'
13026  dynamic_linker='OS/2 ld.exe'
13027  shlibpath_var=LIBPATH
13028  ;;
13029
13030osf3* | osf4* | osf5*)
13031  version_type=osf
13032  need_lib_prefix=no
13033  need_version=no
13034  soname_spec='${libname}${release}${shared_ext}$major'
13035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13036  shlibpath_var=LD_LIBRARY_PATH
13037  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13038  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13039  ;;
13040
13041rdos*)
13042  dynamic_linker=no
13043  ;;
13044
13045solaris*)
13046  version_type=linux
13047  need_lib_prefix=no
13048  need_version=no
13049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050  soname_spec='${libname}${release}${shared_ext}$major'
13051  shlibpath_var=LD_LIBRARY_PATH
13052  shlibpath_overrides_runpath=yes
13053  hardcode_into_libs=yes
13054  # ldd complains unless libraries are executable
13055  postinstall_cmds='chmod +x $lib'
13056  ;;
13057
13058sunos4*)
13059  version_type=sunos
13060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13061  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13062  shlibpath_var=LD_LIBRARY_PATH
13063  shlibpath_overrides_runpath=yes
13064  if test "$with_gnu_ld" = yes; then
13065    need_lib_prefix=no
13066  fi
13067  need_version=yes
13068  ;;
13069
13070sysv4 | sysv4.3*)
13071  version_type=linux
13072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073  soname_spec='${libname}${release}${shared_ext}$major'
13074  shlibpath_var=LD_LIBRARY_PATH
13075  case $host_vendor in
13076    sni)
13077      shlibpath_overrides_runpath=no
13078      need_lib_prefix=no
13079      export_dynamic_flag_spec='${wl}-Blargedynsym'
13080      runpath_var=LD_RUN_PATH
13081      ;;
13082    siemens)
13083      need_lib_prefix=no
13084      ;;
13085    motorola)
13086      need_lib_prefix=no
13087      need_version=no
13088      shlibpath_overrides_runpath=no
13089      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13090      ;;
13091  esac
13092  ;;
13093
13094sysv4*MP*)
13095  if test -d /usr/nec ;then
13096    version_type=linux
13097    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13098    soname_spec='$libname${shared_ext}.$major'
13099    shlibpath_var=LD_LIBRARY_PATH
13100  fi
13101  ;;
13102
13103sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13104  version_type=freebsd-elf
13105  need_lib_prefix=no
13106  need_version=no
13107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13108  soname_spec='${libname}${release}${shared_ext}$major'
13109  shlibpath_var=LD_LIBRARY_PATH
13110  hardcode_into_libs=yes
13111  if test "$with_gnu_ld" = yes; then
13112    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13113    shlibpath_overrides_runpath=no
13114  else
13115    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13116    shlibpath_overrides_runpath=yes
13117    case $host_os in
13118      sco3.2v5*)
13119        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13120	;;
13121    esac
13122  fi
13123  sys_lib_dlsearch_path_spec='/usr/lib'
13124  ;;
13125
13126uts4*)
13127  version_type=linux
13128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13129  soname_spec='${libname}${release}${shared_ext}$major'
13130  shlibpath_var=LD_LIBRARY_PATH
13131  ;;
13132
13133*)
13134  dynamic_linker=no
13135  ;;
13136esac
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13138$as_echo "$dynamic_linker" >&6; }
13139test "$dynamic_linker" = no && can_build_shared=no
13140
13141if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
13142  $as_echo_n "(cached) " >&6
13143else
13144  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13145fi
13146
13147sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13148if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
13149  $as_echo_n "(cached) " >&6
13150else
13151  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13152fi
13153
13154sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13155
13156variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13157if test "$GCC" = yes; then
13158  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13159fi
13160
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13162$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13163hardcode_action_CXX=
13164if test -n "$hardcode_libdir_flag_spec_CXX" || \
13165   test -n "$runpath_var_CXX" || \
13166   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13167
13168  # We can hardcode non-existant directories.
13169  if test "$hardcode_direct_CXX" != no &&
13170     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13171     # have to relink, otherwise we might link with an installed library
13172     # when we should be linking with a yet-to-be-installed one
13173     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13174     test "$hardcode_minus_L_CXX" != no; then
13175    # Linking always hardcodes the temporary library directory.
13176    hardcode_action_CXX=relink
13177  else
13178    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13179    hardcode_action_CXX=immediate
13180  fi
13181else
13182  # We cannot hardcode anything, or else we can only hardcode existing
13183  # directories.
13184  hardcode_action_CXX=unsupported
13185fi
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13187$as_echo "$hardcode_action_CXX" >&6; }
13188
13189if test "$hardcode_action_CXX" = relink; then
13190  # Fast installation is not supported
13191  enable_fast_install=no
13192elif test "$shlibpath_overrides_runpath" = yes ||
13193     test "$enable_shared" = no; then
13194  # Fast installation is not necessary
13195  enable_fast_install=needless
13196fi
13197
13198
13199# The else clause should only fire when bootstrapping the
13200# libtool distribution, otherwise you forgot to ship ltmain.sh
13201# with your package, and you will get complaints that there are
13202# no rules to generate ltmain.sh.
13203if test -f "$ltmain"; then
13204  # See if we are running on zsh, and set the options which allow our commands through
13205  # without removal of \ escapes.
13206  if test -n "${ZSH_VERSION+set}" ; then
13207    setopt NO_GLOB_SUBST
13208  fi
13209  # Now quote all the things that may contain metacharacters while being
13210  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13211  # variables and quote the copies for generation of the libtool script.
13212  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13213    SED SHELL STRIP \
13214    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13215    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13216    deplibs_check_method reload_flag reload_cmds need_locks \
13217    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13218    lt_cv_sys_global_symbol_to_c_name_address \
13219    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13220    old_postinstall_cmds old_postuninstall_cmds \
13221    compiler_CXX \
13222    CC_CXX \
13223    LD_CXX \
13224    lt_prog_compiler_wl_CXX \
13225    lt_prog_compiler_pic_CXX \
13226    lt_prog_compiler_static_CXX \
13227    lt_prog_compiler_no_builtin_flag_CXX \
13228    export_dynamic_flag_spec_CXX \
13229    thread_safe_flag_spec_CXX \
13230    whole_archive_flag_spec_CXX \
13231    enable_shared_with_static_runtimes_CXX \
13232    old_archive_cmds_CXX \
13233    old_archive_from_new_cmds_CXX \
13234    predep_objects_CXX \
13235    postdep_objects_CXX \
13236    predeps_CXX \
13237    postdeps_CXX \
13238    compiler_lib_search_path_CXX \
13239    compiler_lib_search_dirs_CXX \
13240    archive_cmds_CXX \
13241    archive_expsym_cmds_CXX \
13242    postinstall_cmds_CXX \
13243    postuninstall_cmds_CXX \
13244    old_archive_from_expsyms_cmds_CXX \
13245    allow_undefined_flag_CXX \
13246    no_undefined_flag_CXX \
13247    export_symbols_cmds_CXX \
13248    hardcode_libdir_flag_spec_CXX \
13249    hardcode_libdir_flag_spec_ld_CXX \
13250    hardcode_libdir_separator_CXX \
13251    hardcode_automatic_CXX \
13252    module_cmds_CXX \
13253    module_expsym_cmds_CXX \
13254    lt_cv_prog_compiler_c_o_CXX \
13255    fix_srcfile_path_CXX \
13256    exclude_expsyms_CXX \
13257    include_expsyms_CXX; do
13258
13259    case $var in
13260    old_archive_cmds_CXX | \
13261    old_archive_from_new_cmds_CXX | \
13262    archive_cmds_CXX | \
13263    archive_expsym_cmds_CXX | \
13264    module_cmds_CXX | \
13265    module_expsym_cmds_CXX | \
13266    old_archive_from_expsyms_cmds_CXX | \
13267    export_symbols_cmds_CXX | \
13268    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13269    postinstall_cmds | postuninstall_cmds | \
13270    old_postinstall_cmds | old_postuninstall_cmds | \
13271    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13272      # Double-quote double-evaled strings.
13273      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13274      ;;
13275    *)
13276      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13277      ;;
13278    esac
13279  done
13280
13281  case $lt_echo in
13282  *'\$0 --fallback-echo"')
13283    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13284    ;;
13285  esac
13286
13287cfgfile="$ofile"
13288
13289  cat <<__EOF__ >> "$cfgfile"
13290# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13291
13292# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13293
13294# Shell to use when invoking shell scripts.
13295SHELL=$lt_SHELL
13296
13297# Whether or not to build shared libraries.
13298build_libtool_libs=$enable_shared
13299
13300# Whether or not to build static libraries.
13301build_old_libs=$enable_static
13302
13303# Whether or not to add -lc for building shared libraries.
13304build_libtool_need_lc=$archive_cmds_need_lc_CXX
13305
13306# Whether or not to disallow shared libs when runtime libs are static
13307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13308
13309# Whether or not to optimize for fast installation.
13310fast_install=$enable_fast_install
13311
13312# The host system.
13313host_alias=$host_alias
13314host=$host
13315host_os=$host_os
13316
13317# The build system.
13318build_alias=$build_alias
13319build=$build
13320build_os=$build_os
13321
13322# An echo program that does not interpret backslashes.
13323echo=$lt_echo
13324
13325# The archiver.
13326AR=$lt_AR
13327AR_FLAGS=$lt_AR_FLAGS
13328
13329# A C compiler.
13330LTCC=$lt_LTCC
13331
13332# LTCC compiler flags.
13333LTCFLAGS=$lt_LTCFLAGS
13334
13335# A language-specific compiler.
13336CC=$lt_compiler_CXX
13337
13338# Is the compiler the GNU C compiler?
13339with_gcc=$GCC_CXX
13340
13341# An ERE matcher.
13342EGREP=$lt_EGREP
13343
13344# The linker used to build libraries.
13345LD=$lt_LD_CXX
13346
13347# Whether we need hard or soft links.
13348LN_S=$lt_LN_S
13349
13350# A BSD-compatible nm program.
13351NM=$lt_NM
13352
13353# A symbol stripping program
13354STRIP=$lt_STRIP
13355
13356# Used to examine libraries when file_magic_cmd begins "file"
13357MAGIC_CMD=$MAGIC_CMD
13358
13359# Used on cygwin: DLL creation program.
13360DLLTOOL="$DLLTOOL"
13361
13362# Used on cygwin: object dumper.
13363OBJDUMP="$OBJDUMP"
13364
13365# Used on cygwin: assembler.
13366AS="$AS"
13367
13368# The name of the directory that contains temporary libtool files.
13369objdir=$objdir
13370
13371# How to create reloadable object files.
13372reload_flag=$lt_reload_flag
13373reload_cmds=$lt_reload_cmds
13374
13375# How to pass a linker flag through the compiler.
13376wl=$lt_lt_prog_compiler_wl_CXX
13377
13378# Object file suffix (normally "o").
13379objext="$ac_objext"
13380
13381# Old archive suffix (normally "a").
13382libext="$libext"
13383
13384# Shared library suffix (normally ".so").
13385shrext_cmds='$shrext_cmds'
13386
13387# Executable file suffix (normally "").
13388exeext="$exeext"
13389
13390# Additional compiler flags for building library objects.
13391pic_flag=$lt_lt_prog_compiler_pic_CXX
13392pic_mode=$pic_mode
13393
13394# What is the maximum length of a command?
13395max_cmd_len=$lt_cv_sys_max_cmd_len
13396
13397# Does compiler simultaneously support -c and -o options?
13398compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13399
13400# Must we lock files when doing compilation?
13401need_locks=$lt_need_locks
13402
13403# Do we need the lib prefix for modules?
13404need_lib_prefix=$need_lib_prefix
13405
13406# Do we need a version for libraries?
13407need_version=$need_version
13408
13409# Whether dlopen is supported.
13410dlopen_support=$enable_dlopen
13411
13412# Whether dlopen of programs is supported.
13413dlopen_self=$enable_dlopen_self
13414
13415# Whether dlopen of statically linked programs is supported.
13416dlopen_self_static=$enable_dlopen_self_static
13417
13418# Compiler flag to prevent dynamic linking.
13419link_static_flag=$lt_lt_prog_compiler_static_CXX
13420
13421# Compiler flag to turn off builtin functions.
13422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13423
13424# Compiler flag to allow reflexive dlopens.
13425export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13426
13427# Compiler flag to generate shared objects directly from archives.
13428whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13429
13430# Compiler flag to generate thread-safe objects.
13431thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13432
13433# Library versioning type.
13434version_type=$version_type
13435
13436# Format of library name prefix.
13437libname_spec=$lt_libname_spec
13438
13439# List of archive names.  First name is the real one, the rest are links.
13440# The last name is the one that the linker finds with -lNAME.
13441library_names_spec=$lt_library_names_spec
13442
13443# The coded name of the library, if different from the real name.
13444soname_spec=$lt_soname_spec
13445
13446# Commands used to build and install an old-style archive.
13447RANLIB=$lt_RANLIB
13448old_archive_cmds=$lt_old_archive_cmds_CXX
13449old_postinstall_cmds=$lt_old_postinstall_cmds
13450old_postuninstall_cmds=$lt_old_postuninstall_cmds
13451
13452# Create an old-style archive from a shared archive.
13453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13454
13455# Create a temporary old-style archive to link instead of a shared archive.
13456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13457
13458# Commands used to build and install a shared archive.
13459archive_cmds=$lt_archive_cmds_CXX
13460archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13461postinstall_cmds=$lt_postinstall_cmds
13462postuninstall_cmds=$lt_postuninstall_cmds
13463
13464# Commands used to build a loadable module (assumed same as above if empty)
13465module_cmds=$lt_module_cmds_CXX
13466module_expsym_cmds=$lt_module_expsym_cmds_CXX
13467
13468# Commands to strip libraries.
13469old_striplib=$lt_old_striplib
13470striplib=$lt_striplib
13471
13472# Dependencies to place before the objects being linked to create a
13473# shared library.
13474predep_objects=$lt_predep_objects_CXX
13475
13476# Dependencies to place after the objects being linked to create a
13477# shared library.
13478postdep_objects=$lt_postdep_objects_CXX
13479
13480# Dependencies to place before the objects being linked to create a
13481# shared library.
13482predeps=$lt_predeps_CXX
13483
13484# Dependencies to place after the objects being linked to create a
13485# shared library.
13486postdeps=$lt_postdeps_CXX
13487
13488# The directories searched by this compiler when creating a shared
13489# library
13490compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13491
13492# The library search path used internally by the compiler when linking
13493# a shared library.
13494compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13495
13496# Method to check whether dependent libraries are shared objects.
13497deplibs_check_method=$lt_deplibs_check_method
13498
13499# Command to use when deplibs_check_method == file_magic.
13500file_magic_cmd=$lt_file_magic_cmd
13501
13502# Flag that allows shared libraries with undefined symbols to be built.
13503allow_undefined_flag=$lt_allow_undefined_flag_CXX
13504
13505# Flag that forces no undefined symbols.
13506no_undefined_flag=$lt_no_undefined_flag_CXX
13507
13508# Commands used to finish a libtool library installation in a directory.
13509finish_cmds=$lt_finish_cmds
13510
13511# Same as above, but a single script fragment to be evaled but not shown.
13512finish_eval=$lt_finish_eval
13513
13514# Take the output of nm and produce a listing of raw symbols and C names.
13515global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13516
13517# Transform the output of nm in a proper C declaration
13518global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13519
13520# Transform the output of nm in a C name address pair
13521global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13522
13523# This is the shared library runtime path variable.
13524runpath_var=$runpath_var
13525
13526# This is the shared library path variable.
13527shlibpath_var=$shlibpath_var
13528
13529# Is shlibpath searched before the hard-coded library search path?
13530shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13531
13532# How to hardcode a shared library path into an executable.
13533hardcode_action=$hardcode_action_CXX
13534
13535# Whether we should hardcode library paths into libraries.
13536hardcode_into_libs=$hardcode_into_libs
13537
13538# Flag to hardcode \$libdir into a binary during linking.
13539# This must work even if \$libdir does not exist.
13540hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13541
13542# If ld is used when linking, flag to hardcode \$libdir into
13543# a binary during linking. This must work even if \$libdir does
13544# not exist.
13545hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13546
13547# Whether we need a single -rpath flag with a separated argument.
13548hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13549
13550# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13551# resulting binary.
13552hardcode_direct=$hardcode_direct_CXX
13553
13554# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13555# resulting binary.
13556hardcode_minus_L=$hardcode_minus_L_CXX
13557
13558# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13559# the resulting binary.
13560hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13561
13562# Set to yes if building a shared library automatically hardcodes DIR into the library
13563# and all subsequent libraries and executables linked against it.
13564hardcode_automatic=$hardcode_automatic_CXX
13565
13566# Variables whose values should be saved in libtool wrapper scripts and
13567# restored at relink time.
13568variables_saved_for_relink="$variables_saved_for_relink"
13569
13570# Whether libtool must link a program against all its dependency libraries.
13571link_all_deplibs=$link_all_deplibs_CXX
13572
13573# Compile-time system search path for libraries
13574sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13575
13576# Run-time system search path for libraries
13577sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13578
13579# Fix the shell variable \$srcfile for the compiler.
13580fix_srcfile_path=$lt_fix_srcfile_path
13581
13582# Set to yes if exported symbols are required.
13583always_export_symbols=$always_export_symbols_CXX
13584
13585# The commands to list exported symbols.
13586export_symbols_cmds=$lt_export_symbols_cmds_CXX
13587
13588# The commands to extract the exported symbol list from a shared archive.
13589extract_expsyms_cmds=$lt_extract_expsyms_cmds
13590
13591# Symbols that should not be listed in the preloaded symbols.
13592exclude_expsyms=$lt_exclude_expsyms_CXX
13593
13594# Symbols that must always be exported.
13595include_expsyms=$lt_include_expsyms_CXX
13596
13597# ### END LIBTOOL TAG CONFIG: $tagname
13598
13599__EOF__
13600
13601
13602else
13603  # If there is no Makefile yet, we rely on a make rule to execute
13604  # `config.status --recheck' to rerun these tests and create the
13605  # libtool script then.
13606  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13607  if test -f "$ltmain_in"; then
13608    test -f Makefile && make "$ltmain"
13609  fi
13610fi
13611
13612
13613ac_ext=c
13614ac_cpp='$CPP $CPPFLAGS'
13615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13617ac_compiler_gnu=$ac_cv_c_compiler_gnu
13618
13619CC=$lt_save_CC
13620LDCXX=$LD
13621LD=$lt_save_LD
13622GCC=$lt_save_GCC
13623with_gnu_ldcxx=$with_gnu_ld
13624with_gnu_ld=$lt_save_with_gnu_ld
13625lt_cv_path_LDCXX=$lt_cv_path_LD
13626lt_cv_path_LD=$lt_save_path_LD
13627lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13628lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13629
13630	else
13631	  tagname=""
13632	fi
13633	;;
13634
13635      F77)
13636	if test -n "$F77" && test "X$F77" != "Xno"; then
13637
13638ac_ext=f
13639ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13640ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13641ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13642
13643
13644archive_cmds_need_lc_F77=no
13645allow_undefined_flag_F77=
13646always_export_symbols_F77=no
13647archive_expsym_cmds_F77=
13648export_dynamic_flag_spec_F77=
13649hardcode_direct_F77=no
13650hardcode_libdir_flag_spec_F77=
13651hardcode_libdir_flag_spec_ld_F77=
13652hardcode_libdir_separator_F77=
13653hardcode_minus_L_F77=no
13654hardcode_automatic_F77=no
13655module_cmds_F77=
13656module_expsym_cmds_F77=
13657link_all_deplibs_F77=unknown
13658old_archive_cmds_F77=$old_archive_cmds
13659no_undefined_flag_F77=
13660whole_archive_flag_spec_F77=
13661enable_shared_with_static_runtimes_F77=no
13662
13663# Source file extension for f77 test sources.
13664ac_ext=f
13665
13666# Object file extension for compiled f77 test sources.
13667objext=o
13668objext_F77=$objext
13669
13670# Code to be used in simple compile tests
13671lt_simple_compile_test_code="\
13672      subroutine t
13673      return
13674      end
13675"
13676
13677# Code to be used in simple link tests
13678lt_simple_link_test_code="\
13679      program t
13680      end
13681"
13682
13683# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13684
13685# If no C compiler was specified, use CC.
13686LTCC=${LTCC-"$CC"}
13687
13688# If no C compiler flags were specified, use CFLAGS.
13689LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13690
13691# Allow CC to be a program name with arguments.
13692compiler=$CC
13693
13694
13695# save warnings/boilerplate of simple test code
13696ac_outfile=conftest.$ac_objext
13697echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13698eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13699_lt_compiler_boilerplate=`cat conftest.err`
13700$rm conftest*
13701
13702ac_outfile=conftest.$ac_objext
13703echo "$lt_simple_link_test_code" >conftest.$ac_ext
13704eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13705_lt_linker_boilerplate=`cat conftest.err`
13706$rm -r conftest*
13707
13708
13709# Allow CC to be a program name with arguments.
13710lt_save_CC="$CC"
13711CC=${F77-"f77"}
13712compiler=$CC
13713compiler_F77=$CC
13714for cc_temp in $compiler""; do
13715  case $cc_temp in
13716    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13717    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13718    \-*) ;;
13719    *) break;;
13720  esac
13721done
13722cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13723
13724
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13726$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13728$as_echo "$can_build_shared" >&6; }
13729
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13731$as_echo_n "checking whether to build shared libraries... " >&6; }
13732test "$can_build_shared" = "no" && enable_shared=no
13733
13734# On AIX, shared libraries and static libraries use the same namespace, and
13735# are all built from PIC.
13736case $host_os in
13737aix3*)
13738  test "$enable_shared" = yes && enable_static=no
13739  if test -n "$RANLIB"; then
13740    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13741    postinstall_cmds='$RANLIB $lib'
13742  fi
13743  ;;
13744aix[4-9]*)
13745  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13746    test "$enable_shared" = yes && enable_static=no
13747  fi
13748  ;;
13749esac
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13751$as_echo "$enable_shared" >&6; }
13752
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13754$as_echo_n "checking whether to build static libraries... " >&6; }
13755# Make sure either enable_shared or enable_static is yes.
13756test "$enable_shared" = yes || enable_static=yes
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13758$as_echo "$enable_static" >&6; }
13759
13760GCC_F77="$G77"
13761LD_F77="$LD"
13762
13763lt_prog_compiler_wl_F77=
13764lt_prog_compiler_pic_F77=
13765lt_prog_compiler_static_F77=
13766
13767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13768$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13769
13770  if test "$GCC" = yes; then
13771    lt_prog_compiler_wl_F77='-Wl,'
13772    lt_prog_compiler_static_F77='-static'
13773
13774    case $host_os in
13775      aix*)
13776      # All AIX code is PIC.
13777      if test "$host_cpu" = ia64; then
13778	# AIX 5 now supports IA64 processor
13779	lt_prog_compiler_static_F77='-Bstatic'
13780      fi
13781      ;;
13782
13783    amigaos*)
13784      # FIXME: we need at least 68020 code to build shared libraries, but
13785      # adding the `-m68020' flag to GCC prevents building anything better,
13786      # like `-m68040'.
13787      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13788      ;;
13789
13790    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13791      # PIC is the default for these OSes.
13792      ;;
13793
13794    mingw* | cygwin* | pw32* | os2*)
13795      # This hack is so that the source file can tell whether it is being
13796      # built for inclusion in a dll (and should export symbols for example).
13797      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13798      # (--disable-auto-import) libraries
13799      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13800      ;;
13801
13802    darwin* | rhapsody*)
13803      # PIC is the default on this platform
13804      # Common symbols not allowed in MH_DYLIB files
13805      lt_prog_compiler_pic_F77='-fno-common'
13806      ;;
13807
13808    interix[3-9]*)
13809      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13810      # Instead, we relocate shared libraries at runtime.
13811      ;;
13812
13813    msdosdjgpp*)
13814      # Just because we use GCC doesn't mean we suddenly get shared libraries
13815      # on systems that don't support them.
13816      lt_prog_compiler_can_build_shared_F77=no
13817      enable_shared=no
13818      ;;
13819
13820    sysv4*MP*)
13821      if test -d /usr/nec; then
13822	lt_prog_compiler_pic_F77=-Kconform_pic
13823      fi
13824      ;;
13825
13826    hpux*)
13827      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13828      # not for PA HP-UX.
13829      case $host_cpu in
13830      hppa*64*|ia64*)
13831	# +Z the default
13832	;;
13833      *)
13834	lt_prog_compiler_pic_F77='-fPIC'
13835	;;
13836      esac
13837      ;;
13838
13839    *)
13840      lt_prog_compiler_pic_F77='-fPIC'
13841      ;;
13842    esac
13843  else
13844    # PORTME Check for flag to pass linker flags through the system compiler.
13845    case $host_os in
13846    aix*)
13847      lt_prog_compiler_wl_F77='-Wl,'
13848      if test "$host_cpu" = ia64; then
13849	# AIX 5 now supports IA64 processor
13850	lt_prog_compiler_static_F77='-Bstatic'
13851      else
13852	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13853      fi
13854      ;;
13855      darwin*)
13856        # PIC is the default on this platform
13857        # Common symbols not allowed in MH_DYLIB files
13858       case $cc_basename in
13859         xlc*)
13860         lt_prog_compiler_pic_F77='-qnocommon'
13861         lt_prog_compiler_wl_F77='-Wl,'
13862         ;;
13863       esac
13864       ;;
13865
13866    mingw* | cygwin* | pw32* | os2*)
13867      # This hack is so that the source file can tell whether it is being
13868      # built for inclusion in a dll (and should export symbols for example).
13869      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13870      ;;
13871
13872    hpux9* | hpux10* | hpux11*)
13873      lt_prog_compiler_wl_F77='-Wl,'
13874      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13875      # not for PA HP-UX.
13876      case $host_cpu in
13877      hppa*64*|ia64*)
13878	# +Z the default
13879	;;
13880      *)
13881	lt_prog_compiler_pic_F77='+Z'
13882	;;
13883      esac
13884      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13885      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13886      ;;
13887
13888    irix5* | irix6* | nonstopux*)
13889      lt_prog_compiler_wl_F77='-Wl,'
13890      # PIC (with -KPIC) is the default.
13891      lt_prog_compiler_static_F77='-non_shared'
13892      ;;
13893
13894    newsos6)
13895      lt_prog_compiler_pic_F77='-KPIC'
13896      lt_prog_compiler_static_F77='-Bstatic'
13897      ;;
13898
13899    linux* | k*bsd*-gnu)
13900      case $cc_basename in
13901      icc* | ecc*)
13902	lt_prog_compiler_wl_F77='-Wl,'
13903	lt_prog_compiler_pic_F77='-KPIC'
13904	lt_prog_compiler_static_F77='-static'
13905        ;;
13906      pgcc* | pgf77* | pgf90* | pgf95*)
13907        # Portland Group compilers (*not* the Pentium gcc compiler,
13908	# which looks to be a dead project)
13909	lt_prog_compiler_wl_F77='-Wl,'
13910	lt_prog_compiler_pic_F77='-fpic'
13911	lt_prog_compiler_static_F77='-Bstatic'
13912        ;;
13913      ccc*)
13914        lt_prog_compiler_wl_F77='-Wl,'
13915        # All Alpha code is PIC.
13916        lt_prog_compiler_static_F77='-non_shared'
13917        ;;
13918      *)
13919        case `$CC -V 2>&1 | sed 5q` in
13920	*Sun\ C*)
13921	  # Sun C 5.9
13922	  lt_prog_compiler_pic_F77='-KPIC'
13923	  lt_prog_compiler_static_F77='-Bstatic'
13924	  lt_prog_compiler_wl_F77='-Wl,'
13925	  ;;
13926	*Sun\ F*)
13927	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13928	  lt_prog_compiler_pic_F77='-KPIC'
13929	  lt_prog_compiler_static_F77='-Bstatic'
13930	  lt_prog_compiler_wl_F77=''
13931	  ;;
13932	esac
13933	;;
13934      esac
13935      ;;
13936
13937    osf3* | osf4* | osf5*)
13938      lt_prog_compiler_wl_F77='-Wl,'
13939      # All OSF/1 code is PIC.
13940      lt_prog_compiler_static_F77='-non_shared'
13941      ;;
13942
13943    rdos*)
13944      lt_prog_compiler_static_F77='-non_shared'
13945      ;;
13946
13947    solaris*)
13948      lt_prog_compiler_pic_F77='-KPIC'
13949      lt_prog_compiler_static_F77='-Bstatic'
13950      case $cc_basename in
13951      f77* | f90* | f95*)
13952	lt_prog_compiler_wl_F77='-Qoption ld ';;
13953      *)
13954	lt_prog_compiler_wl_F77='-Wl,';;
13955      esac
13956      ;;
13957
13958    sunos4*)
13959      lt_prog_compiler_wl_F77='-Qoption ld '
13960      lt_prog_compiler_pic_F77='-PIC'
13961      lt_prog_compiler_static_F77='-Bstatic'
13962      ;;
13963
13964    sysv4 | sysv4.2uw2* | sysv4.3*)
13965      lt_prog_compiler_wl_F77='-Wl,'
13966      lt_prog_compiler_pic_F77='-KPIC'
13967      lt_prog_compiler_static_F77='-Bstatic'
13968      ;;
13969
13970    sysv4*MP*)
13971      if test -d /usr/nec ;then
13972	lt_prog_compiler_pic_F77='-Kconform_pic'
13973	lt_prog_compiler_static_F77='-Bstatic'
13974      fi
13975      ;;
13976
13977    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13978      lt_prog_compiler_wl_F77='-Wl,'
13979      lt_prog_compiler_pic_F77='-KPIC'
13980      lt_prog_compiler_static_F77='-Bstatic'
13981      ;;
13982
13983    unicos*)
13984      lt_prog_compiler_wl_F77='-Wl,'
13985      lt_prog_compiler_can_build_shared_F77=no
13986      ;;
13987
13988    uts4*)
13989      lt_prog_compiler_pic_F77='-pic'
13990      lt_prog_compiler_static_F77='-Bstatic'
13991      ;;
13992
13993    *)
13994      lt_prog_compiler_can_build_shared_F77=no
13995      ;;
13996    esac
13997  fi
13998
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14000$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14001
14002#
14003# Check to make sure the PIC flag actually works.
14004#
14005if test -n "$lt_prog_compiler_pic_F77"; then
14006
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14008$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14009if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
14010  $as_echo_n "(cached) " >&6
14011else
14012  lt_cv_prog_compiler_pic_works_F77=no
14013  ac_outfile=conftest.$ac_objext
14014   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14015   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14016   # Insert the option either (1) after the last *FLAGS variable, or
14017   # (2) before a word containing "conftest.", or (3) at the end.
14018   # Note that $ac_compile itself does not contain backslashes and begins
14019   # with a dollar sign (not a hyphen), so the echo should work correctly.
14020   # The option is referenced via a variable to avoid confusing sed.
14021   lt_compile=`echo "$ac_compile" | $SED \
14022   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14023   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14024   -e 's:$: $lt_compiler_flag:'`
14025   (eval echo "\"\$as_me:14025: $lt_compile\"" >&5)
14026   (eval "$lt_compile" 2>conftest.err)
14027   ac_status=$?
14028   cat conftest.err >&5
14029   echo "$as_me:14029: \$? = $ac_status" >&5
14030   if (exit $ac_status) && test -s "$ac_outfile"; then
14031     # The compiler can only warn and ignore the option if not recognized
14032     # So say no if there are warnings other than the usual output.
14033     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14034     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14035     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14036       lt_cv_prog_compiler_pic_works_F77=yes
14037     fi
14038   fi
14039   $rm conftest*
14040
14041fi
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14043$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14044
14045if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14046    case $lt_prog_compiler_pic_F77 in
14047     "" | " "*) ;;
14048     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14049     esac
14050else
14051    lt_prog_compiler_pic_F77=
14052     lt_prog_compiler_can_build_shared_F77=no
14053fi
14054
14055fi
14056case $host_os in
14057  # For platforms which do not support PIC, -DPIC is meaningless:
14058  *djgpp*)
14059    lt_prog_compiler_pic_F77=
14060    ;;
14061  *)
14062    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14063    ;;
14064esac
14065
14066#
14067# Check to make sure the static flag actually works.
14068#
14069wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14071$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14072if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
14073  $as_echo_n "(cached) " >&6
14074else
14075  lt_cv_prog_compiler_static_works_F77=no
14076   save_LDFLAGS="$LDFLAGS"
14077   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14078   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14079   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14080     # The linker can only warn and ignore the option if not recognized
14081     # So say no if there are warnings
14082     if test -s conftest.err; then
14083       # Append any errors to the config.log.
14084       cat conftest.err 1>&5
14085       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14086       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14087       if diff conftest.exp conftest.er2 >/dev/null; then
14088         lt_cv_prog_compiler_static_works_F77=yes
14089       fi
14090     else
14091       lt_cv_prog_compiler_static_works_F77=yes
14092     fi
14093   fi
14094   $rm -r conftest*
14095   LDFLAGS="$save_LDFLAGS"
14096
14097fi
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14099$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14100
14101if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14102    :
14103else
14104    lt_prog_compiler_static_F77=
14105fi
14106
14107
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14109$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14110if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
14111  $as_echo_n "(cached) " >&6
14112else
14113  lt_cv_prog_compiler_c_o_F77=no
14114   $rm -r conftest 2>/dev/null
14115   mkdir conftest
14116   cd conftest
14117   mkdir out
14118   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14119
14120   lt_compiler_flag="-o out/conftest2.$ac_objext"
14121   # Insert the option either (1) after the last *FLAGS variable, or
14122   # (2) before a word containing "conftest.", or (3) at the end.
14123   # Note that $ac_compile itself does not contain backslashes and begins
14124   # with a dollar sign (not a hyphen), so the echo should work correctly.
14125   lt_compile=`echo "$ac_compile" | $SED \
14126   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14127   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14128   -e 's:$: $lt_compiler_flag:'`
14129   (eval echo "\"\$as_me:14129: $lt_compile\"" >&5)
14130   (eval "$lt_compile" 2>out/conftest.err)
14131   ac_status=$?
14132   cat out/conftest.err >&5
14133   echo "$as_me:14133: \$? = $ac_status" >&5
14134   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14135   then
14136     # The compiler can only warn and ignore the option if not recognized
14137     # So say no if there are warnings
14138     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14139     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14140     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14141       lt_cv_prog_compiler_c_o_F77=yes
14142     fi
14143   fi
14144   chmod u+w . 2>&5
14145   $rm conftest*
14146   # SGI C++ compiler will create directory out/ii_files/ for
14147   # template instantiation
14148   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14149   $rm out/* && rmdir out
14150   cd ..
14151   rmdir conftest
14152   $rm conftest*
14153
14154fi
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14156$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14157
14158
14159hard_links="nottested"
14160if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14161  # do not overwrite the value of need_locks provided by the user
14162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14163$as_echo_n "checking if we can lock with hard links... " >&6; }
14164  hard_links=yes
14165  $rm conftest*
14166  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14167  touch conftest.a
14168  ln conftest.a conftest.b 2>&5 || hard_links=no
14169  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14171$as_echo "$hard_links" >&6; }
14172  if test "$hard_links" = no; then
14173    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14174$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14175    need_locks=warn
14176  fi
14177else
14178  need_locks=no
14179fi
14180
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14182$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14183
14184  runpath_var=
14185  allow_undefined_flag_F77=
14186  enable_shared_with_static_runtimes_F77=no
14187  archive_cmds_F77=
14188  archive_expsym_cmds_F77=
14189  old_archive_From_new_cmds_F77=
14190  old_archive_from_expsyms_cmds_F77=
14191  export_dynamic_flag_spec_F77=
14192  whole_archive_flag_spec_F77=
14193  thread_safe_flag_spec_F77=
14194  hardcode_libdir_flag_spec_F77=
14195  hardcode_libdir_flag_spec_ld_F77=
14196  hardcode_libdir_separator_F77=
14197  hardcode_direct_F77=no
14198  hardcode_minus_L_F77=no
14199  hardcode_shlibpath_var_F77=unsupported
14200  link_all_deplibs_F77=unknown
14201  hardcode_automatic_F77=no
14202  module_cmds_F77=
14203  module_expsym_cmds_F77=
14204  always_export_symbols_F77=no
14205  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14206  # include_expsyms should be a list of space-separated symbols to be *always*
14207  # included in the symbol list
14208  include_expsyms_F77=
14209  # exclude_expsyms can be an extended regexp of symbols to exclude
14210  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14211  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14212  # as well as any symbol that contains `d'.
14213  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14214  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14215  # platforms (ab)use it in PIC code, but their linkers get confused if
14216  # the symbol is explicitly referenced.  Since portable code cannot
14217  # rely on this symbol name, it's probably fine to never include it in
14218  # preloaded symbol tables.
14219  # Exclude shared library initialization/finalization symbols.
14220  extract_expsyms_cmds=
14221  # Just being paranoid about ensuring that cc_basename is set.
14222  for cc_temp in $compiler""; do
14223  case $cc_temp in
14224    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14225    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14226    \-*) ;;
14227    *) break;;
14228  esac
14229done
14230cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14231
14232  case $host_os in
14233  cygwin* | mingw* | pw32*)
14234    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14235    # When not using gcc, we currently assume that we are using
14236    # Microsoft Visual C++.
14237    if test "$GCC" != yes; then
14238      with_gnu_ld=no
14239    fi
14240    ;;
14241  interix*)
14242    # we just hope/assume this is gcc and not c89 (= MSVC++)
14243    with_gnu_ld=yes
14244    ;;
14245  openbsd*)
14246    with_gnu_ld=no
14247    ;;
14248  esac
14249
14250  ld_shlibs_F77=yes
14251  if test "$with_gnu_ld" = yes; then
14252    # If archive_cmds runs LD, not CC, wlarc should be empty
14253    wlarc='${wl}'
14254
14255    # Set some defaults for GNU ld with shared library support. These
14256    # are reset later if shared libraries are not supported. Putting them
14257    # here allows them to be overridden if necessary.
14258    runpath_var=LD_RUN_PATH
14259    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14260    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14261    # ancient GNU ld didn't support --whole-archive et. al.
14262    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14263	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14264      else
14265  	whole_archive_flag_spec_F77=
14266    fi
14267    supports_anon_versioning=no
14268    case `$LD -v 2>/dev/null` in
14269      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14270      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14271      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14272      *\ 2.11.*) ;; # other 2.11 versions
14273      *) supports_anon_versioning=yes ;;
14274    esac
14275
14276    # See if GNU ld supports shared libraries.
14277    case $host_os in
14278    aix[3-9]*)
14279      # On AIX/PPC, the GNU linker is very broken
14280      if test "$host_cpu" != ia64; then
14281	ld_shlibs_F77=no
14282	cat <<EOF 1>&2
14283
14284*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14285*** to be unable to reliably create shared libraries on AIX.
14286*** Therefore, libtool is disabling shared libraries support.  If you
14287*** really care for shared libraries, you may want to modify your PATH
14288*** so that a non-GNU linker is found, and then restart.
14289
14290EOF
14291      fi
14292      ;;
14293
14294    amigaos*)
14295      archive_cmds_F77='$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)'
14296      hardcode_libdir_flag_spec_F77='-L$libdir'
14297      hardcode_minus_L_F77=yes
14298
14299      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14300      # that the semantics of dynamic libraries on AmigaOS, at least up
14301      # to version 4, is to share data among multiple programs linked
14302      # with the same dynamic library.  Since this doesn't match the
14303      # behavior of shared libraries on other platforms, we can't use
14304      # them.
14305      ld_shlibs_F77=no
14306      ;;
14307
14308    beos*)
14309      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14310	allow_undefined_flag_F77=unsupported
14311	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14312	# support --undefined.  This deserves some investigation.  FIXME
14313	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14314      else
14315	ld_shlibs_F77=no
14316      fi
14317      ;;
14318
14319    cygwin* | mingw* | pw32*)
14320      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14321      # as there is no search path for DLLs.
14322      hardcode_libdir_flag_spec_F77='-L$libdir'
14323      allow_undefined_flag_F77=unsupported
14324      always_export_symbols_F77=no
14325      enable_shared_with_static_runtimes_F77=yes
14326      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14327
14328      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14329        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14330	# If the export-symbols file already is a .def file (1st line
14331	# is EXPORTS), use it as is; otherwise, prepend...
14332	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14333	  cp $export_symbols $output_objdir/$soname.def;
14334	else
14335	  echo EXPORTS > $output_objdir/$soname.def;
14336	  cat $export_symbols >> $output_objdir/$soname.def;
14337	fi~
14338	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14339      else
14340	ld_shlibs_F77=no
14341      fi
14342      ;;
14343
14344    interix[3-9]*)
14345      hardcode_direct_F77=no
14346      hardcode_shlibpath_var_F77=no
14347      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14348      export_dynamic_flag_spec_F77='${wl}-E'
14349      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14350      # Instead, shared libraries are loaded at an image base (0x10000000 by
14351      # default) and relocated if they conflict, which is a slow very memory
14352      # consuming and fragmenting process.  To avoid this, we pick a random,
14353      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14354      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14355      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14356      archive_expsym_cmds_F77='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'
14357      ;;
14358
14359    gnu* | linux* | k*bsd*-gnu)
14360      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14361	tmp_addflag=
14362	case $cc_basename,$host_cpu in
14363	pgcc*)				# Portland Group C compiler
14364	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14365	  tmp_addflag=' $pic_flag'
14366	  ;;
14367	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14368	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14369	  tmp_addflag=' $pic_flag -Mnomain' ;;
14370	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14371	  tmp_addflag=' -i_dynamic' ;;
14372	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14373	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14374	ifc* | ifort*)			# Intel Fortran compiler
14375	  tmp_addflag=' -nofor_main' ;;
14376	esac
14377	case `$CC -V 2>&1 | sed 5q` in
14378	*Sun\ C*)			# Sun C 5.9
14379	  whole_archive_flag_spec_F77='${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'
14380	  tmp_sharedflag='-G' ;;
14381	*Sun\ F*)			# Sun Fortran 8.3
14382	  tmp_sharedflag='-G' ;;
14383	*)
14384	  tmp_sharedflag='-shared' ;;
14385	esac
14386	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14387
14388	if test $supports_anon_versioning = yes; then
14389	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14390  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14391  $echo "local: *; };" >> $output_objdir/$libname.ver~
14392	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14393	fi
14394      else
14395	ld_shlibs_F77=no
14396      fi
14397      ;;
14398
14399    netbsd*)
14400      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14401	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14402	wlarc=
14403      else
14404	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14405	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14406      fi
14407      ;;
14408
14409    solaris*)
14410      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14411	ld_shlibs_F77=no
14412	cat <<EOF 1>&2
14413
14414*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14415*** create shared libraries on Solaris systems.  Therefore, libtool
14416*** is disabling shared libraries support.  We urge you to upgrade GNU
14417*** binutils to release 2.9.1 or newer.  Another option is to modify
14418*** your PATH or compiler configuration so that the native linker is
14419*** used, and then restart.
14420
14421EOF
14422      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14423	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14424	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14425      else
14426	ld_shlibs_F77=no
14427      fi
14428      ;;
14429
14430    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14431      case `$LD -v 2>&1` in
14432        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14433	ld_shlibs_F77=no
14434	cat <<_LT_EOF 1>&2
14435
14436*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14437*** reliably create shared libraries on SCO systems.  Therefore, libtool
14438*** is disabling shared libraries support.  We urge you to upgrade GNU
14439*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14440*** your PATH or compiler configuration so that the native linker is
14441*** used, and then restart.
14442
14443_LT_EOF
14444	;;
14445	*)
14446	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14447	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14448	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14449	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14450	  else
14451	    ld_shlibs_F77=no
14452	  fi
14453	;;
14454      esac
14455      ;;
14456
14457    sunos4*)
14458      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14459      wlarc=
14460      hardcode_direct_F77=yes
14461      hardcode_shlibpath_var_F77=no
14462      ;;
14463
14464    *)
14465      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14466	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14467	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14468      else
14469	ld_shlibs_F77=no
14470      fi
14471      ;;
14472    esac
14473
14474    if test "$ld_shlibs_F77" = no; then
14475      runpath_var=
14476      hardcode_libdir_flag_spec_F77=
14477      export_dynamic_flag_spec_F77=
14478      whole_archive_flag_spec_F77=
14479    fi
14480  else
14481    # PORTME fill in a description of your system's linker (not GNU ld)
14482    case $host_os in
14483    aix3*)
14484      allow_undefined_flag_F77=unsupported
14485      always_export_symbols_F77=yes
14486      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14487      # Note: this linker hardcodes the directories in LIBPATH if there
14488      # are no directories specified by -L.
14489      hardcode_minus_L_F77=yes
14490      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14491	# Neither direct hardcoding nor static linking is supported with a
14492	# broken collect2.
14493	hardcode_direct_F77=unsupported
14494      fi
14495      ;;
14496
14497    aix[4-9]*)
14498      if test "$host_cpu" = ia64; then
14499	# On IA64, the linker does run time linking by default, so we don't
14500	# have to do anything special.
14501	aix_use_runtimelinking=no
14502	exp_sym_flag='-Bexport'
14503	no_entry_flag=""
14504      else
14505	# If we're using GNU nm, then we don't want the "-C" option.
14506	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14507	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14508	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14509	else
14510	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14511	fi
14512	aix_use_runtimelinking=no
14513
14514	# Test if we are trying to use run time linking or normal
14515	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14516	# need to do runtime linking.
14517	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14518	  for ld_flag in $LDFLAGS; do
14519  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14520  	    aix_use_runtimelinking=yes
14521  	    break
14522  	  fi
14523	  done
14524	  ;;
14525	esac
14526
14527	exp_sym_flag='-bexport'
14528	no_entry_flag='-bnoentry'
14529      fi
14530
14531      # When large executables or shared objects are built, AIX ld can
14532      # have problems creating the table of contents.  If linking a library
14533      # or program results in "error TOC overflow" add -mminimal-toc to
14534      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14535      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14536
14537      archive_cmds_F77=''
14538      hardcode_direct_F77=yes
14539      hardcode_libdir_separator_F77=':'
14540      link_all_deplibs_F77=yes
14541
14542      if test "$GCC" = yes; then
14543	case $host_os in aix4.[012]|aix4.[012].*)
14544	# We only want to do this on AIX 4.2 and lower, the check
14545	# below for broken collect2 doesn't work under 4.3+
14546	  collect2name=`${CC} -print-prog-name=collect2`
14547	  if test -f "$collect2name" && \
14548  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14549	  then
14550  	  # We have reworked collect2
14551  	  :
14552	  else
14553  	  # We have old collect2
14554  	  hardcode_direct_F77=unsupported
14555  	  # It fails to find uninstalled libraries when the uninstalled
14556  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14557  	  # to unsupported forces relinking
14558  	  hardcode_minus_L_F77=yes
14559  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14560  	  hardcode_libdir_separator_F77=
14561	  fi
14562	  ;;
14563	esac
14564	shared_flag='-shared'
14565	if test "$aix_use_runtimelinking" = yes; then
14566	  shared_flag="$shared_flag "'${wl}-G'
14567	fi
14568      else
14569	# not using gcc
14570	if test "$host_cpu" = ia64; then
14571  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14572  	# chokes on -Wl,-G. The following line is correct:
14573	  shared_flag='-G'
14574	else
14575	  if test "$aix_use_runtimelinking" = yes; then
14576	    shared_flag='${wl}-G'
14577	  else
14578	    shared_flag='${wl}-bM:SRE'
14579	  fi
14580	fi
14581      fi
14582
14583      # It seems that -bexpall does not export symbols beginning with
14584      # underscore (_), so it is better to generate a list of symbols to export.
14585      always_export_symbols_F77=yes
14586      if test "$aix_use_runtimelinking" = yes; then
14587	# Warning - without using the other runtime loading flags (-brtl),
14588	# -berok will link without error, but may produce a broken library.
14589	allow_undefined_flag_F77='-berok'
14590       # Determine the default libpath from the value encoded in an empty executable.
14591       cat > conftest.$ac_ext <<_ACEOF
14592      program main
14593
14594      end
14595_ACEOF
14596if ac_fn_f77_try_link "$LINENO"; then :
14597
14598lt_aix_libpath_sed='
14599    /Import File Strings/,/^$/ {
14600	/^0/ {
14601	    s/^0  *\(.*\)$/\1/
14602	    p
14603	}
14604    }'
14605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14606# Check for a 64-bit object if we didn't find anything.
14607if test -z "$aix_libpath"; then
14608  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14609fi
14610fi
14611rm -f core conftest.err conftest.$ac_objext \
14612    conftest$ac_exeext conftest.$ac_ext
14613if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14614
14615       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14616	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14617       else
14618	if test "$host_cpu" = ia64; then
14619	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14620	  allow_undefined_flag_F77="-z nodefs"
14621	  archive_expsym_cmds_F77="\$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"
14622	else
14623	 # Determine the default libpath from the value encoded in an empty executable.
14624	 cat > conftest.$ac_ext <<_ACEOF
14625      program main
14626
14627      end
14628_ACEOF
14629if ac_fn_f77_try_link "$LINENO"; then :
14630
14631lt_aix_libpath_sed='
14632    /Import File Strings/,/^$/ {
14633	/^0/ {
14634	    s/^0  *\(.*\)$/\1/
14635	    p
14636	}
14637    }'
14638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14639# Check for a 64-bit object if we didn't find anything.
14640if test -z "$aix_libpath"; then
14641  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14642fi
14643fi
14644rm -f core conftest.err conftest.$ac_objext \
14645    conftest$ac_exeext conftest.$ac_ext
14646if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14647
14648	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14649	  # Warning - without using the other run time loading flags,
14650	  # -berok will link without error, but may produce a broken library.
14651	  no_undefined_flag_F77=' ${wl}-bernotok'
14652	  allow_undefined_flag_F77=' ${wl}-berok'
14653	  # Exported symbols can be pulled into shared objects from archives
14654	  whole_archive_flag_spec_F77='$convenience'
14655	  archive_cmds_need_lc_F77=yes
14656	  # This is similar to how AIX traditionally builds its shared libraries.
14657	  archive_expsym_cmds_F77="\$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'
14658	fi
14659      fi
14660      ;;
14661
14662    amigaos*)
14663      archive_cmds_F77='$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)'
14664      hardcode_libdir_flag_spec_F77='-L$libdir'
14665      hardcode_minus_L_F77=yes
14666      # see comment about different semantics on the GNU ld section
14667      ld_shlibs_F77=no
14668      ;;
14669
14670    bsdi[45]*)
14671      export_dynamic_flag_spec_F77=-rdynamic
14672      ;;
14673
14674    cygwin* | mingw* | pw32*)
14675      # When not using gcc, we currently assume that we are using
14676      # Microsoft Visual C++.
14677      # hardcode_libdir_flag_spec is actually meaningless, as there is
14678      # no search path for DLLs.
14679      hardcode_libdir_flag_spec_F77=' '
14680      allow_undefined_flag_F77=unsupported
14681      # Tell ltmain to make .lib files, not .a files.
14682      libext=lib
14683      # Tell ltmain to make .dll files, not .so files.
14684      shrext_cmds=".dll"
14685      # FIXME: Setting linknames here is a bad hack.
14686      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14687      # The linker will automatically build a .lib file if we build a DLL.
14688      old_archive_From_new_cmds_F77='true'
14689      # FIXME: Should let the user specify the lib program.
14690      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14691      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14692      enable_shared_with_static_runtimes_F77=yes
14693      ;;
14694
14695    darwin* | rhapsody*)
14696      case $host_os in
14697        rhapsody* | darwin1.[012])
14698         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14699         ;;
14700       *) # Darwin 1.3 on
14701         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14702           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14703         else
14704           case ${MACOSX_DEPLOYMENT_TARGET} in
14705             10.[012])
14706               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14707               ;;
14708             10.*)
14709               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14710               ;;
14711           esac
14712         fi
14713         ;;
14714      esac
14715      archive_cmds_need_lc_F77=no
14716      hardcode_direct_F77=no
14717      hardcode_automatic_F77=yes
14718      hardcode_shlibpath_var_F77=unsupported
14719      whole_archive_flag_spec_F77=''
14720      link_all_deplibs_F77=yes
14721    if test "$GCC" = yes ; then
14722    	output_verbose_link_cmd='echo'
14723        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14724        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14725        archive_expsym_cmds_F77="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}"
14726        module_expsym_cmds_F77="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}"
14727    else
14728      case $cc_basename in
14729        xlc*)
14730         output_verbose_link_cmd='echo'
14731         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14732         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14733          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14734         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14735          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14736          ;;
14737       *)
14738         ld_shlibs_F77=no
14739          ;;
14740      esac
14741    fi
14742      ;;
14743
14744    dgux*)
14745      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14746      hardcode_libdir_flag_spec_F77='-L$libdir'
14747      hardcode_shlibpath_var_F77=no
14748      ;;
14749
14750    freebsd1*)
14751      ld_shlibs_F77=no
14752      ;;
14753
14754    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14755    # support.  Future versions do this automatically, but an explicit c++rt0.o
14756    # does not break anything, and helps significantly (at the cost of a little
14757    # extra space).
14758    freebsd2.2*)
14759      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14760      hardcode_libdir_flag_spec_F77='-R$libdir'
14761      hardcode_direct_F77=yes
14762      hardcode_shlibpath_var_F77=no
14763      ;;
14764
14765    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14766    freebsd2*)
14767      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14768      hardcode_direct_F77=yes
14769      hardcode_minus_L_F77=yes
14770      hardcode_shlibpath_var_F77=no
14771      ;;
14772
14773    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14774    freebsd* | dragonfly*)
14775      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14776      hardcode_libdir_flag_spec_F77='-R$libdir'
14777      hardcode_direct_F77=yes
14778      hardcode_shlibpath_var_F77=no
14779      ;;
14780
14781    hpux9*)
14782      if test "$GCC" = yes; then
14783	archive_cmds_F77='$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'
14784      else
14785	archive_cmds_F77='$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'
14786      fi
14787      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14788      hardcode_libdir_separator_F77=:
14789      hardcode_direct_F77=yes
14790
14791      # hardcode_minus_L: Not really in the search PATH,
14792      # but as the default location of the library.
14793      hardcode_minus_L_F77=yes
14794      export_dynamic_flag_spec_F77='${wl}-E'
14795      ;;
14796
14797    hpux10*)
14798      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14799	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14800      else
14801	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14802      fi
14803      if test "$with_gnu_ld" = no; then
14804	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14805	hardcode_libdir_separator_F77=:
14806
14807	hardcode_direct_F77=yes
14808	export_dynamic_flag_spec_F77='${wl}-E'
14809
14810	# hardcode_minus_L: Not really in the search PATH,
14811	# but as the default location of the library.
14812	hardcode_minus_L_F77=yes
14813      fi
14814      ;;
14815
14816    hpux11*)
14817      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14818	case $host_cpu in
14819	hppa*64*)
14820	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821	  ;;
14822	ia64*)
14823	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14824	  ;;
14825	*)
14826	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14827	  ;;
14828	esac
14829      else
14830	case $host_cpu in
14831	hppa*64*)
14832	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14833	  ;;
14834	ia64*)
14835	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14836	  ;;
14837	*)
14838	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14839	  ;;
14840	esac
14841      fi
14842      if test "$with_gnu_ld" = no; then
14843	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14844	hardcode_libdir_separator_F77=:
14845
14846	case $host_cpu in
14847	hppa*64*|ia64*)
14848	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14849	  hardcode_direct_F77=no
14850	  hardcode_shlibpath_var_F77=no
14851	  ;;
14852	*)
14853	  hardcode_direct_F77=yes
14854	  export_dynamic_flag_spec_F77='${wl}-E'
14855
14856	  # hardcode_minus_L: Not really in the search PATH,
14857	  # but as the default location of the library.
14858	  hardcode_minus_L_F77=yes
14859	  ;;
14860	esac
14861      fi
14862      ;;
14863
14864    irix5* | irix6* | nonstopux*)
14865      if test "$GCC" = yes; then
14866	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14867      else
14868	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14869	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14870      fi
14871      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14872      hardcode_libdir_separator_F77=:
14873      link_all_deplibs_F77=yes
14874      ;;
14875
14876    netbsd*)
14877      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14878	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14879      else
14880	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14881      fi
14882      hardcode_libdir_flag_spec_F77='-R$libdir'
14883      hardcode_direct_F77=yes
14884      hardcode_shlibpath_var_F77=no
14885      ;;
14886
14887    newsos6)
14888      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889      hardcode_direct_F77=yes
14890      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14891      hardcode_libdir_separator_F77=:
14892      hardcode_shlibpath_var_F77=no
14893      ;;
14894
14895    openbsd*)
14896      if test -f /usr/libexec/ld.so; then
14897	hardcode_direct_F77=yes
14898	hardcode_shlibpath_var_F77=no
14899	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14900	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14901	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14902	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14903	  export_dynamic_flag_spec_F77='${wl}-E'
14904	else
14905	  case $host_os in
14906	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14907	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14908	     hardcode_libdir_flag_spec_F77='-R$libdir'
14909	     ;;
14910	   *)
14911	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14912	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14913	     ;;
14914	  esac
14915        fi
14916      else
14917	ld_shlibs_F77=no
14918      fi
14919      ;;
14920
14921    os2*)
14922      hardcode_libdir_flag_spec_F77='-L$libdir'
14923      hardcode_minus_L_F77=yes
14924      allow_undefined_flag_F77=unsupported
14925      archive_cmds_F77='$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'
14926      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14927      ;;
14928
14929    osf3*)
14930      if test "$GCC" = yes; then
14931	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14932	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14933      else
14934	allow_undefined_flag_F77=' -expect_unresolved \*'
14935	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14936      fi
14937      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14938      hardcode_libdir_separator_F77=:
14939      ;;
14940
14941    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14942      if test "$GCC" = yes; then
14943	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14944	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14945	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14946      else
14947	allow_undefined_flag_F77=' -expect_unresolved \*'
14948	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14949	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14950	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14951
14952	# Both c and cxx compiler support -rpath directly
14953	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14954      fi
14955      hardcode_libdir_separator_F77=:
14956      ;;
14957
14958    solaris*)
14959      no_undefined_flag_F77=' -z text'
14960      if test "$GCC" = yes; then
14961	wlarc='${wl}'
14962	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14963	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14964	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14965      else
14966	wlarc=''
14967	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14968	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14969  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14970      fi
14971      hardcode_libdir_flag_spec_F77='-R$libdir'
14972      hardcode_shlibpath_var_F77=no
14973      case $host_os in
14974      solaris2.[0-5] | solaris2.[0-5].*) ;;
14975      *)
14976	# The compiler driver will combine and reorder linker options,
14977	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14978	# but is careful enough not to reorder.
14979 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14980	if test "$GCC" = yes; then
14981	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14982	else
14983	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14984	fi
14985	;;
14986      esac
14987      link_all_deplibs_F77=yes
14988      ;;
14989
14990    sunos4*)
14991      if test "x$host_vendor" = xsequent; then
14992	# Use $CC to link under sequent, because it throws in some extra .o
14993	# files that make .init and .fini sections work.
14994	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14995      else
14996	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14997      fi
14998      hardcode_libdir_flag_spec_F77='-L$libdir'
14999      hardcode_direct_F77=yes
15000      hardcode_minus_L_F77=yes
15001      hardcode_shlibpath_var_F77=no
15002      ;;
15003
15004    sysv4)
15005      case $host_vendor in
15006	sni)
15007	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008	  hardcode_direct_F77=yes # is this really true???
15009	;;
15010	siemens)
15011	  ## LD is ld it makes a PLAMLIB
15012	  ## CC just makes a GrossModule.
15013	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15014	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15015	  hardcode_direct_F77=no
15016        ;;
15017	motorola)
15018	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15019	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15020	;;
15021      esac
15022      runpath_var='LD_RUN_PATH'
15023      hardcode_shlibpath_var_F77=no
15024      ;;
15025
15026    sysv4.3*)
15027      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028      hardcode_shlibpath_var_F77=no
15029      export_dynamic_flag_spec_F77='-Bexport'
15030      ;;
15031
15032    sysv4*MP*)
15033      if test -d /usr/nec; then
15034	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15035	hardcode_shlibpath_var_F77=no
15036	runpath_var=LD_RUN_PATH
15037	hardcode_runpath_var=yes
15038	ld_shlibs_F77=yes
15039      fi
15040      ;;
15041
15042    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15043      no_undefined_flag_F77='${wl}-z,text'
15044      archive_cmds_need_lc_F77=no
15045      hardcode_shlibpath_var_F77=no
15046      runpath_var='LD_RUN_PATH'
15047
15048      if test "$GCC" = yes; then
15049	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15050	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15051      else
15052	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15053	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15054      fi
15055      ;;
15056
15057    sysv5* | sco3.2v5* | sco5v6*)
15058      # Note: We can NOT use -z defs as we might desire, because we do not
15059      # link with -lc, and that would cause any symbols used from libc to
15060      # always be unresolved, which means just about no library would
15061      # ever link correctly.  If we're not using GNU ld we use -z text
15062      # though, which does catch some bad symbols but isn't as heavy-handed
15063      # as -z defs.
15064      no_undefined_flag_F77='${wl}-z,text'
15065      allow_undefined_flag_F77='${wl}-z,nodefs'
15066      archive_cmds_need_lc_F77=no
15067      hardcode_shlibpath_var_F77=no
15068      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15069      hardcode_libdir_separator_F77=':'
15070      link_all_deplibs_F77=yes
15071      export_dynamic_flag_spec_F77='${wl}-Bexport'
15072      runpath_var='LD_RUN_PATH'
15073
15074      if test "$GCC" = yes; then
15075	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15077      else
15078	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15079	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15080      fi
15081      ;;
15082
15083    uts4*)
15084      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15085      hardcode_libdir_flag_spec_F77='-L$libdir'
15086      hardcode_shlibpath_var_F77=no
15087      ;;
15088
15089    *)
15090      ld_shlibs_F77=no
15091      ;;
15092    esac
15093  fi
15094
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15096$as_echo "$ld_shlibs_F77" >&6; }
15097test "$ld_shlibs_F77" = no && can_build_shared=no
15098
15099#
15100# Do we need to explicitly link libc?
15101#
15102case "x$archive_cmds_need_lc_F77" in
15103x|xyes)
15104  # Assume -lc should be added
15105  archive_cmds_need_lc_F77=yes
15106
15107  if test "$enable_shared" = yes && test "$GCC" = yes; then
15108    case $archive_cmds_F77 in
15109    *'~'*)
15110      # FIXME: we may have to deal with multi-command sequences.
15111      ;;
15112    '$CC '*)
15113      # Test whether the compiler implicitly links with -lc since on some
15114      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15115      # to ld, don't add -lc before -lgcc.
15116      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15117$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15118      $rm conftest*
15119      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15120
15121      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15122  (eval $ac_compile) 2>&5
15123  ac_status=$?
15124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15125  test $ac_status = 0; } 2>conftest.err; then
15126        soname=conftest
15127        lib=conftest
15128        libobjs=conftest.$ac_objext
15129        deplibs=
15130        wl=$lt_prog_compiler_wl_F77
15131	pic_flag=$lt_prog_compiler_pic_F77
15132        compiler_flags=-v
15133        linker_flags=-v
15134        verstring=
15135        output_objdir=.
15136        libname=conftest
15137        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15138        allow_undefined_flag_F77=
15139        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15140  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15141  ac_status=$?
15142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15143  test $ac_status = 0; }
15144        then
15145	  archive_cmds_need_lc_F77=no
15146        else
15147	  archive_cmds_need_lc_F77=yes
15148        fi
15149        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15150      else
15151        cat conftest.err 1>&5
15152      fi
15153      $rm conftest*
15154      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15155$as_echo "$archive_cmds_need_lc_F77" >&6; }
15156      ;;
15157    esac
15158  fi
15159  ;;
15160esac
15161
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15163$as_echo_n "checking dynamic linker characteristics... " >&6; }
15164library_names_spec=
15165libname_spec='lib$name'
15166soname_spec=
15167shrext_cmds=".so"
15168postinstall_cmds=
15169postuninstall_cmds=
15170finish_cmds=
15171finish_eval=
15172shlibpath_var=
15173shlibpath_overrides_runpath=unknown
15174version_type=none
15175dynamic_linker="$host_os ld.so"
15176sys_lib_dlsearch_path_spec="/lib /usr/lib"
15177
15178need_lib_prefix=unknown
15179hardcode_into_libs=no
15180
15181# when you set need_version to no, make sure it does not cause -set_version
15182# flags to be left without arguments
15183need_version=unknown
15184
15185case $host_os in
15186aix3*)
15187  version_type=linux
15188  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15189  shlibpath_var=LIBPATH
15190
15191  # AIX 3 has no versioning support, so we append a major version to the name.
15192  soname_spec='${libname}${release}${shared_ext}$major'
15193  ;;
15194
15195aix[4-9]*)
15196  version_type=linux
15197  need_lib_prefix=no
15198  need_version=no
15199  hardcode_into_libs=yes
15200  if test "$host_cpu" = ia64; then
15201    # AIX 5 supports IA64
15202    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15203    shlibpath_var=LD_LIBRARY_PATH
15204  else
15205    # With GCC up to 2.95.x, collect2 would create an import file
15206    # for dependence libraries.  The import file would start with
15207    # the line `#! .'.  This would cause the generated library to
15208    # depend on `.', always an invalid library.  This was fixed in
15209    # development snapshots of GCC prior to 3.0.
15210    case $host_os in
15211      aix4 | aix4.[01] | aix4.[01].*)
15212      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15213	   echo ' yes '
15214	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15215	:
15216      else
15217	can_build_shared=no
15218      fi
15219      ;;
15220    esac
15221    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15222    # soname into executable. Probably we can add versioning support to
15223    # collect2, so additional links can be useful in future.
15224    if test "$aix_use_runtimelinking" = yes; then
15225      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15226      # instead of lib<name>.a to let people know that these are not
15227      # typical AIX shared libraries.
15228      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229    else
15230      # We preserve .a as extension for shared libraries through AIX4.2
15231      # and later when we are not doing run time linking.
15232      library_names_spec='${libname}${release}.a $libname.a'
15233      soname_spec='${libname}${release}${shared_ext}$major'
15234    fi
15235    shlibpath_var=LIBPATH
15236  fi
15237  ;;
15238
15239amigaos*)
15240  library_names_spec='$libname.ixlibrary $libname.a'
15241  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15242  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15243  ;;
15244
15245beos*)
15246  library_names_spec='${libname}${shared_ext}'
15247  dynamic_linker="$host_os ld.so"
15248  shlibpath_var=LIBRARY_PATH
15249  ;;
15250
15251bsdi[45]*)
15252  version_type=linux
15253  need_version=no
15254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255  soname_spec='${libname}${release}${shared_ext}$major'
15256  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15257  shlibpath_var=LD_LIBRARY_PATH
15258  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15259  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15260  # the default ld.so.conf also contains /usr/contrib/lib and
15261  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15262  # libtool to hard-code these into programs
15263  ;;
15264
15265cygwin* | mingw* | pw32*)
15266  version_type=windows
15267  shrext_cmds=".dll"
15268  need_version=no
15269  need_lib_prefix=no
15270
15271  case $GCC,$host_os in
15272  yes,cygwin* | yes,mingw* | yes,pw32*)
15273    library_names_spec='$libname.dll.a'
15274    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15275    postinstall_cmds='base_file=`basename \${file}`~
15276      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15277      dldir=$destdir/`dirname \$dlpath`~
15278      test -d \$dldir || mkdir -p \$dldir~
15279      $install_prog $dir/$dlname \$dldir/$dlname~
15280      chmod a+x \$dldir/$dlname'
15281    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15282      dlpath=$dir/\$dldll~
15283       $rm \$dlpath'
15284    shlibpath_overrides_runpath=yes
15285
15286    case $host_os in
15287    cygwin*)
15288      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15289      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15290      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15291      ;;
15292    mingw*)
15293      # MinGW DLLs use traditional 'lib' prefix
15294      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15295      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15296      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15297        # It is most probably a Windows format PATH printed by
15298        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15299        # path with ; separators, and with drive letters. We can handle the
15300        # drive letters (cygwin fileutils understands them), so leave them,
15301        # especially as we might pass files found there to a mingw objdump,
15302        # which wouldn't understand a cygwinified path. Ahh.
15303        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15304      else
15305        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15306      fi
15307      ;;
15308    pw32*)
15309      # pw32 DLLs use 'pw' prefix rather than 'lib'
15310      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311      ;;
15312    esac
15313    ;;
15314
15315  *)
15316    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15317    ;;
15318  esac
15319  dynamic_linker='Win32 ld.exe'
15320  # FIXME: first we should search . and the directory the executable is in
15321  shlibpath_var=PATH
15322  ;;
15323
15324darwin* | rhapsody*)
15325  dynamic_linker="$host_os dyld"
15326  version_type=darwin
15327  need_lib_prefix=no
15328  need_version=no
15329  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15330  soname_spec='${libname}${release}${major}$shared_ext'
15331  shlibpath_overrides_runpath=yes
15332  shlibpath_var=DYLD_LIBRARY_PATH
15333  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15334
15335  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15336  ;;
15337
15338dgux*)
15339  version_type=linux
15340  need_lib_prefix=no
15341  need_version=no
15342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15343  soname_spec='${libname}${release}${shared_ext}$major'
15344  shlibpath_var=LD_LIBRARY_PATH
15345  ;;
15346
15347freebsd1*)
15348  dynamic_linker=no
15349  ;;
15350
15351freebsd* | dragonfly*)
15352  # DragonFly does not have aout.  When/if they implement a new
15353  # versioning mechanism, adjust this.
15354  if test -x /usr/bin/objformat; then
15355    objformat=`/usr/bin/objformat`
15356  else
15357    case $host_os in
15358    freebsd[123]*) objformat=aout ;;
15359    *) objformat=elf ;;
15360    esac
15361  fi
15362  version_type=freebsd-$objformat
15363  case $version_type in
15364    freebsd-elf*)
15365      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15366      need_version=no
15367      need_lib_prefix=no
15368      ;;
15369    freebsd-*)
15370      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15371      need_version=yes
15372      ;;
15373  esac
15374  shlibpath_var=LD_LIBRARY_PATH
15375  case $host_os in
15376  freebsd2*)
15377    shlibpath_overrides_runpath=yes
15378    ;;
15379  freebsd3.[01]* | freebsdelf3.[01]*)
15380    shlibpath_overrides_runpath=yes
15381    hardcode_into_libs=yes
15382    ;;
15383  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15384  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15385    shlibpath_overrides_runpath=no
15386    hardcode_into_libs=yes
15387    ;;
15388  *) # from 4.6 on, and DragonFly
15389    shlibpath_overrides_runpath=yes
15390    hardcode_into_libs=yes
15391    ;;
15392  esac
15393  ;;
15394
15395gnu*)
15396  version_type=linux
15397  need_lib_prefix=no
15398  need_version=no
15399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15400  soname_spec='${libname}${release}${shared_ext}$major'
15401  shlibpath_var=LD_LIBRARY_PATH
15402  hardcode_into_libs=yes
15403  ;;
15404
15405hpux9* | hpux10* | hpux11*)
15406  # Give a soname corresponding to the major version so that dld.sl refuses to
15407  # link against other versions.
15408  version_type=sunos
15409  need_lib_prefix=no
15410  need_version=no
15411  case $host_cpu in
15412  ia64*)
15413    shrext_cmds='.so'
15414    hardcode_into_libs=yes
15415    dynamic_linker="$host_os dld.so"
15416    shlibpath_var=LD_LIBRARY_PATH
15417    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15418    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419    soname_spec='${libname}${release}${shared_ext}$major'
15420    if test "X$HPUX_IA64_MODE" = X32; then
15421      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15422    else
15423      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15424    fi
15425    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15426    ;;
15427   hppa*64*)
15428     shrext_cmds='.sl'
15429     hardcode_into_libs=yes
15430     dynamic_linker="$host_os dld.sl"
15431     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434     soname_spec='${libname}${release}${shared_ext}$major'
15435     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15437     ;;
15438   *)
15439    shrext_cmds='.sl'
15440    dynamic_linker="$host_os dld.sl"
15441    shlibpath_var=SHLIB_PATH
15442    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15443    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444    soname_spec='${libname}${release}${shared_ext}$major'
15445    ;;
15446  esac
15447  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15448  postinstall_cmds='chmod 555 $lib'
15449  ;;
15450
15451interix[3-9]*)
15452  version_type=linux
15453  need_lib_prefix=no
15454  need_version=no
15455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15456  soname_spec='${libname}${release}${shared_ext}$major'
15457  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15458  shlibpath_var=LD_LIBRARY_PATH
15459  shlibpath_overrides_runpath=no
15460  hardcode_into_libs=yes
15461  ;;
15462
15463irix5* | irix6* | nonstopux*)
15464  case $host_os in
15465    nonstopux*) version_type=nonstopux ;;
15466    *)
15467	if test "$lt_cv_prog_gnu_ld" = yes; then
15468		version_type=linux
15469	else
15470		version_type=irix
15471	fi ;;
15472  esac
15473  need_lib_prefix=no
15474  need_version=no
15475  soname_spec='${libname}${release}${shared_ext}$major'
15476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15477  case $host_os in
15478  irix5* | nonstopux*)
15479    libsuff= shlibsuff=
15480    ;;
15481  *)
15482    case $LD in # libtool.m4 will add one of these switches to LD
15483    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15484      libsuff= shlibsuff= libmagic=32-bit;;
15485    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15486      libsuff=32 shlibsuff=N32 libmagic=N32;;
15487    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15488      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15489    *) libsuff= shlibsuff= libmagic=never-match;;
15490    esac
15491    ;;
15492  esac
15493  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15494  shlibpath_overrides_runpath=no
15495  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15496  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15497  hardcode_into_libs=yes
15498  ;;
15499
15500# No shared lib support for Linux oldld, aout, or coff.
15501linux*oldld* | linux*aout* | linux*coff*)
15502  dynamic_linker=no
15503  ;;
15504
15505# This must be Linux ELF.
15506linux* | k*bsd*-gnu)
15507  version_type=linux
15508  need_lib_prefix=no
15509  need_version=no
15510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511  soname_spec='${libname}${release}${shared_ext}$major'
15512  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15513  shlibpath_var=LD_LIBRARY_PATH
15514  shlibpath_overrides_runpath=no
15515  # This implies no fast_install, which is unacceptable.
15516  # Some rework will be needed to allow for fast_install
15517  # before this can be enabled.
15518  hardcode_into_libs=yes
15519
15520  # Append ld.so.conf contents to the search path
15521  if test -f /etc/ld.so.conf; then
15522    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15523    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15524  fi
15525
15526  # We used to test for /lib/ld.so.1 and disable shared libraries on
15527  # powerpc, because MkLinux only supported shared libraries with the
15528  # GNU dynamic linker.  Since this was broken with cross compilers,
15529  # most powerpc-linux boxes support dynamic linking these days and
15530  # people can always --disable-shared, the test was removed, and we
15531  # assume the GNU/Linux dynamic linker is in use.
15532  dynamic_linker='GNU/Linux ld.so'
15533  ;;
15534
15535netbsd*)
15536  version_type=sunos
15537  need_lib_prefix=no
15538  need_version=no
15539  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15541    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15542    dynamic_linker='NetBSD (a.out) ld.so'
15543  else
15544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15545    soname_spec='${libname}${release}${shared_ext}$major'
15546    dynamic_linker='NetBSD ld.elf_so'
15547  fi
15548  shlibpath_var=LD_LIBRARY_PATH
15549  shlibpath_overrides_runpath=yes
15550  hardcode_into_libs=yes
15551  ;;
15552
15553newsos6)
15554  version_type=linux
15555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556  shlibpath_var=LD_LIBRARY_PATH
15557  shlibpath_overrides_runpath=yes
15558  ;;
15559
15560nto-qnx*)
15561  version_type=linux
15562  need_lib_prefix=no
15563  need_version=no
15564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565  soname_spec='${libname}${release}${shared_ext}$major'
15566  shlibpath_var=LD_LIBRARY_PATH
15567  shlibpath_overrides_runpath=yes
15568  ;;
15569
15570openbsd*)
15571  version_type=sunos
15572  sys_lib_dlsearch_path_spec="/usr/lib"
15573  need_lib_prefix=no
15574  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15575  case $host_os in
15576    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15577    *)                         need_version=no  ;;
15578  esac
15579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15580  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15581  shlibpath_var=LD_LIBRARY_PATH
15582  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15583    case $host_os in
15584      openbsd2.[89] | openbsd2.[89].*)
15585	shlibpath_overrides_runpath=no
15586	;;
15587      *)
15588	shlibpath_overrides_runpath=yes
15589	;;
15590      esac
15591  else
15592    shlibpath_overrides_runpath=yes
15593  fi
15594  ;;
15595
15596os2*)
15597  libname_spec='$name'
15598  shrext_cmds=".dll"
15599  need_lib_prefix=no
15600  library_names_spec='$libname${shared_ext} $libname.a'
15601  dynamic_linker='OS/2 ld.exe'
15602  shlibpath_var=LIBPATH
15603  ;;
15604
15605osf3* | osf4* | osf5*)
15606  version_type=osf
15607  need_lib_prefix=no
15608  need_version=no
15609  soname_spec='${libname}${release}${shared_ext}$major'
15610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611  shlibpath_var=LD_LIBRARY_PATH
15612  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15613  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15614  ;;
15615
15616rdos*)
15617  dynamic_linker=no
15618  ;;
15619
15620solaris*)
15621  version_type=linux
15622  need_lib_prefix=no
15623  need_version=no
15624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15625  soname_spec='${libname}${release}${shared_ext}$major'
15626  shlibpath_var=LD_LIBRARY_PATH
15627  shlibpath_overrides_runpath=yes
15628  hardcode_into_libs=yes
15629  # ldd complains unless libraries are executable
15630  postinstall_cmds='chmod +x $lib'
15631  ;;
15632
15633sunos4*)
15634  version_type=sunos
15635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15636  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15637  shlibpath_var=LD_LIBRARY_PATH
15638  shlibpath_overrides_runpath=yes
15639  if test "$with_gnu_ld" = yes; then
15640    need_lib_prefix=no
15641  fi
15642  need_version=yes
15643  ;;
15644
15645sysv4 | sysv4.3*)
15646  version_type=linux
15647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648  soname_spec='${libname}${release}${shared_ext}$major'
15649  shlibpath_var=LD_LIBRARY_PATH
15650  case $host_vendor in
15651    sni)
15652      shlibpath_overrides_runpath=no
15653      need_lib_prefix=no
15654      export_dynamic_flag_spec='${wl}-Blargedynsym'
15655      runpath_var=LD_RUN_PATH
15656      ;;
15657    siemens)
15658      need_lib_prefix=no
15659      ;;
15660    motorola)
15661      need_lib_prefix=no
15662      need_version=no
15663      shlibpath_overrides_runpath=no
15664      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15665      ;;
15666  esac
15667  ;;
15668
15669sysv4*MP*)
15670  if test -d /usr/nec ;then
15671    version_type=linux
15672    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15673    soname_spec='$libname${shared_ext}.$major'
15674    shlibpath_var=LD_LIBRARY_PATH
15675  fi
15676  ;;
15677
15678sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15679  version_type=freebsd-elf
15680  need_lib_prefix=no
15681  need_version=no
15682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15683  soname_spec='${libname}${release}${shared_ext}$major'
15684  shlibpath_var=LD_LIBRARY_PATH
15685  hardcode_into_libs=yes
15686  if test "$with_gnu_ld" = yes; then
15687    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15688    shlibpath_overrides_runpath=no
15689  else
15690    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15691    shlibpath_overrides_runpath=yes
15692    case $host_os in
15693      sco3.2v5*)
15694        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15695	;;
15696    esac
15697  fi
15698  sys_lib_dlsearch_path_spec='/usr/lib'
15699  ;;
15700
15701uts4*)
15702  version_type=linux
15703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704  soname_spec='${libname}${release}${shared_ext}$major'
15705  shlibpath_var=LD_LIBRARY_PATH
15706  ;;
15707
15708*)
15709  dynamic_linker=no
15710  ;;
15711esac
15712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15713$as_echo "$dynamic_linker" >&6; }
15714test "$dynamic_linker" = no && can_build_shared=no
15715
15716if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15717  $as_echo_n "(cached) " >&6
15718else
15719  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15720fi
15721
15722sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15723if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15724  $as_echo_n "(cached) " >&6
15725else
15726  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15727fi
15728
15729sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15730
15731variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15732if test "$GCC" = yes; then
15733  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15734fi
15735
15736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15737$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15738hardcode_action_F77=
15739if test -n "$hardcode_libdir_flag_spec_F77" || \
15740   test -n "$runpath_var_F77" || \
15741   test "X$hardcode_automatic_F77" = "Xyes" ; then
15742
15743  # We can hardcode non-existant directories.
15744  if test "$hardcode_direct_F77" != no &&
15745     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15746     # have to relink, otherwise we might link with an installed library
15747     # when we should be linking with a yet-to-be-installed one
15748     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15749     test "$hardcode_minus_L_F77" != no; then
15750    # Linking always hardcodes the temporary library directory.
15751    hardcode_action_F77=relink
15752  else
15753    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15754    hardcode_action_F77=immediate
15755  fi
15756else
15757  # We cannot hardcode anything, or else we can only hardcode existing
15758  # directories.
15759  hardcode_action_F77=unsupported
15760fi
15761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15762$as_echo "$hardcode_action_F77" >&6; }
15763
15764if test "$hardcode_action_F77" = relink; then
15765  # Fast installation is not supported
15766  enable_fast_install=no
15767elif test "$shlibpath_overrides_runpath" = yes ||
15768     test "$enable_shared" = no; then
15769  # Fast installation is not necessary
15770  enable_fast_install=needless
15771fi
15772
15773
15774# The else clause should only fire when bootstrapping the
15775# libtool distribution, otherwise you forgot to ship ltmain.sh
15776# with your package, and you will get complaints that there are
15777# no rules to generate ltmain.sh.
15778if test -f "$ltmain"; then
15779  # See if we are running on zsh, and set the options which allow our commands through
15780  # without removal of \ escapes.
15781  if test -n "${ZSH_VERSION+set}" ; then
15782    setopt NO_GLOB_SUBST
15783  fi
15784  # Now quote all the things that may contain metacharacters while being
15785  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15786  # variables and quote the copies for generation of the libtool script.
15787  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15788    SED SHELL STRIP \
15789    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15790    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15791    deplibs_check_method reload_flag reload_cmds need_locks \
15792    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15793    lt_cv_sys_global_symbol_to_c_name_address \
15794    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15795    old_postinstall_cmds old_postuninstall_cmds \
15796    compiler_F77 \
15797    CC_F77 \
15798    LD_F77 \
15799    lt_prog_compiler_wl_F77 \
15800    lt_prog_compiler_pic_F77 \
15801    lt_prog_compiler_static_F77 \
15802    lt_prog_compiler_no_builtin_flag_F77 \
15803    export_dynamic_flag_spec_F77 \
15804    thread_safe_flag_spec_F77 \
15805    whole_archive_flag_spec_F77 \
15806    enable_shared_with_static_runtimes_F77 \
15807    old_archive_cmds_F77 \
15808    old_archive_from_new_cmds_F77 \
15809    predep_objects_F77 \
15810    postdep_objects_F77 \
15811    predeps_F77 \
15812    postdeps_F77 \
15813    compiler_lib_search_path_F77 \
15814    compiler_lib_search_dirs_F77 \
15815    archive_cmds_F77 \
15816    archive_expsym_cmds_F77 \
15817    postinstall_cmds_F77 \
15818    postuninstall_cmds_F77 \
15819    old_archive_from_expsyms_cmds_F77 \
15820    allow_undefined_flag_F77 \
15821    no_undefined_flag_F77 \
15822    export_symbols_cmds_F77 \
15823    hardcode_libdir_flag_spec_F77 \
15824    hardcode_libdir_flag_spec_ld_F77 \
15825    hardcode_libdir_separator_F77 \
15826    hardcode_automatic_F77 \
15827    module_cmds_F77 \
15828    module_expsym_cmds_F77 \
15829    lt_cv_prog_compiler_c_o_F77 \
15830    fix_srcfile_path_F77 \
15831    exclude_expsyms_F77 \
15832    include_expsyms_F77; do
15833
15834    case $var in
15835    old_archive_cmds_F77 | \
15836    old_archive_from_new_cmds_F77 | \
15837    archive_cmds_F77 | \
15838    archive_expsym_cmds_F77 | \
15839    module_cmds_F77 | \
15840    module_expsym_cmds_F77 | \
15841    old_archive_from_expsyms_cmds_F77 | \
15842    export_symbols_cmds_F77 | \
15843    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15844    postinstall_cmds | postuninstall_cmds | \
15845    old_postinstall_cmds | old_postuninstall_cmds | \
15846    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15847      # Double-quote double-evaled strings.
15848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15849      ;;
15850    *)
15851      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15852      ;;
15853    esac
15854  done
15855
15856  case $lt_echo in
15857  *'\$0 --fallback-echo"')
15858    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15859    ;;
15860  esac
15861
15862cfgfile="$ofile"
15863
15864  cat <<__EOF__ >> "$cfgfile"
15865# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15866
15867# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15868
15869# Shell to use when invoking shell scripts.
15870SHELL=$lt_SHELL
15871
15872# Whether or not to build shared libraries.
15873build_libtool_libs=$enable_shared
15874
15875# Whether or not to build static libraries.
15876build_old_libs=$enable_static
15877
15878# Whether or not to add -lc for building shared libraries.
15879build_libtool_need_lc=$archive_cmds_need_lc_F77
15880
15881# Whether or not to disallow shared libs when runtime libs are static
15882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15883
15884# Whether or not to optimize for fast installation.
15885fast_install=$enable_fast_install
15886
15887# The host system.
15888host_alias=$host_alias
15889host=$host
15890host_os=$host_os
15891
15892# The build system.
15893build_alias=$build_alias
15894build=$build
15895build_os=$build_os
15896
15897# An echo program that does not interpret backslashes.
15898echo=$lt_echo
15899
15900# The archiver.
15901AR=$lt_AR
15902AR_FLAGS=$lt_AR_FLAGS
15903
15904# A C compiler.
15905LTCC=$lt_LTCC
15906
15907# LTCC compiler flags.
15908LTCFLAGS=$lt_LTCFLAGS
15909
15910# A language-specific compiler.
15911CC=$lt_compiler_F77
15912
15913# Is the compiler the GNU C compiler?
15914with_gcc=$GCC_F77
15915
15916# An ERE matcher.
15917EGREP=$lt_EGREP
15918
15919# The linker used to build libraries.
15920LD=$lt_LD_F77
15921
15922# Whether we need hard or soft links.
15923LN_S=$lt_LN_S
15924
15925# A BSD-compatible nm program.
15926NM=$lt_NM
15927
15928# A symbol stripping program
15929STRIP=$lt_STRIP
15930
15931# Used to examine libraries when file_magic_cmd begins "file"
15932MAGIC_CMD=$MAGIC_CMD
15933
15934# Used on cygwin: DLL creation program.
15935DLLTOOL="$DLLTOOL"
15936
15937# Used on cygwin: object dumper.
15938OBJDUMP="$OBJDUMP"
15939
15940# Used on cygwin: assembler.
15941AS="$AS"
15942
15943# The name of the directory that contains temporary libtool files.
15944objdir=$objdir
15945
15946# How to create reloadable object files.
15947reload_flag=$lt_reload_flag
15948reload_cmds=$lt_reload_cmds
15949
15950# How to pass a linker flag through the compiler.
15951wl=$lt_lt_prog_compiler_wl_F77
15952
15953# Object file suffix (normally "o").
15954objext="$ac_objext"
15955
15956# Old archive suffix (normally "a").
15957libext="$libext"
15958
15959# Shared library suffix (normally ".so").
15960shrext_cmds='$shrext_cmds'
15961
15962# Executable file suffix (normally "").
15963exeext="$exeext"
15964
15965# Additional compiler flags for building library objects.
15966pic_flag=$lt_lt_prog_compiler_pic_F77
15967pic_mode=$pic_mode
15968
15969# What is the maximum length of a command?
15970max_cmd_len=$lt_cv_sys_max_cmd_len
15971
15972# Does compiler simultaneously support -c and -o options?
15973compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15974
15975# Must we lock files when doing compilation?
15976need_locks=$lt_need_locks
15977
15978# Do we need the lib prefix for modules?
15979need_lib_prefix=$need_lib_prefix
15980
15981# Do we need a version for libraries?
15982need_version=$need_version
15983
15984# Whether dlopen is supported.
15985dlopen_support=$enable_dlopen
15986
15987# Whether dlopen of programs is supported.
15988dlopen_self=$enable_dlopen_self
15989
15990# Whether dlopen of statically linked programs is supported.
15991dlopen_self_static=$enable_dlopen_self_static
15992
15993# Compiler flag to prevent dynamic linking.
15994link_static_flag=$lt_lt_prog_compiler_static_F77
15995
15996# Compiler flag to turn off builtin functions.
15997no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15998
15999# Compiler flag to allow reflexive dlopens.
16000export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16001
16002# Compiler flag to generate shared objects directly from archives.
16003whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16004
16005# Compiler flag to generate thread-safe objects.
16006thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16007
16008# Library versioning type.
16009version_type=$version_type
16010
16011# Format of library name prefix.
16012libname_spec=$lt_libname_spec
16013
16014# List of archive names.  First name is the real one, the rest are links.
16015# The last name is the one that the linker finds with -lNAME.
16016library_names_spec=$lt_library_names_spec
16017
16018# The coded name of the library, if different from the real name.
16019soname_spec=$lt_soname_spec
16020
16021# Commands used to build and install an old-style archive.
16022RANLIB=$lt_RANLIB
16023old_archive_cmds=$lt_old_archive_cmds_F77
16024old_postinstall_cmds=$lt_old_postinstall_cmds
16025old_postuninstall_cmds=$lt_old_postuninstall_cmds
16026
16027# Create an old-style archive from a shared archive.
16028old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16029
16030# Create a temporary old-style archive to link instead of a shared archive.
16031old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16032
16033# Commands used to build and install a shared archive.
16034archive_cmds=$lt_archive_cmds_F77
16035archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16036postinstall_cmds=$lt_postinstall_cmds
16037postuninstall_cmds=$lt_postuninstall_cmds
16038
16039# Commands used to build a loadable module (assumed same as above if empty)
16040module_cmds=$lt_module_cmds_F77
16041module_expsym_cmds=$lt_module_expsym_cmds_F77
16042
16043# Commands to strip libraries.
16044old_striplib=$lt_old_striplib
16045striplib=$lt_striplib
16046
16047# Dependencies to place before the objects being linked to create a
16048# shared library.
16049predep_objects=$lt_predep_objects_F77
16050
16051# Dependencies to place after the objects being linked to create a
16052# shared library.
16053postdep_objects=$lt_postdep_objects_F77
16054
16055# Dependencies to place before the objects being linked to create a
16056# shared library.
16057predeps=$lt_predeps_F77
16058
16059# Dependencies to place after the objects being linked to create a
16060# shared library.
16061postdeps=$lt_postdeps_F77
16062
16063# The directories searched by this compiler when creating a shared
16064# library
16065compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16066
16067# The library search path used internally by the compiler when linking
16068# a shared library.
16069compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16070
16071# Method to check whether dependent libraries are shared objects.
16072deplibs_check_method=$lt_deplibs_check_method
16073
16074# Command to use when deplibs_check_method == file_magic.
16075file_magic_cmd=$lt_file_magic_cmd
16076
16077# Flag that allows shared libraries with undefined symbols to be built.
16078allow_undefined_flag=$lt_allow_undefined_flag_F77
16079
16080# Flag that forces no undefined symbols.
16081no_undefined_flag=$lt_no_undefined_flag_F77
16082
16083# Commands used to finish a libtool library installation in a directory.
16084finish_cmds=$lt_finish_cmds
16085
16086# Same as above, but a single script fragment to be evaled but not shown.
16087finish_eval=$lt_finish_eval
16088
16089# Take the output of nm and produce a listing of raw symbols and C names.
16090global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16091
16092# Transform the output of nm in a proper C declaration
16093global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16094
16095# Transform the output of nm in a C name address pair
16096global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16097
16098# This is the shared library runtime path variable.
16099runpath_var=$runpath_var
16100
16101# This is the shared library path variable.
16102shlibpath_var=$shlibpath_var
16103
16104# Is shlibpath searched before the hard-coded library search path?
16105shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16106
16107# How to hardcode a shared library path into an executable.
16108hardcode_action=$hardcode_action_F77
16109
16110# Whether we should hardcode library paths into libraries.
16111hardcode_into_libs=$hardcode_into_libs
16112
16113# Flag to hardcode \$libdir into a binary during linking.
16114# This must work even if \$libdir does not exist.
16115hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16116
16117# If ld is used when linking, flag to hardcode \$libdir into
16118# a binary during linking. This must work even if \$libdir does
16119# not exist.
16120hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16121
16122# Whether we need a single -rpath flag with a separated argument.
16123hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16124
16125# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16126# resulting binary.
16127hardcode_direct=$hardcode_direct_F77
16128
16129# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16130# resulting binary.
16131hardcode_minus_L=$hardcode_minus_L_F77
16132
16133# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16134# the resulting binary.
16135hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16136
16137# Set to yes if building a shared library automatically hardcodes DIR into the library
16138# and all subsequent libraries and executables linked against it.
16139hardcode_automatic=$hardcode_automatic_F77
16140
16141# Variables whose values should be saved in libtool wrapper scripts and
16142# restored at relink time.
16143variables_saved_for_relink="$variables_saved_for_relink"
16144
16145# Whether libtool must link a program against all its dependency libraries.
16146link_all_deplibs=$link_all_deplibs_F77
16147
16148# Compile-time system search path for libraries
16149sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16150
16151# Run-time system search path for libraries
16152sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16153
16154# Fix the shell variable \$srcfile for the compiler.
16155fix_srcfile_path=$lt_fix_srcfile_path
16156
16157# Set to yes if exported symbols are required.
16158always_export_symbols=$always_export_symbols_F77
16159
16160# The commands to list exported symbols.
16161export_symbols_cmds=$lt_export_symbols_cmds_F77
16162
16163# The commands to extract the exported symbol list from a shared archive.
16164extract_expsyms_cmds=$lt_extract_expsyms_cmds
16165
16166# Symbols that should not be listed in the preloaded symbols.
16167exclude_expsyms=$lt_exclude_expsyms_F77
16168
16169# Symbols that must always be exported.
16170include_expsyms=$lt_include_expsyms_F77
16171
16172# ### END LIBTOOL TAG CONFIG: $tagname
16173
16174__EOF__
16175
16176
16177else
16178  # If there is no Makefile yet, we rely on a make rule to execute
16179  # `config.status --recheck' to rerun these tests and create the
16180  # libtool script then.
16181  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16182  if test -f "$ltmain_in"; then
16183    test -f Makefile && make "$ltmain"
16184  fi
16185fi
16186
16187
16188ac_ext=c
16189ac_cpp='$CPP $CPPFLAGS'
16190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16192ac_compiler_gnu=$ac_cv_c_compiler_gnu
16193
16194CC="$lt_save_CC"
16195
16196	else
16197	  tagname=""
16198	fi
16199	;;
16200
16201      GCJ)
16202	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16203
16204
16205# Source file extension for Java test sources.
16206ac_ext=java
16207
16208# Object file extension for compiled Java test sources.
16209objext=o
16210objext_GCJ=$objext
16211
16212# Code to be used in simple compile tests
16213lt_simple_compile_test_code="class foo {}"
16214
16215# Code to be used in simple link tests
16216lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16217
16218# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16219
16220# If no C compiler was specified, use CC.
16221LTCC=${LTCC-"$CC"}
16222
16223# If no C compiler flags were specified, use CFLAGS.
16224LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16225
16226# Allow CC to be a program name with arguments.
16227compiler=$CC
16228
16229
16230# save warnings/boilerplate of simple test code
16231ac_outfile=conftest.$ac_objext
16232echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16234_lt_compiler_boilerplate=`cat conftest.err`
16235$rm conftest*
16236
16237ac_outfile=conftest.$ac_objext
16238echo "$lt_simple_link_test_code" >conftest.$ac_ext
16239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16240_lt_linker_boilerplate=`cat conftest.err`
16241$rm -r conftest*
16242
16243
16244# Allow CC to be a program name with arguments.
16245lt_save_CC="$CC"
16246CC=${GCJ-"gcj"}
16247compiler=$CC
16248compiler_GCJ=$CC
16249for cc_temp in $compiler""; do
16250  case $cc_temp in
16251    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16252    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16253    \-*) ;;
16254    *) break;;
16255  esac
16256done
16257cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16258
16259
16260# GCJ did not exist at the time GCC didn't implicitly link libc in.
16261archive_cmds_need_lc_GCJ=no
16262
16263old_archive_cmds_GCJ=$old_archive_cmds
16264
16265## CAVEAT EMPTOR:
16266## There is no encapsulation within the following macros, do not change
16267## the running order or otherwise move them around unless you know exactly
16268## what you are doing...
16269
16270lt_prog_compiler_no_builtin_flag_GCJ=
16271
16272if test "$GCC" = yes; then
16273  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16274
16275
16276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16277$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16278if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
16279  $as_echo_n "(cached) " >&6
16280else
16281  lt_cv_prog_compiler_rtti_exceptions=no
16282  ac_outfile=conftest.$ac_objext
16283   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16284   lt_compiler_flag="-fno-rtti -fno-exceptions"
16285   # Insert the option either (1) after the last *FLAGS variable, or
16286   # (2) before a word containing "conftest.", or (3) at the end.
16287   # Note that $ac_compile itself does not contain backslashes and begins
16288   # with a dollar sign (not a hyphen), so the echo should work correctly.
16289   # The option is referenced via a variable to avoid confusing sed.
16290   lt_compile=`echo "$ac_compile" | $SED \
16291   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16292   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293   -e 's:$: $lt_compiler_flag:'`
16294   (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295   (eval "$lt_compile" 2>conftest.err)
16296   ac_status=$?
16297   cat conftest.err >&5
16298   echo "$as_me:16298: \$? = $ac_status" >&5
16299   if (exit $ac_status) && test -s "$ac_outfile"; then
16300     # The compiler can only warn and ignore the option if not recognized
16301     # So say no if there are warnings other than the usual output.
16302     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16303     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16304     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16305       lt_cv_prog_compiler_rtti_exceptions=yes
16306     fi
16307   fi
16308   $rm conftest*
16309
16310fi
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16312$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16313
16314if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16315    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16316else
16317    :
16318fi
16319
16320fi
16321
16322lt_prog_compiler_wl_GCJ=
16323lt_prog_compiler_pic_GCJ=
16324lt_prog_compiler_static_GCJ=
16325
16326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16327$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16328
16329  if test "$GCC" = yes; then
16330    lt_prog_compiler_wl_GCJ='-Wl,'
16331    lt_prog_compiler_static_GCJ='-static'
16332
16333    case $host_os in
16334      aix*)
16335      # All AIX code is PIC.
16336      if test "$host_cpu" = ia64; then
16337	# AIX 5 now supports IA64 processor
16338	lt_prog_compiler_static_GCJ='-Bstatic'
16339      fi
16340      ;;
16341
16342    amigaos*)
16343      # FIXME: we need at least 68020 code to build shared libraries, but
16344      # adding the `-m68020' flag to GCC prevents building anything better,
16345      # like `-m68040'.
16346      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16347      ;;
16348
16349    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16350      # PIC is the default for these OSes.
16351      ;;
16352
16353    mingw* | cygwin* | pw32* | os2*)
16354      # This hack is so that the source file can tell whether it is being
16355      # built for inclusion in a dll (and should export symbols for example).
16356      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16357      # (--disable-auto-import) libraries
16358
16359      ;;
16360
16361    darwin* | rhapsody*)
16362      # PIC is the default on this platform
16363      # Common symbols not allowed in MH_DYLIB files
16364      lt_prog_compiler_pic_GCJ='-fno-common'
16365      ;;
16366
16367    interix[3-9]*)
16368      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16369      # Instead, we relocate shared libraries at runtime.
16370      ;;
16371
16372    msdosdjgpp*)
16373      # Just because we use GCC doesn't mean we suddenly get shared libraries
16374      # on systems that don't support them.
16375      lt_prog_compiler_can_build_shared_GCJ=no
16376      enable_shared=no
16377      ;;
16378
16379    sysv4*MP*)
16380      if test -d /usr/nec; then
16381	lt_prog_compiler_pic_GCJ=-Kconform_pic
16382      fi
16383      ;;
16384
16385    hpux*)
16386      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16387      # not for PA HP-UX.
16388      case $host_cpu in
16389      hppa*64*|ia64*)
16390	# +Z the default
16391	;;
16392      *)
16393	lt_prog_compiler_pic_GCJ='-fPIC'
16394	;;
16395      esac
16396      ;;
16397
16398    *)
16399      lt_prog_compiler_pic_GCJ='-fPIC'
16400      ;;
16401    esac
16402  else
16403    # PORTME Check for flag to pass linker flags through the system compiler.
16404    case $host_os in
16405    aix*)
16406      lt_prog_compiler_wl_GCJ='-Wl,'
16407      if test "$host_cpu" = ia64; then
16408	# AIX 5 now supports IA64 processor
16409	lt_prog_compiler_static_GCJ='-Bstatic'
16410      else
16411	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16412      fi
16413      ;;
16414      darwin*)
16415        # PIC is the default on this platform
16416        # Common symbols not allowed in MH_DYLIB files
16417       case $cc_basename in
16418         xlc*)
16419         lt_prog_compiler_pic_GCJ='-qnocommon'
16420         lt_prog_compiler_wl_GCJ='-Wl,'
16421         ;;
16422       esac
16423       ;;
16424
16425    mingw* | cygwin* | pw32* | os2*)
16426      # This hack is so that the source file can tell whether it is being
16427      # built for inclusion in a dll (and should export symbols for example).
16428
16429      ;;
16430
16431    hpux9* | hpux10* | hpux11*)
16432      lt_prog_compiler_wl_GCJ='-Wl,'
16433      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16434      # not for PA HP-UX.
16435      case $host_cpu in
16436      hppa*64*|ia64*)
16437	# +Z the default
16438	;;
16439      *)
16440	lt_prog_compiler_pic_GCJ='+Z'
16441	;;
16442      esac
16443      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16444      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16445      ;;
16446
16447    irix5* | irix6* | nonstopux*)
16448      lt_prog_compiler_wl_GCJ='-Wl,'
16449      # PIC (with -KPIC) is the default.
16450      lt_prog_compiler_static_GCJ='-non_shared'
16451      ;;
16452
16453    newsos6)
16454      lt_prog_compiler_pic_GCJ='-KPIC'
16455      lt_prog_compiler_static_GCJ='-Bstatic'
16456      ;;
16457
16458    linux* | k*bsd*-gnu)
16459      case $cc_basename in
16460      icc* | ecc*)
16461	lt_prog_compiler_wl_GCJ='-Wl,'
16462	lt_prog_compiler_pic_GCJ='-KPIC'
16463	lt_prog_compiler_static_GCJ='-static'
16464        ;;
16465      pgcc* | pgf77* | pgf90* | pgf95*)
16466        # Portland Group compilers (*not* the Pentium gcc compiler,
16467	# which looks to be a dead project)
16468	lt_prog_compiler_wl_GCJ='-Wl,'
16469	lt_prog_compiler_pic_GCJ='-fpic'
16470	lt_prog_compiler_static_GCJ='-Bstatic'
16471        ;;
16472      ccc*)
16473        lt_prog_compiler_wl_GCJ='-Wl,'
16474        # All Alpha code is PIC.
16475        lt_prog_compiler_static_GCJ='-non_shared'
16476        ;;
16477      *)
16478        case `$CC -V 2>&1 | sed 5q` in
16479	*Sun\ C*)
16480	  # Sun C 5.9
16481	  lt_prog_compiler_pic_GCJ='-KPIC'
16482	  lt_prog_compiler_static_GCJ='-Bstatic'
16483	  lt_prog_compiler_wl_GCJ='-Wl,'
16484	  ;;
16485	*Sun\ F*)
16486	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16487	  lt_prog_compiler_pic_GCJ='-KPIC'
16488	  lt_prog_compiler_static_GCJ='-Bstatic'
16489	  lt_prog_compiler_wl_GCJ=''
16490	  ;;
16491	esac
16492	;;
16493      esac
16494      ;;
16495
16496    osf3* | osf4* | osf5*)
16497      lt_prog_compiler_wl_GCJ='-Wl,'
16498      # All OSF/1 code is PIC.
16499      lt_prog_compiler_static_GCJ='-non_shared'
16500      ;;
16501
16502    rdos*)
16503      lt_prog_compiler_static_GCJ='-non_shared'
16504      ;;
16505
16506    solaris*)
16507      lt_prog_compiler_pic_GCJ='-KPIC'
16508      lt_prog_compiler_static_GCJ='-Bstatic'
16509      case $cc_basename in
16510      f77* | f90* | f95*)
16511	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16512      *)
16513	lt_prog_compiler_wl_GCJ='-Wl,';;
16514      esac
16515      ;;
16516
16517    sunos4*)
16518      lt_prog_compiler_wl_GCJ='-Qoption ld '
16519      lt_prog_compiler_pic_GCJ='-PIC'
16520      lt_prog_compiler_static_GCJ='-Bstatic'
16521      ;;
16522
16523    sysv4 | sysv4.2uw2* | sysv4.3*)
16524      lt_prog_compiler_wl_GCJ='-Wl,'
16525      lt_prog_compiler_pic_GCJ='-KPIC'
16526      lt_prog_compiler_static_GCJ='-Bstatic'
16527      ;;
16528
16529    sysv4*MP*)
16530      if test -d /usr/nec ;then
16531	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16532	lt_prog_compiler_static_GCJ='-Bstatic'
16533      fi
16534      ;;
16535
16536    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16537      lt_prog_compiler_wl_GCJ='-Wl,'
16538      lt_prog_compiler_pic_GCJ='-KPIC'
16539      lt_prog_compiler_static_GCJ='-Bstatic'
16540      ;;
16541
16542    unicos*)
16543      lt_prog_compiler_wl_GCJ='-Wl,'
16544      lt_prog_compiler_can_build_shared_GCJ=no
16545      ;;
16546
16547    uts4*)
16548      lt_prog_compiler_pic_GCJ='-pic'
16549      lt_prog_compiler_static_GCJ='-Bstatic'
16550      ;;
16551
16552    *)
16553      lt_prog_compiler_can_build_shared_GCJ=no
16554      ;;
16555    esac
16556  fi
16557
16558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16559$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16560
16561#
16562# Check to make sure the PIC flag actually works.
16563#
16564if test -n "$lt_prog_compiler_pic_GCJ"; then
16565
16566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16567$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16568if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16569  $as_echo_n "(cached) " >&6
16570else
16571  lt_cv_prog_compiler_pic_works_GCJ=no
16572  ac_outfile=conftest.$ac_objext
16573   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16574   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16575   # Insert the option either (1) after the last *FLAGS variable, or
16576   # (2) before a word containing "conftest.", or (3) at the end.
16577   # Note that $ac_compile itself does not contain backslashes and begins
16578   # with a dollar sign (not a hyphen), so the echo should work correctly.
16579   # The option is referenced via a variable to avoid confusing sed.
16580   lt_compile=`echo "$ac_compile" | $SED \
16581   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16582   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16583   -e 's:$: $lt_compiler_flag:'`
16584   (eval echo "\"\$as_me:16584: $lt_compile\"" >&5)
16585   (eval "$lt_compile" 2>conftest.err)
16586   ac_status=$?
16587   cat conftest.err >&5
16588   echo "$as_me:16588: \$? = $ac_status" >&5
16589   if (exit $ac_status) && test -s "$ac_outfile"; then
16590     # The compiler can only warn and ignore the option if not recognized
16591     # So say no if there are warnings other than the usual output.
16592     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16593     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16594     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16595       lt_cv_prog_compiler_pic_works_GCJ=yes
16596     fi
16597   fi
16598   $rm conftest*
16599
16600fi
16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16602$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16603
16604if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16605    case $lt_prog_compiler_pic_GCJ in
16606     "" | " "*) ;;
16607     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16608     esac
16609else
16610    lt_prog_compiler_pic_GCJ=
16611     lt_prog_compiler_can_build_shared_GCJ=no
16612fi
16613
16614fi
16615case $host_os in
16616  # For platforms which do not support PIC, -DPIC is meaningless:
16617  *djgpp*)
16618    lt_prog_compiler_pic_GCJ=
16619    ;;
16620  *)
16621    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16622    ;;
16623esac
16624
16625#
16626# Check to make sure the static flag actually works.
16627#
16628wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16630$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16631if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16632  $as_echo_n "(cached) " >&6
16633else
16634  lt_cv_prog_compiler_static_works_GCJ=no
16635   save_LDFLAGS="$LDFLAGS"
16636   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16637   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16638   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16639     # The linker can only warn and ignore the option if not recognized
16640     # So say no if there are warnings
16641     if test -s conftest.err; then
16642       # Append any errors to the config.log.
16643       cat conftest.err 1>&5
16644       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16645       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16646       if diff conftest.exp conftest.er2 >/dev/null; then
16647         lt_cv_prog_compiler_static_works_GCJ=yes
16648       fi
16649     else
16650       lt_cv_prog_compiler_static_works_GCJ=yes
16651     fi
16652   fi
16653   $rm -r conftest*
16654   LDFLAGS="$save_LDFLAGS"
16655
16656fi
16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16658$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16659
16660if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16661    :
16662else
16663    lt_prog_compiler_static_GCJ=
16664fi
16665
16666
16667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16668$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16669if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16670  $as_echo_n "(cached) " >&6
16671else
16672  lt_cv_prog_compiler_c_o_GCJ=no
16673   $rm -r conftest 2>/dev/null
16674   mkdir conftest
16675   cd conftest
16676   mkdir out
16677   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16678
16679   lt_compiler_flag="-o out/conftest2.$ac_objext"
16680   # Insert the option either (1) after the last *FLAGS variable, or
16681   # (2) before a word containing "conftest.", or (3) at the end.
16682   # Note that $ac_compile itself does not contain backslashes and begins
16683   # with a dollar sign (not a hyphen), so the echo should work correctly.
16684   lt_compile=`echo "$ac_compile" | $SED \
16685   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16686   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16687   -e 's:$: $lt_compiler_flag:'`
16688   (eval echo "\"\$as_me:16688: $lt_compile\"" >&5)
16689   (eval "$lt_compile" 2>out/conftest.err)
16690   ac_status=$?
16691   cat out/conftest.err >&5
16692   echo "$as_me:16692: \$? = $ac_status" >&5
16693   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16694   then
16695     # The compiler can only warn and ignore the option if not recognized
16696     # So say no if there are warnings
16697     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16698     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16699     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16700       lt_cv_prog_compiler_c_o_GCJ=yes
16701     fi
16702   fi
16703   chmod u+w . 2>&5
16704   $rm conftest*
16705   # SGI C++ compiler will create directory out/ii_files/ for
16706   # template instantiation
16707   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16708   $rm out/* && rmdir out
16709   cd ..
16710   rmdir conftest
16711   $rm conftest*
16712
16713fi
16714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16715$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16716
16717
16718hard_links="nottested"
16719if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16720  # do not overwrite the value of need_locks provided by the user
16721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16722$as_echo_n "checking if we can lock with hard links... " >&6; }
16723  hard_links=yes
16724  $rm conftest*
16725  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16726  touch conftest.a
16727  ln conftest.a conftest.b 2>&5 || hard_links=no
16728  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16730$as_echo "$hard_links" >&6; }
16731  if test "$hard_links" = no; then
16732    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16733$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16734    need_locks=warn
16735  fi
16736else
16737  need_locks=no
16738fi
16739
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16741$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16742
16743  runpath_var=
16744  allow_undefined_flag_GCJ=
16745  enable_shared_with_static_runtimes_GCJ=no
16746  archive_cmds_GCJ=
16747  archive_expsym_cmds_GCJ=
16748  old_archive_From_new_cmds_GCJ=
16749  old_archive_from_expsyms_cmds_GCJ=
16750  export_dynamic_flag_spec_GCJ=
16751  whole_archive_flag_spec_GCJ=
16752  thread_safe_flag_spec_GCJ=
16753  hardcode_libdir_flag_spec_GCJ=
16754  hardcode_libdir_flag_spec_ld_GCJ=
16755  hardcode_libdir_separator_GCJ=
16756  hardcode_direct_GCJ=no
16757  hardcode_minus_L_GCJ=no
16758  hardcode_shlibpath_var_GCJ=unsupported
16759  link_all_deplibs_GCJ=unknown
16760  hardcode_automatic_GCJ=no
16761  module_cmds_GCJ=
16762  module_expsym_cmds_GCJ=
16763  always_export_symbols_GCJ=no
16764  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16765  # include_expsyms should be a list of space-separated symbols to be *always*
16766  # included in the symbol list
16767  include_expsyms_GCJ=
16768  # exclude_expsyms can be an extended regexp of symbols to exclude
16769  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16770  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16771  # as well as any symbol that contains `d'.
16772  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16773  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16774  # platforms (ab)use it in PIC code, but their linkers get confused if
16775  # the symbol is explicitly referenced.  Since portable code cannot
16776  # rely on this symbol name, it's probably fine to never include it in
16777  # preloaded symbol tables.
16778  # Exclude shared library initialization/finalization symbols.
16779  extract_expsyms_cmds=
16780  # Just being paranoid about ensuring that cc_basename is set.
16781  for cc_temp in $compiler""; do
16782  case $cc_temp in
16783    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16784    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16785    \-*) ;;
16786    *) break;;
16787  esac
16788done
16789cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16790
16791  case $host_os in
16792  cygwin* | mingw* | pw32*)
16793    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16794    # When not using gcc, we currently assume that we are using
16795    # Microsoft Visual C++.
16796    if test "$GCC" != yes; then
16797      with_gnu_ld=no
16798    fi
16799    ;;
16800  interix*)
16801    # we just hope/assume this is gcc and not c89 (= MSVC++)
16802    with_gnu_ld=yes
16803    ;;
16804  openbsd*)
16805    with_gnu_ld=no
16806    ;;
16807  esac
16808
16809  ld_shlibs_GCJ=yes
16810  if test "$with_gnu_ld" = yes; then
16811    # If archive_cmds runs LD, not CC, wlarc should be empty
16812    wlarc='${wl}'
16813
16814    # Set some defaults for GNU ld with shared library support. These
16815    # are reset later if shared libraries are not supported. Putting them
16816    # here allows them to be overridden if necessary.
16817    runpath_var=LD_RUN_PATH
16818    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16819    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16820    # ancient GNU ld didn't support --whole-archive et. al.
16821    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16822	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16823      else
16824  	whole_archive_flag_spec_GCJ=
16825    fi
16826    supports_anon_versioning=no
16827    case `$LD -v 2>/dev/null` in
16828      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16829      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16830      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16831      *\ 2.11.*) ;; # other 2.11 versions
16832      *) supports_anon_versioning=yes ;;
16833    esac
16834
16835    # See if GNU ld supports shared libraries.
16836    case $host_os in
16837    aix[3-9]*)
16838      # On AIX/PPC, the GNU linker is very broken
16839      if test "$host_cpu" != ia64; then
16840	ld_shlibs_GCJ=no
16841	cat <<EOF 1>&2
16842
16843*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16844*** to be unable to reliably create shared libraries on AIX.
16845*** Therefore, libtool is disabling shared libraries support.  If you
16846*** really care for shared libraries, you may want to modify your PATH
16847*** so that a non-GNU linker is found, and then restart.
16848
16849EOF
16850      fi
16851      ;;
16852
16853    amigaos*)
16854      archive_cmds_GCJ='$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)'
16855      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16856      hardcode_minus_L_GCJ=yes
16857
16858      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16859      # that the semantics of dynamic libraries on AmigaOS, at least up
16860      # to version 4, is to share data among multiple programs linked
16861      # with the same dynamic library.  Since this doesn't match the
16862      # behavior of shared libraries on other platforms, we can't use
16863      # them.
16864      ld_shlibs_GCJ=no
16865      ;;
16866
16867    beos*)
16868      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16869	allow_undefined_flag_GCJ=unsupported
16870	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16871	# support --undefined.  This deserves some investigation.  FIXME
16872	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16873      else
16874	ld_shlibs_GCJ=no
16875      fi
16876      ;;
16877
16878    cygwin* | mingw* | pw32*)
16879      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16880      # as there is no search path for DLLs.
16881      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882      allow_undefined_flag_GCJ=unsupported
16883      always_export_symbols_GCJ=no
16884      enable_shared_with_static_runtimes_GCJ=yes
16885      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16886
16887      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16888        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16889	# If the export-symbols file already is a .def file (1st line
16890	# is EXPORTS), use it as is; otherwise, prepend...
16891	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16892	  cp $export_symbols $output_objdir/$soname.def;
16893	else
16894	  echo EXPORTS > $output_objdir/$soname.def;
16895	  cat $export_symbols >> $output_objdir/$soname.def;
16896	fi~
16897	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16898      else
16899	ld_shlibs_GCJ=no
16900      fi
16901      ;;
16902
16903    interix[3-9]*)
16904      hardcode_direct_GCJ=no
16905      hardcode_shlibpath_var_GCJ=no
16906      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16907      export_dynamic_flag_spec_GCJ='${wl}-E'
16908      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16909      # Instead, shared libraries are loaded at an image base (0x10000000 by
16910      # default) and relocated if they conflict, which is a slow very memory
16911      # consuming and fragmenting process.  To avoid this, we pick a random,
16912      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16913      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16914      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16915      archive_expsym_cmds_GCJ='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'
16916      ;;
16917
16918    gnu* | linux* | k*bsd*-gnu)
16919      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16920	tmp_addflag=
16921	case $cc_basename,$host_cpu in
16922	pgcc*)				# Portland Group C compiler
16923	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16924	  tmp_addflag=' $pic_flag'
16925	  ;;
16926	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16927	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16928	  tmp_addflag=' $pic_flag -Mnomain' ;;
16929	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16930	  tmp_addflag=' -i_dynamic' ;;
16931	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16932	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16933	ifc* | ifort*)			# Intel Fortran compiler
16934	  tmp_addflag=' -nofor_main' ;;
16935	esac
16936	case `$CC -V 2>&1 | sed 5q` in
16937	*Sun\ C*)			# Sun C 5.9
16938	  whole_archive_flag_spec_GCJ='${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'
16939	  tmp_sharedflag='-G' ;;
16940	*Sun\ F*)			# Sun Fortran 8.3
16941	  tmp_sharedflag='-G' ;;
16942	*)
16943	  tmp_sharedflag='-shared' ;;
16944	esac
16945	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16946
16947	if test $supports_anon_versioning = yes; then
16948	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16949  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16950  $echo "local: *; };" >> $output_objdir/$libname.ver~
16951	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16952	fi
16953      else
16954	ld_shlibs_GCJ=no
16955      fi
16956      ;;
16957
16958    netbsd*)
16959      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16960	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16961	wlarc=
16962      else
16963	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16964	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16965      fi
16966      ;;
16967
16968    solaris*)
16969      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16970	ld_shlibs_GCJ=no
16971	cat <<EOF 1>&2
16972
16973*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16974*** create shared libraries on Solaris systems.  Therefore, libtool
16975*** is disabling shared libraries support.  We urge you to upgrade GNU
16976*** binutils to release 2.9.1 or newer.  Another option is to modify
16977*** your PATH or compiler configuration so that the native linker is
16978*** used, and then restart.
16979
16980EOF
16981      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16982	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16983	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16984      else
16985	ld_shlibs_GCJ=no
16986      fi
16987      ;;
16988
16989    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16990      case `$LD -v 2>&1` in
16991        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16992	ld_shlibs_GCJ=no
16993	cat <<_LT_EOF 1>&2
16994
16995*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16996*** reliably create shared libraries on SCO systems.  Therefore, libtool
16997*** is disabling shared libraries support.  We urge you to upgrade GNU
16998*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16999*** your PATH or compiler configuration so that the native linker is
17000*** used, and then restart.
17001
17002_LT_EOF
17003	;;
17004	*)
17005	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17006	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17007	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17008	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17009	  else
17010	    ld_shlibs_GCJ=no
17011	  fi
17012	;;
17013      esac
17014      ;;
17015
17016    sunos4*)
17017      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17018      wlarc=
17019      hardcode_direct_GCJ=yes
17020      hardcode_shlibpath_var_GCJ=no
17021      ;;
17022
17023    *)
17024      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17025	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17026	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17027      else
17028	ld_shlibs_GCJ=no
17029      fi
17030      ;;
17031    esac
17032
17033    if test "$ld_shlibs_GCJ" = no; then
17034      runpath_var=
17035      hardcode_libdir_flag_spec_GCJ=
17036      export_dynamic_flag_spec_GCJ=
17037      whole_archive_flag_spec_GCJ=
17038    fi
17039  else
17040    # PORTME fill in a description of your system's linker (not GNU ld)
17041    case $host_os in
17042    aix3*)
17043      allow_undefined_flag_GCJ=unsupported
17044      always_export_symbols_GCJ=yes
17045      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17046      # Note: this linker hardcodes the directories in LIBPATH if there
17047      # are no directories specified by -L.
17048      hardcode_minus_L_GCJ=yes
17049      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17050	# Neither direct hardcoding nor static linking is supported with a
17051	# broken collect2.
17052	hardcode_direct_GCJ=unsupported
17053      fi
17054      ;;
17055
17056    aix[4-9]*)
17057      if test "$host_cpu" = ia64; then
17058	# On IA64, the linker does run time linking by default, so we don't
17059	# have to do anything special.
17060	aix_use_runtimelinking=no
17061	exp_sym_flag='-Bexport'
17062	no_entry_flag=""
17063      else
17064	# If we're using GNU nm, then we don't want the "-C" option.
17065	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17066	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17067	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17068	else
17069	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17070	fi
17071	aix_use_runtimelinking=no
17072
17073	# Test if we are trying to use run time linking or normal
17074	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17075	# need to do runtime linking.
17076	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17077	  for ld_flag in $LDFLAGS; do
17078  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17079  	    aix_use_runtimelinking=yes
17080  	    break
17081  	  fi
17082	  done
17083	  ;;
17084	esac
17085
17086	exp_sym_flag='-bexport'
17087	no_entry_flag='-bnoentry'
17088      fi
17089
17090      # When large executables or shared objects are built, AIX ld can
17091      # have problems creating the table of contents.  If linking a library
17092      # or program results in "error TOC overflow" add -mminimal-toc to
17093      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17094      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17095
17096      archive_cmds_GCJ=''
17097      hardcode_direct_GCJ=yes
17098      hardcode_libdir_separator_GCJ=':'
17099      link_all_deplibs_GCJ=yes
17100
17101      if test "$GCC" = yes; then
17102	case $host_os in aix4.[012]|aix4.[012].*)
17103	# We only want to do this on AIX 4.2 and lower, the check
17104	# below for broken collect2 doesn't work under 4.3+
17105	  collect2name=`${CC} -print-prog-name=collect2`
17106	  if test -f "$collect2name" && \
17107  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17108	  then
17109  	  # We have reworked collect2
17110  	  :
17111	  else
17112  	  # We have old collect2
17113  	  hardcode_direct_GCJ=unsupported
17114  	  # It fails to find uninstalled libraries when the uninstalled
17115  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17116  	  # to unsupported forces relinking
17117  	  hardcode_minus_L_GCJ=yes
17118  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17119  	  hardcode_libdir_separator_GCJ=
17120	  fi
17121	  ;;
17122	esac
17123	shared_flag='-shared'
17124	if test "$aix_use_runtimelinking" = yes; then
17125	  shared_flag="$shared_flag "'${wl}-G'
17126	fi
17127      else
17128	# not using gcc
17129	if test "$host_cpu" = ia64; then
17130  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17131  	# chokes on -Wl,-G. The following line is correct:
17132	  shared_flag='-G'
17133	else
17134	  if test "$aix_use_runtimelinking" = yes; then
17135	    shared_flag='${wl}-G'
17136	  else
17137	    shared_flag='${wl}-bM:SRE'
17138	  fi
17139	fi
17140      fi
17141
17142      # It seems that -bexpall does not export symbols beginning with
17143      # underscore (_), so it is better to generate a list of symbols to export.
17144      always_export_symbols_GCJ=yes
17145      if test "$aix_use_runtimelinking" = yes; then
17146	# Warning - without using the other runtime loading flags (-brtl),
17147	# -berok will link without error, but may produce a broken library.
17148	allow_undefined_flag_GCJ='-berok'
17149       # Determine the default libpath from the value encoded in an empty executable.
17150       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151/* end confdefs.h.  */
17152
17153int
17154main ()
17155{
17156
17157  ;
17158  return 0;
17159}
17160_ACEOF
17161if ac_fn_c_try_link "$LINENO"; then :
17162
17163lt_aix_libpath_sed='
17164    /Import File Strings/,/^$/ {
17165	/^0/ {
17166	    s/^0  *\(.*\)$/\1/
17167	    p
17168	}
17169    }'
17170aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17171# Check for a 64-bit object if we didn't find anything.
17172if test -z "$aix_libpath"; then
17173  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17174fi
17175fi
17176rm -f core conftest.err conftest.$ac_objext \
17177    conftest$ac_exeext conftest.$ac_ext
17178if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17179
17180       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17181	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17182       else
17183	if test "$host_cpu" = ia64; then
17184	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17185	  allow_undefined_flag_GCJ="-z nodefs"
17186	  archive_expsym_cmds_GCJ="\$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"
17187	else
17188	 # Determine the default libpath from the value encoded in an empty executable.
17189	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190/* end confdefs.h.  */
17191
17192int
17193main ()
17194{
17195
17196  ;
17197  return 0;
17198}
17199_ACEOF
17200if ac_fn_c_try_link "$LINENO"; then :
17201
17202lt_aix_libpath_sed='
17203    /Import File Strings/,/^$/ {
17204	/^0/ {
17205	    s/^0  *\(.*\)$/\1/
17206	    p
17207	}
17208    }'
17209aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17210# Check for a 64-bit object if we didn't find anything.
17211if test -z "$aix_libpath"; then
17212  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17213fi
17214fi
17215rm -f core conftest.err conftest.$ac_objext \
17216    conftest$ac_exeext conftest.$ac_ext
17217if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17218
17219	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17220	  # Warning - without using the other run time loading flags,
17221	  # -berok will link without error, but may produce a broken library.
17222	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17223	  allow_undefined_flag_GCJ=' ${wl}-berok'
17224	  # Exported symbols can be pulled into shared objects from archives
17225	  whole_archive_flag_spec_GCJ='$convenience'
17226	  archive_cmds_need_lc_GCJ=yes
17227	  # This is similar to how AIX traditionally builds its shared libraries.
17228	  archive_expsym_cmds_GCJ="\$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'
17229	fi
17230      fi
17231      ;;
17232
17233    amigaos*)
17234      archive_cmds_GCJ='$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)'
17235      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17236      hardcode_minus_L_GCJ=yes
17237      # see comment about different semantics on the GNU ld section
17238      ld_shlibs_GCJ=no
17239      ;;
17240
17241    bsdi[45]*)
17242      export_dynamic_flag_spec_GCJ=-rdynamic
17243      ;;
17244
17245    cygwin* | mingw* | pw32*)
17246      # When not using gcc, we currently assume that we are using
17247      # Microsoft Visual C++.
17248      # hardcode_libdir_flag_spec is actually meaningless, as there is
17249      # no search path for DLLs.
17250      hardcode_libdir_flag_spec_GCJ=' '
17251      allow_undefined_flag_GCJ=unsupported
17252      # Tell ltmain to make .lib files, not .a files.
17253      libext=lib
17254      # Tell ltmain to make .dll files, not .so files.
17255      shrext_cmds=".dll"
17256      # FIXME: Setting linknames here is a bad hack.
17257      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17258      # The linker will automatically build a .lib file if we build a DLL.
17259      old_archive_From_new_cmds_GCJ='true'
17260      # FIXME: Should let the user specify the lib program.
17261      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17262      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17263      enable_shared_with_static_runtimes_GCJ=yes
17264      ;;
17265
17266    darwin* | rhapsody*)
17267      case $host_os in
17268        rhapsody* | darwin1.[012])
17269         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17270         ;;
17271       *) # Darwin 1.3 on
17272         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17273           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17274         else
17275           case ${MACOSX_DEPLOYMENT_TARGET} in
17276             10.[012])
17277               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17278               ;;
17279             10.*)
17280               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17281               ;;
17282           esac
17283         fi
17284         ;;
17285      esac
17286      archive_cmds_need_lc_GCJ=no
17287      hardcode_direct_GCJ=no
17288      hardcode_automatic_GCJ=yes
17289      hardcode_shlibpath_var_GCJ=unsupported
17290      whole_archive_flag_spec_GCJ=''
17291      link_all_deplibs_GCJ=yes
17292    if test "$GCC" = yes ; then
17293    	output_verbose_link_cmd='echo'
17294        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17295        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17296        archive_expsym_cmds_GCJ="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}"
17297        module_expsym_cmds_GCJ="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}"
17298    else
17299      case $cc_basename in
17300        xlc*)
17301         output_verbose_link_cmd='echo'
17302         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17303         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17304          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17305         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17306          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17307          ;;
17308       *)
17309         ld_shlibs_GCJ=no
17310          ;;
17311      esac
17312    fi
17313      ;;
17314
17315    dgux*)
17316      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17317      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17318      hardcode_shlibpath_var_GCJ=no
17319      ;;
17320
17321    freebsd1*)
17322      ld_shlibs_GCJ=no
17323      ;;
17324
17325    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17326    # support.  Future versions do this automatically, but an explicit c++rt0.o
17327    # does not break anything, and helps significantly (at the cost of a little
17328    # extra space).
17329    freebsd2.2*)
17330      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17331      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17332      hardcode_direct_GCJ=yes
17333      hardcode_shlibpath_var_GCJ=no
17334      ;;
17335
17336    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17337    freebsd2*)
17338      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17339      hardcode_direct_GCJ=yes
17340      hardcode_minus_L_GCJ=yes
17341      hardcode_shlibpath_var_GCJ=no
17342      ;;
17343
17344    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17345    freebsd* | dragonfly*)
17346      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17347      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17348      hardcode_direct_GCJ=yes
17349      hardcode_shlibpath_var_GCJ=no
17350      ;;
17351
17352    hpux9*)
17353      if test "$GCC" = yes; then
17354	archive_cmds_GCJ='$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'
17355      else
17356	archive_cmds_GCJ='$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'
17357      fi
17358      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17359      hardcode_libdir_separator_GCJ=:
17360      hardcode_direct_GCJ=yes
17361
17362      # hardcode_minus_L: Not really in the search PATH,
17363      # but as the default location of the library.
17364      hardcode_minus_L_GCJ=yes
17365      export_dynamic_flag_spec_GCJ='${wl}-E'
17366      ;;
17367
17368    hpux10*)
17369      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17370	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17371      else
17372	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17373      fi
17374      if test "$with_gnu_ld" = no; then
17375	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17376	hardcode_libdir_separator_GCJ=:
17377
17378	hardcode_direct_GCJ=yes
17379	export_dynamic_flag_spec_GCJ='${wl}-E'
17380
17381	# hardcode_minus_L: Not really in the search PATH,
17382	# but as the default location of the library.
17383	hardcode_minus_L_GCJ=yes
17384      fi
17385      ;;
17386
17387    hpux11*)
17388      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17389	case $host_cpu in
17390	hppa*64*)
17391	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17392	  ;;
17393	ia64*)
17394	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17395	  ;;
17396	*)
17397	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17398	  ;;
17399	esac
17400      else
17401	case $host_cpu in
17402	hppa*64*)
17403	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17404	  ;;
17405	ia64*)
17406	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17407	  ;;
17408	*)
17409	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17410	  ;;
17411	esac
17412      fi
17413      if test "$with_gnu_ld" = no; then
17414	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17415	hardcode_libdir_separator_GCJ=:
17416
17417	case $host_cpu in
17418	hppa*64*|ia64*)
17419	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17420	  hardcode_direct_GCJ=no
17421	  hardcode_shlibpath_var_GCJ=no
17422	  ;;
17423	*)
17424	  hardcode_direct_GCJ=yes
17425	  export_dynamic_flag_spec_GCJ='${wl}-E'
17426
17427	  # hardcode_minus_L: Not really in the search PATH,
17428	  # but as the default location of the library.
17429	  hardcode_minus_L_GCJ=yes
17430	  ;;
17431	esac
17432      fi
17433      ;;
17434
17435    irix5* | irix6* | nonstopux*)
17436      if test "$GCC" = yes; then
17437	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17438      else
17439	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17440	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17441      fi
17442      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17443      hardcode_libdir_separator_GCJ=:
17444      link_all_deplibs_GCJ=yes
17445      ;;
17446
17447    netbsd*)
17448      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17449	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17450      else
17451	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17452      fi
17453      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17454      hardcode_direct_GCJ=yes
17455      hardcode_shlibpath_var_GCJ=no
17456      ;;
17457
17458    newsos6)
17459      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17460      hardcode_direct_GCJ=yes
17461      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17462      hardcode_libdir_separator_GCJ=:
17463      hardcode_shlibpath_var_GCJ=no
17464      ;;
17465
17466    openbsd*)
17467      if test -f /usr/libexec/ld.so; then
17468	hardcode_direct_GCJ=yes
17469	hardcode_shlibpath_var_GCJ=no
17470	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17471	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17472	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17473	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17474	  export_dynamic_flag_spec_GCJ='${wl}-E'
17475	else
17476	  case $host_os in
17477	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17478	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17479	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17480	     ;;
17481	   *)
17482	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17483	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17484	     ;;
17485	  esac
17486        fi
17487      else
17488	ld_shlibs_GCJ=no
17489      fi
17490      ;;
17491
17492    os2*)
17493      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17494      hardcode_minus_L_GCJ=yes
17495      allow_undefined_flag_GCJ=unsupported
17496      archive_cmds_GCJ='$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'
17497      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17498      ;;
17499
17500    osf3*)
17501      if test "$GCC" = yes; then
17502	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17503	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17504      else
17505	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17506	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17507      fi
17508      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17509      hardcode_libdir_separator_GCJ=:
17510      ;;
17511
17512    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17513      if test "$GCC" = yes; then
17514	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17515	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17516	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17517      else
17518	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17519	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17520	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17521	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17522
17523	# Both c and cxx compiler support -rpath directly
17524	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17525      fi
17526      hardcode_libdir_separator_GCJ=:
17527      ;;
17528
17529    solaris*)
17530      no_undefined_flag_GCJ=' -z text'
17531      if test "$GCC" = yes; then
17532	wlarc='${wl}'
17533	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17534	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17535	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17536      else
17537	wlarc=''
17538	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17539	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17540  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17541      fi
17542      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17543      hardcode_shlibpath_var_GCJ=no
17544      case $host_os in
17545      solaris2.[0-5] | solaris2.[0-5].*) ;;
17546      *)
17547	# The compiler driver will combine and reorder linker options,
17548	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17549	# but is careful enough not to reorder.
17550 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17551	if test "$GCC" = yes; then
17552	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17553	else
17554	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17555	fi
17556	;;
17557      esac
17558      link_all_deplibs_GCJ=yes
17559      ;;
17560
17561    sunos4*)
17562      if test "x$host_vendor" = xsequent; then
17563	# Use $CC to link under sequent, because it throws in some extra .o
17564	# files that make .init and .fini sections work.
17565	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17566      else
17567	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17568      fi
17569      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17570      hardcode_direct_GCJ=yes
17571      hardcode_minus_L_GCJ=yes
17572      hardcode_shlibpath_var_GCJ=no
17573      ;;
17574
17575    sysv4)
17576      case $host_vendor in
17577	sni)
17578	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17579	  hardcode_direct_GCJ=yes # is this really true???
17580	;;
17581	siemens)
17582	  ## LD is ld it makes a PLAMLIB
17583	  ## CC just makes a GrossModule.
17584	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17585	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17586	  hardcode_direct_GCJ=no
17587        ;;
17588	motorola)
17589	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17591	;;
17592      esac
17593      runpath_var='LD_RUN_PATH'
17594      hardcode_shlibpath_var_GCJ=no
17595      ;;
17596
17597    sysv4.3*)
17598      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599      hardcode_shlibpath_var_GCJ=no
17600      export_dynamic_flag_spec_GCJ='-Bexport'
17601      ;;
17602
17603    sysv4*MP*)
17604      if test -d /usr/nec; then
17605	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606	hardcode_shlibpath_var_GCJ=no
17607	runpath_var=LD_RUN_PATH
17608	hardcode_runpath_var=yes
17609	ld_shlibs_GCJ=yes
17610      fi
17611      ;;
17612
17613    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17614      no_undefined_flag_GCJ='${wl}-z,text'
17615      archive_cmds_need_lc_GCJ=no
17616      hardcode_shlibpath_var_GCJ=no
17617      runpath_var='LD_RUN_PATH'
17618
17619      if test "$GCC" = yes; then
17620	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17621	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17622      else
17623	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17624	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17625      fi
17626      ;;
17627
17628    sysv5* | sco3.2v5* | sco5v6*)
17629      # Note: We can NOT use -z defs as we might desire, because we do not
17630      # link with -lc, and that would cause any symbols used from libc to
17631      # always be unresolved, which means just about no library would
17632      # ever link correctly.  If we're not using GNU ld we use -z text
17633      # though, which does catch some bad symbols but isn't as heavy-handed
17634      # as -z defs.
17635      no_undefined_flag_GCJ='${wl}-z,text'
17636      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17637      archive_cmds_need_lc_GCJ=no
17638      hardcode_shlibpath_var_GCJ=no
17639      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17640      hardcode_libdir_separator_GCJ=':'
17641      link_all_deplibs_GCJ=yes
17642      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17643      runpath_var='LD_RUN_PATH'
17644
17645      if test "$GCC" = yes; then
17646	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17647	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17648      else
17649	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17650	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17651      fi
17652      ;;
17653
17654    uts4*)
17655      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17656      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657      hardcode_shlibpath_var_GCJ=no
17658      ;;
17659
17660    *)
17661      ld_shlibs_GCJ=no
17662      ;;
17663    esac
17664  fi
17665
17666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17667$as_echo "$ld_shlibs_GCJ" >&6; }
17668test "$ld_shlibs_GCJ" = no && can_build_shared=no
17669
17670#
17671# Do we need to explicitly link libc?
17672#
17673case "x$archive_cmds_need_lc_GCJ" in
17674x|xyes)
17675  # Assume -lc should be added
17676  archive_cmds_need_lc_GCJ=yes
17677
17678  if test "$enable_shared" = yes && test "$GCC" = yes; then
17679    case $archive_cmds_GCJ in
17680    *'~'*)
17681      # FIXME: we may have to deal with multi-command sequences.
17682      ;;
17683    '$CC '*)
17684      # Test whether the compiler implicitly links with -lc since on some
17685      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17686      # to ld, don't add -lc before -lgcc.
17687      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17688$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17689      $rm conftest*
17690      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17691
17692      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17693  (eval $ac_compile) 2>&5
17694  ac_status=$?
17695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17696  test $ac_status = 0; } 2>conftest.err; then
17697        soname=conftest
17698        lib=conftest
17699        libobjs=conftest.$ac_objext
17700        deplibs=
17701        wl=$lt_prog_compiler_wl_GCJ
17702	pic_flag=$lt_prog_compiler_pic_GCJ
17703        compiler_flags=-v
17704        linker_flags=-v
17705        verstring=
17706        output_objdir=.
17707        libname=conftest
17708        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17709        allow_undefined_flag_GCJ=
17710        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17711  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17712  ac_status=$?
17713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17714  test $ac_status = 0; }
17715        then
17716	  archive_cmds_need_lc_GCJ=no
17717        else
17718	  archive_cmds_need_lc_GCJ=yes
17719        fi
17720        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17721      else
17722        cat conftest.err 1>&5
17723      fi
17724      $rm conftest*
17725      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17726$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17727      ;;
17728    esac
17729  fi
17730  ;;
17731esac
17732
17733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17734$as_echo_n "checking dynamic linker characteristics... " >&6; }
17735library_names_spec=
17736libname_spec='lib$name'
17737soname_spec=
17738shrext_cmds=".so"
17739postinstall_cmds=
17740postuninstall_cmds=
17741finish_cmds=
17742finish_eval=
17743shlibpath_var=
17744shlibpath_overrides_runpath=unknown
17745version_type=none
17746dynamic_linker="$host_os ld.so"
17747sys_lib_dlsearch_path_spec="/lib /usr/lib"
17748
17749need_lib_prefix=unknown
17750hardcode_into_libs=no
17751
17752# when you set need_version to no, make sure it does not cause -set_version
17753# flags to be left without arguments
17754need_version=unknown
17755
17756case $host_os in
17757aix3*)
17758  version_type=linux
17759  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17760  shlibpath_var=LIBPATH
17761
17762  # AIX 3 has no versioning support, so we append a major version to the name.
17763  soname_spec='${libname}${release}${shared_ext}$major'
17764  ;;
17765
17766aix[4-9]*)
17767  version_type=linux
17768  need_lib_prefix=no
17769  need_version=no
17770  hardcode_into_libs=yes
17771  if test "$host_cpu" = ia64; then
17772    # AIX 5 supports IA64
17773    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17774    shlibpath_var=LD_LIBRARY_PATH
17775  else
17776    # With GCC up to 2.95.x, collect2 would create an import file
17777    # for dependence libraries.  The import file would start with
17778    # the line `#! .'.  This would cause the generated library to
17779    # depend on `.', always an invalid library.  This was fixed in
17780    # development snapshots of GCC prior to 3.0.
17781    case $host_os in
17782      aix4 | aix4.[01] | aix4.[01].*)
17783      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17784	   echo ' yes '
17785	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17786	:
17787      else
17788	can_build_shared=no
17789      fi
17790      ;;
17791    esac
17792    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17793    # soname into executable. Probably we can add versioning support to
17794    # collect2, so additional links can be useful in future.
17795    if test "$aix_use_runtimelinking" = yes; then
17796      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17797      # instead of lib<name>.a to let people know that these are not
17798      # typical AIX shared libraries.
17799      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800    else
17801      # We preserve .a as extension for shared libraries through AIX4.2
17802      # and later when we are not doing run time linking.
17803      library_names_spec='${libname}${release}.a $libname.a'
17804      soname_spec='${libname}${release}${shared_ext}$major'
17805    fi
17806    shlibpath_var=LIBPATH
17807  fi
17808  ;;
17809
17810amigaos*)
17811  library_names_spec='$libname.ixlibrary $libname.a'
17812  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17813  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17814  ;;
17815
17816beos*)
17817  library_names_spec='${libname}${shared_ext}'
17818  dynamic_linker="$host_os ld.so"
17819  shlibpath_var=LIBRARY_PATH
17820  ;;
17821
17822bsdi[45]*)
17823  version_type=linux
17824  need_version=no
17825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17826  soname_spec='${libname}${release}${shared_ext}$major'
17827  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17828  shlibpath_var=LD_LIBRARY_PATH
17829  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17830  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17831  # the default ld.so.conf also contains /usr/contrib/lib and
17832  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17833  # libtool to hard-code these into programs
17834  ;;
17835
17836cygwin* | mingw* | pw32*)
17837  version_type=windows
17838  shrext_cmds=".dll"
17839  need_version=no
17840  need_lib_prefix=no
17841
17842  case $GCC,$host_os in
17843  yes,cygwin* | yes,mingw* | yes,pw32*)
17844    library_names_spec='$libname.dll.a'
17845    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17846    postinstall_cmds='base_file=`basename \${file}`~
17847      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17848      dldir=$destdir/`dirname \$dlpath`~
17849      test -d \$dldir || mkdir -p \$dldir~
17850      $install_prog $dir/$dlname \$dldir/$dlname~
17851      chmod a+x \$dldir/$dlname'
17852    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17853      dlpath=$dir/\$dldll~
17854       $rm \$dlpath'
17855    shlibpath_overrides_runpath=yes
17856
17857    case $host_os in
17858    cygwin*)
17859      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17860      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17861      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17862      ;;
17863    mingw*)
17864      # MinGW DLLs use traditional 'lib' prefix
17865      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17866      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17867      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17868        # It is most probably a Windows format PATH printed by
17869        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17870        # path with ; separators, and with drive letters. We can handle the
17871        # drive letters (cygwin fileutils understands them), so leave them,
17872        # especially as we might pass files found there to a mingw objdump,
17873        # which wouldn't understand a cygwinified path. Ahh.
17874        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17875      else
17876        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17877      fi
17878      ;;
17879    pw32*)
17880      # pw32 DLLs use 'pw' prefix rather than 'lib'
17881      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17882      ;;
17883    esac
17884    ;;
17885
17886  *)
17887    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17888    ;;
17889  esac
17890  dynamic_linker='Win32 ld.exe'
17891  # FIXME: first we should search . and the directory the executable is in
17892  shlibpath_var=PATH
17893  ;;
17894
17895darwin* | rhapsody*)
17896  dynamic_linker="$host_os dyld"
17897  version_type=darwin
17898  need_lib_prefix=no
17899  need_version=no
17900  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17901  soname_spec='${libname}${release}${major}$shared_ext'
17902  shlibpath_overrides_runpath=yes
17903  shlibpath_var=DYLD_LIBRARY_PATH
17904  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17905
17906  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17907  ;;
17908
17909dgux*)
17910  version_type=linux
17911  need_lib_prefix=no
17912  need_version=no
17913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17914  soname_spec='${libname}${release}${shared_ext}$major'
17915  shlibpath_var=LD_LIBRARY_PATH
17916  ;;
17917
17918freebsd1*)
17919  dynamic_linker=no
17920  ;;
17921
17922freebsd* | dragonfly*)
17923  # DragonFly does not have aout.  When/if they implement a new
17924  # versioning mechanism, adjust this.
17925  if test -x /usr/bin/objformat; then
17926    objformat=`/usr/bin/objformat`
17927  else
17928    case $host_os in
17929    freebsd[123]*) objformat=aout ;;
17930    *) objformat=elf ;;
17931    esac
17932  fi
17933  version_type=freebsd-$objformat
17934  case $version_type in
17935    freebsd-elf*)
17936      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17937      need_version=no
17938      need_lib_prefix=no
17939      ;;
17940    freebsd-*)
17941      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17942      need_version=yes
17943      ;;
17944  esac
17945  shlibpath_var=LD_LIBRARY_PATH
17946  case $host_os in
17947  freebsd2*)
17948    shlibpath_overrides_runpath=yes
17949    ;;
17950  freebsd3.[01]* | freebsdelf3.[01]*)
17951    shlibpath_overrides_runpath=yes
17952    hardcode_into_libs=yes
17953    ;;
17954  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17955  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17956    shlibpath_overrides_runpath=no
17957    hardcode_into_libs=yes
17958    ;;
17959  *) # from 4.6 on, and DragonFly
17960    shlibpath_overrides_runpath=yes
17961    hardcode_into_libs=yes
17962    ;;
17963  esac
17964  ;;
17965
17966gnu*)
17967  version_type=linux
17968  need_lib_prefix=no
17969  need_version=no
17970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17971  soname_spec='${libname}${release}${shared_ext}$major'
17972  shlibpath_var=LD_LIBRARY_PATH
17973  hardcode_into_libs=yes
17974  ;;
17975
17976hpux9* | hpux10* | hpux11*)
17977  # Give a soname corresponding to the major version so that dld.sl refuses to
17978  # link against other versions.
17979  version_type=sunos
17980  need_lib_prefix=no
17981  need_version=no
17982  case $host_cpu in
17983  ia64*)
17984    shrext_cmds='.so'
17985    hardcode_into_libs=yes
17986    dynamic_linker="$host_os dld.so"
17987    shlibpath_var=LD_LIBRARY_PATH
17988    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17989    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990    soname_spec='${libname}${release}${shared_ext}$major'
17991    if test "X$HPUX_IA64_MODE" = X32; then
17992      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17993    else
17994      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17995    fi
17996    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17997    ;;
17998   hppa*64*)
17999     shrext_cmds='.sl'
18000     hardcode_into_libs=yes
18001     dynamic_linker="$host_os dld.sl"
18002     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18003     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005     soname_spec='${libname}${release}${shared_ext}$major'
18006     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18007     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18008     ;;
18009   *)
18010    shrext_cmds='.sl'
18011    dynamic_linker="$host_os dld.sl"
18012    shlibpath_var=SHLIB_PATH
18013    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18014    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015    soname_spec='${libname}${release}${shared_ext}$major'
18016    ;;
18017  esac
18018  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18019  postinstall_cmds='chmod 555 $lib'
18020  ;;
18021
18022interix[3-9]*)
18023  version_type=linux
18024  need_lib_prefix=no
18025  need_version=no
18026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18027  soname_spec='${libname}${release}${shared_ext}$major'
18028  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18029  shlibpath_var=LD_LIBRARY_PATH
18030  shlibpath_overrides_runpath=no
18031  hardcode_into_libs=yes
18032  ;;
18033
18034irix5* | irix6* | nonstopux*)
18035  case $host_os in
18036    nonstopux*) version_type=nonstopux ;;
18037    *)
18038	if test "$lt_cv_prog_gnu_ld" = yes; then
18039		version_type=linux
18040	else
18041		version_type=irix
18042	fi ;;
18043  esac
18044  need_lib_prefix=no
18045  need_version=no
18046  soname_spec='${libname}${release}${shared_ext}$major'
18047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18048  case $host_os in
18049  irix5* | nonstopux*)
18050    libsuff= shlibsuff=
18051    ;;
18052  *)
18053    case $LD in # libtool.m4 will add one of these switches to LD
18054    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18055      libsuff= shlibsuff= libmagic=32-bit;;
18056    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18057      libsuff=32 shlibsuff=N32 libmagic=N32;;
18058    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18059      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18060    *) libsuff= shlibsuff= libmagic=never-match;;
18061    esac
18062    ;;
18063  esac
18064  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18065  shlibpath_overrides_runpath=no
18066  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18067  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18068  hardcode_into_libs=yes
18069  ;;
18070
18071# No shared lib support for Linux oldld, aout, or coff.
18072linux*oldld* | linux*aout* | linux*coff*)
18073  dynamic_linker=no
18074  ;;
18075
18076# This must be Linux ELF.
18077linux* | k*bsd*-gnu)
18078  version_type=linux
18079  need_lib_prefix=no
18080  need_version=no
18081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082  soname_spec='${libname}${release}${shared_ext}$major'
18083  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18084  shlibpath_var=LD_LIBRARY_PATH
18085  shlibpath_overrides_runpath=no
18086  # This implies no fast_install, which is unacceptable.
18087  # Some rework will be needed to allow for fast_install
18088  # before this can be enabled.
18089  hardcode_into_libs=yes
18090
18091  # Append ld.so.conf contents to the search path
18092  if test -f /etc/ld.so.conf; then
18093    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18094    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18095  fi
18096
18097  # We used to test for /lib/ld.so.1 and disable shared libraries on
18098  # powerpc, because MkLinux only supported shared libraries with the
18099  # GNU dynamic linker.  Since this was broken with cross compilers,
18100  # most powerpc-linux boxes support dynamic linking these days and
18101  # people can always --disable-shared, the test was removed, and we
18102  # assume the GNU/Linux dynamic linker is in use.
18103  dynamic_linker='GNU/Linux ld.so'
18104  ;;
18105
18106netbsd*)
18107  version_type=sunos
18108  need_lib_prefix=no
18109  need_version=no
18110  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18112    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18113    dynamic_linker='NetBSD (a.out) ld.so'
18114  else
18115    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18116    soname_spec='${libname}${release}${shared_ext}$major'
18117    dynamic_linker='NetBSD ld.elf_so'
18118  fi
18119  shlibpath_var=LD_LIBRARY_PATH
18120  shlibpath_overrides_runpath=yes
18121  hardcode_into_libs=yes
18122  ;;
18123
18124newsos6)
18125  version_type=linux
18126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127  shlibpath_var=LD_LIBRARY_PATH
18128  shlibpath_overrides_runpath=yes
18129  ;;
18130
18131nto-qnx*)
18132  version_type=linux
18133  need_lib_prefix=no
18134  need_version=no
18135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136  soname_spec='${libname}${release}${shared_ext}$major'
18137  shlibpath_var=LD_LIBRARY_PATH
18138  shlibpath_overrides_runpath=yes
18139  ;;
18140
18141openbsd*)
18142  version_type=sunos
18143  sys_lib_dlsearch_path_spec="/usr/lib"
18144  need_lib_prefix=no
18145  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18146  case $host_os in
18147    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18148    *)                         need_version=no  ;;
18149  esac
18150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18151  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18152  shlibpath_var=LD_LIBRARY_PATH
18153  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18154    case $host_os in
18155      openbsd2.[89] | openbsd2.[89].*)
18156	shlibpath_overrides_runpath=no
18157	;;
18158      *)
18159	shlibpath_overrides_runpath=yes
18160	;;
18161      esac
18162  else
18163    shlibpath_overrides_runpath=yes
18164  fi
18165  ;;
18166
18167os2*)
18168  libname_spec='$name'
18169  shrext_cmds=".dll"
18170  need_lib_prefix=no
18171  library_names_spec='$libname${shared_ext} $libname.a'
18172  dynamic_linker='OS/2 ld.exe'
18173  shlibpath_var=LIBPATH
18174  ;;
18175
18176osf3* | osf4* | osf5*)
18177  version_type=osf
18178  need_lib_prefix=no
18179  need_version=no
18180  soname_spec='${libname}${release}${shared_ext}$major'
18181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182  shlibpath_var=LD_LIBRARY_PATH
18183  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18184  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18185  ;;
18186
18187rdos*)
18188  dynamic_linker=no
18189  ;;
18190
18191solaris*)
18192  version_type=linux
18193  need_lib_prefix=no
18194  need_version=no
18195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196  soname_spec='${libname}${release}${shared_ext}$major'
18197  shlibpath_var=LD_LIBRARY_PATH
18198  shlibpath_overrides_runpath=yes
18199  hardcode_into_libs=yes
18200  # ldd complains unless libraries are executable
18201  postinstall_cmds='chmod +x $lib'
18202  ;;
18203
18204sunos4*)
18205  version_type=sunos
18206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18207  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18208  shlibpath_var=LD_LIBRARY_PATH
18209  shlibpath_overrides_runpath=yes
18210  if test "$with_gnu_ld" = yes; then
18211    need_lib_prefix=no
18212  fi
18213  need_version=yes
18214  ;;
18215
18216sysv4 | sysv4.3*)
18217  version_type=linux
18218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219  soname_spec='${libname}${release}${shared_ext}$major'
18220  shlibpath_var=LD_LIBRARY_PATH
18221  case $host_vendor in
18222    sni)
18223      shlibpath_overrides_runpath=no
18224      need_lib_prefix=no
18225      export_dynamic_flag_spec='${wl}-Blargedynsym'
18226      runpath_var=LD_RUN_PATH
18227      ;;
18228    siemens)
18229      need_lib_prefix=no
18230      ;;
18231    motorola)
18232      need_lib_prefix=no
18233      need_version=no
18234      shlibpath_overrides_runpath=no
18235      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18236      ;;
18237  esac
18238  ;;
18239
18240sysv4*MP*)
18241  if test -d /usr/nec ;then
18242    version_type=linux
18243    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18244    soname_spec='$libname${shared_ext}.$major'
18245    shlibpath_var=LD_LIBRARY_PATH
18246  fi
18247  ;;
18248
18249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18250  version_type=freebsd-elf
18251  need_lib_prefix=no
18252  need_version=no
18253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18254  soname_spec='${libname}${release}${shared_ext}$major'
18255  shlibpath_var=LD_LIBRARY_PATH
18256  hardcode_into_libs=yes
18257  if test "$with_gnu_ld" = yes; then
18258    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18259    shlibpath_overrides_runpath=no
18260  else
18261    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18262    shlibpath_overrides_runpath=yes
18263    case $host_os in
18264      sco3.2v5*)
18265        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18266	;;
18267    esac
18268  fi
18269  sys_lib_dlsearch_path_spec='/usr/lib'
18270  ;;
18271
18272uts4*)
18273  version_type=linux
18274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275  soname_spec='${libname}${release}${shared_ext}$major'
18276  shlibpath_var=LD_LIBRARY_PATH
18277  ;;
18278
18279*)
18280  dynamic_linker=no
18281  ;;
18282esac
18283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18284$as_echo "$dynamic_linker" >&6; }
18285test "$dynamic_linker" = no && can_build_shared=no
18286
18287if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18288  $as_echo_n "(cached) " >&6
18289else
18290  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18291fi
18292
18293sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18294if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18295  $as_echo_n "(cached) " >&6
18296else
18297  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18298fi
18299
18300sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18301
18302variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18303if test "$GCC" = yes; then
18304  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18305fi
18306
18307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18308$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18309hardcode_action_GCJ=
18310if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18311   test -n "$runpath_var_GCJ" || \
18312   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18313
18314  # We can hardcode non-existant directories.
18315  if test "$hardcode_direct_GCJ" != no &&
18316     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18317     # have to relink, otherwise we might link with an installed library
18318     # when we should be linking with a yet-to-be-installed one
18319     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18320     test "$hardcode_minus_L_GCJ" != no; then
18321    # Linking always hardcodes the temporary library directory.
18322    hardcode_action_GCJ=relink
18323  else
18324    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18325    hardcode_action_GCJ=immediate
18326  fi
18327else
18328  # We cannot hardcode anything, or else we can only hardcode existing
18329  # directories.
18330  hardcode_action_GCJ=unsupported
18331fi
18332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18333$as_echo "$hardcode_action_GCJ" >&6; }
18334
18335if test "$hardcode_action_GCJ" = relink; then
18336  # Fast installation is not supported
18337  enable_fast_install=no
18338elif test "$shlibpath_overrides_runpath" = yes ||
18339     test "$enable_shared" = no; then
18340  # Fast installation is not necessary
18341  enable_fast_install=needless
18342fi
18343
18344
18345# The else clause should only fire when bootstrapping the
18346# libtool distribution, otherwise you forgot to ship ltmain.sh
18347# with your package, and you will get complaints that there are
18348# no rules to generate ltmain.sh.
18349if test -f "$ltmain"; then
18350  # See if we are running on zsh, and set the options which allow our commands through
18351  # without removal of \ escapes.
18352  if test -n "${ZSH_VERSION+set}" ; then
18353    setopt NO_GLOB_SUBST
18354  fi
18355  # Now quote all the things that may contain metacharacters while being
18356  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18357  # variables and quote the copies for generation of the libtool script.
18358  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18359    SED SHELL STRIP \
18360    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18361    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18362    deplibs_check_method reload_flag reload_cmds need_locks \
18363    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18364    lt_cv_sys_global_symbol_to_c_name_address \
18365    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18366    old_postinstall_cmds old_postuninstall_cmds \
18367    compiler_GCJ \
18368    CC_GCJ \
18369    LD_GCJ \
18370    lt_prog_compiler_wl_GCJ \
18371    lt_prog_compiler_pic_GCJ \
18372    lt_prog_compiler_static_GCJ \
18373    lt_prog_compiler_no_builtin_flag_GCJ \
18374    export_dynamic_flag_spec_GCJ \
18375    thread_safe_flag_spec_GCJ \
18376    whole_archive_flag_spec_GCJ \
18377    enable_shared_with_static_runtimes_GCJ \
18378    old_archive_cmds_GCJ \
18379    old_archive_from_new_cmds_GCJ \
18380    predep_objects_GCJ \
18381    postdep_objects_GCJ \
18382    predeps_GCJ \
18383    postdeps_GCJ \
18384    compiler_lib_search_path_GCJ \
18385    compiler_lib_search_dirs_GCJ \
18386    archive_cmds_GCJ \
18387    archive_expsym_cmds_GCJ \
18388    postinstall_cmds_GCJ \
18389    postuninstall_cmds_GCJ \
18390    old_archive_from_expsyms_cmds_GCJ \
18391    allow_undefined_flag_GCJ \
18392    no_undefined_flag_GCJ \
18393    export_symbols_cmds_GCJ \
18394    hardcode_libdir_flag_spec_GCJ \
18395    hardcode_libdir_flag_spec_ld_GCJ \
18396    hardcode_libdir_separator_GCJ \
18397    hardcode_automatic_GCJ \
18398    module_cmds_GCJ \
18399    module_expsym_cmds_GCJ \
18400    lt_cv_prog_compiler_c_o_GCJ \
18401    fix_srcfile_path_GCJ \
18402    exclude_expsyms_GCJ \
18403    include_expsyms_GCJ; do
18404
18405    case $var in
18406    old_archive_cmds_GCJ | \
18407    old_archive_from_new_cmds_GCJ | \
18408    archive_cmds_GCJ | \
18409    archive_expsym_cmds_GCJ | \
18410    module_cmds_GCJ | \
18411    module_expsym_cmds_GCJ | \
18412    old_archive_from_expsyms_cmds_GCJ | \
18413    export_symbols_cmds_GCJ | \
18414    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18415    postinstall_cmds | postuninstall_cmds | \
18416    old_postinstall_cmds | old_postuninstall_cmds | \
18417    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18418      # Double-quote double-evaled strings.
18419      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18420      ;;
18421    *)
18422      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18423      ;;
18424    esac
18425  done
18426
18427  case $lt_echo in
18428  *'\$0 --fallback-echo"')
18429    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18430    ;;
18431  esac
18432
18433cfgfile="$ofile"
18434
18435  cat <<__EOF__ >> "$cfgfile"
18436# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18437
18438# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18439
18440# Shell to use when invoking shell scripts.
18441SHELL=$lt_SHELL
18442
18443# Whether or not to build shared libraries.
18444build_libtool_libs=$enable_shared
18445
18446# Whether or not to build static libraries.
18447build_old_libs=$enable_static
18448
18449# Whether or not to add -lc for building shared libraries.
18450build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18451
18452# Whether or not to disallow shared libs when runtime libs are static
18453allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18454
18455# Whether or not to optimize for fast installation.
18456fast_install=$enable_fast_install
18457
18458# The host system.
18459host_alias=$host_alias
18460host=$host
18461host_os=$host_os
18462
18463# The build system.
18464build_alias=$build_alias
18465build=$build
18466build_os=$build_os
18467
18468# An echo program that does not interpret backslashes.
18469echo=$lt_echo
18470
18471# The archiver.
18472AR=$lt_AR
18473AR_FLAGS=$lt_AR_FLAGS
18474
18475# A C compiler.
18476LTCC=$lt_LTCC
18477
18478# LTCC compiler flags.
18479LTCFLAGS=$lt_LTCFLAGS
18480
18481# A language-specific compiler.
18482CC=$lt_compiler_GCJ
18483
18484# Is the compiler the GNU C compiler?
18485with_gcc=$GCC_GCJ
18486
18487# An ERE matcher.
18488EGREP=$lt_EGREP
18489
18490# The linker used to build libraries.
18491LD=$lt_LD_GCJ
18492
18493# Whether we need hard or soft links.
18494LN_S=$lt_LN_S
18495
18496# A BSD-compatible nm program.
18497NM=$lt_NM
18498
18499# A symbol stripping program
18500STRIP=$lt_STRIP
18501
18502# Used to examine libraries when file_magic_cmd begins "file"
18503MAGIC_CMD=$MAGIC_CMD
18504
18505# Used on cygwin: DLL creation program.
18506DLLTOOL="$DLLTOOL"
18507
18508# Used on cygwin: object dumper.
18509OBJDUMP="$OBJDUMP"
18510
18511# Used on cygwin: assembler.
18512AS="$AS"
18513
18514# The name of the directory that contains temporary libtool files.
18515objdir=$objdir
18516
18517# How to create reloadable object files.
18518reload_flag=$lt_reload_flag
18519reload_cmds=$lt_reload_cmds
18520
18521# How to pass a linker flag through the compiler.
18522wl=$lt_lt_prog_compiler_wl_GCJ
18523
18524# Object file suffix (normally "o").
18525objext="$ac_objext"
18526
18527# Old archive suffix (normally "a").
18528libext="$libext"
18529
18530# Shared library suffix (normally ".so").
18531shrext_cmds='$shrext_cmds'
18532
18533# Executable file suffix (normally "").
18534exeext="$exeext"
18535
18536# Additional compiler flags for building library objects.
18537pic_flag=$lt_lt_prog_compiler_pic_GCJ
18538pic_mode=$pic_mode
18539
18540# What is the maximum length of a command?
18541max_cmd_len=$lt_cv_sys_max_cmd_len
18542
18543# Does compiler simultaneously support -c and -o options?
18544compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18545
18546# Must we lock files when doing compilation?
18547need_locks=$lt_need_locks
18548
18549# Do we need the lib prefix for modules?
18550need_lib_prefix=$need_lib_prefix
18551
18552# Do we need a version for libraries?
18553need_version=$need_version
18554
18555# Whether dlopen is supported.
18556dlopen_support=$enable_dlopen
18557
18558# Whether dlopen of programs is supported.
18559dlopen_self=$enable_dlopen_self
18560
18561# Whether dlopen of statically linked programs is supported.
18562dlopen_self_static=$enable_dlopen_self_static
18563
18564# Compiler flag to prevent dynamic linking.
18565link_static_flag=$lt_lt_prog_compiler_static_GCJ
18566
18567# Compiler flag to turn off builtin functions.
18568no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18569
18570# Compiler flag to allow reflexive dlopens.
18571export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18572
18573# Compiler flag to generate shared objects directly from archives.
18574whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18575
18576# Compiler flag to generate thread-safe objects.
18577thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18578
18579# Library versioning type.
18580version_type=$version_type
18581
18582# Format of library name prefix.
18583libname_spec=$lt_libname_spec
18584
18585# List of archive names.  First name is the real one, the rest are links.
18586# The last name is the one that the linker finds with -lNAME.
18587library_names_spec=$lt_library_names_spec
18588
18589# The coded name of the library, if different from the real name.
18590soname_spec=$lt_soname_spec
18591
18592# Commands used to build and install an old-style archive.
18593RANLIB=$lt_RANLIB
18594old_archive_cmds=$lt_old_archive_cmds_GCJ
18595old_postinstall_cmds=$lt_old_postinstall_cmds
18596old_postuninstall_cmds=$lt_old_postuninstall_cmds
18597
18598# Create an old-style archive from a shared archive.
18599old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18600
18601# Create a temporary old-style archive to link instead of a shared archive.
18602old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18603
18604# Commands used to build and install a shared archive.
18605archive_cmds=$lt_archive_cmds_GCJ
18606archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18607postinstall_cmds=$lt_postinstall_cmds
18608postuninstall_cmds=$lt_postuninstall_cmds
18609
18610# Commands used to build a loadable module (assumed same as above if empty)
18611module_cmds=$lt_module_cmds_GCJ
18612module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18613
18614# Commands to strip libraries.
18615old_striplib=$lt_old_striplib
18616striplib=$lt_striplib
18617
18618# Dependencies to place before the objects being linked to create a
18619# shared library.
18620predep_objects=$lt_predep_objects_GCJ
18621
18622# Dependencies to place after the objects being linked to create a
18623# shared library.
18624postdep_objects=$lt_postdep_objects_GCJ
18625
18626# Dependencies to place before the objects being linked to create a
18627# shared library.
18628predeps=$lt_predeps_GCJ
18629
18630# Dependencies to place after the objects being linked to create a
18631# shared library.
18632postdeps=$lt_postdeps_GCJ
18633
18634# The directories searched by this compiler when creating a shared
18635# library
18636compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18637
18638# The library search path used internally by the compiler when linking
18639# a shared library.
18640compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18641
18642# Method to check whether dependent libraries are shared objects.
18643deplibs_check_method=$lt_deplibs_check_method
18644
18645# Command to use when deplibs_check_method == file_magic.
18646file_magic_cmd=$lt_file_magic_cmd
18647
18648# Flag that allows shared libraries with undefined symbols to be built.
18649allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18650
18651# Flag that forces no undefined symbols.
18652no_undefined_flag=$lt_no_undefined_flag_GCJ
18653
18654# Commands used to finish a libtool library installation in a directory.
18655finish_cmds=$lt_finish_cmds
18656
18657# Same as above, but a single script fragment to be evaled but not shown.
18658finish_eval=$lt_finish_eval
18659
18660# Take the output of nm and produce a listing of raw symbols and C names.
18661global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18662
18663# Transform the output of nm in a proper C declaration
18664global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18665
18666# Transform the output of nm in a C name address pair
18667global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18668
18669# This is the shared library runtime path variable.
18670runpath_var=$runpath_var
18671
18672# This is the shared library path variable.
18673shlibpath_var=$shlibpath_var
18674
18675# Is shlibpath searched before the hard-coded library search path?
18676shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18677
18678# How to hardcode a shared library path into an executable.
18679hardcode_action=$hardcode_action_GCJ
18680
18681# Whether we should hardcode library paths into libraries.
18682hardcode_into_libs=$hardcode_into_libs
18683
18684# Flag to hardcode \$libdir into a binary during linking.
18685# This must work even if \$libdir does not exist.
18686hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18687
18688# If ld is used when linking, flag to hardcode \$libdir into
18689# a binary during linking. This must work even if \$libdir does
18690# not exist.
18691hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18692
18693# Whether we need a single -rpath flag with a separated argument.
18694hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18695
18696# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18697# resulting binary.
18698hardcode_direct=$hardcode_direct_GCJ
18699
18700# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18701# resulting binary.
18702hardcode_minus_L=$hardcode_minus_L_GCJ
18703
18704# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18705# the resulting binary.
18706hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18707
18708# Set to yes if building a shared library automatically hardcodes DIR into the library
18709# and all subsequent libraries and executables linked against it.
18710hardcode_automatic=$hardcode_automatic_GCJ
18711
18712# Variables whose values should be saved in libtool wrapper scripts and
18713# restored at relink time.
18714variables_saved_for_relink="$variables_saved_for_relink"
18715
18716# Whether libtool must link a program against all its dependency libraries.
18717link_all_deplibs=$link_all_deplibs_GCJ
18718
18719# Compile-time system search path for libraries
18720sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18721
18722# Run-time system search path for libraries
18723sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18724
18725# Fix the shell variable \$srcfile for the compiler.
18726fix_srcfile_path=$lt_fix_srcfile_path
18727
18728# Set to yes if exported symbols are required.
18729always_export_symbols=$always_export_symbols_GCJ
18730
18731# The commands to list exported symbols.
18732export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18733
18734# The commands to extract the exported symbol list from a shared archive.
18735extract_expsyms_cmds=$lt_extract_expsyms_cmds
18736
18737# Symbols that should not be listed in the preloaded symbols.
18738exclude_expsyms=$lt_exclude_expsyms_GCJ
18739
18740# Symbols that must always be exported.
18741include_expsyms=$lt_include_expsyms_GCJ
18742
18743# ### END LIBTOOL TAG CONFIG: $tagname
18744
18745__EOF__
18746
18747
18748else
18749  # If there is no Makefile yet, we rely on a make rule to execute
18750  # `config.status --recheck' to rerun these tests and create the
18751  # libtool script then.
18752  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18753  if test -f "$ltmain_in"; then
18754    test -f Makefile && make "$ltmain"
18755  fi
18756fi
18757
18758
18759ac_ext=c
18760ac_cpp='$CPP $CPPFLAGS'
18761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18763ac_compiler_gnu=$ac_cv_c_compiler_gnu
18764
18765CC="$lt_save_CC"
18766
18767	else
18768	  tagname=""
18769	fi
18770	;;
18771
18772      RC)
18773
18774
18775# Source file extension for RC test sources.
18776ac_ext=rc
18777
18778# Object file extension for compiled RC test sources.
18779objext=o
18780objext_RC=$objext
18781
18782# Code to be used in simple compile tests
18783lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18784
18785# Code to be used in simple link tests
18786lt_simple_link_test_code="$lt_simple_compile_test_code"
18787
18788# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18789
18790# If no C compiler was specified, use CC.
18791LTCC=${LTCC-"$CC"}
18792
18793# If no C compiler flags were specified, use CFLAGS.
18794LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18795
18796# Allow CC to be a program name with arguments.
18797compiler=$CC
18798
18799
18800# save warnings/boilerplate of simple test code
18801ac_outfile=conftest.$ac_objext
18802echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18803eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18804_lt_compiler_boilerplate=`cat conftest.err`
18805$rm conftest*
18806
18807ac_outfile=conftest.$ac_objext
18808echo "$lt_simple_link_test_code" >conftest.$ac_ext
18809eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18810_lt_linker_boilerplate=`cat conftest.err`
18811$rm -r conftest*
18812
18813
18814# Allow CC to be a program name with arguments.
18815lt_save_CC="$CC"
18816CC=${RC-"windres"}
18817compiler=$CC
18818compiler_RC=$CC
18819for cc_temp in $compiler""; do
18820  case $cc_temp in
18821    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18822    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18823    \-*) ;;
18824    *) break;;
18825  esac
18826done
18827cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18828
18829lt_cv_prog_compiler_c_o_RC=yes
18830
18831# The else clause should only fire when bootstrapping the
18832# libtool distribution, otherwise you forgot to ship ltmain.sh
18833# with your package, and you will get complaints that there are
18834# no rules to generate ltmain.sh.
18835if test -f "$ltmain"; then
18836  # See if we are running on zsh, and set the options which allow our commands through
18837  # without removal of \ escapes.
18838  if test -n "${ZSH_VERSION+set}" ; then
18839    setopt NO_GLOB_SUBST
18840  fi
18841  # Now quote all the things that may contain metacharacters while being
18842  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18843  # variables and quote the copies for generation of the libtool script.
18844  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18845    SED SHELL STRIP \
18846    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18847    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18848    deplibs_check_method reload_flag reload_cmds need_locks \
18849    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18850    lt_cv_sys_global_symbol_to_c_name_address \
18851    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18852    old_postinstall_cmds old_postuninstall_cmds \
18853    compiler_RC \
18854    CC_RC \
18855    LD_RC \
18856    lt_prog_compiler_wl_RC \
18857    lt_prog_compiler_pic_RC \
18858    lt_prog_compiler_static_RC \
18859    lt_prog_compiler_no_builtin_flag_RC \
18860    export_dynamic_flag_spec_RC \
18861    thread_safe_flag_spec_RC \
18862    whole_archive_flag_spec_RC \
18863    enable_shared_with_static_runtimes_RC \
18864    old_archive_cmds_RC \
18865    old_archive_from_new_cmds_RC \
18866    predep_objects_RC \
18867    postdep_objects_RC \
18868    predeps_RC \
18869    postdeps_RC \
18870    compiler_lib_search_path_RC \
18871    compiler_lib_search_dirs_RC \
18872    archive_cmds_RC \
18873    archive_expsym_cmds_RC \
18874    postinstall_cmds_RC \
18875    postuninstall_cmds_RC \
18876    old_archive_from_expsyms_cmds_RC \
18877    allow_undefined_flag_RC \
18878    no_undefined_flag_RC \
18879    export_symbols_cmds_RC \
18880    hardcode_libdir_flag_spec_RC \
18881    hardcode_libdir_flag_spec_ld_RC \
18882    hardcode_libdir_separator_RC \
18883    hardcode_automatic_RC \
18884    module_cmds_RC \
18885    module_expsym_cmds_RC \
18886    lt_cv_prog_compiler_c_o_RC \
18887    fix_srcfile_path_RC \
18888    exclude_expsyms_RC \
18889    include_expsyms_RC; do
18890
18891    case $var in
18892    old_archive_cmds_RC | \
18893    old_archive_from_new_cmds_RC | \
18894    archive_cmds_RC | \
18895    archive_expsym_cmds_RC | \
18896    module_cmds_RC | \
18897    module_expsym_cmds_RC | \
18898    old_archive_from_expsyms_cmds_RC | \
18899    export_symbols_cmds_RC | \
18900    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18901    postinstall_cmds | postuninstall_cmds | \
18902    old_postinstall_cmds | old_postuninstall_cmds | \
18903    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18904      # Double-quote double-evaled strings.
18905      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18906      ;;
18907    *)
18908      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18909      ;;
18910    esac
18911  done
18912
18913  case $lt_echo in
18914  *'\$0 --fallback-echo"')
18915    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18916    ;;
18917  esac
18918
18919cfgfile="$ofile"
18920
18921  cat <<__EOF__ >> "$cfgfile"
18922# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18923
18924# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18925
18926# Shell to use when invoking shell scripts.
18927SHELL=$lt_SHELL
18928
18929# Whether or not to build shared libraries.
18930build_libtool_libs=$enable_shared
18931
18932# Whether or not to build static libraries.
18933build_old_libs=$enable_static
18934
18935# Whether or not to add -lc for building shared libraries.
18936build_libtool_need_lc=$archive_cmds_need_lc_RC
18937
18938# Whether or not to disallow shared libs when runtime libs are static
18939allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18940
18941# Whether or not to optimize for fast installation.
18942fast_install=$enable_fast_install
18943
18944# The host system.
18945host_alias=$host_alias
18946host=$host
18947host_os=$host_os
18948
18949# The build system.
18950build_alias=$build_alias
18951build=$build
18952build_os=$build_os
18953
18954# An echo program that does not interpret backslashes.
18955echo=$lt_echo
18956
18957# The archiver.
18958AR=$lt_AR
18959AR_FLAGS=$lt_AR_FLAGS
18960
18961# A C compiler.
18962LTCC=$lt_LTCC
18963
18964# LTCC compiler flags.
18965LTCFLAGS=$lt_LTCFLAGS
18966
18967# A language-specific compiler.
18968CC=$lt_compiler_RC
18969
18970# Is the compiler the GNU C compiler?
18971with_gcc=$GCC_RC
18972
18973# An ERE matcher.
18974EGREP=$lt_EGREP
18975
18976# The linker used to build libraries.
18977LD=$lt_LD_RC
18978
18979# Whether we need hard or soft links.
18980LN_S=$lt_LN_S
18981
18982# A BSD-compatible nm program.
18983NM=$lt_NM
18984
18985# A symbol stripping program
18986STRIP=$lt_STRIP
18987
18988# Used to examine libraries when file_magic_cmd begins "file"
18989MAGIC_CMD=$MAGIC_CMD
18990
18991# Used on cygwin: DLL creation program.
18992DLLTOOL="$DLLTOOL"
18993
18994# Used on cygwin: object dumper.
18995OBJDUMP="$OBJDUMP"
18996
18997# Used on cygwin: assembler.
18998AS="$AS"
18999
19000# The name of the directory that contains temporary libtool files.
19001objdir=$objdir
19002
19003# How to create reloadable object files.
19004reload_flag=$lt_reload_flag
19005reload_cmds=$lt_reload_cmds
19006
19007# How to pass a linker flag through the compiler.
19008wl=$lt_lt_prog_compiler_wl_RC
19009
19010# Object file suffix (normally "o").
19011objext="$ac_objext"
19012
19013# Old archive suffix (normally "a").
19014libext="$libext"
19015
19016# Shared library suffix (normally ".so").
19017shrext_cmds='$shrext_cmds'
19018
19019# Executable file suffix (normally "").
19020exeext="$exeext"
19021
19022# Additional compiler flags for building library objects.
19023pic_flag=$lt_lt_prog_compiler_pic_RC
19024pic_mode=$pic_mode
19025
19026# What is the maximum length of a command?
19027max_cmd_len=$lt_cv_sys_max_cmd_len
19028
19029# Does compiler simultaneously support -c and -o options?
19030compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19031
19032# Must we lock files when doing compilation?
19033need_locks=$lt_need_locks
19034
19035# Do we need the lib prefix for modules?
19036need_lib_prefix=$need_lib_prefix
19037
19038# Do we need a version for libraries?
19039need_version=$need_version
19040
19041# Whether dlopen is supported.
19042dlopen_support=$enable_dlopen
19043
19044# Whether dlopen of programs is supported.
19045dlopen_self=$enable_dlopen_self
19046
19047# Whether dlopen of statically linked programs is supported.
19048dlopen_self_static=$enable_dlopen_self_static
19049
19050# Compiler flag to prevent dynamic linking.
19051link_static_flag=$lt_lt_prog_compiler_static_RC
19052
19053# Compiler flag to turn off builtin functions.
19054no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19055
19056# Compiler flag to allow reflexive dlopens.
19057export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19058
19059# Compiler flag to generate shared objects directly from archives.
19060whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19061
19062# Compiler flag to generate thread-safe objects.
19063thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19064
19065# Library versioning type.
19066version_type=$version_type
19067
19068# Format of library name prefix.
19069libname_spec=$lt_libname_spec
19070
19071# List of archive names.  First name is the real one, the rest are links.
19072# The last name is the one that the linker finds with -lNAME.
19073library_names_spec=$lt_library_names_spec
19074
19075# The coded name of the library, if different from the real name.
19076soname_spec=$lt_soname_spec
19077
19078# Commands used to build and install an old-style archive.
19079RANLIB=$lt_RANLIB
19080old_archive_cmds=$lt_old_archive_cmds_RC
19081old_postinstall_cmds=$lt_old_postinstall_cmds
19082old_postuninstall_cmds=$lt_old_postuninstall_cmds
19083
19084# Create an old-style archive from a shared archive.
19085old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19086
19087# Create a temporary old-style archive to link instead of a shared archive.
19088old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19089
19090# Commands used to build and install a shared archive.
19091archive_cmds=$lt_archive_cmds_RC
19092archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19093postinstall_cmds=$lt_postinstall_cmds
19094postuninstall_cmds=$lt_postuninstall_cmds
19095
19096# Commands used to build a loadable module (assumed same as above if empty)
19097module_cmds=$lt_module_cmds_RC
19098module_expsym_cmds=$lt_module_expsym_cmds_RC
19099
19100# Commands to strip libraries.
19101old_striplib=$lt_old_striplib
19102striplib=$lt_striplib
19103
19104# Dependencies to place before the objects being linked to create a
19105# shared library.
19106predep_objects=$lt_predep_objects_RC
19107
19108# Dependencies to place after the objects being linked to create a
19109# shared library.
19110postdep_objects=$lt_postdep_objects_RC
19111
19112# Dependencies to place before the objects being linked to create a
19113# shared library.
19114predeps=$lt_predeps_RC
19115
19116# Dependencies to place after the objects being linked to create a
19117# shared library.
19118postdeps=$lt_postdeps_RC
19119
19120# The directories searched by this compiler when creating a shared
19121# library
19122compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19123
19124# The library search path used internally by the compiler when linking
19125# a shared library.
19126compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19127
19128# Method to check whether dependent libraries are shared objects.
19129deplibs_check_method=$lt_deplibs_check_method
19130
19131# Command to use when deplibs_check_method == file_magic.
19132file_magic_cmd=$lt_file_magic_cmd
19133
19134# Flag that allows shared libraries with undefined symbols to be built.
19135allow_undefined_flag=$lt_allow_undefined_flag_RC
19136
19137# Flag that forces no undefined symbols.
19138no_undefined_flag=$lt_no_undefined_flag_RC
19139
19140# Commands used to finish a libtool library installation in a directory.
19141finish_cmds=$lt_finish_cmds
19142
19143# Same as above, but a single script fragment to be evaled but not shown.
19144finish_eval=$lt_finish_eval
19145
19146# Take the output of nm and produce a listing of raw symbols and C names.
19147global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19148
19149# Transform the output of nm in a proper C declaration
19150global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19151
19152# Transform the output of nm in a C name address pair
19153global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19154
19155# This is the shared library runtime path variable.
19156runpath_var=$runpath_var
19157
19158# This is the shared library path variable.
19159shlibpath_var=$shlibpath_var
19160
19161# Is shlibpath searched before the hard-coded library search path?
19162shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19163
19164# How to hardcode a shared library path into an executable.
19165hardcode_action=$hardcode_action_RC
19166
19167# Whether we should hardcode library paths into libraries.
19168hardcode_into_libs=$hardcode_into_libs
19169
19170# Flag to hardcode \$libdir into a binary during linking.
19171# This must work even if \$libdir does not exist.
19172hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19173
19174# If ld is used when linking, flag to hardcode \$libdir into
19175# a binary during linking. This must work even if \$libdir does
19176# not exist.
19177hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19178
19179# Whether we need a single -rpath flag with a separated argument.
19180hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19181
19182# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19183# resulting binary.
19184hardcode_direct=$hardcode_direct_RC
19185
19186# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19187# resulting binary.
19188hardcode_minus_L=$hardcode_minus_L_RC
19189
19190# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19191# the resulting binary.
19192hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19193
19194# Set to yes if building a shared library automatically hardcodes DIR into the library
19195# and all subsequent libraries and executables linked against it.
19196hardcode_automatic=$hardcode_automatic_RC
19197
19198# Variables whose values should be saved in libtool wrapper scripts and
19199# restored at relink time.
19200variables_saved_for_relink="$variables_saved_for_relink"
19201
19202# Whether libtool must link a program against all its dependency libraries.
19203link_all_deplibs=$link_all_deplibs_RC
19204
19205# Compile-time system search path for libraries
19206sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19207
19208# Run-time system search path for libraries
19209sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19210
19211# Fix the shell variable \$srcfile for the compiler.
19212fix_srcfile_path=$lt_fix_srcfile_path
19213
19214# Set to yes if exported symbols are required.
19215always_export_symbols=$always_export_symbols_RC
19216
19217# The commands to list exported symbols.
19218export_symbols_cmds=$lt_export_symbols_cmds_RC
19219
19220# The commands to extract the exported symbol list from a shared archive.
19221extract_expsyms_cmds=$lt_extract_expsyms_cmds
19222
19223# Symbols that should not be listed in the preloaded symbols.
19224exclude_expsyms=$lt_exclude_expsyms_RC
19225
19226# Symbols that must always be exported.
19227include_expsyms=$lt_include_expsyms_RC
19228
19229# ### END LIBTOOL TAG CONFIG: $tagname
19230
19231__EOF__
19232
19233
19234else
19235  # If there is no Makefile yet, we rely on a make rule to execute
19236  # `config.status --recheck' to rerun these tests and create the
19237  # libtool script then.
19238  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19239  if test -f "$ltmain_in"; then
19240    test -f Makefile && make "$ltmain"
19241  fi
19242fi
19243
19244
19245ac_ext=c
19246ac_cpp='$CPP $CPPFLAGS'
19247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19249ac_compiler_gnu=$ac_cv_c_compiler_gnu
19250
19251CC="$lt_save_CC"
19252
19253	;;
19254
19255      *)
19256	as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19257	;;
19258      esac
19259
19260      # Append the new tag name to the list of available tags.
19261      if test -n "$tagname" ; then
19262      available_tags="$available_tags $tagname"
19263    fi
19264    fi
19265  done
19266  IFS="$lt_save_ifs"
19267
19268  # Now substitute the updated list of available tags.
19269  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19270    mv "${ofile}T" "$ofile"
19271    chmod +x "$ofile"
19272  else
19273    rm -f "${ofile}T"
19274    as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19275  fi
19276fi
19277
19278
19279
19280# This can be used to rebuild libtool when needed
19281LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19282
19283# Always use our own libtool.
19284LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19285
19286# Prevent multiple expansion
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307# Find a good install program.  We prefer a C program (faster),
19308# so one script is as good as another.  But avoid the broken or
19309# incompatible versions:
19310# SysV /etc/install, /usr/sbin/install
19311# SunOS /usr/etc/install
19312# IRIX /sbin/install
19313# AIX /bin/install
19314# AmigaOS /C/install, which installs bootblocks on floppy discs
19315# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19316# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19317# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19318# OS/2's system install, which has a completely different semantic
19319# ./install, which can be erroneously created by make from ./install.sh.
19320# Reject install programs that cannot install multiple files.
19321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19322$as_echo_n "checking for a BSD-compatible install... " >&6; }
19323if test -z "$INSTALL"; then
19324if test "${ac_cv_path_install+set}" = set; then :
19325  $as_echo_n "(cached) " >&6
19326else
19327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19328for as_dir in $PATH
19329do
19330  IFS=$as_save_IFS
19331  test -z "$as_dir" && as_dir=.
19332    # Account for people who put trailing slashes in PATH elements.
19333case $as_dir/ in #((
19334  ./ | .// | /[cC]/* | \
19335  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19336  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19337  /usr/ucb/* ) ;;
19338  *)
19339    # OSF1 and SCO ODT 3.0 have their own names for install.
19340    # Don't use installbsd from OSF since it installs stuff as root
19341    # by default.
19342    for ac_prog in ginstall scoinst install; do
19343      for ac_exec_ext in '' $ac_executable_extensions; do
19344	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19345	  if test $ac_prog = install &&
19346	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19347	    # AIX install.  It has an incompatible calling convention.
19348	    :
19349	  elif test $ac_prog = install &&
19350	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19351	    # program-specific install script used by HP pwplus--don't use.
19352	    :
19353	  else
19354	    rm -rf conftest.one conftest.two conftest.dir
19355	    echo one > conftest.one
19356	    echo two > conftest.two
19357	    mkdir conftest.dir
19358	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19359	      test -s conftest.one && test -s conftest.two &&
19360	      test -s conftest.dir/conftest.one &&
19361	      test -s conftest.dir/conftest.two
19362	    then
19363	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19364	      break 3
19365	    fi
19366	  fi
19367	fi
19368      done
19369    done
19370    ;;
19371esac
19372
19373  done
19374IFS=$as_save_IFS
19375
19376rm -rf conftest.one conftest.two conftest.dir
19377
19378fi
19379  if test "${ac_cv_path_install+set}" = set; then
19380    INSTALL=$ac_cv_path_install
19381  else
19382    # As a last resort, use the slow shell script.  Don't cache a
19383    # value for INSTALL within a source directory, because that will
19384    # break other packages using the cache if that directory is
19385    # removed, or if the value is a relative name.
19386    INSTALL=$ac_install_sh
19387  fi
19388fi
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19390$as_echo "$INSTALL" >&6; }
19391
19392# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19393# It thinks the first close brace ends the variable substitution.
19394test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19395
19396test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19397
19398test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19399
19400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19401$as_echo_n "checking whether ln -s works... " >&6; }
19402LN_S=$as_ln_s
19403if test "$LN_S" = "ln -s"; then
19404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19405$as_echo "yes" >&6; }
19406else
19407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19408$as_echo "no, using $LN_S" >&6; }
19409fi
19410
19411
19412
19413
19414
19415
19416
19417# Warn if the user specified libbind, which is now deprecated
19418# Check whether --enable-libbind was given.
19419if test "${enable_libbind+set}" = set; then :
19420  enableval=$enable_libbind;
19421fi
19422
19423
19424case "$enable_libbind" in
19425	yes)
19426		as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
19427It is available from http://www.isc.org as a separate download." "$LINENO" 5
19428		;;
19429	no|'')
19430		;;
19431esac
19432
19433# Check whether --enable-developer was given.
19434if test "${enable_developer+set}" = set; then :
19435  enableval=$enable_developer;
19436fi
19437
19438case "$enable_developer" in
19439yes)
19440	test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
19441	test "${with_atf+set}" = set || with_atf=yes
19442	test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes
19443	test "${enable_rpz_nsip+set}" = set || enable_rpz_nsip=yes
19444	test "${enable_rpz_nsdname+set}" = set || enable_rpz_nsdname=yes
19445	test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
19446	case "$host" in
19447	*-darwin*)
19448		test "${enable_exportlib+set}" = set || enable_exportlib=yes
19449		;;
19450	*-linux*)
19451		test "${enable_exportlib+set}" = set || enable_exportlib=yes
19452		;;
19453	esac
19454	;;
19455esac
19456#
19457# Make very sure that these are the first files processed by
19458# config.status, since we use the processed output as the input for
19459# AC_SUBST_FILE() substitutions in other files.
19460#
19461ac_config_files="$ac_config_files make/rules make/includes"
19462
19463
19464# Extract the first word of "ar", so it can be a program name with args.
19465set dummy ar; ac_word=$2
19466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19467$as_echo_n "checking for $ac_word... " >&6; }
19468if test "${ac_cv_path_AR+set}" = set; then :
19469  $as_echo_n "(cached) " >&6
19470else
19471  case $AR in
19472  [\\/]* | ?:[\\/]*)
19473  ac_cv_path_AR="$AR" # Let the user override the test with a path.
19474  ;;
19475  *)
19476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19477for as_dir in $PATH
19478do
19479  IFS=$as_save_IFS
19480  test -z "$as_dir" && as_dir=.
19481    for ac_exec_ext in '' $ac_executable_extensions; do
19482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19483    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19485    break 2
19486  fi
19487done
19488  done
19489IFS=$as_save_IFS
19490
19491  ;;
19492esac
19493fi
19494AR=$ac_cv_path_AR
19495if test -n "$AR"; then
19496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19497$as_echo "$AR" >&6; }
19498else
19499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19500$as_echo "no" >&6; }
19501fi
19502
19503
19504ARFLAGS="cruv"
19505
19506
19507
19508# The POSIX ln(1) program.  Non-POSIX systems may substitute
19509# "copy" or something.
19510LN=ln
19511
19512
19513case "$AR" in
19514	"")
19515		as_fn_error $? "
19516ar program not found.  Please fix your PATH to include the directory in
19517which ar resides, or set AR in the environment with the full path to ar.
19518" "$LINENO" 5
19519
19520		;;
19521esac
19522
19523#
19524# Etags.
19525#
19526for ac_prog in etags emacs-etags
19527do
19528  # Extract the first word of "$ac_prog", so it can be a program name with args.
19529set dummy $ac_prog; ac_word=$2
19530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19531$as_echo_n "checking for $ac_word... " >&6; }
19532if test "${ac_cv_path_ETAGS+set}" = set; then :
19533  $as_echo_n "(cached) " >&6
19534else
19535  case $ETAGS in
19536  [\\/]* | ?:[\\/]*)
19537  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19538  ;;
19539  *)
19540  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19541for as_dir in $PATH
19542do
19543  IFS=$as_save_IFS
19544  test -z "$as_dir" && as_dir=.
19545    for ac_exec_ext in '' $ac_executable_extensions; do
19546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19547    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19549    break 2
19550  fi
19551done
19552  done
19553IFS=$as_save_IFS
19554
19555  ;;
19556esac
19557fi
19558ETAGS=$ac_cv_path_ETAGS
19559if test -n "$ETAGS"; then
19560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
19561$as_echo "$ETAGS" >&6; }
19562else
19563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564$as_echo "no" >&6; }
19565fi
19566
19567
19568  test -n "$ETAGS" && break
19569done
19570
19571
19572#
19573# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
19574# GNU emacs etags, and it requires the -L flag.
19575#
19576if test "X$ETAGS" != "X"; then
19577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
19578$as_echo_n "checking for Exuberant Ctags etags... " >&6; }
19579	if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
19580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19581$as_echo "yes" >&6; }
19582		ETAGS="$ETAGS -L"
19583	else
19584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585$as_echo "no" >&6; }
19586	fi
19587fi
19588
19589
19590#
19591# Perl is optional; it is used only by some of the system test scripts.
19592# Note: the backtrace feature (see below) uses perl to build the symbol table,
19593# but it still compiles without perl, in which case an empty table will be used.
19594#
19595for ac_prog in perl5 perl
19596do
19597  # Extract the first word of "$ac_prog", so it can be a program name with args.
19598set dummy $ac_prog; ac_word=$2
19599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19600$as_echo_n "checking for $ac_word... " >&6; }
19601if test "${ac_cv_path_PERL+set}" = set; then :
19602  $as_echo_n "(cached) " >&6
19603else
19604  case $PERL in
19605  [\\/]* | ?:[\\/]*)
19606  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19607  ;;
19608  *)
19609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19610for as_dir in $PATH
19611do
19612  IFS=$as_save_IFS
19613  test -z "$as_dir" && as_dir=.
19614    for ac_exec_ext in '' $ac_executable_extensions; do
19615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19616    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19618    break 2
19619  fi
19620done
19621  done
19622IFS=$as_save_IFS
19623
19624  ;;
19625esac
19626fi
19627PERL=$ac_cv_path_PERL
19628if test -n "$PERL"; then
19629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19630$as_echo "$PERL" >&6; }
19631else
19632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19633$as_echo "no" >&6; }
19634fi
19635
19636
19637  test -n "$PERL" && break
19638done
19639
19640
19641
19642#
19643# Python is also optional; it is used by the tools in bin/python.
19644# If python is unavailable, we simply don't build those.
19645#
19646
19647# Check whether --with-python was given.
19648if test "${with_python+set}" = set; then :
19649  withval=$with_python; use_python="$withval"
19650else
19651  use_python="unspec"
19652fi
19653
19654
19655case "$use_python" in
19656	no)
19657		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19658$as_echo "disabled" >&6; }
19659		;;
19660	unspec|yes|*)
19661		case "$use_python" in
19662		unspec|yes|'')
19663			for ac_prog in python
19664do
19665  # Extract the first word of "$ac_prog", so it can be a program name with args.
19666set dummy $ac_prog; ac_word=$2
19667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19668$as_echo_n "checking for $ac_word... " >&6; }
19669if test "${ac_cv_path_PYTHON+set}" = set; then :
19670  $as_echo_n "(cached) " >&6
19671else
19672  case $PYTHON in
19673  [\\/]* | ?:[\\/]*)
19674  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19675  ;;
19676  *)
19677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19678for as_dir in $PATH
19679do
19680  IFS=$as_save_IFS
19681  test -z "$as_dir" && as_dir=.
19682    for ac_exec_ext in '' $ac_executable_extensions; do
19683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19684    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19686    break 2
19687  fi
19688done
19689  done
19690IFS=$as_save_IFS
19691
19692  ;;
19693esac
19694fi
19695PYTHON=$ac_cv_path_PYTHON
19696if test -n "$PYTHON"; then
19697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19698$as_echo "$PYTHON" >&6; }
19699else
19700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19701$as_echo "no" >&6; }
19702fi
19703
19704
19705  test -n "$PYTHON" && break
19706done
19707
19708			;;
19709		*)
19710			for ac_prog in $use_python
19711do
19712  # Extract the first word of "$ac_prog", so it can be a program name with args.
19713set dummy $ac_prog; ac_word=$2
19714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19715$as_echo_n "checking for $ac_word... " >&6; }
19716if test "${ac_cv_path_PYTHON+set}" = set; then :
19717  $as_echo_n "(cached) " >&6
19718else
19719  case $PYTHON in
19720  [\\/]* | ?:[\\/]*)
19721  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19722  ;;
19723  *)
19724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19725for as_dir in $PATH
19726do
19727  IFS=$as_save_IFS
19728  test -z "$as_dir" && as_dir=.
19729    for ac_exec_ext in '' $ac_executable_extensions; do
19730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19731    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19733    break 2
19734  fi
19735done
19736  done
19737IFS=$as_save_IFS
19738
19739  ;;
19740esac
19741fi
19742PYTHON=$ac_cv_path_PYTHON
19743if test -n "$PYTHON"; then
19744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19745$as_echo "$PYTHON" >&6; }
19746else
19747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19748$as_echo "no" >&6; }
19749fi
19750
19751
19752  test -n "$PYTHON" && break
19753done
19754
19755			;;
19756		esac
19757		if test "X$PYTHON" == "X"
19758		then
19759			case "$use_python" in
19760			unspec)
19761				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19762$as_echo "disabled" >&6; }
19763				;;
19764			yes|*)
19765				as_fn_error $? "missing python" "$LINENO" 5
19766				;;
19767			esac
19768			break
19769		fi
19770                testscript='try: import argparse
19771except: exit(1)'
19772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'argparse'" >&5
19773$as_echo_n "checking python module 'argparse'... " >&6; }
19774                if $PYTHON -c "$testscript"; then
19775                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5
19776$as_echo "found, using $PYTHON" >&6; }
19777                else
19778			case "$use_python" in
19779			unspec)
19780				PYTHON=""
19781
19782				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, python disabled" >&5
19783$as_echo "not found, python disabled" >&6; }
19784				;;
19785			yes)
19786                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no found" >&5
19787$as_echo "no found" >&6; }
19788                        as_fn_error $? "python 'argparse' module not supported" "$LINENO" 5
19789				;;
19790			esac
19791                fi
19792		;;
19793esac
19794
19795PYTHON_TOOLS=''
19796CHECKDS=''
19797if test "X$PYTHON" != "X"; then
19798        PYTHON_TOOLS=python
19799	CHECKDS=checkds
19800fi
19801
19802
19803
19804#
19805# Special processing of paths depending on whether --prefix,
19806# --sysconfdir or --localstatedir arguments were given.  What's
19807# desired is some compatibility with the way previous versions
19808# of BIND built; they defaulted to /usr/local for most parts of
19809# the installation, but named.boot/named.conf was in /etc
19810# and named.pid was in /var/run.
19811#
19812# So ... if none of --prefix, --sysconfdir or --localstatedir are
19813# specified, set things up that way.  If --prefix is given, use
19814# it for sysconfdir and localstatedir the way configure normally
19815# would.  To change the prefix for everything but leave named.conf
19816# in /etc or named.pid in /var/run, then do this the usual configure way:
19817# ./configure --prefix=/somewhere --sysconfdir=/etc
19818# ./configure --prefix=/somewhere --localstatedir=/var
19819#
19820# To put named.conf and named.pid in /usr/local with everything else,
19821# set the prefix explicitly to /usr/local even though that's the default:
19822# ./configure --prefix=/usr/local
19823#
19824case "$prefix" in
19825	NONE)
19826		case "$sysconfdir" in
19827			'${prefix}/etc')
19828				sysconfdir=/etc
19829				;;
19830		esac
19831		case "$localstatedir" in
19832			'${prefix}/var')
19833				localstatedir=/var
19834				;;
19835		esac
19836		;;
19837esac
19838
19839#
19840# Make sure INSTALL uses an absolute path, else it will be wrong in all
19841# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
19842# configure based on the location of the file where it is substituted.
19843# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
19844# subdirectory of install-sh, This relative path will be wrong for all
19845# directories more than one level down from install-sh.
19846#
19847case "$INSTALL" in
19848	/*)
19849		;;
19850	*)
19851		#
19852		# Not all systems have dirname.
19853		#
19854
19855		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
19856
19857
19858		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
19859		test "$ac_dir" = "$ac_prog" && ac_dir=.
19860		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
19861		INSTALL="$ac_dir/$ac_prog"
19862		;;
19863esac
19864
19865#
19866# On these hosts, we really want to use cc, not gcc, even if it is
19867# found.  The gcc that these systems have will not correctly handle
19868# pthreads.
19869#
19870# However, if the user sets $CC to be something, let that override
19871# our change.
19872#
19873if test "X$CC" = "X" ; then
19874	case "$host" in
19875		*-dec-osf*)
19876			CC="cc"
19877			;;
19878		*-solaris*)
19879			# Use Sun's cc if it is available, but watch
19880			# out for /usr/ucb/cc; it will never be the right
19881			# compiler to use.
19882			#
19883			# If setting CC here fails, the AC_PROG_CC done
19884			# below might still find gcc.
19885			IFS="${IFS=	}"; ac_save_ifs="$IFS"; IFS=":"
19886			for ac_dir in $PATH; do
19887				test -z "$ac_dir" && ac_dir=.
19888				case "$ac_dir" in
19889				/usr/ucb)
19890					# exclude
19891					;;
19892				*)
19893					if test -f "$ac_dir/cc"; then
19894						CC="$ac_dir/cc"
19895						break
19896					fi
19897					;;
19898				esac
19899			done
19900			IFS="$ac_save_ifs"
19901			;;
19902		*-hp-hpux*)
19903			CC="cc"
19904			;;
19905		mips-sgi-irix*)
19906			CC="cc"
19907			;;
19908	esac
19909fi
19910
19911ac_ext=c
19912ac_cpp='$CPP $CPPFLAGS'
19913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19915ac_compiler_gnu=$ac_cv_c_compiler_gnu
19916if test -n "$ac_tool_prefix"; then
19917  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19918set dummy ${ac_tool_prefix}gcc; ac_word=$2
19919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19920$as_echo_n "checking for $ac_word... " >&6; }
19921if test "${ac_cv_prog_CC+set}" = set; then :
19922  $as_echo_n "(cached) " >&6
19923else
19924  if test -n "$CC"; then
19925  ac_cv_prog_CC="$CC" # Let the user override the test.
19926else
19927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19928for as_dir in $PATH
19929do
19930  IFS=$as_save_IFS
19931  test -z "$as_dir" && as_dir=.
19932    for ac_exec_ext in '' $ac_executable_extensions; do
19933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19934    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19936    break 2
19937  fi
19938done
19939  done
19940IFS=$as_save_IFS
19941
19942fi
19943fi
19944CC=$ac_cv_prog_CC
19945if test -n "$CC"; then
19946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19947$as_echo "$CC" >&6; }
19948else
19949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19950$as_echo "no" >&6; }
19951fi
19952
19953
19954fi
19955if test -z "$ac_cv_prog_CC"; then
19956  ac_ct_CC=$CC
19957  # Extract the first word of "gcc", so it can be a program name with args.
19958set dummy gcc; ac_word=$2
19959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19960$as_echo_n "checking for $ac_word... " >&6; }
19961if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19962  $as_echo_n "(cached) " >&6
19963else
19964  if test -n "$ac_ct_CC"; then
19965  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19966else
19967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19968for as_dir in $PATH
19969do
19970  IFS=$as_save_IFS
19971  test -z "$as_dir" && as_dir=.
19972    for ac_exec_ext in '' $ac_executable_extensions; do
19973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19974    ac_cv_prog_ac_ct_CC="gcc"
19975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19976    break 2
19977  fi
19978done
19979  done
19980IFS=$as_save_IFS
19981
19982fi
19983fi
19984ac_ct_CC=$ac_cv_prog_ac_ct_CC
19985if test -n "$ac_ct_CC"; then
19986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19987$as_echo "$ac_ct_CC" >&6; }
19988else
19989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19990$as_echo "no" >&6; }
19991fi
19992
19993  if test "x$ac_ct_CC" = x; then
19994    CC=""
19995  else
19996    case $cross_compiling:$ac_tool_warned in
19997yes:)
19998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20000ac_tool_warned=yes ;;
20001esac
20002    CC=$ac_ct_CC
20003  fi
20004else
20005  CC="$ac_cv_prog_CC"
20006fi
20007
20008if test -z "$CC"; then
20009          if test -n "$ac_tool_prefix"; then
20010    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20011set dummy ${ac_tool_prefix}cc; ac_word=$2
20012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20013$as_echo_n "checking for $ac_word... " >&6; }
20014if test "${ac_cv_prog_CC+set}" = set; then :
20015  $as_echo_n "(cached) " >&6
20016else
20017  if test -n "$CC"; then
20018  ac_cv_prog_CC="$CC" # Let the user override the test.
20019else
20020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20021for as_dir in $PATH
20022do
20023  IFS=$as_save_IFS
20024  test -z "$as_dir" && as_dir=.
20025    for ac_exec_ext in '' $ac_executable_extensions; do
20026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20027    ac_cv_prog_CC="${ac_tool_prefix}cc"
20028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20029    break 2
20030  fi
20031done
20032  done
20033IFS=$as_save_IFS
20034
20035fi
20036fi
20037CC=$ac_cv_prog_CC
20038if test -n "$CC"; then
20039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20040$as_echo "$CC" >&6; }
20041else
20042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043$as_echo "no" >&6; }
20044fi
20045
20046
20047  fi
20048fi
20049if test -z "$CC"; then
20050  # Extract the first word of "cc", so it can be a program name with args.
20051set dummy cc; ac_word=$2
20052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20053$as_echo_n "checking for $ac_word... " >&6; }
20054if test "${ac_cv_prog_CC+set}" = set; then :
20055  $as_echo_n "(cached) " >&6
20056else
20057  if test -n "$CC"; then
20058  ac_cv_prog_CC="$CC" # Let the user override the test.
20059else
20060  ac_prog_rejected=no
20061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20062for as_dir in $PATH
20063do
20064  IFS=$as_save_IFS
20065  test -z "$as_dir" && as_dir=.
20066    for ac_exec_ext in '' $ac_executable_extensions; do
20067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20068    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20069       ac_prog_rejected=yes
20070       continue
20071     fi
20072    ac_cv_prog_CC="cc"
20073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20074    break 2
20075  fi
20076done
20077  done
20078IFS=$as_save_IFS
20079
20080if test $ac_prog_rejected = yes; then
20081  # We found a bogon in the path, so make sure we never use it.
20082  set dummy $ac_cv_prog_CC
20083  shift
20084  if test $# != 0; then
20085    # We chose a different compiler from the bogus one.
20086    # However, it has the same basename, so the bogon will be chosen
20087    # first if we set CC to just the basename; use the full file name.
20088    shift
20089    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20090  fi
20091fi
20092fi
20093fi
20094CC=$ac_cv_prog_CC
20095if test -n "$CC"; then
20096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20097$as_echo "$CC" >&6; }
20098else
20099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100$as_echo "no" >&6; }
20101fi
20102
20103
20104fi
20105if test -z "$CC"; then
20106  if test -n "$ac_tool_prefix"; then
20107  for ac_prog in cl.exe
20108  do
20109    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20112$as_echo_n "checking for $ac_word... " >&6; }
20113if test "${ac_cv_prog_CC+set}" = set; then :
20114  $as_echo_n "(cached) " >&6
20115else
20116  if test -n "$CC"; then
20117  ac_cv_prog_CC="$CC" # Let the user override the test.
20118else
20119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20120for as_dir in $PATH
20121do
20122  IFS=$as_save_IFS
20123  test -z "$as_dir" && as_dir=.
20124    for ac_exec_ext in '' $ac_executable_extensions; do
20125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20126    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20128    break 2
20129  fi
20130done
20131  done
20132IFS=$as_save_IFS
20133
20134fi
20135fi
20136CC=$ac_cv_prog_CC
20137if test -n "$CC"; then
20138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
20139$as_echo "$CC" >&6; }
20140else
20141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142$as_echo "no" >&6; }
20143fi
20144
20145
20146    test -n "$CC" && break
20147  done
20148fi
20149if test -z "$CC"; then
20150  ac_ct_CC=$CC
20151  for ac_prog in cl.exe
20152do
20153  # Extract the first word of "$ac_prog", so it can be a program name with args.
20154set dummy $ac_prog; ac_word=$2
20155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20156$as_echo_n "checking for $ac_word... " >&6; }
20157if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
20158  $as_echo_n "(cached) " >&6
20159else
20160  if test -n "$ac_ct_CC"; then
20161  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20162else
20163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20164for as_dir in $PATH
20165do
20166  IFS=$as_save_IFS
20167  test -z "$as_dir" && as_dir=.
20168    for ac_exec_ext in '' $ac_executable_extensions; do
20169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20170    ac_cv_prog_ac_ct_CC="$ac_prog"
20171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20172    break 2
20173  fi
20174done
20175  done
20176IFS=$as_save_IFS
20177
20178fi
20179fi
20180ac_ct_CC=$ac_cv_prog_ac_ct_CC
20181if test -n "$ac_ct_CC"; then
20182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
20183$as_echo "$ac_ct_CC" >&6; }
20184else
20185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20186$as_echo "no" >&6; }
20187fi
20188
20189
20190  test -n "$ac_ct_CC" && break
20191done
20192
20193  if test "x$ac_ct_CC" = x; then
20194    CC=""
20195  else
20196    case $cross_compiling:$ac_tool_warned in
20197yes:)
20198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20200ac_tool_warned=yes ;;
20201esac
20202    CC=$ac_ct_CC
20203  fi
20204fi
20205
20206fi
20207
20208
20209test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20211as_fn_error $? "no acceptable C compiler found in \$PATH
20212See \`config.log' for more details" "$LINENO" 5; }
20213
20214# Provide some information about the compiler.
20215$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
20216set X $ac_compile
20217ac_compiler=$2
20218for ac_option in --version -v -V -qversion; do
20219  { { ac_try="$ac_compiler $ac_option >&5"
20220case "(($ac_try" in
20221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222  *) ac_try_echo=$ac_try;;
20223esac
20224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20225$as_echo "$ac_try_echo"; } >&5
20226  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20227  ac_status=$?
20228  if test -s conftest.err; then
20229    sed '10a\
20230... rest of stderr output deleted ...
20231         10q' conftest.err >conftest.er1
20232    cat conftest.er1 >&5
20233  fi
20234  rm -f conftest.er1 conftest.err
20235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20236  test $ac_status = 0; }
20237done
20238
20239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20240$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20241if test "${ac_cv_c_compiler_gnu+set}" = set; then :
20242  $as_echo_n "(cached) " >&6
20243else
20244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245/* end confdefs.h.  */
20246
20247int
20248main ()
20249{
20250#ifndef __GNUC__
20251       choke me
20252#endif
20253
20254  ;
20255  return 0;
20256}
20257_ACEOF
20258if ac_fn_c_try_compile "$LINENO"; then :
20259  ac_compiler_gnu=yes
20260else
20261  ac_compiler_gnu=no
20262fi
20263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20264ac_cv_c_compiler_gnu=$ac_compiler_gnu
20265
20266fi
20267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20268$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20269if test $ac_compiler_gnu = yes; then
20270  GCC=yes
20271else
20272  GCC=
20273fi
20274ac_test_CFLAGS=${CFLAGS+set}
20275ac_save_CFLAGS=$CFLAGS
20276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20277$as_echo_n "checking whether $CC accepts -g... " >&6; }
20278if test "${ac_cv_prog_cc_g+set}" = set; then :
20279  $as_echo_n "(cached) " >&6
20280else
20281  ac_save_c_werror_flag=$ac_c_werror_flag
20282   ac_c_werror_flag=yes
20283   ac_cv_prog_cc_g=no
20284   CFLAGS="-g"
20285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20286/* end confdefs.h.  */
20287
20288int
20289main ()
20290{
20291
20292  ;
20293  return 0;
20294}
20295_ACEOF
20296if ac_fn_c_try_compile "$LINENO"; then :
20297  ac_cv_prog_cc_g=yes
20298else
20299  CFLAGS=""
20300      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301/* end confdefs.h.  */
20302
20303int
20304main ()
20305{
20306
20307  ;
20308  return 0;
20309}
20310_ACEOF
20311if ac_fn_c_try_compile "$LINENO"; then :
20312
20313else
20314  ac_c_werror_flag=$ac_save_c_werror_flag
20315	 CFLAGS="-g"
20316	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317/* end confdefs.h.  */
20318
20319int
20320main ()
20321{
20322
20323  ;
20324  return 0;
20325}
20326_ACEOF
20327if ac_fn_c_try_compile "$LINENO"; then :
20328  ac_cv_prog_cc_g=yes
20329fi
20330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331fi
20332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333fi
20334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20335   ac_c_werror_flag=$ac_save_c_werror_flag
20336fi
20337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20338$as_echo "$ac_cv_prog_cc_g" >&6; }
20339if test "$ac_test_CFLAGS" = set; then
20340  CFLAGS=$ac_save_CFLAGS
20341elif test $ac_cv_prog_cc_g = yes; then
20342  if test "$GCC" = yes; then
20343    CFLAGS="-g -O2"
20344  else
20345    CFLAGS="-g"
20346  fi
20347else
20348  if test "$GCC" = yes; then
20349    CFLAGS="-O2"
20350  else
20351    CFLAGS=
20352  fi
20353fi
20354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20355$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20356if test "${ac_cv_prog_cc_c89+set}" = set; then :
20357  $as_echo_n "(cached) " >&6
20358else
20359  ac_cv_prog_cc_c89=no
20360ac_save_CC=$CC
20361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20362/* end confdefs.h.  */
20363#include <stdarg.h>
20364#include <stdio.h>
20365#include <sys/types.h>
20366#include <sys/stat.h>
20367/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20368struct buf { int x; };
20369FILE * (*rcsopen) (struct buf *, struct stat *, int);
20370static char *e (p, i)
20371     char **p;
20372     int i;
20373{
20374  return p[i];
20375}
20376static char *f (char * (*g) (char **, int), char **p, ...)
20377{
20378  char *s;
20379  va_list v;
20380  va_start (v,p);
20381  s = g (p, va_arg (v,int));
20382  va_end (v);
20383  return s;
20384}
20385
20386/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20387   function prototypes and stuff, but not '\xHH' hex character constants.
20388   These don't provoke an error unfortunately, instead are silently treated
20389   as 'x'.  The following induces an error, until -std is added to get
20390   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20391   array size at least.  It's necessary to write '\x00'==0 to get something
20392   that's true only with -std.  */
20393int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20394
20395/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20396   inside strings and character constants.  */
20397#define FOO(x) 'x'
20398int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20399
20400int test (int i, double x);
20401struct s1 {int (*f) (int a);};
20402struct s2 {int (*f) (double a);};
20403int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20404int argc;
20405char **argv;
20406int
20407main ()
20408{
20409return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20410  ;
20411  return 0;
20412}
20413_ACEOF
20414for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20415	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20416do
20417  CC="$ac_save_CC $ac_arg"
20418  if ac_fn_c_try_compile "$LINENO"; then :
20419  ac_cv_prog_cc_c89=$ac_arg
20420fi
20421rm -f core conftest.err conftest.$ac_objext
20422  test "x$ac_cv_prog_cc_c89" != "xno" && break
20423done
20424rm -f conftest.$ac_ext
20425CC=$ac_save_CC
20426
20427fi
20428# AC_CACHE_VAL
20429case "x$ac_cv_prog_cc_c89" in
20430  x)
20431    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20432$as_echo "none needed" >&6; } ;;
20433  xno)
20434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20435$as_echo "unsupported" >&6; } ;;
20436  *)
20437    CC="$CC $ac_cv_prog_cc_c89"
20438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
20439$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20440esac
20441if test "x$ac_cv_prog_cc_c89" != xno; then :
20442
20443fi
20444
20445ac_ext=c
20446ac_cpp='$CPP $CPPFLAGS'
20447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449ac_compiler_gnu=$ac_cv_c_compiler_gnu
20450
20451
20452#
20453# gcc's optimiser is broken at -02 for ultrasparc
20454#
20455if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
20456	case "$host" in
20457	sparc-*)
20458		CCFLAGS="-g -O1"
20459		;;
20460	esac
20461fi
20462
20463#
20464# OS dependent CC flags
20465#
20466case "$host" in
20467	# OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
20468	# -D_XOPEN_SOURCE_EXTENDED.
20469	*-dec-osf*)
20470		STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
20471		CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
20472		;;
20473	#HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
20474	*-hp-hpux*)
20475		STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
20476		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
20477		LIBS="-lxnet $LIBS"
20478		;;
20479	# Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
20480	*-solaris*)
20481		STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
20482		CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
20483		;;
20484	# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
20485	# parts of the IPv6 Advanced Socket API as a result.  This is stupid
20486	# as it breaks how the two halves (Basic and Advanced) of the IPv6
20487	# Socket API were designed to be used but we have to live with it.
20488	# Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
20489	*-linux* | *-kfreebsd*-gnu)
20490		STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
20491		CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20492		;;
20493	#
20494	# Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use.
20495	# Setting this is sufficient to select the correct behavior for BIND 9.
20496	#
20497	*-darwin*)
20498	  STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542"
20499	  CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542"
20500	  ;;
20501esac
20502
20503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20504$as_echo_n "checking for ANSI C header files... " >&6; }
20505if test "${ac_cv_header_stdc+set}" = set; then :
20506  $as_echo_n "(cached) " >&6
20507else
20508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509/* end confdefs.h.  */
20510#include <stdlib.h>
20511#include <stdarg.h>
20512#include <string.h>
20513#include <float.h>
20514
20515int
20516main ()
20517{
20518
20519  ;
20520  return 0;
20521}
20522_ACEOF
20523if ac_fn_c_try_compile "$LINENO"; then :
20524  ac_cv_header_stdc=yes
20525else
20526  ac_cv_header_stdc=no
20527fi
20528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529
20530if test $ac_cv_header_stdc = yes; then
20531  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533/* end confdefs.h.  */
20534#include <string.h>
20535
20536_ACEOF
20537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20538  $EGREP "memchr" >/dev/null 2>&1; then :
20539
20540else
20541  ac_cv_header_stdc=no
20542fi
20543rm -f conftest*
20544
20545fi
20546
20547if test $ac_cv_header_stdc = yes; then
20548  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20550/* end confdefs.h.  */
20551#include <stdlib.h>
20552
20553_ACEOF
20554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20555  $EGREP "free" >/dev/null 2>&1; then :
20556
20557else
20558  ac_cv_header_stdc=no
20559fi
20560rm -f conftest*
20561
20562fi
20563
20564if test $ac_cv_header_stdc = yes; then
20565  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20566  if test "$cross_compiling" = yes; then :
20567  :
20568else
20569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570/* end confdefs.h.  */
20571#include <ctype.h>
20572#include <stdlib.h>
20573#if ((' ' & 0x0FF) == 0x020)
20574# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20575# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20576#else
20577# define ISLOWER(c) \
20578		   (('a' <= (c) && (c) <= 'i') \
20579		     || ('j' <= (c) && (c) <= 'r') \
20580		     || ('s' <= (c) && (c) <= 'z'))
20581# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20582#endif
20583
20584#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20585int
20586main ()
20587{
20588  int i;
20589  for (i = 0; i < 256; i++)
20590    if (XOR (islower (i), ISLOWER (i))
20591	|| toupper (i) != TOUPPER (i))
20592      return 2;
20593  return 0;
20594}
20595_ACEOF
20596if ac_fn_c_try_run "$LINENO"; then :
20597
20598else
20599  ac_cv_header_stdc=no
20600fi
20601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20602  conftest.$ac_objext conftest.beam conftest.$ac_ext
20603fi
20604
20605fi
20606fi
20607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20608$as_echo "$ac_cv_header_stdc" >&6; }
20609if test $ac_cv_header_stdc = yes; then
20610
20611$as_echo "#define STDC_HEADERS 1" >>confdefs.h
20612
20613fi
20614
20615
20616for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h
20617do :
20618  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20619ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20620#ifdef HAVE_SYS_PARAM_H
20621# include <sys/param.h>
20622#endif
20623
20624"
20625if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20626  cat >>confdefs.h <<_ACEOF
20627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20628_ACEOF
20629
20630fi
20631
20632done
20633
20634
20635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20636$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20637if test "${ac_cv_c_const+set}" = set; then :
20638  $as_echo_n "(cached) " >&6
20639else
20640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641/* end confdefs.h.  */
20642
20643int
20644main ()
20645{
20646/* FIXME: Include the comments suggested by Paul. */
20647#ifndef __cplusplus
20648  /* Ultrix mips cc rejects this.  */
20649  typedef int charset[2];
20650  const charset cs;
20651  /* SunOS 4.1.1 cc rejects this.  */
20652  char const *const *pcpcc;
20653  char **ppc;
20654  /* NEC SVR4.0.2 mips cc rejects this.  */
20655  struct point {int x, y;};
20656  static struct point const zero = {0,0};
20657  /* AIX XL C 1.02.0.0 rejects this.
20658     It does not let you subtract one const X* pointer from another in
20659     an arm of an if-expression whose if-part is not a constant
20660     expression */
20661  const char *g = "string";
20662  pcpcc = &g + (g ? g-g : 0);
20663  /* HPUX 7.0 cc rejects these. */
20664  ++pcpcc;
20665  ppc = (char**) pcpcc;
20666  pcpcc = (char const *const *) ppc;
20667  { /* SCO 3.2v4 cc rejects this.  */
20668    char *t;
20669    char const *s = 0 ? (char *) 0 : (char const *) 0;
20670
20671    *t++ = 0;
20672    if (s) return 0;
20673  }
20674  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20675    int x[] = {25, 17};
20676    const int *foo = &x[0];
20677    ++foo;
20678  }
20679  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20680    typedef const int *iptr;
20681    iptr p = 0;
20682    ++p;
20683  }
20684  { /* AIX XL C 1.02.0.0 rejects this saying
20685       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20686    struct s { int j; const int *ap[3]; };
20687    struct s *b; b->j = 5;
20688  }
20689  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20690    const int foo = 10;
20691    if (!foo) return 0;
20692  }
20693  return !cs[0] && !zero.x;
20694#endif
20695
20696  ;
20697  return 0;
20698}
20699_ACEOF
20700if ac_fn_c_try_compile "$LINENO"; then :
20701  ac_cv_c_const=yes
20702else
20703  ac_cv_c_const=no
20704fi
20705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20706fi
20707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20708$as_echo "$ac_cv_c_const" >&6; }
20709if test $ac_cv_c_const = no; then
20710
20711$as_echo "#define const /**/" >>confdefs.h
20712
20713fi
20714
20715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20716$as_echo_n "checking for inline... " >&6; }
20717if test "${ac_cv_c_inline+set}" = set; then :
20718  $as_echo_n "(cached) " >&6
20719else
20720  ac_cv_c_inline=no
20721for ac_kw in inline __inline__ __inline; do
20722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723/* end confdefs.h.  */
20724#ifndef __cplusplus
20725typedef int foo_t;
20726static $ac_kw foo_t static_foo () {return 0; }
20727$ac_kw foo_t foo () {return 0; }
20728#endif
20729
20730_ACEOF
20731if ac_fn_c_try_compile "$LINENO"; then :
20732  ac_cv_c_inline=$ac_kw
20733fi
20734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735  test "$ac_cv_c_inline" != no && break
20736done
20737
20738fi
20739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20740$as_echo "$ac_cv_c_inline" >&6; }
20741
20742case $ac_cv_c_inline in
20743  inline | yes) ;;
20744  *)
20745    case $ac_cv_c_inline in
20746      no) ac_val=;;
20747      *) ac_val=$ac_cv_c_inline;;
20748    esac
20749    cat >>confdefs.h <<_ACEOF
20750#ifndef __cplusplus
20751#define inline $ac_val
20752#endif
20753_ACEOF
20754    ;;
20755esac
20756
20757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20758$as_echo_n "checking for working volatile... " >&6; }
20759if test "${ac_cv_c_volatile+set}" = set; then :
20760  $as_echo_n "(cached) " >&6
20761else
20762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20763/* end confdefs.h.  */
20764
20765int
20766main ()
20767{
20768
20769volatile int x;
20770int * volatile y = (int *) 0;
20771return !x && !y;
20772  ;
20773  return 0;
20774}
20775_ACEOF
20776if ac_fn_c_try_compile "$LINENO"; then :
20777  ac_cv_c_volatile=yes
20778else
20779  ac_cv_c_volatile=no
20780fi
20781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20782fi
20783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20784$as_echo "$ac_cv_c_volatile" >&6; }
20785if test $ac_cv_c_volatile = no; then
20786
20787$as_echo "#define volatile /**/" >>confdefs.h
20788
20789fi
20790
20791ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
20792if test "x$ac_cv_func_sysctlbyname" = x""yes; then :
20793  $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
20794
20795fi
20796
20797
20798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
20799$as_echo_n "checking for flexible array members... " >&6; }
20800if test "${ac_cv_c_flexmember+set}" = set; then :
20801  $as_echo_n "(cached) " >&6
20802else
20803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804/* end confdefs.h.  */
20805#include <stdlib.h>
20806	    #include <stdio.h>
20807	    #include <stddef.h>
20808	    struct s { int n; double d[]; };
20809int
20810main ()
20811{
20812int m = getchar ();
20813	    struct s *p = malloc (offsetof (struct s, d)
20814				  + m * sizeof (double));
20815	    p->d[0] = 0.0;
20816	    return p->d != (double *) NULL;
20817  ;
20818  return 0;
20819}
20820_ACEOF
20821if ac_fn_c_try_compile "$LINENO"; then :
20822  ac_cv_c_flexmember=yes
20823else
20824  ac_cv_c_flexmember=no
20825fi
20826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20827fi
20828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
20829$as_echo "$ac_cv_c_flexmember" >&6; }
20830  if test $ac_cv_c_flexmember = yes; then
20831
20832$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
20833
20834  else
20835    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
20836
20837  fi
20838
20839
20840#
20841# Older versions of HP/UX don't define seteuid() and setegid()
20842#
20843for ac_func in seteuid setresuid
20844do :
20845  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20846ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20847if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20848  cat >>confdefs.h <<_ACEOF
20849#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20850_ACEOF
20851
20852fi
20853done
20854
20855for ac_func in setegid setresgid
20856do :
20857  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20858ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20859if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20860  cat >>confdefs.h <<_ACEOF
20861#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20862_ACEOF
20863
20864fi
20865done
20866
20867
20868#
20869# UnixWare 7.1.1 with the feature supplement to the UDK compiler
20870# is reported to not support "static inline" (RT #1212).
20871#
20872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5
20873$as_echo_n "checking for static inline breakage... " >&6; }
20874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20875/* end confdefs.h.  */
20876
20877int
20878main ()
20879{
20880
20881		foo1();
20882	}
20883
20884	static inline int foo1() {
20885		return 0;
20886	}
20887
20888	static inline int foo2() {
20889		return foo1();
20890
20891  ;
20892  return 0;
20893}
20894_ACEOF
20895if ac_fn_c_try_compile "$LINENO"; then :
20896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20897$as_echo "no" >&6; }
20898else
20899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20900$as_echo "yes" >&6; }
20901
20902$as_echo "#define inline /**/" >>confdefs.h
20903
20904fi
20905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906
20907ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20908if test "x$ac_cv_type_size_t" = x""yes; then :
20909
20910else
20911
20912cat >>confdefs.h <<_ACEOF
20913#define size_t unsigned int
20914_ACEOF
20915
20916fi
20917
20918ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20919if test "x$ac_cv_type_ssize_t" = x""yes; then :
20920
20921else
20922
20923cat >>confdefs.h <<_ACEOF
20924#define ssize_t int
20925_ACEOF
20926
20927fi
20928
20929ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20930if test "x$ac_cv_type_uintptr_t" = x""yes; then :
20931
20932else
20933
20934cat >>confdefs.h <<_ACEOF
20935#define uintptr_t unsigned long
20936_ACEOF
20937
20938fi
20939
20940ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20941#include <sys/types.h>
20942#include <sys/socket.h>
20943
20944"
20945if test "x$ac_cv_type_socklen_t" = x""yes; then :
20946  $as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h
20947
20948else
20949
20950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20951/* end confdefs.h.  */
20952
20953#include <sys/types.h>
20954#include <sys/socket.h>
20955int getsockname(int, struct sockaddr *, size_t *);
20956
20957int
20958main ()
20959{
20960
20961  ;
20962  return 0;
20963}
20964_ACEOF
20965if ac_fn_c_try_compile "$LINENO"; then :
20966  $as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h
20967
20968else
20969  $as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h
20970
20971fi
20972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20973
20974fi
20975
20976
20977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20978$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20979if test "${ac_cv_header_time+set}" = set; then :
20980  $as_echo_n "(cached) " >&6
20981else
20982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983/* end confdefs.h.  */
20984#include <sys/types.h>
20985#include <sys/time.h>
20986#include <time.h>
20987
20988int
20989main ()
20990{
20991if ((struct tm *) 0)
20992return 0;
20993  ;
20994  return 0;
20995}
20996_ACEOF
20997if ac_fn_c_try_compile "$LINENO"; then :
20998  ac_cv_header_time=yes
20999else
21000  ac_cv_header_time=no
21001fi
21002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003fi
21004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21005$as_echo "$ac_cv_header_time" >&6; }
21006if test $ac_cv_header_time = yes; then
21007
21008$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21009
21010fi
21011
21012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
21013$as_echo_n "checking for long long... " >&6; }
21014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015/* end confdefs.h.  */
21016
21017int
21018main ()
21019{
21020long long i = 0; return (0);
21021  ;
21022  return 0;
21023}
21024_ACEOF
21025if ac_fn_c_try_compile "$LINENO"; then :
21026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21027$as_echo "yes" >&6; }
21028		ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
21029else
21030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21031$as_echo "no" >&6; }
21032		ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
21033fi
21034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035
21036
21037#
21038# check for GCC noreturn attribute
21039#
21040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
21041$as_echo_n "checking for GCC noreturn attribute... " >&6; }
21042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043/* end confdefs.h.  */
21044
21045int
21046main ()
21047{
21048void foo() __attribute__((noreturn));
21049  ;
21050  return 0;
21051}
21052_ACEOF
21053if ac_fn_c_try_compile "$LINENO"; then :
21054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21055$as_echo "yes" >&6; }
21056		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
21057		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
21058else
21059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060$as_echo "no" >&6; }
21061		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
21062		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
21063fi
21064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21065
21066
21067
21068#
21069# check if we have lifconf
21070#
21071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
21072$as_echo_n "checking for struct lifconf... " >&6; }
21073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074/* end confdefs.h.  */
21075
21076#include <sys/types.h>
21077#include <sys/socket.h>
21078#include <net/if.h>
21079
21080int
21081main ()
21082{
21083
21084struct lifconf lifconf;
21085lifconf.lifc_len = 0;
21086
21087
21088  ;
21089  return 0;
21090}
21091_ACEOF
21092if ac_fn_c_try_compile "$LINENO"; then :
21093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21094$as_echo "yes" >&6; }
21095		ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
21096else
21097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21098$as_echo "no" >&6; }
21099		ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
21100fi
21101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102
21103
21104#
21105# check if we have kqueue
21106#
21107# Check whether --enable-kqueue was given.
21108if test "${enable_kqueue+set}" = set; then :
21109  enableval=$enable_kqueue; want_kqueue="$enableval"
21110else
21111  want_kqueue="yes"
21112fi
21113
21114case $want_kqueue in
21115yes)
21116	ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
21117if test "x$ac_cv_func_kqueue" = x""yes; then :
21118  ac_cv_have_kqueue=yes
21119else
21120  ac_cv_have_kqueue=no
21121fi
21122
21123	case $ac_cv_have_kqueue in
21124	yes)
21125		ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
21126		;;
21127	*)
21128		ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
21129		;;
21130	esac
21131	;;
21132*)
21133	ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
21134	;;
21135esac
21136
21137
21138#
21139# check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
21140# so we need to try running the code, not just test its existence.
21141#
21142# Check whether --enable-epoll was given.
21143if test "${enable_epoll+set}" = set; then :
21144  enableval=$enable_epoll; want_epoll="$enableval"
21145else
21146  want_epoll="auto"
21147fi
21148
21149case $want_epoll in
21150auto)
21151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5
21152$as_echo_n "checking epoll support... " >&6; }
21153	if test "$cross_compiling" = yes; then :
21154  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21156as_fn_error $? "cannot run test program while cross compiling
21157See \`config.log' for more details" "$LINENO" 5; }
21158else
21159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21160/* end confdefs.h.  */
21161
21162#include <sys/epoll.h>
21163int main() {
21164	if (epoll_create(1) < 0)
21165		return (1);
21166	return (0);
21167}
21168
21169_ACEOF
21170if ac_fn_c_try_run "$LINENO"; then :
21171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21172$as_echo "yes" >&6; }
21173	ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
21174else
21175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21176$as_echo "no" >&6; }
21177	ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
21178fi
21179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21180  conftest.$ac_objext conftest.beam conftest.$ac_ext
21181fi
21182
21183	;;
21184yes)
21185	ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
21186	;;
21187*)
21188	ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
21189	;;
21190esac
21191
21192
21193#
21194# check if we support /dev/poll
21195#
21196# Check whether --enable-devpoll was given.
21197if test "${enable_devpoll+set}" = set; then :
21198  enableval=$enable_devpoll; want_devpoll="$enableval"
21199else
21200  want_devpoll="yes"
21201fi
21202
21203case $want_devpoll in
21204yes)
21205	for ac_header in sys/devpoll.h devpoll.h
21206do :
21207  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21208ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21209if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21210  cat >>confdefs.h <<_ACEOF
21211#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21212_ACEOF
21213 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
21214
21215else
21216  ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
21217
21218fi
21219
21220done
21221
21222	;;
21223*)
21224	ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
21225	;;
21226esac
21227
21228
21229#
21230# check if we need to #include sys/select.h explicitly
21231#
21232case $ac_cv_header_unistd_h in
21233yes)
21234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5
21235$as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; }
21236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21237/* end confdefs.h.  */
21238
21239#include <sys/types.h> /* Ultrix */
21240#include <unistd.h>
21241int
21242main ()
21243{
21244fd_set read_set; return (0);
21245  ;
21246  return 0;
21247}
21248_ACEOF
21249if ac_fn_c_try_compile "$LINENO"; then :
21250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21251$as_echo "yes" >&6; }
21252	 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
21253	 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
21254else
21255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21256$as_echo "no" >&6; }
21257	case $ac_cv_header_sys_select_h in
21258	yes)
21259	 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
21260	 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
21261		;;
21262	no)
21263		as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5
21264		;;
21265	esac
21266
21267fi
21268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21269	;;
21270no)
21271	case $ac_cv_header_sys_select_h in
21272	yes)
21273	     ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
21274	     LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
21275		;;
21276	no)
21277		as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5
21278		;;
21279	esac
21280	;;
21281esac
21282
21283
21284
21285#
21286# Find the machine's endian flavor.
21287#
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21289$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21290if test "${ac_cv_c_bigendian+set}" = set; then :
21291  $as_echo_n "(cached) " >&6
21292else
21293  ac_cv_c_bigendian=unknown
21294    # See if we're dealing with a universal compiler.
21295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296/* end confdefs.h.  */
21297#ifndef __APPLE_CC__
21298	       not a universal capable compiler
21299	     #endif
21300	     typedef int dummy;
21301
21302_ACEOF
21303if ac_fn_c_try_compile "$LINENO"; then :
21304
21305	# Check for potential -arch flags.  It is not universal unless
21306	# there are at least two -arch flags with different values.
21307	ac_arch=
21308	ac_prev=
21309	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21310	 if test -n "$ac_prev"; then
21311	   case $ac_word in
21312	     i?86 | x86_64 | ppc | ppc64)
21313	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21314		 ac_arch=$ac_word
21315	       else
21316		 ac_cv_c_bigendian=universal
21317		 break
21318	       fi
21319	       ;;
21320	   esac
21321	   ac_prev=
21322	 elif test "x$ac_word" = "x-arch"; then
21323	   ac_prev=arch
21324	 fi
21325       done
21326fi
21327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328    if test $ac_cv_c_bigendian = unknown; then
21329      # See if sys/param.h defines the BYTE_ORDER macro.
21330      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331/* end confdefs.h.  */
21332#include <sys/types.h>
21333	     #include <sys/param.h>
21334
21335int
21336main ()
21337{
21338#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21339		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21340		     && LITTLE_ENDIAN)
21341	      bogus endian macros
21342	     #endif
21343
21344  ;
21345  return 0;
21346}
21347_ACEOF
21348if ac_fn_c_try_compile "$LINENO"; then :
21349  # It does; now see whether it defined to BIG_ENDIAN or not.
21350	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351/* end confdefs.h.  */
21352#include <sys/types.h>
21353		#include <sys/param.h>
21354
21355int
21356main ()
21357{
21358#if BYTE_ORDER != BIG_ENDIAN
21359		 not big endian
21360		#endif
21361
21362  ;
21363  return 0;
21364}
21365_ACEOF
21366if ac_fn_c_try_compile "$LINENO"; then :
21367  ac_cv_c_bigendian=yes
21368else
21369  ac_cv_c_bigendian=no
21370fi
21371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21372fi
21373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374    fi
21375    if test $ac_cv_c_bigendian = unknown; then
21376      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21377      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21378/* end confdefs.h.  */
21379#include <limits.h>
21380
21381int
21382main ()
21383{
21384#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21385	      bogus endian macros
21386	     #endif
21387
21388  ;
21389  return 0;
21390}
21391_ACEOF
21392if ac_fn_c_try_compile "$LINENO"; then :
21393  # It does; now see whether it defined to _BIG_ENDIAN or not.
21394	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395/* end confdefs.h.  */
21396#include <limits.h>
21397
21398int
21399main ()
21400{
21401#ifndef _BIG_ENDIAN
21402		 not big endian
21403		#endif
21404
21405  ;
21406  return 0;
21407}
21408_ACEOF
21409if ac_fn_c_try_compile "$LINENO"; then :
21410  ac_cv_c_bigendian=yes
21411else
21412  ac_cv_c_bigendian=no
21413fi
21414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415fi
21416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417    fi
21418    if test $ac_cv_c_bigendian = unknown; then
21419      # Compile a test program.
21420      if test "$cross_compiling" = yes; then :
21421  # Try to guess by grepping values from an object file.
21422	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21423/* end confdefs.h.  */
21424short int ascii_mm[] =
21425		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21426		short int ascii_ii[] =
21427		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21428		int use_ascii (int i) {
21429		  return ascii_mm[i] + ascii_ii[i];
21430		}
21431		short int ebcdic_ii[] =
21432		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21433		short int ebcdic_mm[] =
21434		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21435		int use_ebcdic (int i) {
21436		  return ebcdic_mm[i] + ebcdic_ii[i];
21437		}
21438		extern int foo;
21439
21440int
21441main ()
21442{
21443return use_ascii (foo) == use_ebcdic (foo);
21444  ;
21445  return 0;
21446}
21447_ACEOF
21448if ac_fn_c_try_compile "$LINENO"; then :
21449  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21450	      ac_cv_c_bigendian=yes
21451	    fi
21452	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21453	      if test "$ac_cv_c_bigendian" = unknown; then
21454		ac_cv_c_bigendian=no
21455	      else
21456		# finding both strings is unlikely to happen, but who knows?
21457		ac_cv_c_bigendian=unknown
21458	      fi
21459	    fi
21460fi
21461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462else
21463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464/* end confdefs.h.  */
21465$ac_includes_default
21466int
21467main ()
21468{
21469
21470	     /* Are we little or big endian?  From Harbison&Steele.  */
21471	     union
21472	     {
21473	       long int l;
21474	       char c[sizeof (long int)];
21475	     } u;
21476	     u.l = 1;
21477	     return u.c[sizeof (long int) - 1] == 1;
21478
21479  ;
21480  return 0;
21481}
21482_ACEOF
21483if ac_fn_c_try_run "$LINENO"; then :
21484  ac_cv_c_bigendian=no
21485else
21486  ac_cv_c_bigendian=yes
21487fi
21488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21489  conftest.$ac_objext conftest.beam conftest.$ac_ext
21490fi
21491
21492    fi
21493fi
21494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21495$as_echo "$ac_cv_c_bigendian" >&6; }
21496 case $ac_cv_c_bigendian in #(
21497   yes)
21498     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21499;; #(
21500   no)
21501      ;; #(
21502   universal)
21503
21504$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21505
21506     ;; #(
21507   *)
21508     as_fn_error $? "unknown endianness
21509 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21510 esac
21511
21512
21513#
21514# was --with-openssl specified?
21515#
21516OPENSSL_WARNING=
21517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5
21518$as_echo_n "checking for OpenSSL library... " >&6; }
21519
21520# Check whether --with-openssl was given.
21521if test "${with_openssl+set}" = set; then :
21522  withval=$with_openssl; use_openssl="$withval"
21523else
21524  use_openssl="auto"
21525fi
21526
21527
21528openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
21529if test "$use_openssl" = "auto"
21530then
21531	for d in $openssldirs
21532	do
21533		if test -f $d/include/openssl/opensslv.h
21534		then
21535			use_openssl=$d
21536			break
21537		fi
21538	done
21539fi
21540OPENSSL_ECDSA=""
21541OPENSSL_GOST=""
21542case "$use_openssl" in
21543	no)
21544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21545$as_echo "no" >&6; }
21546		DST_OPENSSL_INC=""
21547		USE_OPENSSL=""
21548		OPENSSLLINKOBJS=""
21549		OPENSSLLINKSRCS=""
21550		;;
21551	auto)
21552		DST_OPENSSL_INC=""
21553		USE_OPENSSL=""
21554		OPENSSLLINKOBJS=""
21555		OPENSSLLINKSRCS=""
21556		as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
21557If you don't want OpenSSL, use --without-openssl" "$LINENO" 5
21558		;;
21559	*)
21560		if test "$use_openssl" = "yes"
21561		then
21562			# User did not specify a path - guess it
21563			for d in $openssldirs
21564			do
21565				if test -f $d/include/openssl/opensslv.h
21566				then
21567					use_openssl=$d
21568					break
21569				fi
21570			done
21571			if test "$use_openssl" = "yes"
21572			then
21573				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21574$as_echo "not found" >&6; }
21575				as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5
21576			fi
21577		elif ! test -f "$use_openssl"/include/openssl/opensslv.h
21578		then
21579			as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5
21580		fi
21581		USE_OPENSSL='-DOPENSSL'
21582		if test "$use_openssl" = "/usr"
21583		then
21584			DST_OPENSSL_INC=""
21585			DNS_OPENSSL_LIBS="-lcrypto"
21586		else
21587			DST_OPENSSL_INC="-I$use_openssl/include"
21588			case $host in
21589			*-solaris*)
21590				DNS_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
21591				;;
21592			*-hp-hpux*)
21593				DNS_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
21594				;;
21595			*-apple-darwin*)
21596				#
21597				# Apple's ld seaches for serially for dynamic
21598				# then static libraries.  This means you can't
21599				# use -L to override dynamic system libraries
21600				# with static ones when linking.  Instead
21601				# we specify a absolute path.
21602				#
21603				if test -f "$use_openssl/lib/libcrypto.dylib"
21604				then
21605					DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
21606				else
21607					DNS_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
21608				fi
21609				;;
21610			*)
21611				DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
21612				;;
21613			esac
21614		fi
21615		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
21616$as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
21617
21618		saved_cflags="$CFLAGS"
21619		saved_libs="$LIBS"
21620		CFLAGS="$CFLAGS $DST_OPENSSL_INC"
21621		LIBS="$LIBS $DNS_OPENSSL_LIBS"
21622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5
21623$as_echo_n "checking whether linking with OpenSSL works... " >&6; }
21624		if test "$cross_compiling" = yes; then :
21625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5
21626$as_echo "assuming it does work on target platform" >&6; }
21627else
21628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21629/* end confdefs.h.  */
21630
21631#include <openssl/err.h>
21632int main() {
21633	ERR_clear_error();
21634	return (0);
21635}
21636
21637_ACEOF
21638if ac_fn_c_try_run "$LINENO"; then :
21639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21640$as_echo "yes" >&6; }
21641else
21642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21643$as_echo "no" >&6; }
21644		 as_fn_error $? "Could not run test program using OpenSSL from
21645$use_openssl/lib and $use_openssl/include.
21646Please check the argument to --with-openssl and your
21647shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5
21648fi
21649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21650  conftest.$ac_objext conftest.beam conftest.$ac_ext
21651fi
21652
21653
21654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5
21655$as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
21656		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21657/* end confdefs.h.  */
21658
21659#include <openssl/err.h>
21660int
21661main ()
21662{
21663 DSO_METHOD_dlfcn();
21664  ;
21665  return 0;
21666}
21667_ACEOF
21668if ac_fn_c_try_link "$LINENO"; then :
21669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21670$as_echo "no" >&6; }
21671else
21672  LIBS="$LIBS -ldl"
21673		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674/* end confdefs.h.  */
21675
21676#include <openssl/err.h>
21677
21678int
21679main ()
21680{
21681 DSO_METHOD_dlfcn();
21682  ;
21683  return 0;
21684}
21685_ACEOF
21686if ac_fn_c_try_link "$LINENO"; then :
21687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21688$as_echo "yes" >&6; }
21689		DNS_OPENSSL_LIBS="$DNS_OPENSSL_LIBS -ldl"
21690
21691else
21692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
21693$as_echo "unknown" >&6; }
21694		 as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5
21695fi
21696rm -f core conftest.err conftest.$ac_objext \
21697    conftest$ac_exeext conftest.$ac_ext
21698
21699fi
21700rm -f core conftest.err conftest.$ac_objext \
21701    conftest$ac_exeext conftest.$ac_ext
21702
21703# Check whether --enable-openssl-version-check was given.
21704if test "${enable_openssl_version_check+set}" = set; then :
21705  enableval=$enable_openssl_version_check;
21706fi
21707
21708case "$enable_openssl_version_check" in
21709yes|'')
21710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
21711$as_echo_n "checking OpenSSL library version... " >&6; }
21712		if test "$cross_compiling" = yes; then :
21713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform has compatible version" >&5
21714$as_echo "assuming target platform has compatible version" >&6; }
21715else
21716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717/* end confdefs.h.  */
21718
21719#include <stdio.h>
21720#include <openssl/opensslv.h>
21721int main() {
21722	if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
21723	     OPENSSL_VERSION_NUMBER < 0x00908000L) ||
21724	     OPENSSL_VERSION_NUMBER >= 0x0090804fL)
21725		return (0);
21726	printf("\n\nFound   OPENSSL_VERSION_NUMBER %#010x\n",
21727		OPENSSL_VERSION_NUMBER);
21728	printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n"
21729	       "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n");
21730	return (1);
21731}
21732
21733_ACEOF
21734if ac_fn_c_try_run "$LINENO"; then :
21735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
21736$as_echo "ok" >&6; }
21737else
21738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not compatible" >&5
21739$as_echo "not compatible" >&6; }
21740		 OPENSSL_WARNING=yes
21741
21742fi
21743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21744  conftest.$ac_objext conftest.beam conftest.$ac_ext
21745fi
21746
21747;;
21748no)
21749	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipped OpenSSL version check" >&5
21750$as_echo "Skipped OpenSSL version check" >&6; }
21751;;
21752esac
21753
21754		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5
21755$as_echo_n "checking for OpenSSL DSA support... " >&6; }
21756		if test -f $use_openssl/include/openssl/dsa.h
21757		then
21758			$as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h
21759
21760			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21761$as_echo "yes" >&6; }
21762		else
21763			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21764$as_echo "no" >&6; }
21765		fi
21766
21767		for ac_func in EVP_sha256 EVP_sha384 EVP_sha512
21768do :
21769  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21770ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21771if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21772  cat >>confdefs.h <<_ACEOF
21773#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21774_ACEOF
21775
21776fi
21777done
21778
21779
21780		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECDSA support" >&5
21781$as_echo_n "checking for OpenSSL ECDSA support... " >&6; }
21782		have_ecdsa=""
21783		if test "$cross_compiling" = yes; then :
21784  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21786as_fn_error $? "cannot run test program while cross compiling
21787See \`config.log' for more details" "$LINENO" 5; }
21788else
21789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21790/* end confdefs.h.  */
21791
21792#include <stdio.h>
21793#include <openssl/ecdsa.h>
21794#include <openssl/objects.h>
21795int main() {
21796	EC_KEY *ec256, *ec384;
21797
21798#if !defined(HAVE_EVP_SHA256) || !defined(HAVE_EVP_SHA384)
21799	return (1);
21800#endif
21801	ec256 = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
21802	ec384 = EC_KEY_new_by_curve_name(NID_secp384r1);
21803	if (ec256 == NULL || ec384 == NULL)
21804		return (2);
21805	return (0);
21806}
21807
21808_ACEOF
21809if ac_fn_c_try_run "$LINENO"; then :
21810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21811$as_echo "yes" >&6; }
21812		have_ecdsa="yes"
21813else
21814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815$as_echo "no" >&6; }
21816		have_ecdsa="no"
21817fi
21818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21819  conftest.$ac_objext conftest.beam conftest.$ac_ext
21820fi
21821
21822		case $have_ecdsa in
21823		yes)
21824			OPENSSL_ECDSA="yes"
21825			$as_echo "#define HAVE_OPENSSL_ECDSA 1" >>confdefs.h
21826
21827			;;
21828		*)
21829			;;
21830		esac
21831
21832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5
21833$as_echo_n "checking for OpenSSL GOST support... " >&6; }
21834		have_gost=""
21835		if test "$cross_compiling" = yes; then :
21836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-gost" >&5
21837$as_echo "using --with-gost" >&6; }
21838else
21839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840/* end confdefs.h.  */
21841
21842#include <openssl/conf.h>
21843#include <openssl/engine.h>
21844int main() {
21845#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
21846	ENGINE *e;
21847	EC_KEY *ek;
21848
21849	ek = NULL;
21850	OPENSSL_config(NULL);
21851
21852	e = ENGINE_by_id("gost");
21853	if (e == NULL)
21854		return (1);
21855	if (ENGINE_init(e) <= 0)
21856		return (1);
21857	return (0);
21858#else
21859	return (1);
21860#endif
21861}
21862
21863_ACEOF
21864if ac_fn_c_try_run "$LINENO"; then :
21865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21866$as_echo "yes" >&6; }
21867		have_gost="yes"
21868else
21869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21870$as_echo "no" >&6; }
21871		have_gost="no"
21872fi
21873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21874  conftest.$ac_objext conftest.beam conftest.$ac_ext
21875fi
21876
21877
21878# Check whether --with-gost was given.
21879if test "${with_gost+set}" = set; then :
21880  withval=$with_gost; with_gost="$withval"
21881else
21882  with_gost="auto"
21883fi
21884
21885		case "$with_gost" in
21886		yes)
21887		    case "$have_gost" in
21888		    no)  as_fn_error $? "gost not supported" "$LINENO" 5 ;;
21889		    *)  have_gost=yes ;;
21890		    esac
21891		    ;;
21892		no)
21893		    have_gost=no ;;
21894		*)
21895		    case "$have_gost" in
21896		    yes|no) ;;
21897		    *) as_fn_error $? "need --with-gost=[yes or no]" "$LINENO" 5 ;;
21898		    esac
21899		    ;;
21900		esac
21901		case $have_gost in
21902		yes)
21903			OPENSSL_GOST="yes"
21904
21905$as_echo "#define HAVE_OPENSSL_GOST 1" >>confdefs.h
21906
21907			;;
21908		*)
21909			;;
21910		esac
21911		CFLAGS="$saved_cflags"
21912		LIBS="$saved_libs"
21913		OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
21914		OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
21915
21916		;;
21917esac
21918
21919#
21920# This would include the system openssl path (and linker options to use
21921# it as needed) if it is found.
21922#
21923
21924
21925
21926
21927
21928
21929
21930
21931DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DNS_OPENSSL_LIBS"
21932
21933#
21934# Use OpenSSL for hash functions
21935#
21936
21937# Check whether --enable-openssl-hash was given.
21938if test "${enable_openssl_hash+set}" = set; then :
21939  enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
21940else
21941  want_openssl_hash="no"
21942fi
21943
21944case $want_openssl_hash in
21945	yes)
21946		if test "$USE_OPENSSL" = ""
21947		then
21948			as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5
21949		fi
21950		ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
21951		ISC_OPENSSL_INC="$DST_OPENSSL_INC"
21952		;;
21953	no)
21954		ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
21955		ISC_OPENSSL_INC=""
21956		;;
21957esac
21958
21959
21960
21961#
21962# PKCS11 (aka crypto hardware) support
21963#
21964# This works only with the right OpenSSL with PKCS11 engine!
21965#
21966
21967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5
21968$as_echo_n "checking for PKCS11 support... " >&6; }
21969
21970# Check whether --with-pkcs11 was given.
21971if test "${with_pkcs11+set}" = set; then :
21972  withval=$with_pkcs11; use_pkcs11="$withval"
21973else
21974  use_pkcs11="no"
21975fi
21976
21977
21978case "$use_pkcs11" in
21979	no|'')
21980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21981$as_echo "disabled" >&6; }
21982		USE_PKCS11=''
21983		PKCS11_TOOLS=''
21984		;;
21985	yes|*)
21986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL with PKCS11 support" >&5
21987$as_echo "using OpenSSL with PKCS11 support" >&6; }
21988		USE_PKCS11='-DUSE_PKCS11'
21989		PKCS11_TOOLS=pkcs11
21990		;;
21991esac
21992
21993
21994
21995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5
21996$as_echo_n "checking for PKCS11 tools... " >&6; }
21997case "$use_pkcs11" in
21998	no|yes|'')
21999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22000$as_echo "disabled" >&6; }
22001		PKCS11_PROVIDER="undefined"
22002		;;
22003       *)
22004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PKCS11 provider is \"$use_pkcs11\"" >&5
22005$as_echo "PKCS11 provider is \"$use_pkcs11\"" >&6; }
22006		PKCS11_PROVIDER="$use_pkcs11"
22007		;;
22008esac
22009
22010
22011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
22012$as_echo_n "checking for GSSAPI library... " >&6; }
22013
22014# Check whether --with-gssapi was given.
22015if test "${with_gssapi+set}" = set; then :
22016  withval=$with_gssapi; use_gssapi="$withval"
22017else
22018  use_gssapi="yes"
22019fi
22020
22021
22022# gssapi is just the framework, we really require kerberos v5, so
22023# look for those headers (the gssapi headers must be there, too)
22024# The problem with this implementation is that it doesn't allow
22025# for the specification of gssapi and krb5 headers in different locations,
22026# which probably ought to be fixed although fixing might raise the issue of
22027# trying to build with incompatible versions of gssapi and krb5.
22028if test "$use_gssapi" = "yes"
22029then
22030	# first, deal with the obvious
22031	if test \( -f /usr/include/kerberosv5/krb5.h -o \
22032		   -f /usr/include/krb5/krb5.h -o \
22033		   -f /usr/include/krb5.h \)   -a \
22034		\( -f /usr/include/gssapi.h -o \
22035		   -f /usr/include/gssapi/gssapi.h \)
22036	then
22037		use_gssapi=/usr
22038	else
22039	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
22040	    for d in $krb5dirs
22041	    do
22042		if test -f $d/include/gssapi/gssapi_krb5.h -o \
22043		        -f $d/include/krb5.h
22044		then
22045			if test -f $d/include/gssapi/gssapi.h -o \
22046			        -f $d/include/gssapi.h
22047			then
22048				use_gssapi=$d
22049				break
22050			fi
22051		fi
22052		use_gssapi="no"
22053	    done
22054	fi
22055fi
22056
22057case "$use_gssapi" in
22058	no)
22059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22060$as_echo "disabled" >&6; }
22061		USE_GSSAPI=''
22062		;;
22063	yes)
22064		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
22065		;;
22066	*)
22067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
22068$as_echo "looking in $use_gssapi/lib" >&6; }
22069		USE_GSSAPI='-DGSSAPI'
22070		saved_cppflags="$CPPFLAGS"
22071		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
22072		for ac_header in gssapi.h gssapi/gssapi.h
22073do :
22074  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22075ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22076if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22077  cat >>confdefs.h <<_ACEOF
22078#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22079_ACEOF
22080 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
22081fi
22082
22083done
22084
22085
22086		if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then
22087		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
22088		fi
22089
22090		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
22091do :
22092  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22093ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22094if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22095  cat >>confdefs.h <<_ACEOF
22096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22097_ACEOF
22098 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
22099fi
22100
22101done
22102
22103
22104		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
22105do :
22106  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22107ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22109  cat >>confdefs.h <<_ACEOF
22110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22111_ACEOF
22112 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
22113fi
22114
22115done
22116
22117
22118		if test "$ISC_PLATFORM_KRB5HEADER" = ""; then
22119		    as_fn_error $? "krb5.h not found" "$LINENO" 5
22120		fi
22121
22122		CPPFLAGS="$saved_cppflags"
22123
22124		#
22125		# XXXDCL This probably doesn't work right on all systems.
22126		# It will need to be worked on as problems become evident.
22127		#
22128		# Essentially the problems here relate to two different
22129		# areas.  The first area is building with either KTH
22130		# or MIT Kerberos, particularly when both are present on
22131		# the machine.  The other is static versus dynamic linking.
22132		#
22133		# On the KTH vs MIT issue, Both have libkrb5 that can mess
22134		# up the works if one implementation ends up trying to
22135		# use the other's krb.  This is unfortunately a situation
22136		# that very easily arises.
22137		#
22138		# Dynamic linking when the dependency information is built
22139		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
22140		# all such problems go away, but when that setup is not
22141		# present, because either the dynamic libraries lack
22142		# dependencies or static linking is being done, then the
22143		# problems start to show up.
22144		saved_libs="$LIBS"
22145		for TRY_LIBS in \
22146		    "-lgssapi_krb5" \
22147		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
22148		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
22149		    "-lgssapi" \
22150		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
22151		    "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
22152		    "-lgss -lkrb5"
22153		do
22154		    # Note that this does not include $saved_libs, because
22155		    # on FreeBSD machines this configure script has added
22156		    # -L/usr/local/lib to LIBS, which can make the
22157		    # -lgssapi_krb5 test succeed with shared libraries even
22158		    # when you are trying to build with KTH in /usr/lib.
22159		    if test "$use_gssapi" = "/usr"
22160		    then
22161			    LIBS="$TRY_LIBS"
22162		    else
22163			    LIBS="-L$use_gssapi/lib $TRY_LIBS"
22164		    fi
22165		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
22166$as_echo_n "checking linking as $TRY_LIBS... " >&6; }
22167		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22168/* end confdefs.h.  */
22169
22170int
22171main ()
22172{
22173gss_acquire_cred();krb5_init_context()
22174  ;
22175  return 0;
22176}
22177_ACEOF
22178if ac_fn_c_try_link "$LINENO"; then :
22179  gssapi_linked=yes
22180else
22181  gssapi_linked=no
22182fi
22183rm -f core conftest.err conftest.$ac_objext \
22184    conftest$ac_exeext conftest.$ac_ext
22185		    case $gssapi_linked in
22186		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22187$as_echo "yes" >&6; }; break ;;
22188		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22189$as_echo "no" >&6; } ;;
22190		    esac
22191		done
22192
22193		case $gssapi_linked in
22194		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
22195		esac
22196
22197		#
22198		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
22199		# but MIT in /usr/local/lib and trying to build with KTH.
22200		# /usr/local/lib can end up earlier on the link lines.
22201		# Like most kludges, this one is not only inelegant it
22202		# is also likely to be the wrong thing to do at least as
22203		# many times as it is the right thing.  Something better
22204		# needs to be done.
22205		#
22206		if test "$use_gssapi" = "/usr" -a \
22207			-f /usr/local/lib/libkrb5.a; then
22208		    FIX_KTH_VS_MIT=yes
22209		fi
22210
22211		case "$FIX_KTH_VS_MIT" in
22212		yes)
22213		    case "$enable_static_linking" in
22214		    yes) gssapi_lib_suffix=".a"  ;;
22215		    *)   gssapi_lib_suffix=".so" ;;
22216		    esac
22217
22218		    for lib in $LIBS; do
22219			case $lib in
22220			-L*)
22221			    ;;
22222			-l*)
22223			    new_lib=`echo $lib |
22224				     sed -e s%^-l%$use_gssapi/lib/lib% \
22225					 -e s%$%$gssapi_lib_suffix%`
22226			    NEW_LIBS="$NEW_LIBS $new_lib"
22227			    ;;
22228			*)
22229			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
22230			    ;;
22231			esac
22232		    done
22233		    LIBS="$NEW_LIBS"
22234		    ;;
22235		esac
22236
22237		DST_GSSAPI_INC="-I$use_gssapi/include"
22238		DNS_GSSAPI_LIBS="$LIBS"
22239
22240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
22241$as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
22242		LIBS="$saved_libs"
22243		;;
22244esac
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
22255
22256#
22257# Applications linking with libdns also need to link with these libraries.
22258#
22259
22260
22261
22262#
22263# was --with-randomdev specified?
22264#
22265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
22266$as_echo_n "checking for random device... " >&6; }
22267
22268# Check whether --with-randomdev was given.
22269if test "${with_randomdev+set}" = set; then :
22270  withval=$with_randomdev; use_randomdev="$withval"
22271else
22272  use_randomdev="unspec"
22273fi
22274
22275
22276case "$use_randomdev" in
22277	unspec)
22278		case "$host" in
22279			*-openbsd*)
22280				devrandom=/dev/arandom
22281				;;
22282			*)
22283				devrandom=/dev/random
22284				;;
22285		esac
22286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
22287$as_echo "$devrandom" >&6; }
22288		as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh`
22289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5
22290$as_echo_n "checking for $devrandom... " >&6; }
22291if eval "test \"\${$as_ac_File+set}\"" = set; then :
22292  $as_echo_n "(cached) " >&6
22293else
22294  test "$cross_compiling" = yes &&
22295  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22296if test -r "$devrandom"; then
22297  eval "$as_ac_File=yes"
22298else
22299  eval "$as_ac_File=no"
22300fi
22301fi
22302eval ac_res=\$$as_ac_File
22303	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22304$as_echo "$ac_res" >&6; }
22305if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
22306  cat >>confdefs.h <<_ACEOF
22307#define PATH_RANDOMDEV "$devrandom"
22308_ACEOF
22309
22310fi
22311
22312		;;
22313	yes)
22314		as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5
22315		;;
22316	no)
22317		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22318$as_echo "disabled" >&6; }
22319		;;
22320	*)
22321		cat >>confdefs.h <<_ACEOF
22322#define PATH_RANDOMDEV "$use_randomdev"
22323_ACEOF
22324
22325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5
22326$as_echo "using \"$use_randomdev\"" >&6; }
22327		;;
22328esac
22329
22330#
22331# Do we have arc4random() ?
22332#
22333ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
22334if test "x$ac_cv_func_arc4random" = x""yes; then :
22335  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
22336
22337fi
22338
22339
22340#
22341# Begin pthreads checking.
22342#
22343# First, decide whether to use multithreading or not.
22344#
22345# Enable multithreading by default on systems where it is known
22346# to work well, and where debugging of multithreaded programs
22347# is supported.
22348#
22349
22350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5
22351$as_echo_n "checking whether to build with thread support... " >&6; }
22352
22353case $host in
22354*-dec-osf*)
22355	use_threads=true ;;
22356*-solaris2.[0-6])
22357	# Thread signals are broken on Solaris 2.6; they are sometimes
22358	# delivered to the wrong thread.
22359	use_threads=false ;;
22360*-solaris*)
22361	use_threads=true ;;
22362*-ibm-aix*)
22363	use_threads=true ;;
22364*-hp-hpux10*)
22365	use_threads=false ;;
22366*-hp-hpux11*)
22367	use_threads=true ;;
22368*-sgi-irix*)
22369	use_threads=true ;;
22370*-sco-sysv*uw*|*-*-sysv*UnixWare*)
22371        # UnixWare
22372	use_threads=false ;;
22373*-*-sysv*OpenUNIX*)
22374        # UnixWare
22375	use_threads=true ;;
22376*-netbsd[1234].*)
22377	# NetBSD earlier than NetBSD 5.0 has poor pthreads.
22378	#  Don't use it by default.
22379	use_threads=false ;;
22380*-netbsd*)
22381	use_threads=true ;;
22382*-openbsd*)
22383	# OpenBSD users have reported that named dumps core on
22384	# startup when built with threads.
22385	use_threads=false ;;
22386*-freebsd[1234567].*)
22387	# Threads are broken at least up to FreeBSD 4.11.
22388	# FreeBSD 5, 6 and 7 we have never officially supported threads
22389	# on. YMMV
22390	use_threads=false ;;
22391*-freebsd*)
22392	use_threads=true ;;
22393*-bsdi[234]*)
22394	# Thread signals do not work reliably on some versions of BSD/OS.
22395	use_threads=false ;;
22396*-bsdi5*)
22397	use_threads=true ;;
22398*-linux*)
22399   	# Threads are disabled on Linux by default because most
22400	# Linux kernels produce unusable core dumps from multithreaded
22401	# programs, and because of limitations in setuid().
22402	use_threads=false ;;
22403*-darwin[123456789].*)
22404	use_threads=false ;;
22405*-darwin*.*)
22406	use_threads=true ;;
22407*)
22408	use_threads=false ;;
22409esac
22410
22411# Check whether --enable-threads was given.
22412if test "${enable_threads+set}" = set; then :
22413  enableval=$enable_threads;
22414fi
22415
22416case "$enable_threads" in
22417	yes)
22418		use_threads=true
22419		;;
22420	no)
22421		use_threads=false
22422		;;
22423	'')
22424		# Use system-dependent default
22425		;;
22426	*)
22427	    	as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5
22428		;;
22429esac
22430
22431if $use_threads
22432then
22433	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22434$as_echo "yes" >&6; }
22435else
22436	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22437$as_echo "no" >&6; }
22438fi
22439
22440if $use_threads
22441then
22442	#
22443	# Search for / configure pthreads in a system-dependent fashion.
22444	#
22445	case "$host" in
22446		*-freebsd*)
22447			# We don't want to set -lpthread as that break
22448			# the ability to choose threads library at final
22449			# link time and is not valid for all architectures.
22450
22451			PTHREAD=
22452			if test "X$GCC" = "Xyes"; then
22453				saved_cc="$CC"
22454				CC="$CC -pthread"
22455				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5
22456$as_echo_n "checking for gcc -pthread support... " >&6; };
22457				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458/* end confdefs.h.  */
22459#include <pthread.h>
22460int
22461main ()
22462{
22463printf("%x\n", pthread_create);
22464  ;
22465  return 0;
22466}
22467_ACEOF
22468if ac_fn_c_try_link "$LINENO"; then :
22469  PTHREAD="yes"
22470					    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22471$as_echo "yes" >&6; }
22472else
22473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22474$as_echo "no" >&6; }
22475fi
22476rm -f core conftest.err conftest.$ac_objext \
22477    conftest$ac_exeext conftest.$ac_ext
22478				CC="$saved_cc"
22479			fi
22480			if test "X$PTHREAD" != "Xyes"; then
22481				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
22482$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
22483if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
22484  $as_echo_n "(cached) " >&6
22485else
22486  ac_check_lib_save_LIBS=$LIBS
22487LIBS="-lpthread  $LIBS"
22488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489/* end confdefs.h.  */
22490
22491/* Override any GCC internal prototype to avoid an error.
22492   Use char because int might match the return type of a GCC
22493   builtin and then its argument prototype would still apply.  */
22494#ifdef __cplusplus
22495extern "C"
22496#endif
22497char pthread_create ();
22498int
22499main ()
22500{
22501return pthread_create ();
22502  ;
22503  return 0;
22504}
22505_ACEOF
22506if ac_fn_c_try_link "$LINENO"; then :
22507  ac_cv_lib_pthread_pthread_create=yes
22508else
22509  ac_cv_lib_pthread_pthread_create=no
22510fi
22511rm -f core conftest.err conftest.$ac_objext \
22512    conftest$ac_exeext conftest.$ac_ext
22513LIBS=$ac_check_lib_save_LIBS
22514fi
22515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
22516$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
22517if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
22518  cat >>confdefs.h <<_ACEOF
22519#define HAVE_LIBPTHREAD 1
22520_ACEOF
22521
22522  LIBS="-lpthread $LIBS"
22523
22524else
22525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5
22526$as_echo_n "checking for thread_create in -lthr... " >&6; }
22527if test "${ac_cv_lib_thr_thread_create+set}" = set; then :
22528  $as_echo_n "(cached) " >&6
22529else
22530  ac_check_lib_save_LIBS=$LIBS
22531LIBS="-lthr  $LIBS"
22532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22533/* end confdefs.h.  */
22534
22535/* Override any GCC internal prototype to avoid an error.
22536   Use char because int might match the return type of a GCC
22537   builtin and then its argument prototype would still apply.  */
22538#ifdef __cplusplus
22539extern "C"
22540#endif
22541char thread_create ();
22542int
22543main ()
22544{
22545return thread_create ();
22546  ;
22547  return 0;
22548}
22549_ACEOF
22550if ac_fn_c_try_link "$LINENO"; then :
22551  ac_cv_lib_thr_thread_create=yes
22552else
22553  ac_cv_lib_thr_thread_create=no
22554fi
22555rm -f core conftest.err conftest.$ac_objext \
22556    conftest$ac_exeext conftest.$ac_ext
22557LIBS=$ac_check_lib_save_LIBS
22558fi
22559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5
22560$as_echo "$ac_cv_lib_thr_thread_create" >&6; }
22561if test "x$ac_cv_lib_thr_thread_create" = x""yes; then :
22562  cat >>confdefs.h <<_ACEOF
22563#define HAVE_LIBTHR 1
22564_ACEOF
22565
22566  LIBS="-lthr $LIBS"
22567
22568else
22569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
22570$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
22571if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
22572  $as_echo_n "(cached) " >&6
22573else
22574  ac_check_lib_save_LIBS=$LIBS
22575LIBS="-lc_r  $LIBS"
22576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22577/* end confdefs.h.  */
22578
22579/* Override any GCC internal prototype to avoid an error.
22580   Use char because int might match the return type of a GCC
22581   builtin and then its argument prototype would still apply.  */
22582#ifdef __cplusplus
22583extern "C"
22584#endif
22585char pthread_create ();
22586int
22587main ()
22588{
22589return pthread_create ();
22590  ;
22591  return 0;
22592}
22593_ACEOF
22594if ac_fn_c_try_link "$LINENO"; then :
22595  ac_cv_lib_c_r_pthread_create=yes
22596else
22597  ac_cv_lib_c_r_pthread_create=no
22598fi
22599rm -f core conftest.err conftest.$ac_objext \
22600    conftest$ac_exeext conftest.$ac_ext
22601LIBS=$ac_check_lib_save_LIBS
22602fi
22603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
22604$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
22605if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
22606  cat >>confdefs.h <<_ACEOF
22607#define HAVE_LIBC_R 1
22608_ACEOF
22609
22610  LIBS="-lc_r $LIBS"
22611
22612else
22613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
22614$as_echo_n "checking for pthread_create in -lc... " >&6; }
22615if test "${ac_cv_lib_c_pthread_create+set}" = set; then :
22616  $as_echo_n "(cached) " >&6
22617else
22618  ac_check_lib_save_LIBS=$LIBS
22619LIBS="-lc  $LIBS"
22620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22621/* end confdefs.h.  */
22622
22623/* Override any GCC internal prototype to avoid an error.
22624   Use char because int might match the return type of a GCC
22625   builtin and then its argument prototype would still apply.  */
22626#ifdef __cplusplus
22627extern "C"
22628#endif
22629char pthread_create ();
22630int
22631main ()
22632{
22633return pthread_create ();
22634  ;
22635  return 0;
22636}
22637_ACEOF
22638if ac_fn_c_try_link "$LINENO"; then :
22639  ac_cv_lib_c_pthread_create=yes
22640else
22641  ac_cv_lib_c_pthread_create=no
22642fi
22643rm -f core conftest.err conftest.$ac_objext \
22644    conftest$ac_exeext conftest.$ac_ext
22645LIBS=$ac_check_lib_save_LIBS
22646fi
22647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
22648$as_echo "$ac_cv_lib_c_pthread_create" >&6; }
22649if test "x$ac_cv_lib_c_pthread_create" = x""yes; then :
22650  cat >>confdefs.h <<_ACEOF
22651#define HAVE_LIBC 1
22652_ACEOF
22653
22654  LIBS="-lc $LIBS"
22655
22656else
22657  as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
22658fi
22659
22660fi
22661
22662fi
22663
22664fi
22665
22666			fi
22667			;;
22668		*)
22669			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
22670$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
22671if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
22672  $as_echo_n "(cached) " >&6
22673else
22674  ac_check_lib_save_LIBS=$LIBS
22675LIBS="-lpthread  $LIBS"
22676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677/* end confdefs.h.  */
22678
22679/* Override any GCC internal prototype to avoid an error.
22680   Use char because int might match the return type of a GCC
22681   builtin and then its argument prototype would still apply.  */
22682#ifdef __cplusplus
22683extern "C"
22684#endif
22685char pthread_create ();
22686int
22687main ()
22688{
22689return pthread_create ();
22690  ;
22691  return 0;
22692}
22693_ACEOF
22694if ac_fn_c_try_link "$LINENO"; then :
22695  ac_cv_lib_pthread_pthread_create=yes
22696else
22697  ac_cv_lib_pthread_pthread_create=no
22698fi
22699rm -f core conftest.err conftest.$ac_objext \
22700    conftest$ac_exeext conftest.$ac_ext
22701LIBS=$ac_check_lib_save_LIBS
22702fi
22703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
22704$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
22705if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
22706  cat >>confdefs.h <<_ACEOF
22707#define HAVE_LIBPTHREAD 1
22708_ACEOF
22709
22710  LIBS="-lpthread $LIBS"
22711
22712else
22713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5
22714$as_echo_n "checking for __pthread_create in -lpthread... " >&6; }
22715if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then :
22716  $as_echo_n "(cached) " >&6
22717else
22718  ac_check_lib_save_LIBS=$LIBS
22719LIBS="-lpthread  $LIBS"
22720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22721/* end confdefs.h.  */
22722
22723/* Override any GCC internal prototype to avoid an error.
22724   Use char because int might match the return type of a GCC
22725   builtin and then its argument prototype would still apply.  */
22726#ifdef __cplusplus
22727extern "C"
22728#endif
22729char __pthread_create ();
22730int
22731main ()
22732{
22733return __pthread_create ();
22734  ;
22735  return 0;
22736}
22737_ACEOF
22738if ac_fn_c_try_link "$LINENO"; then :
22739  ac_cv_lib_pthread___pthread_create=yes
22740else
22741  ac_cv_lib_pthread___pthread_create=no
22742fi
22743rm -f core conftest.err conftest.$ac_objext \
22744    conftest$ac_exeext conftest.$ac_ext
22745LIBS=$ac_check_lib_save_LIBS
22746fi
22747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5
22748$as_echo "$ac_cv_lib_pthread___pthread_create" >&6; }
22749if test "x$ac_cv_lib_pthread___pthread_create" = x""yes; then :
22750  cat >>confdefs.h <<_ACEOF
22751#define HAVE_LIBPTHREAD 1
22752_ACEOF
22753
22754  LIBS="-lpthread $LIBS"
22755
22756else
22757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
22758$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
22759if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then :
22760  $as_echo_n "(cached) " >&6
22761else
22762  ac_check_lib_save_LIBS=$LIBS
22763LIBS="-lpthread  $LIBS"
22764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765/* end confdefs.h.  */
22766
22767/* Override any GCC internal prototype to avoid an error.
22768   Use char because int might match the return type of a GCC
22769   builtin and then its argument prototype would still apply.  */
22770#ifdef __cplusplus
22771extern "C"
22772#endif
22773char __pthread_create_system ();
22774int
22775main ()
22776{
22777return __pthread_create_system ();
22778  ;
22779  return 0;
22780}
22781_ACEOF
22782if ac_fn_c_try_link "$LINENO"; then :
22783  ac_cv_lib_pthread___pthread_create_system=yes
22784else
22785  ac_cv_lib_pthread___pthread_create_system=no
22786fi
22787rm -f core conftest.err conftest.$ac_objext \
22788    conftest$ac_exeext conftest.$ac_ext
22789LIBS=$ac_check_lib_save_LIBS
22790fi
22791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
22792$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
22793if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then :
22794  cat >>confdefs.h <<_ACEOF
22795#define HAVE_LIBPTHREAD 1
22796_ACEOF
22797
22798  LIBS="-lpthread $LIBS"
22799
22800else
22801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
22802$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
22803if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
22804  $as_echo_n "(cached) " >&6
22805else
22806  ac_check_lib_save_LIBS=$LIBS
22807LIBS="-lc_r  $LIBS"
22808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22809/* end confdefs.h.  */
22810
22811/* Override any GCC internal prototype to avoid an error.
22812   Use char because int might match the return type of a GCC
22813   builtin and then its argument prototype would still apply.  */
22814#ifdef __cplusplus
22815extern "C"
22816#endif
22817char pthread_create ();
22818int
22819main ()
22820{
22821return pthread_create ();
22822  ;
22823  return 0;
22824}
22825_ACEOF
22826if ac_fn_c_try_link "$LINENO"; then :
22827  ac_cv_lib_c_r_pthread_create=yes
22828else
22829  ac_cv_lib_c_r_pthread_create=no
22830fi
22831rm -f core conftest.err conftest.$ac_objext \
22832    conftest$ac_exeext conftest.$ac_ext
22833LIBS=$ac_check_lib_save_LIBS
22834fi
22835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
22836$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
22837if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
22838  cat >>confdefs.h <<_ACEOF
22839#define HAVE_LIBC_R 1
22840_ACEOF
22841
22842  LIBS="-lc_r $LIBS"
22843
22844else
22845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
22846$as_echo_n "checking for pthread_create in -lc... " >&6; }
22847if test "${ac_cv_lib_c_pthread_create+set}" = set; then :
22848  $as_echo_n "(cached) " >&6
22849else
22850  ac_check_lib_save_LIBS=$LIBS
22851LIBS="-lc  $LIBS"
22852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22853/* end confdefs.h.  */
22854
22855/* Override any GCC internal prototype to avoid an error.
22856   Use char because int might match the return type of a GCC
22857   builtin and then its argument prototype would still apply.  */
22858#ifdef __cplusplus
22859extern "C"
22860#endif
22861char pthread_create ();
22862int
22863main ()
22864{
22865return pthread_create ();
22866  ;
22867  return 0;
22868}
22869_ACEOF
22870if ac_fn_c_try_link "$LINENO"; then :
22871  ac_cv_lib_c_pthread_create=yes
22872else
22873  ac_cv_lib_c_pthread_create=no
22874fi
22875rm -f core conftest.err conftest.$ac_objext \
22876    conftest$ac_exeext conftest.$ac_ext
22877LIBS=$ac_check_lib_save_LIBS
22878fi
22879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
22880$as_echo "$ac_cv_lib_c_pthread_create" >&6; }
22881if test "x$ac_cv_lib_c_pthread_create" = x""yes; then :
22882  cat >>confdefs.h <<_ACEOF
22883#define HAVE_LIBC 1
22884_ACEOF
22885
22886  LIBS="-lc $LIBS"
22887
22888else
22889  as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
22890fi
22891
22892fi
22893
22894fi
22895
22896fi
22897
22898fi
22899
22900		;;
22901	esac
22902fi
22903
22904if $use_threads
22905then
22906	if test "X$GCC" = "Xyes"; then
22907		case "$host" in
22908		*-freebsd*)
22909			CC="$CC -pthread"
22910			CCOPT="$CCOPT -pthread"
22911			STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
22912			;;
22913		*-openbsd*)
22914			CC="$CC -pthread"
22915			CCOPT="$CCOPT -pthread"
22916			;;
22917		*-solaris*)
22918			LIBS="$LIBS -lthread"
22919			;;
22920		*-ibm-aix*)
22921			STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
22922			;;
22923		esac
22924	else
22925		case $host in
22926		*-dec-osf*)
22927			CC="$CC -pthread"
22928			CCOPT="$CCOPT -pthread"
22929			;;
22930		*-solaris*)
22931			CC="$CC -mt"
22932			CCOPT="$CCOPT -mt"
22933			;;
22934		*-ibm-aix*)
22935			STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
22936			;;
22937		*-sco-sysv*uw*|*-*-sysv*UnixWare*)
22938			CC="$CC -Kthread"
22939			CCOPT="$CCOPT -Kthread"
22940			;;
22941		*-*-sysv*OpenUNIX*)
22942			CC="$CC -Kpthread"
22943			CCOPT="$CCOPT -Kpthread"
22944			;;
22945		esac
22946	fi
22947	ALWAYS_DEFINES="-D_REENTRANT"
22948	ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
22949	THREADOPTOBJS='${THREADOPTOBJS}'
22950	THREADOPTSRCS='${THREADOPTSRCS}'
22951	thread_dir=pthreads
22952	#
22953	# We'd like to use sigwait() too
22954	#
22955	ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
22956if test "x$ac_cv_func_sigwait" = x""yes; then :
22957  $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
22958
22959else
22960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
22961$as_echo_n "checking for sigwait in -lc... " >&6; }
22962if test "${ac_cv_lib_c_sigwait+set}" = set; then :
22963  $as_echo_n "(cached) " >&6
22964else
22965  ac_check_lib_save_LIBS=$LIBS
22966LIBS="-lc  $LIBS"
22967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22968/* end confdefs.h.  */
22969
22970/* Override any GCC internal prototype to avoid an error.
22971   Use char because int might match the return type of a GCC
22972   builtin and then its argument prototype would still apply.  */
22973#ifdef __cplusplus
22974extern "C"
22975#endif
22976char sigwait ();
22977int
22978main ()
22979{
22980return sigwait ();
22981  ;
22982  return 0;
22983}
22984_ACEOF
22985if ac_fn_c_try_link "$LINENO"; then :
22986  ac_cv_lib_c_sigwait=yes
22987else
22988  ac_cv_lib_c_sigwait=no
22989fi
22990rm -f core conftest.err conftest.$ac_objext \
22991    conftest$ac_exeext conftest.$ac_ext
22992LIBS=$ac_check_lib_save_LIBS
22993fi
22994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
22995$as_echo "$ac_cv_lib_c_sigwait" >&6; }
22996if test "x$ac_cv_lib_c_sigwait" = x""yes; then :
22997  $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
22998
22999else
23000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
23001$as_echo_n "checking for sigwait in -lpthread... " >&6; }
23002if test "${ac_cv_lib_pthread_sigwait+set}" = set; then :
23003  $as_echo_n "(cached) " >&6
23004else
23005  ac_check_lib_save_LIBS=$LIBS
23006LIBS="-lpthread  $LIBS"
23007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008/* end confdefs.h.  */
23009
23010/* Override any GCC internal prototype to avoid an error.
23011   Use char because int might match the return type of a GCC
23012   builtin and then its argument prototype would still apply.  */
23013#ifdef __cplusplus
23014extern "C"
23015#endif
23016char sigwait ();
23017int
23018main ()
23019{
23020return sigwait ();
23021  ;
23022  return 0;
23023}
23024_ACEOF
23025if ac_fn_c_try_link "$LINENO"; then :
23026  ac_cv_lib_pthread_sigwait=yes
23027else
23028  ac_cv_lib_pthread_sigwait=no
23029fi
23030rm -f core conftest.err conftest.$ac_objext \
23031    conftest$ac_exeext conftest.$ac_ext
23032LIBS=$ac_check_lib_save_LIBS
23033fi
23034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
23035$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
23036if test "x$ac_cv_lib_pthread_sigwait" = x""yes; then :
23037  $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
23038
23039else
23040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
23041$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
23042if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then :
23043  $as_echo_n "(cached) " >&6
23044else
23045  ac_check_lib_save_LIBS=$LIBS
23046LIBS="-lpthread  $LIBS"
23047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23048/* end confdefs.h.  */
23049
23050/* Override any GCC internal prototype to avoid an error.
23051   Use char because int might match the return type of a GCC
23052   builtin and then its argument prototype would still apply.  */
23053#ifdef __cplusplus
23054extern "C"
23055#endif
23056char _Psigwait ();
23057int
23058main ()
23059{
23060return _Psigwait ();
23061  ;
23062  return 0;
23063}
23064_ACEOF
23065if ac_fn_c_try_link "$LINENO"; then :
23066  ac_cv_lib_pthread__Psigwait=yes
23067else
23068  ac_cv_lib_pthread__Psigwait=no
23069fi
23070rm -f core conftest.err conftest.$ac_objext \
23071    conftest$ac_exeext conftest.$ac_ext
23072LIBS=$ac_check_lib_save_LIBS
23073fi
23074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
23075$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
23076if test "x$ac_cv_lib_pthread__Psigwait" = x""yes; then :
23077  $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
23078
23079fi
23080
23081fi
23082
23083fi
23084
23085fi
23086
23087
23088	ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
23089if test "x$ac_cv_func_pthread_attr_getstacksize" = x""yes; then :
23090  $as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
23091
23092fi
23093
23094
23095	ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
23096if test "x$ac_cv_func_pthread_attr_setstacksize" = x""yes; then :
23097  $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
23098
23099fi
23100
23101
23102	#
23103	# Additional OS-specific issues related to pthreads and sigwait.
23104	#
23105	case "$host" in
23106		#
23107		# One more place to look for sigwait.
23108		#
23109		*-freebsd*)
23110			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
23111$as_echo_n "checking for sigwait in -lc_r... " >&6; }
23112if test "${ac_cv_lib_c_r_sigwait+set}" = set; then :
23113  $as_echo_n "(cached) " >&6
23114else
23115  ac_check_lib_save_LIBS=$LIBS
23116LIBS="-lc_r  $LIBS"
23117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118/* end confdefs.h.  */
23119
23120/* Override any GCC internal prototype to avoid an error.
23121   Use char because int might match the return type of a GCC
23122   builtin and then its argument prototype would still apply.  */
23123#ifdef __cplusplus
23124extern "C"
23125#endif
23126char sigwait ();
23127int
23128main ()
23129{
23130return sigwait ();
23131  ;
23132  return 0;
23133}
23134_ACEOF
23135if ac_fn_c_try_link "$LINENO"; then :
23136  ac_cv_lib_c_r_sigwait=yes
23137else
23138  ac_cv_lib_c_r_sigwait=no
23139fi
23140rm -f core conftest.err conftest.$ac_objext \
23141    conftest$ac_exeext conftest.$ac_ext
23142LIBS=$ac_check_lib_save_LIBS
23143fi
23144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
23145$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
23146if test "x$ac_cv_lib_c_r_sigwait" = x""yes; then :
23147  $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
23148
23149fi
23150
23151			case $host in
23152			*-freebsd5.[012]|*-freebsd5.[012].*);;
23153			*-freebsd5.[3456789]|*-freebsd5.[3456789].*)
23154				$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
23155
23156				;;
23157			*-freebsd6.*)
23158				$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
23159
23160				;;
23161			esac
23162			;;
23163		#
23164		# BSDI 3.0 through 4.0.1 needs pthread_init() to be
23165		# called before certain pthreads calls.	 This is deprecated
23166		# in BSD/OS 4.1.
23167		#
23168		*-bsdi3.*|*-bsdi4.0*)
23169			$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
23170
23171			;;
23172		#
23173		# LinuxThreads requires some changes to the way we
23174		# deal with signals.
23175		#
23176		*-linux*)
23177			$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
23178
23179			;;
23180		#
23181		# Ensure the right sigwait() semantics on Solaris and make
23182		# sure we call pthread_setconcurrency.
23183		#
23184		*-solaris*)
23185			$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
23186
23187			ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
23188if test "x$ac_cv_func_pthread_setconcurrency" = x""yes; then :
23189  $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
23190
23191fi
23192
23193			;;
23194		#
23195		# UnixWare does things its own way.
23196		#
23197		*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
23198			$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
23199
23200			;;
23201	esac
23202
23203	#
23204	# Look for sysconf to allow detection of the number of processors.
23205	#
23206	ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
23207if test "x$ac_cv_func_sysconf" = x""yes; then :
23208  $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
23209
23210fi
23211
23212
23213else
23214	ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
23215	thread_dir=nothreads
23216	THREADOPTOBJS=""
23217	THREADOPTSRCS=""
23218	ALWAYS_DEFINES=""
23219fi
23220
23221
23222
23223
23224
23225ISC_THREAD_DIR=$thread_dir
23226
23227
23228#
23229# was --with-libxml2 specified?
23230#
23231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
23232$as_echo_n "checking for libxml2 library... " >&6; }
23233
23234# Check whether --with-libxml2 was given.
23235if test "${with_libxml2+set}" = set; then :
23236  withval=$with_libxml2; use_libxml2="$withval"
23237else
23238  use_libxml2="auto"
23239fi
23240
23241
23242case "$use_libxml2" in
23243	no)
23244		DST_LIBXML2_INC=""
23245		;;
23246	auto|yes)
23247		case X`(xml2-config --version) 2>/dev/null` in
23248		X2.[678].*)
23249			libxml2_libs=`xml2-config --libs`
23250			libxml2_cflags=`xml2-config --cflags`
23251			;;
23252		*)
23253			libxml2_libs=
23254			libxml2_cflags=
23255			;;
23256		esac
23257		;;
23258	*)
23259		if test -f "$use_libxml2/bin/xml2-config" ; then
23260			libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
23261			libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
23262		fi
23263		;;
23264esac
23265
23266if test "X$libxml2_libs" != "X"
23267then
23268	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23269$as_echo "yes" >&6; }
23270	CFLAGS="$CFLAGS $libxml2_cflags"
23271	LIBS="$LIBS $libxml2_libs"
23272
23273$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
23274
23275else
23276	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23277$as_echo "no" >&6; }
23278fi
23279
23280#
23281# In solaris 10, SMF can manage named service
23282#
23283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
23284$as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
23285if test "${ac_cv_lib_scf_smf_enable_instance+set}" = set; then :
23286  $as_echo_n "(cached) " >&6
23287else
23288  ac_check_lib_save_LIBS=$LIBS
23289LIBS="-lscf  $LIBS"
23290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23291/* end confdefs.h.  */
23292
23293/* Override any GCC internal prototype to avoid an error.
23294   Use char because int might match the return type of a GCC
23295   builtin and then its argument prototype would still apply.  */
23296#ifdef __cplusplus
23297extern "C"
23298#endif
23299char smf_enable_instance ();
23300int
23301main ()
23302{
23303return smf_enable_instance ();
23304  ;
23305  return 0;
23306}
23307_ACEOF
23308if ac_fn_c_try_link "$LINENO"; then :
23309  ac_cv_lib_scf_smf_enable_instance=yes
23310else
23311  ac_cv_lib_scf_smf_enable_instance=no
23312fi
23313rm -f core conftest.err conftest.$ac_objext \
23314    conftest$ac_exeext conftest.$ac_ext
23315LIBS=$ac_check_lib_save_LIBS
23316fi
23317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
23318$as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
23319if test "x$ac_cv_lib_scf_smf_enable_instance" = x""yes; then :
23320  cat >>confdefs.h <<_ACEOF
23321#define HAVE_LIBSCF 1
23322_ACEOF
23323
23324  LIBS="-lscf $LIBS"
23325
23326fi
23327
23328
23329#
23330# flockfile is usually provided by pthreads, but we may want to use it
23331# even if compiled with --disable-threads.  getc_unlocked might also not
23332# be defined.
23333#
23334ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
23335if test "x$ac_cv_func_flockfile" = x""yes; then :
23336  $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h
23337
23338fi
23339
23340ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
23341if test "x$ac_cv_func_getc_unlocked" = x""yes; then :
23342  $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h
23343
23344fi
23345
23346
23347#
23348# Indicate what the final decision was regarding threads.
23349#
23350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5
23351$as_echo_n "checking whether to build with threads... " >&6; }
23352if $use_threads; then
23353	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23354$as_echo "yes" >&6; }
23355else
23356	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23357$as_echo "no" >&6; }
23358fi
23359
23360#
23361# End of pthreads stuff.
23362#
23363
23364#
23365# Large File
23366#
23367# Check whether --enable-largefile was given.
23368if test "${enable_largefile+set}" = set; then :
23369  enableval=$enable_largefile; want_largefile="yes"
23370else
23371  want_largefile="no"
23372fi
23373
23374case $want_largefile in
23375	yes)
23376		ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23377		;;
23378	*)
23379		;;
23380esac
23381
23382#
23383# Additional compiler settings.
23384#
23385MKDEPCC="$CC"
23386MKDEPCFLAGS="-M"
23387IRIX_DNSSEC_WARNINGS_HACK=""
23388
23389if test "X$GCC" = "Xyes"; then
23390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
23391$as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
23392	SAVE_CFLAGS=$CFLAGS
23393	CFLAGS="$CFLAGS -fno-strict-aliasing"
23394	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395/* end confdefs.h.  */
23396
23397int
23398main ()
23399{
23400
23401  ;
23402  return 0;
23403}
23404_ACEOF
23405if ac_fn_c_try_compile "$LINENO"; then :
23406  FNOSTRICTALIASING=yes
23407else
23408  FNOSTRICTALIASING=no
23409fi
23410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411	CFLAGS=$SAVE_CFLAGS
23412	if test "$FNOSTRICTALIASING" = "yes"; then
23413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23414$as_echo "yes" >&6; }
23415	STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
23416	else
23417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23418$as_echo "no" >&6; }
23419	STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
23420	fi
23421	case "$host" in
23422	*-hp-hpux*)
23423		LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
23424		;;
23425	esac
23426else
23427	case $host in
23428	*-dec-osf*)
23429		CC="$CC -std"
23430		CCOPT="$CCOPT -std"
23431		MKDEPCC="$CC"
23432		;;
23433	*-hp-hpux*)
23434		CC="$CC -Ae -z"
23435		# The version of the C compiler that constantly warns about
23436		# 'const' as well as alignment issues is unfortunately not
23437		# able to be discerned via the version of the operating
23438		# system, nor does cc have a version flag.
23439		case "`$CC +W 123 2>&1`" in
23440		*Unknown?option*)
23441			STD_CWARNINGS="+w1"
23442			;;
23443		*)
23444			# Turn off the pointlessly noisy warnings.
23445			STD_CWARNINGS="+w1 +W 474,530,2193,2236"
23446			;;
23447		esac
23448		CCOPT="$CCOPT -Ae -z"
23449		LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
23450		MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
23451		;;
23452	*-sgi-irix*)
23453		STD_CWARNINGS="-fullwarn -woff 1209"
23454		#
23455		# Silence more than 250 instances of
23456		#   "prototyped function redeclared without prototype"
23457		# and 11 instances of
23458		#   "variable ... was set but never used"
23459		# from lib/dns/sec/openssl.
23460		#
23461		IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
23462		;;
23463	*-solaris*)
23464		MKDEPCFLAGS="-xM"
23465		;;
23466	*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
23467		# UnixWare
23468		CC="$CC -w"
23469		;;
23470	esac
23471fi
23472
23473
23474
23475
23476
23477
23478#
23479# NLS
23480#
23481ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
23482if test "x$ac_cv_func_catgets" = x""yes; then :
23483  $as_echo "#define HAVE_CATGETS 1" >>confdefs.h
23484
23485fi
23486
23487
23488#
23489# -lxnet buys us one big porting headache...  standards, gotta love 'em.
23490#
23491# AC_CHECK_LIB(xnet, socket, ,
23492#    AC_CHECK_LIB(socket, socket)
23493# )
23494#
23495# Use this for now, instead:
23496#
23497case "$host" in
23498	mips-sgi-irix*)
23499		;;
23500	*-linux*)
23501		;;
23502	*)
23503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
23504$as_echo_n "checking for socket in -lsocket... " >&6; }
23505if test "${ac_cv_lib_socket_socket+set}" = set; then :
23506  $as_echo_n "(cached) " >&6
23507else
23508  ac_check_lib_save_LIBS=$LIBS
23509LIBS="-lsocket  $LIBS"
23510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23511/* end confdefs.h.  */
23512
23513/* Override any GCC internal prototype to avoid an error.
23514   Use char because int might match the return type of a GCC
23515   builtin and then its argument prototype would still apply.  */
23516#ifdef __cplusplus
23517extern "C"
23518#endif
23519char socket ();
23520int
23521main ()
23522{
23523return socket ();
23524  ;
23525  return 0;
23526}
23527_ACEOF
23528if ac_fn_c_try_link "$LINENO"; then :
23529  ac_cv_lib_socket_socket=yes
23530else
23531  ac_cv_lib_socket_socket=no
23532fi
23533rm -f core conftest.err conftest.$ac_objext \
23534    conftest$ac_exeext conftest.$ac_ext
23535LIBS=$ac_check_lib_save_LIBS
23536fi
23537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
23538$as_echo "$ac_cv_lib_socket_socket" >&6; }
23539if test "x$ac_cv_lib_socket_socket" = x""yes; then :
23540  cat >>confdefs.h <<_ACEOF
23541#define HAVE_LIBSOCKET 1
23542_ACEOF
23543
23544  LIBS="-lsocket $LIBS"
23545
23546fi
23547
23548		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
23549$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
23550if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
23551  $as_echo_n "(cached) " >&6
23552else
23553  ac_check_lib_save_LIBS=$LIBS
23554LIBS="-lnsl  $LIBS"
23555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23556/* end confdefs.h.  */
23557
23558/* Override any GCC internal prototype to avoid an error.
23559   Use char because int might match the return type of a GCC
23560   builtin and then its argument prototype would still apply.  */
23561#ifdef __cplusplus
23562extern "C"
23563#endif
23564char inet_addr ();
23565int
23566main ()
23567{
23568return inet_addr ();
23569  ;
23570  return 0;
23571}
23572_ACEOF
23573if ac_fn_c_try_link "$LINENO"; then :
23574  ac_cv_lib_nsl_inet_addr=yes
23575else
23576  ac_cv_lib_nsl_inet_addr=no
23577fi
23578rm -f core conftest.err conftest.$ac_objext \
23579    conftest$ac_exeext conftest.$ac_ext
23580LIBS=$ac_check_lib_save_LIBS
23581fi
23582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
23583$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
23584if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
23585  cat >>confdefs.h <<_ACEOF
23586#define HAVE_LIBNSL 1
23587_ACEOF
23588
23589  LIBS="-lnsl $LIBS"
23590
23591fi
23592
23593		;;
23594esac
23595
23596#
23597# Work around Solaris's select() limitations.
23598#
23599case "$host" in
23600	*-solaris2.[89]|*-solaris2.1?)
23601
23602$as_echo "#define FD_SETSIZE 65536" >>confdefs.h
23603
23604	;;
23605esac
23606
23607#
23608# Purify support
23609#
23610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
23611$as_echo_n "checking whether to use purify... " >&6; }
23612
23613# Check whether --with-purify was given.
23614if test "${with_purify+set}" = set; then :
23615  withval=$with_purify; use_purify="$withval"
23616else
23617  use_purify="no"
23618fi
23619
23620
23621case "$use_purify" in
23622	no)
23623		;;
23624	yes)
23625		# Extract the first word of "purify", so it can be a program name with args.
23626set dummy purify; ac_word=$2
23627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23628$as_echo_n "checking for $ac_word... " >&6; }
23629if test "${ac_cv_path_purify_path+set}" = set; then :
23630  $as_echo_n "(cached) " >&6
23631else
23632  case $purify_path in
23633  [\\/]* | ?:[\\/]*)
23634  ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
23635  ;;
23636  *)
23637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23638for as_dir in $PATH
23639do
23640  IFS=$as_save_IFS
23641  test -z "$as_dir" && as_dir=.
23642    for ac_exec_ext in '' $ac_executable_extensions; do
23643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23644    ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
23645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23646    break 2
23647  fi
23648done
23649  done
23650IFS=$as_save_IFS
23651
23652  test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
23653  ;;
23654esac
23655fi
23656purify_path=$ac_cv_path_purify_path
23657if test -n "$purify_path"; then
23658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
23659$as_echo "$purify_path" >&6; }
23660else
23661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662$as_echo "no" >&6; }
23663fi
23664
23665
23666		;;
23667	*)
23668		purify_path="$use_purify"
23669		;;
23670esac
23671
23672case "$use_purify" in
23673	no)
23674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23675$as_echo "no" >&6; }
23676		PURIFY=""
23677		;;
23678	*)
23679		if test -f $purify_path || test $purify_path = purify; then
23680			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
23681$as_echo "$purify_path" >&6; }
23682			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
23683			PURIFY="$purify_path $PURIFYFLAGS"
23684		else
23685			as_fn_error $? "$purify_path not found.
23686
23687Please choose the proper path with the following command:
23688
23689    configure --with-purify=PATH
23690" "$LINENO" 5
23691		fi
23692		;;
23693esac
23694
23695
23696
23697
23698
23699# Check whether --with-libtool was given.
23700if test "${with_libtool+set}" = set; then :
23701  withval=$with_libtool; use_libtool="$withval"
23702else
23703  use_libtool="no"
23704fi
23705
23706
23707case $use_libtool in
23708	yes)
23709
23710		O=lo
23711		A=la
23712		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
23713		LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC'
23714		LIBTOOL_MODE_INSTALL='--mode=install --tag=CC'
23715		LIBTOOL_MODE_LINK='--mode=link --tag=CC'
23716		case "$host" in
23717		*) LIBTOOL_ALLOW_UNDEFINED= ;;
23718		esac
23719		case "$host" in
23720		*-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
23721		*) LIBTOOL_IN_MAIN= ;;
23722		esac;
23723		;;
23724	*)
23725		O=o
23726		A=a
23727		LIBTOOL=
23728
23729		LIBTOOL_MKDEP_SED=
23730		LIBTOOL_MODE_COMPILE=
23731		LIBTOOL_MODE_INSTALL=
23732		LIBTOOL_MODE_LINK=
23733		LIBTOOL_ALLOW_UNDEFINED=
23734		LIBTOOL_IN_MAIN=
23735		;;
23736esac
23737
23738#
23739# enable/disable dumping stack backtrace.  Also check if the system supports
23740# glibc-compatible backtrace() function.
23741#
23742# Check whether --enable-backtrace was given.
23743if test "${enable_backtrace+set}" = set; then :
23744  enableval=$enable_backtrace; want_backtrace="$enableval"
23745else
23746  want_backtrace="yes"
23747fi
23748
23749case $want_backtrace in
23750yes)
23751	ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
23752	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23753/* end confdefs.h.  */
23754#include <execinfo.h>
23755int
23756main ()
23757{
23758return (backtrace((void **)0, 0));
23759  ;
23760  return 0;
23761}
23762_ACEOF
23763if ac_fn_c_try_link "$LINENO"; then :
23764
23765$as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h
23766
23767fi
23768rm -f core conftest.err conftest.$ac_objext \
23769    conftest$ac_exeext conftest.$ac_ext
23770	;;
23771*)
23772	ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
23773	;;
23774esac
23775
23776
23777# Check whether --enable-symtable was given.
23778if test "${enable_symtable+set}" = set; then :
23779  enableval=$enable_symtable; want_symtable="$enableval"
23780else
23781  want_symtable="minimal"
23782fi
23783
23784case $want_symtable in
23785yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
23786	if test "$PERL" = ""
23787	then
23788		as_fn_error $? "Internal symbol table requires perl but no perl is found.
23789Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
23790	fi
23791	if test "$use_libtool" = "yes"; then
23792		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
23793$as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
23794	else
23795		# we generate the internal symbol table only for those systems
23796		# known to work to avoid unexpected build failure.  Also, warn
23797		# about unsupported systems when the feature is enabled
23798		#  manually.
23799		case $host_os in
23800		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
23801			MKSYMTBL_PROGRAM="$PERL"
23802			if test $want_symtable = all; then
23803				ALWAYS_MAKE_SYMTABLE="yes"
23804			fi
23805			;;
23806		*)
23807			if test $want_symtable = yes -o $want_symtable = all
23808			then
23809				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
23810$as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
23811			fi
23812		esac
23813	fi
23814	;;
23815*)
23816	;;
23817esac
23818
23819
23820
23821#
23822# File name extension for static archive files, for those few places
23823# where they are treated differently from dynamic ones.
23824#
23825SA=a
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837#
23838# build exportable DNS library?
23839#
23840# Check whether --enable-exportlib was given.
23841if test "${enable_exportlib+set}" = set; then :
23842  enableval=$enable_exportlib;
23843fi
23844
23845case "$enable_exportlib" in
23846	yes)
23847		gmake=
23848		for x in gmake gnumake make; do
23849			if $x --version 2>/dev/null | grep GNU > /dev/null; then
23850				gmake=$x
23851				break;
23852			fi
23853		done
23854		if test -z "$gmake"; then
23855			as_fn_error $? "exportlib requires GNU make.  Install it or disable the feature." "$LINENO" 5
23856		fi
23857		LIBEXPORT=lib/export
23858
23859		BIND9_CO_RULE="%.$O:  \${srcdir}/%.c"
23860		;;
23861	no|*)
23862		BIND9_CO_RULE=".c.$O:"
23863		;;
23864esac
23865
23866
23867
23868# Check whether --with-export-libdir was given.
23869if test "${with_export_libdir+set}" = set; then :
23870  withval=$with_export_libdir; export_libdir="$withval"
23871fi
23872
23873if test -z "$export_libdir"; then
23874	export_libdir="\${exec_prefix}/lib/bind9/"
23875fi
23876
23877
23878
23879# Check whether --with-export-includedir was given.
23880if test "${with_export_includedir+set}" = set; then :
23881  withval=$with_export_includedir; export_includedir="$withval"
23882fi
23883
23884if test -z "$export_includedir"; then
23885	export_includedir="\${prefix}/include/bind9/"
23886fi
23887
23888
23889#
23890# Here begins a very long section to determine the system's networking
23891# capabilities.  The order of the tests is significant.
23892#
23893
23894#
23895# IPv6
23896#
23897# Check whether --enable-ipv6 was given.
23898if test "${enable_ipv6+set}" = set; then :
23899  enableval=$enable_ipv6;
23900fi
23901
23902
23903case "$enable_ipv6" in
23904	yes|''|autodetect)
23905		$as_echo "#define WANT_IPV6 1" >>confdefs.h
23906
23907		;;
23908	no)
23909		;;
23910esac
23911
23912#
23913# We do the IPv6 compilation checking after libtool so that we can put
23914# the right suffix on the files.
23915#
23916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
23917$as_echo_n "checking for IPv6 structures... " >&6; }
23918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23919/* end confdefs.h.  */
23920
23921#include <sys/types.h>
23922#include <sys/socket.h>
23923#include <netinet/in.h>
23924int
23925main ()
23926{
23927struct sockaddr_in6 sin6; return (0);
23928  ;
23929  return 0;
23930}
23931_ACEOF
23932if ac_fn_c_try_compile "$LINENO"; then :
23933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23934$as_echo "yes" >&6; }
23935	 found_ipv6=yes
23936else
23937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23938$as_echo "no" >&6; }
23939	 found_ipv6=no
23940fi
23941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942
23943#
23944# See whether IPv6 support is provided via a Kame add-on.
23945# This is done before other IPv6 linking tests to LIBS is properly set.
23946#
23947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
23948$as_echo_n "checking for Kame IPv6 support... " >&6; }
23949
23950# Check whether --with-kame was given.
23951if test "${with_kame+set}" = set; then :
23952  withval=$with_kame; use_kame="$withval"
23953else
23954  use_kame="no"
23955fi
23956
23957
23958case "$use_kame" in
23959	no)
23960		;;
23961	yes)
23962		kame_path=/usr/local/v6
23963		;;
23964	*)
23965		kame_path="$use_kame"
23966		;;
23967esac
23968
23969case "$use_kame" in
23970	no)
23971		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23972$as_echo "no" >&6; }
23973		;;
23974	*)
23975		if test -f $kame_path/lib/libinet6.a; then
23976			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
23977$as_echo "$kame_path/lib/libinet6.a" >&6; }
23978			LIBS="-L$kame_path/lib -linet6 $LIBS"
23979		else
23980			as_fn_error $? "$kame_path/lib/libinet6.a not found.
23981
23982Please choose the proper path with the following command:
23983
23984    configure --with-kame=PATH
23985" "$LINENO" 5
23986		fi
23987		;;
23988esac
23989
23990#
23991# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
23992# Including it on Kame-using platforms is very bad, though, because
23993# Kame uses #error against direct inclusion.   So include it on only
23994# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
23995# This is done before the in6_pktinfo check because that's what
23996# netinet6/in6.h is needed for.
23997#
23998
23999case "$host" in
24000*-bsdi4.[01]*)
24001	ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
24002	LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
24003	isc_netinet6in6_hack="#include <netinet6/in6.h>"
24004	;;
24005*)
24006	ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
24007	LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
24008	isc_netinet6in6_hack=""
24009	;;
24010esac
24011
24012
24013#
24014# This is similar to the netinet6/in6.h issue.
24015#
24016case "$host" in
24017*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
24018	# UnixWare
24019	ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
24020	LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
24021	ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
24022	isc_netinetin6_hack="#include <netinet/in6.h>"
24023	;;
24024*)
24025	ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
24026	LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
24027	ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
24028	isc_netinetin6_hack=""
24029	;;
24030esac
24031
24032#
24033# Now delve deeper into the suitability of the IPv6 support.
24034#
24035case "$found_ipv6" in
24036	yes)
24037		ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
24038		LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
24039
24040		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5
24041$as_echo_n "checking for in6_addr... " >&6; }
24042		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043/* end confdefs.h.  */
24044
24045#include <sys/types.h>
24046#include <sys/socket.h>
24047#include <netinet/in.h>
24048$isc_netinetin6_hack
24049$isc_netinet6in6_hack
24050
24051int
24052main ()
24053{
24054struct in6_addr in6; return (0);
24055  ;
24056  return 0;
24057}
24058_ACEOF
24059if ac_fn_c_try_compile "$LINENO"; then :
24060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24061$as_echo "yes" >&6; }
24062		 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
24063		 LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
24064		 isc_in_addr6_hack=""
24065else
24066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24067$as_echo "no" >&6; }
24068		 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
24069		 LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
24070		 isc_in_addr6_hack="#define in6_addr in_addr6"
24071fi
24072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24073
24074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
24075$as_echo_n "checking for in6addr_any... " >&6; }
24076		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077/* end confdefs.h.  */
24078
24079#include <sys/types.h>
24080#include <sys/socket.h>
24081#include <netinet/in.h>
24082$isc_netinetin6_hack
24083$isc_netinet6in6_hack
24084$isc_in_addr6_hack
24085
24086int
24087main ()
24088{
24089struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
24090  ;
24091  return 0;
24092}
24093_ACEOF
24094if ac_fn_c_try_link "$LINENO"; then :
24095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24096$as_echo "yes" >&6; }
24097			 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
24098			 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
24099else
24100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24101$as_echo "no" >&6; }
24102			 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
24103			 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
24104fi
24105rm -f core conftest.err conftest.$ac_objext \
24106    conftest$ac_exeext conftest.$ac_ext
24107
24108		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
24109$as_echo_n "checking for in6addr_loopback... " >&6; }
24110		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111/* end confdefs.h.  */
24112
24113#include <sys/types.h>
24114#include <sys/socket.h>
24115#include <netinet/in.h>
24116$isc_netinetin6_hack
24117$isc_netinet6in6_hack
24118$isc_in_addr6_hack
24119
24120int
24121main ()
24122{
24123struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
24124  ;
24125  return 0;
24126}
24127_ACEOF
24128if ac_fn_c_try_link "$LINENO"; then :
24129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24130$as_echo "yes" >&6; }
24131			 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
24132			 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
24133else
24134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24135$as_echo "no" >&6; }
24136			 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
24137			 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
24138fi
24139rm -f core conftest.err conftest.$ac_objext \
24140    conftest$ac_exeext conftest.$ac_ext
24141
24142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5
24143$as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
24144		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24145/* end confdefs.h.  */
24146
24147#include <sys/types.h>
24148#include <sys/socket.h>
24149#include <netinet/in.h>
24150$isc_netinetin6_hack
24151$isc_netinet6in6_hack
24152
24153int
24154main ()
24155{
24156struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
24157  ;
24158  return 0;
24159}
24160_ACEOF
24161if ac_fn_c_try_compile "$LINENO"; then :
24162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24163$as_echo "yes" >&6; }
24164			 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
24165			 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
24166else
24167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24168$as_echo "no" >&6; }
24169			 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
24170			 result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
24171fi
24172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24173		LWRES_HAVE_SIN6_SCOPE_ID="$result"
24174
24175		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
24176$as_echo_n "checking for in6_pktinfo... " >&6; }
24177		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178/* end confdefs.h.  */
24179
24180#include <sys/types.h>
24181#include <sys/socket.h>
24182#include <netinet/in.h>
24183$isc_netinetin6_hack
24184$isc_netinet6in6_hack
24185
24186int
24187main ()
24188{
24189struct in6_pktinfo xyzzy; return (0);
24190  ;
24191  return 0;
24192}
24193_ACEOF
24194if ac_fn_c_try_compile "$LINENO"; then :
24195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24196$as_echo "yes" >&6; }
24197			 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
24198else
24199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5
24200$as_echo "no -- disabling runtime ipv6 support" >&6; }
24201			 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
24202fi
24203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204		;;
24205	no)
24206		ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
24207		LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
24208		ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
24209		LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
24210		ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
24211		LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
24212		ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
24213		ISC_IPV6_H="ipv6.h"
24214		ISC_IPV6_O="ipv6.$O"
24215		ISC_ISCIPV6_O="unix/ipv6.$O"
24216		ISC_IPV6_C="ipv6.c"
24217		;;
24218esac
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
24242$as_echo_n "checking for struct if_laddrreq... " >&6; }
24243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24244/* end confdefs.h.  */
24245
24246#include <sys/types.h>
24247#include <net/if6.h>
24248
24249int
24250main ()
24251{
24252 struct if_laddrreq a;
24253  ;
24254  return 0;
24255}
24256_ACEOF
24257if ac_fn_c_try_link "$LINENO"; then :
24258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24259$as_echo "yes" >&6; }
24260	ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
24261else
24262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24263$as_echo "no" >&6; }
24264	ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
24265fi
24266rm -f core conftest.err conftest.$ac_objext \
24267    conftest$ac_exeext conftest.$ac_ext
24268
24269
24270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
24271$as_echo_n "checking for struct if_laddrconf... " >&6; }
24272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273/* end confdefs.h.  */
24274
24275#include <sys/types.h>
24276#include <net/if6.h>
24277
24278int
24279main ()
24280{
24281 struct if_laddrconf a;
24282  ;
24283  return 0;
24284}
24285_ACEOF
24286if ac_fn_c_try_link "$LINENO"; then :
24287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24288$as_echo "yes" >&6; }
24289	ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
24290else
24291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24292$as_echo "no" >&6; }
24293	ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
24294fi
24295rm -f core conftest.err conftest.$ac_objext \
24296    conftest$ac_exeext conftest.$ac_ext
24297
24298
24299#
24300# Check for network functions that are often missing.  We do this
24301# after the libtool checking, so we can put the right suffix on
24302# the files.  It also needs to come after checking for a Kame add-on,
24303# which provides some (all?) of the desired functions.
24304#
24305
24306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5
24307$as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
24308if test "$cross_compiling" = yes; then :
24309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop not needed" >&5
24310$as_echo "assuming inet_ntop not needed" >&6; }
24311	ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
24312else
24313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24314/* end confdefs.h.  */
24315
24316#include <sys/types.h>
24317#include <sys/socket.h>
24318#include <netinet/in.h>
24319#include <arpa/inet.h>
24320main() {
24321char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
24322_ACEOF
24323if ac_fn_c_try_run "$LINENO"; then :
24324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24325$as_echo "yes" >&6; }
24326	ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
24327else
24328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24329$as_echo "no" >&6; }
24330	ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
24331	ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
24332	ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
24333fi
24334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24335  conftest.$ac_objext conftest.beam conftest.$ac_ext
24336fi
24337
24338
24339
24340# On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
24341# addresses with less than four octets, like "1.2.3".  Also leading
24342# zeros should also be rejected.
24343
24344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5
24345$as_echo_n "checking for working inet_pton with IPv6 support... " >&6; }
24346if test "$cross_compiling" = yes; then :
24347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_pton needed" >&5
24348$as_echo "assuming inet_pton needed" >&6; }
24349	ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
24350	ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
24351	ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
24352else
24353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24354/* end confdefs.h.  */
24355
24356#include <sys/types.h>
24357#include <sys/socket.h>
24358#include <netinet/in.h>
24359#include <arpa/inet.h>
24360main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
24361			     inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
24362			     (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
24363_ACEOF
24364if ac_fn_c_try_run "$LINENO"; then :
24365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24366$as_echo "yes" >&6; }
24367	ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
24368else
24369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24370$as_echo "no" >&6; }
24371	ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
24372	ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
24373	ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
24374fi
24375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24376  conftest.$ac_objext conftest.beam conftest.$ac_ext
24377fi
24378
24379
24380
24381
24382
24383#
24384# Look for a 4.4BSD-style sa_len member in struct sockaddr.
24385#
24386case "$host" in
24387	*-dec-osf*)
24388		# Turn on 4.4BSD style sa_len support.
24389		$as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h
24390
24391		;;
24392esac
24393
24394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
24395$as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
24396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24397/* end confdefs.h.  */
24398
24399#include <sys/types.h>
24400#include <sys/socket.h>
24401int
24402main ()
24403{
24404struct sockaddr sa; sa.sa_len = 0; return (0);
24405  ;
24406  return 0;
24407}
24408_ACEOF
24409if ac_fn_c_try_compile "$LINENO"; then :
24410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24411$as_echo "yes" >&6; }
24412	ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
24413	LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
24414else
24415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24416$as_echo "no" >&6; }
24417	ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
24418	LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
24419fi
24420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24421
24422
24423
24424#
24425# Look for a 4.4BSD or 4.3BSD struct msghdr
24426#
24427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5
24428$as_echo_n "checking for struct msghdr flavor... " >&6; }
24429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24430/* end confdefs.h.  */
24431
24432#include <sys/types.h>
24433#include <sys/socket.h>
24434int
24435main ()
24436{
24437struct msghdr msg; msg.msg_flags = 0; return (0);
24438  ;
24439  return 0;
24440}
24441_ACEOF
24442if ac_fn_c_try_compile "$LINENO"; then :
24443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5
24444$as_echo "4.4BSD" >&6; }
24445	ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
24446else
24447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5
24448$as_echo "4.3BSD" >&6; }
24449	ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
24450fi
24451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24452
24453
24454#
24455# Look for in_port_t.
24456#
24457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5
24458$as_echo_n "checking for type in_port_t... " >&6; }
24459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24460/* end confdefs.h.  */
24461
24462#include <sys/types.h>
24463#include <netinet/in.h>
24464int
24465main ()
24466{
24467in_port_t port = 25; return (0);
24468  ;
24469  return 0;
24470}
24471_ACEOF
24472if ac_fn_c_try_compile "$LINENO"; then :
24473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24474$as_echo "yes" >&6; }
24475	ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
24476else
24477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24478$as_echo "no" >&6; }
24479	ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
24480fi
24481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482
24483
24484#
24485# Check for addrinfo
24486#
24487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
24488$as_echo_n "checking for struct addrinfo... " >&6; }
24489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24490/* end confdefs.h.  */
24491
24492#include <netdb.h>
24493int
24494main ()
24495{
24496struct addrinfo a; return (0);
24497  ;
24498  return 0;
24499}
24500_ACEOF
24501if ac_fn_c_try_compile "$LINENO"; then :
24502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24503$as_echo "yes" >&6; }
24504	ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
24505	ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
24506	$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
24507
24508else
24509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24510$as_echo "no" >&6; }
24511	ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
24512	ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
24513fi
24514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24515
24516
24517
24518#
24519# Check for rrsetinfo
24520#
24521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rrsetinfo" >&5
24522$as_echo_n "checking for struct rrsetinfo... " >&6; }
24523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24524/* end confdefs.h.  */
24525
24526#include <netdb.h>
24527int
24528main ()
24529{
24530struct rrsetinfo r; return (0);
24531  ;
24532  return 0;
24533}
24534_ACEOF
24535if ac_fn_c_try_compile "$LINENO"; then :
24536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24537$as_echo "yes" >&6; }
24538	ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
24539else
24540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24541$as_echo "no" >&6; }
24542	ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
24543fi
24544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24545
24546
24547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int sethostent" >&5
24548$as_echo_n "checking for int sethostent... " >&6; }
24549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24550/* end confdefs.h.  */
24551
24552#include <netdb.h>
24553int
24554main ()
24555{
24556int i = sethostent(0); return(0);
24557  ;
24558  return 0;
24559}
24560_ACEOF
24561if ac_fn_c_try_compile "$LINENO"; then :
24562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24563$as_echo "yes" >&6; }
24564	ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
24565else
24566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24567$as_echo "no" >&6; }
24568	ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
24569fi
24570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571
24572
24573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endhostent" >&5
24574$as_echo_n "checking for int endhostent... " >&6; }
24575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24576/* end confdefs.h.  */
24577
24578#include <netdb.h>
24579int
24580main ()
24581{
24582int i = endhostent(); return(0);
24583  ;
24584  return 0;
24585}
24586_ACEOF
24587if ac_fn_c_try_compile "$LINENO"; then :
24588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24589$as_echo "yes" >&6; }
24590	ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
24591else
24592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24593$as_echo "no" >&6; }
24594	ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
24595fi
24596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597
24598
24599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnetbyaddr(in_addr_t, ...)" >&5
24600$as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; }
24601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24602/* end confdefs.h.  */
24603
24604#include <netdb.h>
24605struct netent *getnetbyaddr(in_addr_t, int);
24606int
24607main ()
24608{
24609
24610  ;
24611  return 0;
24612}
24613_ACEOF
24614if ac_fn_c_try_compile "$LINENO"; then :
24615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24616$as_echo "yes" >&6; }
24617	ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
24618else
24619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24620$as_echo "no" >&6; }
24621	ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
24622fi
24623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624
24625
24626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int setnetent" >&5
24627$as_echo_n "checking for int setnetent... " >&6; }
24628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24629/* end confdefs.h.  */
24630
24631#include <netdb.h>
24632int
24633main ()
24634{
24635int i = setnetent(0); return(0);
24636  ;
24637  return 0;
24638}
24639_ACEOF
24640if ac_fn_c_try_compile "$LINENO"; then :
24641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24642$as_echo "yes" >&6; }
24643	ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
24644else
24645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24646$as_echo "no" >&6; }
24647	ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
24648fi
24649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650
24651
24652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endnetent" >&5
24653$as_echo_n "checking for int endnetent... " >&6; }
24654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24655/* end confdefs.h.  */
24656
24657#include <netdb.h>
24658int
24659main ()
24660{
24661int i = endnetent(); return(0);
24662  ;
24663  return 0;
24664}
24665_ACEOF
24666if ac_fn_c_try_compile "$LINENO"; then :
24667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24668$as_echo "yes" >&6; }
24669	ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
24670else
24671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24672$as_echo "no" >&6; }
24673	ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
24674fi
24675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24676
24677
24678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr(const void *, size_t, ...)" >&5
24679$as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; }
24680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24681/* end confdefs.h.  */
24682
24683#include <netdb.h>
24684struct hostent *gethostbyaddr(const void *, size_t, int);
24685int
24686main ()
24687{
24688return(0);
24689  ;
24690  return 0;
24691}
24692_ACEOF
24693if ac_fn_c_try_compile "$LINENO"; then :
24694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24695$as_echo "yes" >&6; }
24696	ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
24697else
24698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24699$as_echo "no" >&6; }
24700	ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
24701fi
24702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24703
24704
24705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
24706$as_echo_n "checking for h_errno in netdb.h... " >&6; }
24707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24708/* end confdefs.h.  */
24709
24710#include <netdb.h>
24711int
24712main ()
24713{
24714h_errno = 1; return(0);
24715  ;
24716  return 0;
24717}
24718_ACEOF
24719if ac_fn_c_try_compile "$LINENO"; then :
24720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24721$as_echo "yes" >&6; }
24722	ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
24723else
24724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24725$as_echo "no" >&6; }
24726	ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
24727fi
24728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24729
24730
24731#
24732# Sadly, the definitions of system-supplied getnameinfo(3) vary.  Try to catch
24733# known variations here:
24734#
24735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5
24736$as_echo_n "checking for getnameinfo prototype definitions... " >&6; }
24737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738/* end confdefs.h.  */
24739
24740#include <sys/types.h>
24741#include <sys/socket.h>
24742#include <netdb.h>
24743int getnameinfo(const struct sockaddr *, socklen_t, char *,
24744                socklen_t, char *, socklen_t, unsigned int);
24745int
24746main ()
24747{
24748 return (0);
24749  ;
24750  return 0;
24751}
24752_ACEOF
24753if ac_fn_c_try_compile "$LINENO"; then :
24754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; u_int for flags" >&5
24755$as_echo "socklen_t for buflen; u_int for flags" >&6; }
24756
24757$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
24758
24759
24760$as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h
24761
24762else
24763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24764/* end confdefs.h.  */
24765
24766#include <sys/types.h>
24767#include <sys/socket.h>
24768#include <netdb.h>
24769int getnameinfo(const struct sockaddr *, socklen_t, char *,
24770                size_t, char *, size_t, int);
24771int
24772main ()
24773{
24774 return (0);
24775  ;
24776  return 0;
24777}
24778_ACEOF
24779if ac_fn_c_try_compile "$LINENO"; then :
24780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
24781$as_echo "size_t for buflen; int for flags" >&6; }
24782	 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
24783
24784	 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
24785
24786else
24787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
24788$as_echo "not match any subspecies; assume standard definition" >&6; }
24789$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
24790
24791$as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
24792
24793fi
24794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24795fi
24796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24797
24798#
24799# ...and same for gai_strerror().
24800#
24801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5
24802$as_echo_n "checking for gai_strerror prototype definitions... " >&6; }
24803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804/* end confdefs.h.  */
24805
24806#include <sys/types.h>
24807#include <sys/socket.h>
24808#include <netdb.h>
24809char *gai_strerror(int ecode);
24810int
24811main ()
24812{
24813 return (0);
24814  ;
24815  return 0;
24816}
24817_ACEOF
24818if ac_fn_c_try_compile "$LINENO"; then :
24819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5
24820$as_echo "returning char *" >&6; }
24821
24822$as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h
24823
24824else
24825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
24826$as_echo "not match any subspecies; assume standard definition" >&6; }
24827$as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h
24828
24829fi
24830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24831
24832ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
24833if test "x$ac_cv_func_getipnodebyname" = x""yes; then :
24834  ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
24835else
24836  ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
24837fi
24838
24839ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
24840if test "x$ac_cv_func_getnameinfo" = x""yes; then :
24841  ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
24842else
24843  ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
24844fi
24845
24846ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
24847if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
24848  ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
24849	$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
24850
24851else
24852  ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
24853fi
24854
24855ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
24856if test "x$ac_cv_func_gai_strerror" = x""yes; then :
24857  $as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h
24858
24859fi
24860
24861
24862
24863
24864
24865
24866# Check whether --enable-getifaddrs was given.
24867if test "${enable_getifaddrs+set}" = set; then :
24868  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
24869else
24870  want_getifaddrs="yes"
24871fi
24872
24873
24874#
24875# This interface iteration code for getifaddrs() will fall back to using
24876# /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
24877# addresses.
24878#
24879case $want_getifaddrs in
24880glibc)
24881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
24882$as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
24883ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
24884if test "x$ac_cv_func_getifaddrs" = x""yes; then :
24885  $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
24886
24887fi
24888
24889;;
24890yes)
24891ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
24892if test "x$ac_cv_func_getifaddrs" = x""yes; then :
24893  $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
24894
24895fi
24896
24897;;
24898no)
24899;;
24900esac
24901
24902#
24903# Look for a sysctl call to get the list of network interfaces.
24904#
24905case $ac_cv_header_sys_sysctl_h in
24906yes)
24907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
24908$as_echo_n "checking for interface list sysctl... " >&6; }
24909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24910/* end confdefs.h.  */
24911
24912#include <sys/param.h>
24913#include <sys/sysctl.h>
24914#include <sys/socket.h>
24915#ifdef NET_RT_IFLIST
24916found_rt_iflist
24917#endif
24918
24919_ACEOF
24920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24921  $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
24922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24923$as_echo "yes" >&6; }
24924	 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
24925
24926else
24927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24928$as_echo "no" >&6; }
24929fi
24930rm -f conftest*
24931
24932;;
24933esac
24934
24935#
24936# Check for some other useful functions that are not ever-present.
24937#
24938
24939# We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
24940# because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
24941# reportedly defines strsep() without declaring it in <string.h> when
24942# -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
24943# AC_CHECK_FUNC() incorrectly succeeds because it declares
24944# the function itself.
24945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5
24946$as_echo_n "checking for correctly declared strsep()... " >&6; }
24947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24948/* end confdefs.h.  */
24949#include <string.h>
24950int
24951main ()
24952{
24953char *sp; char *foo = strsep(&sp, ".");
24954  ;
24955  return 0;
24956}
24957_ACEOF
24958if ac_fn_c_try_link "$LINENO"; then :
24959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24960$as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
24961else
24962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24963$as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
24964fi
24965rm -f core conftest.err conftest.$ac_objext \
24966    conftest$ac_exeext conftest.$ac_ext
24967
24968
24969ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
24970if test "x$ac_cv_func_memmove" = x""yes; then :
24971  ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
24972else
24973  ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
24974fi
24975
24976
24977
24978ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
24979if test "x$ac_cv_func_strtoul" = x""yes; then :
24980  ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
24981	 LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
24982	 GENRANDOMLIB=""
24983else
24984  ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
24985	 LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
24986	 GENRANDOMLIB='${ISCLIBS}'
24987fi
24988
24989
24990
24991
24992
24993ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
24994if test "x$ac_cv_func_strlcpy" = x""yes; then :
24995  ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
24996else
24997  ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
24998fi
24999
25000
25001
25002ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
25003if test "x$ac_cv_func_strlcat" = x""yes; then :
25004  ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
25005else
25006  ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
25007fi
25008
25009
25010
25011
25012
25013# Check whether --with-readline was given.
25014if test "${with_readline+set}" = set; then :
25015  withval=$with_readline; readline="$withval"
25016else
25017  readline="-lreadline"
25018fi
25019
25020case "$readline" in
25021no)	;;
25022*)
25023	if test "x$readline" = "xyes"
25024	then
25025		readline=-lreadline
25026	fi
25027	saved_LIBS="$LIBS"
25028	LIBS="$LIBS $readline"
25029	for ac_func in readline
25030do :
25031  ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
25032if test "x$ac_cv_func_readline" = x""yes; then :
25033  cat >>confdefs.h <<_ACEOF
25034#define HAVE_READLINE 1
25035_ACEOF
25036
25037fi
25038done
25039
25040	if test "$ac_cv_func_readline" = "no"
25041	then
25042		LIBS="$saved_LIBS"
25043	fi
25044        ;;
25045esac
25046
25047
25048ISC_PRINT_OBJS=
25049ISC_PRINT_SRCS=
25050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf" >&5
25051$as_echo_n "checking sprintf... " >&6; }
25052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25053/* end confdefs.h.  */
25054
25055#include <stdio.h>
25056
25057int
25058main ()
25059{
25060 char buf[2]; return(*sprintf(buf,"x"));
25061  ;
25062  return 0;
25063}
25064_ACEOF
25065if ac_fn_c_try_compile "$LINENO"; then :
25066
25067ISC_PRINT_OBJS="print.$O"
25068ISC_PRINT_SRCS="print.c"
25069ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
25070LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
25071
25072else
25073  ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF"
25074 LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF"
25075
25076fi
25077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25078
25079
25080
25081ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
25082if test "x$ac_cv_func_vsnprintf" = x""yes; then :
25083  ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
25084	 LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF"
25085else
25086  ISC_PRINT_OBJS="print.$O"
25087	 ISC_PRINT_SRCS="print.c"
25088	 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
25089	 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
25090fi
25091
25092
25093
25094ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
25095ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
25096
25097ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
25098if test "x$ac_cv_func_strerror" = x""yes; then :
25099  $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
25100
25101fi
25102
25103
25104
25105
25106
25107#
25108# Use our own SPNEGO implementation?
25109#
25110# Check whether --enable-isc-spnego was given.
25111if test "${enable_isc_spnego+set}" = set; then :
25112  enableval=$enable_isc_spnego;
25113fi
25114
25115
25116if test -n "$USE_GSSAPI"
25117then
25118	case "$enable_isc_spnego" in
25119		yes|'')
25120			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
25121			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
25122			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
25123			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
25124$as_echo "using SPNEGO from lib/dns" >&6; }
25125			;;
25126		no)
25127			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
25128$as_echo "using SPNEGO from GSSAPI library" >&6; }
25129			;;
25130	esac
25131fi
25132
25133
25134
25135
25136
25137
25138# Determine the printf format characters to use when printing
25139# values of type isc_int64_t. This will normally be "ll", but where
25140# the compiler treats "long long" as a alias for "long" and printf
25141# doesn't know about "long long" use "l".  Hopefully the sprintf
25142# will produce a inconsistent result in the later case.  If the compiler
25143# fails due to seeing "%lld" we fall back to "l".
25144#
25145# Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
25146# %ld even for (long long)/
25147#
25148# Win32 uses "%I64d", but that's defined elsewhere since we don't use
25149# configure on Win32.
25150#
25151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format modifier for 64-bit integers" >&5
25152$as_echo_n "checking printf format modifier for 64-bit integers... " >&6; }
25153if test "$cross_compiling" = yes; then :
25154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform uses ll" >&5
25155$as_echo "assuming target platform uses ll" >&6; }
25156	ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
25157	LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
25158else
25159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25160/* end confdefs.h.  */
25161
25162#include <stdio.h>
25163main() {
25164	long long int j = 0;
25165	char buf[100];
25166	buf[0] = 0;
25167	sprintf(buf, "%lld", j);
25168	exit((sizeof(long long int) != sizeof(long int))? 0 :
25169	     (strcmp(buf, "0") != 0));
25170}
25171
25172_ACEOF
25173if ac_fn_c_try_run "$LINENO"; then :
25174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ll" >&5
25175$as_echo "ll" >&6; }
25176	ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
25177	LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
25178else
25179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: l" >&5
25180$as_echo "l" >&6; }
25181	ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
25182	LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"'
25183fi
25184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25185  conftest.$ac_objext conftest.beam conftest.$ac_ext
25186fi
25187
25188
25189
25190
25191#
25192# Security Stuff
25193#
25194# Note it is very recommended to *not* disable chroot(),
25195# this is only because chroot() was made obsolete by Posix.
25196# Check whether --enable-chroot was given.
25197if test "${enable_chroot+set}" = set; then :
25198  enableval=$enable_chroot;
25199fi
25200
25201case "$enable_chroot" in
25202	yes|'')
25203		for ac_func in chroot
25204do :
25205  ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
25206if test "x$ac_cv_func_chroot" = x""yes; then :
25207  cat >>confdefs.h <<_ACEOF
25208#define HAVE_CHROOT 1
25209_ACEOF
25210
25211fi
25212done
25213
25214		;;
25215	no)
25216		;;
25217esac
25218# Check whether --enable-linux-caps was given.
25219if test "${enable_linux_caps+set}" = set; then :
25220  enableval=$enable_linux_caps;
25221fi
25222
25223case "$enable_linux_caps" in
25224	yes|'')
25225		for ac_header in linux/capability.h sys/capability.h
25226do :
25227  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25228ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25229if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25230  cat >>confdefs.h <<_ACEOF
25231#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25232_ACEOF
25233
25234fi
25235
25236done
25237
25238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
25239$as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
25240if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
25241  $as_echo_n "(cached) " >&6
25242else
25243  ac_check_lib_save_LIBS=$LIBS
25244LIBS="-lcap  $LIBS"
25245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25246/* end confdefs.h.  */
25247
25248/* Override any GCC internal prototype to avoid an error.
25249   Use char because int might match the return type of a GCC
25250   builtin and then its argument prototype would still apply.  */
25251#ifdef __cplusplus
25252extern "C"
25253#endif
25254char cap_set_proc ();
25255int
25256main ()
25257{
25258return cap_set_proc ();
25259  ;
25260  return 0;
25261}
25262_ACEOF
25263if ac_fn_c_try_link "$LINENO"; then :
25264  ac_cv_lib_cap_cap_set_proc=yes
25265else
25266  ac_cv_lib_cap_cap_set_proc=no
25267fi
25268rm -f core conftest.err conftest.$ac_objext \
25269    conftest$ac_exeext conftest.$ac_ext
25270LIBS=$ac_check_lib_save_LIBS
25271fi
25272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
25273$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
25274if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
25275  cat >>confdefs.h <<_ACEOF
25276#define HAVE_LIBCAP 1
25277_ACEOF
25278
25279  LIBS="-lcap $LIBS"
25280
25281fi
25282
25283		;;
25284	no)
25285		;;
25286esac
25287for ac_header in sys/prctl.h
25288do :
25289  ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
25290if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
25291  cat >>confdefs.h <<_ACEOF
25292#define HAVE_SYS_PRCTL_H 1
25293_ACEOF
25294
25295fi
25296
25297done
25298
25299
25300for ac_header in sys/un.h
25301do :
25302  ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
25303if test "x$ac_cv_header_sys_un_h" = x""yes; then :
25304  cat >>confdefs.h <<_ACEOF
25305#define HAVE_SYS_UN_H 1
25306_ACEOF
25307 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
25308
25309else
25310  ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
25311
25312fi
25313
25314done
25315
25316
25317
25318case "$host" in
25319*-solaris*)
25320
25321$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
25322
25323	;;
25324*-sunos*)
25325
25326$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
25327
25328	;;
25329esac
25330
25331#
25332# Time Zone Stuff
25333#
25334ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
25335if test "x$ac_cv_func_tzset" = x""yes; then :
25336  $as_echo "#define HAVE_TZSET 1" >>confdefs.h
25337
25338fi
25339
25340
25341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
25342$as_echo_n "checking for optarg declaration... " >&6; }
25343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25344/* end confdefs.h.  */
25345
25346#include <unistd.h>
25347
25348int
25349main ()
25350{
25351optarg = 0;
25352  ;
25353  return 0;
25354}
25355_ACEOF
25356if ac_fn_c_try_compile "$LINENO"; then :
25357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25358$as_echo "yes" >&6; }
25359else
25360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25361$as_echo "no" >&6; }
25362GEN_NEED_OPTARG="-DNEED_OPTARG=1"
25363
25364$as_echo "#define NEED_OPTARG 1" >>confdefs.h
25365
25366fi
25367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25368
25369#
25370# BSD/OS, and perhaps some others, don't define rlim_t.
25371#
25372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5
25373$as_echo_n "checking for type rlim_t... " >&6; }
25374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375/* end confdefs.h.  */
25376
25377#include <sys/types.h>
25378#include <sys/time.h>
25379#include <sys/resource.h>
25380int
25381main ()
25382{
25383rlim_t rl = 19671212; return (0);
25384  ;
25385  return 0;
25386}
25387_ACEOF
25388if ac_fn_c_try_compile "$LINENO"; then :
25389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25390$as_echo "yes" >&6; }
25391 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
25392else
25393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25394$as_echo "no" >&6; }
25395
25396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5
25397$as_echo_n "checking type of rlim_cur... " >&6; }
25398if test "$cross_compiling" = yes; then :
25399
25400
25401# Check whether --with-rlimtype was given.
25402if test "${with_rlimtype+set}" = set; then :
25403  withval=$with_rlimtype; rlimtype="$withval"
25404else
25405  rlimtype="long long int"
25406fi
25407
25408ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE $rlimtype"
25409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&5
25410$as_echo "cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&6; }
25411else
25412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25413/* end confdefs.h.  */
25414
25415#include <sys/types.h>
25416#include <sys/time.h>
25417#include <sys/resource.h>
25418main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
25419_ACEOF
25420if ac_fn_c_try_run "$LINENO"; then :
25421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
25422$as_echo "int" >&6; }
25423ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
25424else
25425
25426if test "$cross_compiling" = yes; then :
25427  as_fn_error $? "this cannot happen" "$LINENO" 5
25428else
25429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25430/* end confdefs.h.  */
25431
25432#include <sys/types.h>
25433#include <sys/time.h>
25434#include <sys/resource.h>
25435main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
25436_ACEOF
25437if ac_fn_c_try_run "$LINENO"; then :
25438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5
25439$as_echo "long int" >&6; }
25440ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
25441else
25442
25443if test "$cross_compiling" = yes; then :
25444  as_fn_error $? "this cannot happen" "$LINENO" 5
25445else
25446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25447/* end confdefs.h.  */
25448
25449#include <sys/types.h>
25450#include <sys/time.h>
25451#include <sys/resource.h>
25452main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
25453_ACEOF
25454if ac_fn_c_try_run "$LINENO"; then :
25455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5
25456$as_echo "long long int" >&6; }
25457ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
25458else
25459  as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5
25460
25461fi
25462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25463  conftest.$ac_objext conftest.beam conftest.$ac_ext
25464fi
25465
25466
25467fi
25468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25469  conftest.$ac_objext conftest.beam conftest.$ac_ext
25470fi
25471
25472
25473fi
25474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25475  conftest.$ac_objext conftest.beam conftest.$ac_ext
25476fi
25477
25478
25479fi
25480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25481
25482
25483#
25484# Older HP-UX doesn't have gettune
25485#
25486case "$host" in
25487  	*-hp-hpux*)
25488		for ac_header in sys/dyntune.h
25489do :
25490  ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default"
25491if test "x$ac_cv_header_sys_dyntune_h" = x""yes; then :
25492  cat >>confdefs.h <<_ACEOF
25493#define HAVE_SYS_DYNTUNE_H 1
25494_ACEOF
25495
25496fi
25497
25498done
25499
25500		;;
25501	*)
25502		;;
25503esac
25504
25505
25506#
25507# Compaq TruCluster requires more code for handling cluster IP aliases
25508#
25509case "$host" in
25510	*-dec-osf*)
25511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5
25512$as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; }
25513if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then :
25514  $as_echo_n "(cached) " >&6
25515else
25516  ac_check_lib_save_LIBS=$LIBS
25517LIBS="-lclua  $LIBS"
25518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519/* end confdefs.h.  */
25520
25521/* Override any GCC internal prototype to avoid an error.
25522   Use char because int might match the return type of a GCC
25523   builtin and then its argument prototype would still apply.  */
25524#ifdef __cplusplus
25525extern "C"
25526#endif
25527char clua_getaliasaddress ();
25528int
25529main ()
25530{
25531return clua_getaliasaddress ();
25532  ;
25533  return 0;
25534}
25535_ACEOF
25536if ac_fn_c_try_link "$LINENO"; then :
25537  ac_cv_lib_clua_clua_getaliasaddress=yes
25538else
25539  ac_cv_lib_clua_clua_getaliasaddress=no
25540fi
25541rm -f core conftest.err conftest.$ac_objext \
25542    conftest$ac_exeext conftest.$ac_ext
25543LIBS=$ac_check_lib_save_LIBS
25544fi
25545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
25546$as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
25547if test "x$ac_cv_lib_clua_clua_getaliasaddress" = x""yes; then :
25548  LIBS="-lclua $LIBS"
25549fi
25550
25551		ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress"
25552if test "x$ac_cv_func_clua_getaliasaddress" = x""yes; then :
25553
25554$as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h
25555
25556fi
25557
25558		;;
25559	*)
25560		;;
25561esac
25562
25563#
25564# Some hosts need msg_namelen to match the size of the socket structure.
25565# Some hosts don't set msg_namelen appropriately on return from recvmsg().
25566#
25567case $host in
25568*os2*|*hp-mpeix*)
25569
25570$as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h
25571
25572	;;
25573esac
25574
25575#
25576# Microsoft has their own way of handling shared libraries that requires
25577# additional qualifiers on extern variables.  Unix systems don't need it.
25578#
25579
25580ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
25581
25582LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC"
25583
25584IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
25585
25586#
25587# Random remaining OS-specific issues involving compiler warnings.
25588# XXXDCL print messages to indicate some compensation is being done?
25589#
25590
25591ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
25592
25593case "$host" in
25594	*-aix5.[123].*)
25595		hack_shutup_pthreadonceinit=yes
25596		;;
25597	*-bsdi3.1*)
25598		hack_shutup_sputaux=yes
25599		;;
25600	*-bsdi4.0*)
25601		hack_shutup_sigwait=yes
25602		hack_shutup_sputaux=yes
25603		;;
25604	*-bsdi4.[12]*)
25605		hack_shutup_stdargcast=yes
25606		;;
25607	*-solaris2.[89])
25608		hack_shutup_pthreadonceinit=yes
25609		;;
25610	*-solaris2.1[0-9])
25611		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612/* end confdefs.h.  */
25613 #include <pthread.h>
25614int
25615main ()
25616{
25617 static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
25618  ;
25619  return 0;
25620}
25621_ACEOF
25622if ac_fn_c_try_compile "$LINENO"; then :
25623  hack_shutup_pthreadonceinit=yes
25624fi
25625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25626		;;
25627esac
25628
25629case "$hack_shutup_pthreadonceinit" in
25630	yes)
25631		#
25632		# Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
25633		#
25634		ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
25635		;;
25636esac
25637
25638case "$hack_shutup_sigwait" in
25639	yes)
25640		#
25641		# Shut up a -Wmissing-prototypes warning for sigwait().
25642		#
25643		$as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h
25644
25645		;;
25646esac
25647
25648case "$hack_shutup_sputaux" in
25649	yes)
25650		#
25651		# Shut up a -Wmissing-prototypes warning from <stdio.h>.
25652		#
25653		$as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h
25654
25655		;;
25656esac
25657
25658case "$hack_shutup_stdargcast" in
25659	yes)
25660		#
25661		# Shut up a -Wcast-qual warning from va_start().
25662		#
25663		$as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h
25664
25665		;;
25666esac
25667
25668for ac_header in strings.h
25669do :
25670  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
25671if test "x$ac_cv_header_strings_h" = x""yes; then :
25672  cat >>confdefs.h <<_ACEOF
25673#define HAVE_STRINGS_H 1
25674_ACEOF
25675 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
25676
25677else
25678  ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
25679
25680fi
25681
25682done
25683
25684
25685
25686#
25687# Check for if_nametoindex() for IPv6 scoped addresses support
25688#
25689ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
25690if test "x$ac_cv_func_if_nametoindex" = x""yes; then :
25691  ac_cv_have_if_nametoindex=yes
25692else
25693  ac_cv_have_if_nametoindex=no
25694fi
25695
25696case $ac_cv_have_if_nametoindex in
25697no)
25698	case "$host" in
25699	*-hp-hpux*)
25700		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
25701$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
25702if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
25703  $as_echo_n "(cached) " >&6
25704else
25705  ac_check_lib_save_LIBS=$LIBS
25706LIBS="-lipv6  $LIBS"
25707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25708/* end confdefs.h.  */
25709
25710/* Override any GCC internal prototype to avoid an error.
25711   Use char because int might match the return type of a GCC
25712   builtin and then its argument prototype would still apply.  */
25713#ifdef __cplusplus
25714extern "C"
25715#endif
25716char if_nametoindex ();
25717int
25718main ()
25719{
25720return if_nametoindex ();
25721  ;
25722  return 0;
25723}
25724_ACEOF
25725if ac_fn_c_try_link "$LINENO"; then :
25726  ac_cv_lib_ipv6_if_nametoindex=yes
25727else
25728  ac_cv_lib_ipv6_if_nametoindex=no
25729fi
25730rm -f core conftest.err conftest.$ac_objext \
25731    conftest$ac_exeext conftest.$ac_ext
25732LIBS=$ac_check_lib_save_LIBS
25733fi
25734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
25735$as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
25736if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then :
25737  ac_cv_have_if_nametoindex=yes
25738				LIBS="-lipv6 $LIBS"
25739fi
25740
25741	;;
25742	esac
25743esac
25744case $ac_cv_have_if_nametoindex in
25745yes)
25746	ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
25747	;;
25748*)
25749	ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
25750	;;
25751esac
25752
25753
25754for ac_func in nanosleep usleep
25755do :
25756  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25757ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25758if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25759  cat >>confdefs.h <<_ACEOF
25760#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25761_ACEOF
25762
25763fi
25764done
25765
25766
25767#
25768# Machine architecture dependent features
25769#
25770# Check whether --enable-atomic was given.
25771if test "${enable_atomic+set}" = set; then :
25772  enableval=$enable_atomic; enable_atomic="$enableval"
25773else
25774  enable_atomic="autodetect"
25775fi
25776
25777case "$enable_atomic" in
25778	yes|''|autodetect)
25779		case "$host" in
25780		powerpc-ibm-aix*)
25781			if test "X$GCC" = "Xyes"; then
25782				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"isc\"); works" >&5
25783$as_echo_n "checking if asm(\"isc\"); works... " >&6; }
25784				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25785/* end confdefs.h.  */
25786
25787int
25788main ()
25789{
25790
25791				main() { asm("ics"); exit(0); }
25792
25793  ;
25794  return 0;
25795}
25796_ACEOF
25797if ac_fn_c_try_compile "$LINENO"; then :
25798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25799$as_echo "yes" >&6; }
25800				 use_atomic=yes
25801else
25802
25803				saved_cflags="$CFLAGS"
25804				CFLAGS="$CFLAGS -Wa,-many"
25805				if test "$cross_compiling" = yes; then :
25806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5
25807$as_echo "cross compile, assume yes" >&6; }
25808				 CFLAGS="$saved_cflags"
25809				 use_atomic=yes
25810else
25811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812/* end confdefs.h.  */
25813
25814				main() { asm("ics"); exit(0); }
25815
25816_ACEOF
25817if ac_fn_c_try_run "$LINENO"; then :
25818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5
25819$as_echo "yes, required -Wa,-many" >&6; }
25820				 use_atomic=yes
25821else
25822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5
25823$as_echo "no, use_atomic disabled" >&6; }
25824				 CFLAGS="$saved_cflags"
25825				 use_atomic=no
25826fi
25827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25828  conftest.$ac_objext conftest.beam conftest.$ac_ext
25829fi
25830
25831
25832
25833fi
25834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25835			else
25836				use_atomic=yes
25837			fi
25838			;;
25839		*)
25840			use_atomic=yes
25841			;;
25842		esac
25843		;;
25844	no)
25845		use_atomic=no
25846		arch=noatomic
25847		;;
25848esac
25849
25850ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
25851if test "$use_atomic" = "yes"; then
25852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5
25853$as_echo_n "checking architecture type for atomic operations... " >&6; }
25854	have_atomic=yes		# set default
25855	case "$host" in
25856	i[3456]86-*)
25857		# XXX: some old x86 architectures actually do not support
25858		#      (some of) these operations.  Do we need stricter checks?
25859                # The cast to long int works around a bug in the HP C Compiler
25860# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25861# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25862# This bug is HP SR number 8606223364.
25863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
25864$as_echo_n "checking size of void *... " >&6; }
25865if test "${ac_cv_sizeof_void_p+set}" = set; then :
25866  $as_echo_n "(cached) " >&6
25867else
25868  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
25869
25870else
25871  if test "$ac_cv_type_void_p" = yes; then
25872     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25874as_fn_error 77 "cannot compute sizeof (void *)
25875See \`config.log' for more details" "$LINENO" 5; }
25876   else
25877     ac_cv_sizeof_void_p=0
25878   fi
25879fi
25880
25881fi
25882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
25883$as_echo "$ac_cv_sizeof_void_p" >&6; }
25884
25885
25886
25887cat >>confdefs.h <<_ACEOF
25888#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25889_ACEOF
25890
25891
25892		if test $ac_cv_sizeof_void_p = 8; then
25893			arch=x86_64
25894			have_xaddq=yes
25895		else
25896			arch=x86_32
25897		fi
25898	;;
25899	x86_64-*|amd64-*)
25900                # The cast to long int works around a bug in the HP C Compiler
25901# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25902# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25903# This bug is HP SR number 8606223364.
25904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
25905$as_echo_n "checking size of void *... " >&6; }
25906if test "${ac_cv_sizeof_void_p+set}" = set; then :
25907  $as_echo_n "(cached) " >&6
25908else
25909  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
25910
25911else
25912  if test "$ac_cv_type_void_p" = yes; then
25913     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25915as_fn_error 77 "cannot compute sizeof (void *)
25916See \`config.log' for more details" "$LINENO" 5; }
25917   else
25918     ac_cv_sizeof_void_p=0
25919   fi
25920fi
25921
25922fi
25923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
25924$as_echo "$ac_cv_sizeof_void_p" >&6; }
25925
25926
25927
25928cat >>confdefs.h <<_ACEOF
25929#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25930_ACEOF
25931
25932
25933		if test $ac_cv_sizeof_void_p = 8; then
25934			arch=x86_64
25935			have_xaddq=yes
25936		else
25937			arch=x86_32
25938		fi
25939	;;
25940	alpha*-*)
25941		arch=alpha
25942	;;
25943	powerpc-*|powerpc64-*)
25944		arch=powerpc
25945	;;
25946	mips-*|mipsel-*|mips64-*|mips64el-*)
25947		arch=mips
25948	;;
25949	ia64-*)
25950		arch=ia64
25951	;;
25952	*)
25953		have_atomic=no
25954		arch=noatomic
25955	;;
25956	esac
25957	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5
25958$as_echo "$arch" >&6; }
25959fi
25960
25961if test "$have_atomic" = "yes"; then
25962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5
25963$as_echo_n "checking compiler support for inline assembly code... " >&6; }
25964
25965	compiler=generic
25966	# Check whether the compiler supports the assembly syntax we provide.
25967	if test "X$GCC" = "Xyes"; then
25968		# GCC's ASM extension always works
25969		compiler=gcc
25970		if test $arch = "x86_64"; then
25971			# We can share the same code for gcc with x86_32
25972			arch=x86_32
25973		fi
25974		if test $arch = "powerpc"; then
25975			#
25976			# The MacOS (and maybe others) uses "r0" for register
25977			# zero. Under linux/ibm it is "0" for register 0.
25978			# Probe to see if we have a MacOS style assembler.
25979			#
25980			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5
25981$as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; }
25982			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25983/* end confdefs.h.  */
25984
25985int
25986main ()
25987{
25988
25989			__asm__ volatile ("li r0, 0x0\n"::);
25990
25991  ;
25992  return 0;
25993}
25994_ACEOF
25995if ac_fn_c_try_compile "$LINENO"; then :
25996
25997			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25998$as_echo "yes" >&6; }
25999			compiler="mac"
26000			ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1"
26001
26002else
26003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26004$as_echo "no" >&6; }
26005fi
26006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007		fi
26008	else
26009		case "$host" in
26010		alpha*-dec-osf*)
26011			# Tru64 compiler has its own syntax for inline
26012			# assembly.
26013			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26014/* end confdefs.h.  */
26015
26016int
26017main ()
26018{
26019
26020#ifndef __DECC
26021#error "unexpected compiler"
26022#endif
26023				return (0);
26024  ;
26025  return 0;
26026}
26027_ACEOF
26028if ac_fn_c_try_compile "$LINENO"; then :
26029  compiler=osf
26030fi
26031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26032		;;
26033		powerpc-ibm-aix*)
26034			compiler=aix
26035		;;
26036		esac
26037	fi
26038	case "$compiler" in
26039	gcc)
26040		ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
26041		;;
26042	osf)
26043		ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
26044		;;
26045	aix)
26046		;;
26047	mac)
26048		;;
26049	*)
26050		# See if the generic __asm function works.  If not,
26051		# we need to disable the atomic operations.
26052		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26053/* end confdefs.h.  */
26054
26055int
26056main ()
26057{
26058
26059					__asm("nop")
26060
26061  ;
26062  return 0;
26063}
26064_ACEOF
26065if ac_fn_c_try_link "$LINENO"; then :
26066  compiler="standard"
26067		ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1"
26068else
26069  compiler="not supported (atomic operations disabled)"
26070		have_atomic=no
26071		arch=noatomic
26072fi
26073rm -f core conftest.err conftest.$ac_objext \
26074    conftest$ac_exeext conftest.$ac_ext;
26075		;;
26076	esac
26077
26078	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5
26079$as_echo "$compiler" >&6; }
26080fi
26081
26082if test "$have_atomic" = "yes"; then
26083	ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
26084	ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
26085	ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
26086else
26087	ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
26088	ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
26089	ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
26090fi
26091
26092if test "$have_xaddq" = "yes"; then
26093	ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1"
26094else
26095	ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
26096fi
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108ISC_ARCH_DIR=$arch
26109
26110
26111#
26112# Activate "rrset-order fixed" or not?
26113#
26114# Check whether --enable-fixed-rrset was given.
26115if test "${enable_fixed_rrset+set}" = set; then :
26116  enableval=$enable_fixed_rrset; enable_fixed="$enableval"
26117else
26118  enable_fixed="no"
26119fi
26120
26121case "$enable_fixed" in
26122	yes)
26123
26124$as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
26125
26126		;;
26127	no)
26128		;;
26129	*)
26130		;;
26131esac
26132
26133#
26134# Enable response policy rewriting using NS IP addresses
26135#
26136# Check whether --enable-rpz-nsip was given.
26137if test "${enable_rpz_nsip+set}" = set; then :
26138  enableval=$enable_rpz_nsip; enable_nsip="$enableval"
26139else
26140  enable_nsip="no"
26141fi
26142
26143case "$enable_nsip" in
26144	yes)
26145
26146$as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h
26147
26148		;;
26149	no)
26150		;;
26151	*)
26152		;;
26153esac
26154
26155#
26156# Enable response policy rewriting using NS name
26157#
26158# Check whether --enable-rpz-nsdname was given.
26159if test "${enable_rpz_nsdname+set}" = set; then :
26160  enableval=$enable_rpz_nsdname; enable_nsdname="$enableval"
26161else
26162  enable_nsdname="no"
26163fi
26164
26165case "$enable_nsdname" in
26166	yes)
26167
26168$as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h
26169
26170		;;
26171	no)
26172		;;
26173	*)
26174		;;
26175esac
26176
26177#
26178# Activate "filter-aaaa-on-v4" or not?
26179#
26180# Check whether --enable-filter-aaaa was given.
26181if test "${enable_filter_aaaa+set}" = set; then :
26182  enableval=$enable_filter_aaaa; enable_filter="$enableval"
26183else
26184  enable_filter="no"
26185fi
26186
26187case "$enable_filter" in
26188	yes)
26189
26190$as_echo "#define ALLOW_FILTER_AAAA_ON_V4 1" >>confdefs.h
26191
26192		;;
26193	no)
26194		;;
26195	*)
26196		;;
26197esac
26198
26199#
26200#  The following sets up how non-blocking i/o is established.
26201#  Sunos, cygwin and solaris 2.x (x<5) require special handling.
26202#
26203case "$host" in
26204*-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
26205;;
26206*-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
26207;;
26208*-solaris2.[01234])
26209	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
26210
26211
26212$as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
26213
26214	;;
26215*)
26216$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
26217
26218	;;
26219esac
26220#
26221# Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
26222# This prevents the source address being set.
26223#
26224case "$host" in
26225*-solaris2.[012345]|*-solaris2.5.1)
26226
26227$as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
26228
26229	;;
26230esac
26231#
26232# The following sections deal with tools used for formatting
26233# the documentation.  They are all optional, unless you are
26234# a developer editing the documentation source.
26235#
26236
26237#
26238# Look for TeX.
26239#
26240
26241for ac_prog in latex
26242do
26243  # Extract the first word of "$ac_prog", so it can be a program name with args.
26244set dummy $ac_prog; ac_word=$2
26245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26246$as_echo_n "checking for $ac_word... " >&6; }
26247if test "${ac_cv_path_LATEX+set}" = set; then :
26248  $as_echo_n "(cached) " >&6
26249else
26250  case $LATEX in
26251  [\\/]* | ?:[\\/]*)
26252  ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
26253  ;;
26254  *)
26255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26256for as_dir in $PATH
26257do
26258  IFS=$as_save_IFS
26259  test -z "$as_dir" && as_dir=.
26260    for ac_exec_ext in '' $ac_executable_extensions; do
26261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26262    ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
26263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26264    break 2
26265  fi
26266done
26267  done
26268IFS=$as_save_IFS
26269
26270  ;;
26271esac
26272fi
26273LATEX=$ac_cv_path_LATEX
26274if test -n "$LATEX"; then
26275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
26276$as_echo "$LATEX" >&6; }
26277else
26278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26279$as_echo "no" >&6; }
26280fi
26281
26282
26283  test -n "$LATEX" && break
26284done
26285test -n "$LATEX" || LATEX="latex"
26286
26287
26288
26289for ac_prog in pdflatex
26290do
26291  # Extract the first word of "$ac_prog", so it can be a program name with args.
26292set dummy $ac_prog; ac_word=$2
26293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26294$as_echo_n "checking for $ac_word... " >&6; }
26295if test "${ac_cv_path_PDFLATEX+set}" = set; then :
26296  $as_echo_n "(cached) " >&6
26297else
26298  case $PDFLATEX in
26299  [\\/]* | ?:[\\/]*)
26300  ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
26301  ;;
26302  *)
26303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26304for as_dir in $PATH
26305do
26306  IFS=$as_save_IFS
26307  test -z "$as_dir" && as_dir=.
26308    for ac_exec_ext in '' $ac_executable_extensions; do
26309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26310    ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
26311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26312    break 2
26313  fi
26314done
26315  done
26316IFS=$as_save_IFS
26317
26318  ;;
26319esac
26320fi
26321PDFLATEX=$ac_cv_path_PDFLATEX
26322if test -n "$PDFLATEX"; then
26323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
26324$as_echo "$PDFLATEX" >&6; }
26325else
26326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26327$as_echo "no" >&6; }
26328fi
26329
26330
26331  test -n "$PDFLATEX" && break
26332done
26333test -n "$PDFLATEX" || PDFLATEX="pdflatex"
26334
26335
26336
26337#
26338# Look for w3m
26339#
26340
26341for ac_prog in w3m
26342do
26343  # Extract the first word of "$ac_prog", so it can be a program name with args.
26344set dummy $ac_prog; ac_word=$2
26345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26346$as_echo_n "checking for $ac_word... " >&6; }
26347if test "${ac_cv_path_W3M+set}" = set; then :
26348  $as_echo_n "(cached) " >&6
26349else
26350  case $W3M in
26351  [\\/]* | ?:[\\/]*)
26352  ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
26353  ;;
26354  *)
26355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26356for as_dir in $PATH
26357do
26358  IFS=$as_save_IFS
26359  test -z "$as_dir" && as_dir=.
26360    for ac_exec_ext in '' $ac_executable_extensions; do
26361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26362    ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
26363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26364    break 2
26365  fi
26366done
26367  done
26368IFS=$as_save_IFS
26369
26370  ;;
26371esac
26372fi
26373W3M=$ac_cv_path_W3M
26374if test -n "$W3M"; then
26375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
26376$as_echo "$W3M" >&6; }
26377else
26378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26379$as_echo "no" >&6; }
26380fi
26381
26382
26383  test -n "$W3M" && break
26384done
26385test -n "$W3M" || W3M="w3m"
26386
26387
26388
26389#
26390# Look for xsltproc (libxslt)
26391#
26392
26393# Extract the first word of "xsltproc", so it can be a program name with args.
26394set dummy xsltproc; ac_word=$2
26395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26396$as_echo_n "checking for $ac_word... " >&6; }
26397if test "${ac_cv_path_XSLTPROC+set}" = set; then :
26398  $as_echo_n "(cached) " >&6
26399else
26400  case $XSLTPROC in
26401  [\\/]* | ?:[\\/]*)
26402  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
26403  ;;
26404  *)
26405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26406for as_dir in $PATH
26407do
26408  IFS=$as_save_IFS
26409  test -z "$as_dir" && as_dir=.
26410    for ac_exec_ext in '' $ac_executable_extensions; do
26411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26412    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
26413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26414    break 2
26415  fi
26416done
26417  done
26418IFS=$as_save_IFS
26419
26420  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
26421  ;;
26422esac
26423fi
26424XSLTPROC=$ac_cv_path_XSLTPROC
26425if test -n "$XSLTPROC"; then
26426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
26427$as_echo "$XSLTPROC" >&6; }
26428else
26429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26430$as_echo "no" >&6; }
26431fi
26432
26433
26434
26435
26436#
26437# Look for xmllint (libxml2)
26438#
26439
26440# Extract the first word of "xmllint", so it can be a program name with args.
26441set dummy xmllint; ac_word=$2
26442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26443$as_echo_n "checking for $ac_word... " >&6; }
26444if test "${ac_cv_path_XMLLINT+set}" = set; then :
26445  $as_echo_n "(cached) " >&6
26446else
26447  case $XMLLINT in
26448  [\\/]* | ?:[\\/]*)
26449  ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
26450  ;;
26451  *)
26452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26453for as_dir in $PATH
26454do
26455  IFS=$as_save_IFS
26456  test -z "$as_dir" && as_dir=.
26457    for ac_exec_ext in '' $ac_executable_extensions; do
26458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26459    ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
26460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26461    break 2
26462  fi
26463done
26464  done
26465IFS=$as_save_IFS
26466
26467  test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
26468  ;;
26469esac
26470fi
26471XMLLINT=$ac_cv_path_XMLLINT
26472if test -n "$XMLLINT"; then
26473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
26474$as_echo "$XMLLINT" >&6; }
26475else
26476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26477$as_echo "no" >&6; }
26478fi
26479
26480
26481
26482
26483#
26484# Look for Doxygen
26485#
26486
26487# Extract the first word of "doxygen", so it can be a program name with args.
26488set dummy doxygen; ac_word=$2
26489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26490$as_echo_n "checking for $ac_word... " >&6; }
26491if test "${ac_cv_path_DOXYGEN+set}" = set; then :
26492  $as_echo_n "(cached) " >&6
26493else
26494  case $DOXYGEN in
26495  [\\/]* | ?:[\\/]*)
26496  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26497  ;;
26498  *)
26499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26500for as_dir in $PATH
26501do
26502  IFS=$as_save_IFS
26503  test -z "$as_dir" && as_dir=.
26504    for ac_exec_ext in '' $ac_executable_extensions; do
26505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26506    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26508    break 2
26509  fi
26510done
26511  done
26512IFS=$as_save_IFS
26513
26514  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
26515  ;;
26516esac
26517fi
26518DOXYGEN=$ac_cv_path_DOXYGEN
26519if test -n "$DOXYGEN"; then
26520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
26521$as_echo "$DOXYGEN" >&6; }
26522else
26523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26524$as_echo "no" >&6; }
26525fi
26526
26527
26528
26529
26530#
26531# Subroutine for searching for an ordinary file (e.g., a stylesheet)
26532# in a number of directories:
26533#
26534#   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
26535#
26536# If the file FILENAME is found in one of the DIRECTORIES, the shell
26537# variable VARIABLE is defined to its absolute pathname.  Otherwise,
26538# it is set to FILENAME, with no directory prefix (that's not terribly
26539# useful, but looks less confusing in substitutions than leaving it
26540# empty).  The variable VARIABLE will be substituted into output files.
26541#
26542
26543
26544
26545#
26546# Look for Docbook-XSL stylesheets.  Location probably varies by system.
26547# If it's not explicitly specified, guess where it might be found, based on
26548# where SGML stuff lives on some systems (FreeBSD is the only one we're sure
26549# of at the moment).
26550#
26551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
26552$as_echo_n "checking for Docbook-XSL path... " >&6; }
26553
26554# Check whether --with-docbook-xsl was given.
26555if test "${with_docbook_xsl+set}" = set; then :
26556  withval=$with_docbook_xsl; docbook_path="$withval"
26557else
26558  docbook_path="auto"
26559fi
26560
26561case "$docbook_path" in
26562auto)
26563	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
26564$as_echo "auto" >&6; }
26565	docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl/"
26566	;;
26567*)
26568	docbook_xsl_trees="$withval"
26569    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
26570$as_echo "$docbook_xsl_trees" >&6; }
26571	;;
26572esac
26573
26574#
26575# Look for stylesheets we need.
26576#
26577
26578
26579XSLT_DOCBOOK_STYLE_HTML=""
26580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
26581$as_echo_n "checking for html/docbook.xsl... " >&6; }
26582for d in $docbook_xsl_trees
26583do
26584	f=$d/html/docbook.xsl
26585	if test -f $f
26586	then
26587		XSLT_DOCBOOK_STYLE_HTML=$f
26588		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26589$as_echo "$f" >&6; }
26590		break
26591	fi
26592done
26593if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
26594then
26595	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26596$as_echo "\"not found\"" >&6; };
26597	XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
26598fi
26599
26600
26601
26602XSLT_DOCBOOK_STYLE_XHTML=""
26603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
26604$as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
26605for d in $docbook_xsl_trees
26606do
26607	f=$d/xhtml/docbook.xsl
26608	if test -f $f
26609	then
26610		XSLT_DOCBOOK_STYLE_XHTML=$f
26611		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26612$as_echo "$f" >&6; }
26613		break
26614	fi
26615done
26616if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
26617then
26618	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26619$as_echo "\"not found\"" >&6; };
26620	XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
26621fi
26622
26623
26624
26625XSLT_DOCBOOK_STYLE_MAN=""
26626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
26627$as_echo_n "checking for manpages/docbook.xsl... " >&6; }
26628for d in $docbook_xsl_trees
26629do
26630	f=$d/manpages/docbook.xsl
26631	if test -f $f
26632	then
26633		XSLT_DOCBOOK_STYLE_MAN=$f
26634		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26635$as_echo "$f" >&6; }
26636		break
26637	fi
26638done
26639if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
26640then
26641	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26642$as_echo "\"not found\"" >&6; };
26643	XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
26644fi
26645
26646
26647
26648XSLT_DOCBOOK_CHUNK_HTML=""
26649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
26650$as_echo_n "checking for html/chunk.xsl... " >&6; }
26651for d in $docbook_xsl_trees
26652do
26653	f=$d/html/chunk.xsl
26654	if test -f $f
26655	then
26656		XSLT_DOCBOOK_CHUNK_HTML=$f
26657		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26658$as_echo "$f" >&6; }
26659		break
26660	fi
26661done
26662if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
26663then
26664	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26665$as_echo "\"not found\"" >&6; };
26666	XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
26667fi
26668
26669
26670
26671XSLT_DOCBOOK_CHUNK_XHTML=""
26672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
26673$as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
26674for d in $docbook_xsl_trees
26675do
26676	f=$d/xhtml/chunk.xsl
26677	if test -f $f
26678	then
26679		XSLT_DOCBOOK_CHUNK_XHTML=$f
26680		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26681$as_echo "$f" >&6; }
26682		break
26683	fi
26684done
26685if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
26686then
26687	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26688$as_echo "\"not found\"" >&6; };
26689	XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
26690fi
26691
26692
26693
26694XSLT_DOCBOOK_CHUNKTOC_HTML=""
26695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
26696$as_echo_n "checking for html/chunktoc.xsl... " >&6; }
26697for d in $docbook_xsl_trees
26698do
26699	f=$d/html/chunktoc.xsl
26700	if test -f $f
26701	then
26702		XSLT_DOCBOOK_CHUNKTOC_HTML=$f
26703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26704$as_echo "$f" >&6; }
26705		break
26706	fi
26707done
26708if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
26709then
26710	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26711$as_echo "\"not found\"" >&6; };
26712	XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
26713fi
26714
26715
26716
26717XSLT_DOCBOOK_CHUNKTOC_XHTML=""
26718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
26719$as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
26720for d in $docbook_xsl_trees
26721do
26722	f=$d/xhtml/chunktoc.xsl
26723	if test -f $f
26724	then
26725		XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
26726		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26727$as_echo "$f" >&6; }
26728		break
26729	fi
26730done
26731if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
26732then
26733	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26734$as_echo "\"not found\"" >&6; };
26735	XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
26736fi
26737
26738
26739
26740XSLT_DOCBOOK_MAKETOC_HTML=""
26741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
26742$as_echo_n "checking for html/maketoc.xsl... " >&6; }
26743for d in $docbook_xsl_trees
26744do
26745	f=$d/html/maketoc.xsl
26746	if test -f $f
26747	then
26748		XSLT_DOCBOOK_MAKETOC_HTML=$f
26749		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26750$as_echo "$f" >&6; }
26751		break
26752	fi
26753done
26754if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
26755then
26756	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26757$as_echo "\"not found\"" >&6; };
26758	XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
26759fi
26760
26761
26762
26763XSLT_DOCBOOK_MAKETOC_XHTML=""
26764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
26765$as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
26766for d in $docbook_xsl_trees
26767do
26768	f=$d/xhtml/maketoc.xsl
26769	if test -f $f
26770	then
26771		XSLT_DOCBOOK_MAKETOC_XHTML=$f
26772		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26773$as_echo "$f" >&6; }
26774		break
26775	fi
26776done
26777if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
26778then
26779	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26780$as_echo "\"not found\"" >&6; };
26781	XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
26782fi
26783
26784
26785
26786#
26787# Same dance for db2latex
26788#
26789# No idea where this lives except on FreeBSD.
26790#
26791
26792db2latex_xsl_trees="/usr/local/share"
26793
26794#
26795# Look for stylesheets we need.
26796#
26797
26798
26799XSLT_DB2LATEX_STYLE=""
26800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex/xsl/docbook.xsl" >&5
26801$as_echo_n "checking for db2latex/xsl/docbook.xsl... " >&6; }
26802for d in $db2latex_xsl_trees
26803do
26804	f=$d/db2latex/xsl/docbook.xsl
26805	if test -f $f
26806	then
26807		XSLT_DB2LATEX_STYLE=$f
26808		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
26809$as_echo "$f" >&6; }
26810		break
26811	fi
26812done
26813if test "X$XSLT_DB2LATEX_STYLE" = "X"
26814then
26815	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
26816$as_echo "\"not found\"" >&6; };
26817	XSLT_DB2LATEX_STYLE=db2latex/xsl/docbook.xsl
26818fi
26819
26820
26821
26822#
26823# Look for "admonition" image directory.  Can't use NOM_PATH_FILE()
26824# because it's a directory, so just do the same things, inline.
26825#
26826
26827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex/xsl/figures" >&5
26828$as_echo_n "checking for db2latex/xsl/figures... " >&6; }
26829for d in $db2latex_xsl_trees
26830do
26831	dd=$d/db2latex/xsl/figures
26832	if test -d $dd
26833	then
26834		XSLT_DB2LATEX_ADMONITIONS=$dd
26835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dd" >&5
26836$as_echo "$dd" >&6; }
26837		break
26838	fi
26839done
26840if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X"
26841then
26842	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26843$as_echo "not found" >&6; }
26844	XSLT_DB2LATEX_ADMONITIONS=db2latex/xsl/figures
26845fi
26846
26847
26848#
26849# IDN support
26850#
26851
26852# Check whether --with-idn was given.
26853if test "${with_idn+set}" = set; then :
26854  withval=$with_idn; use_idn="$withval"
26855else
26856  use_idn="no"
26857fi
26858
26859case "$use_idn" in
26860yes)
26861	if test X$prefix = XNONE ; then
26862		idn_path=/usr/local
26863	else
26864		idn_path=$prefix
26865	fi
26866	;;
26867no)
26868	;;
26869*)
26870	idn_path="$use_idn"
26871	;;
26872esac
26873
26874iconvinc=
26875iconvlib=
26876
26877# Check whether --with-libiconv was given.
26878if test "${with_libiconv+set}" = set; then :
26879  withval=$with_libiconv; use_libiconv="$withval"
26880else
26881  use_libiconv="no"
26882fi
26883
26884case "$use_libiconv" in
26885yes)
26886	if test X$prefix = XNONE ; then
26887		iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
26888	else
26889		iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
26890	fi
26891	;;
26892no)
26893	iconvlib=
26894	;;
26895*)
26896	iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
26897	;;
26898esac
26899
26900
26901# Check whether --with-iconv was given.
26902if test "${with_iconv+set}" = set; then :
26903  withval=$with_iconv; iconvlib="$withval"
26904fi
26905
26906case "$iconvlib" in
26907no)
26908	iconvlib=
26909	;;
26910yes)
26911	iconvlib=-liconv
26912	;;
26913esac
26914
26915
26916# Check whether --with-idnlib was given.
26917if test "${with_idnlib+set}" = set; then :
26918  withval=$with_idnlib; idnlib="$withval"
26919else
26920  idnlib="no"
26921fi
26922
26923if test "$idnlib" = yes; then
26924	as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5
26925fi
26926
26927IDNLIBS=
26928if test "$use_idn" != no; then
26929
26930$as_echo "#define WITH_IDN 1" >>confdefs.h
26931
26932	STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include"
26933	if test "$idnlib" != no; then
26934		IDNLIBS="$idnlib $iconvlib"
26935	else
26936		IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib"
26937	fi
26938fi
26939
26940
26941#
26942# Check whether to build Automated Test Framework unit tests
26943#
26944
26945# Check whether --with-atf was given.
26946if test "${with_atf+set}" = set; then :
26947  withval=$with_atf; atf="$withval"
26948else
26949  atf="no"
26950fi
26951
26952if test "$atf" = yes; then
26953	atf=`pwd`/unit/atf
26954	ATFBUILD=atf-src
26955
26956	ac_config_commands="$ac_config_commands atf-config"
26957
26958	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: building ATF from bind9/unit/atf-src" >&5
26959$as_echo "building ATF from bind9/unit/atf-src" >&6; }
26960fi
26961
26962ATFLIBS=
26963if test "$atf" != no; then
26964
26965$as_echo "#define ATF_TEST 1" >>confdefs.h
26966
26967	STD_CINCLUDES="$STD_CINCLUDES -I$atf/include"
26968	ATFBIN="$atf/bin"
26969	ATFLIBS="-L$atf/lib -latf-c"
26970	UNITTESTS=tests
26971fi
26972
26973
26974
26975
26976for ac_header in locale.h
26977do :
26978  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
26979if test "x$ac_cv_header_locale_h" = x""yes; then :
26980  cat >>confdefs.h <<_ACEOF
26981#define HAVE_LOCALE_H 1
26982_ACEOF
26983
26984fi
26985
26986done
26987
26988for ac_func in setlocale
26989do :
26990  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
26991if test "x$ac_cv_func_setlocale" = x""yes; then :
26992  cat >>confdefs.h <<_ACEOF
26993#define HAVE_SETLOCALE 1
26994_ACEOF
26995
26996fi
26997done
26998
26999
27000#
27001# Substitutions
27002#
27003
27004BIND9_TOP_BUILDDIR=`pwd`
27005
27006
27007
27008
27009
27010
27011
27012if test "X$srcdir" != "X"; then
27013	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
27014	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
27015	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
27016	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
27017	BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
27018	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
27019else
27020	BIND9_ISC_BUILDINCLUDE=""
27021	BIND9_ISCCC_BUILDINCLUDE=""
27022	BIND9_ISCCFG_BUILDINCLUDE=""
27023	BIND9_DNS_BUILDINCLUDE=""
27024	BIND9_LWRES_BUILDINCLUDE=""
27025	BIND9_BIND9_BUILDINCLUDE=""
27026fi
27027
27028
27029BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
27030
27031
27032BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
27033
27034. $srcdir/version
27035BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}"
27036
27037
27038if test -z "$ac_configure_args"; then
27039	BIND9_CONFIGARGS="defaults"
27040else
27041	for a in $ac_configure_args
27042	do
27043		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
27044	done
27045fi
27046BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
27047BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
27048
27049
27050
27051LIBISC_API=$srcdir/lib/isc/api
27052
27053
27054LIBISCCC_API=$srcdir/lib/isccc/api
27055
27056
27057LIBISCCFG_API=$srcdir/lib/isccfg/api
27058
27059
27060LIBDNS_API=$srcdir/lib/dns/api
27061
27062
27063LIBBIND9_API=$srcdir/lib/bind9/api
27064
27065
27066LIBLWRES_API=$srcdir/lib/lwres/api
27067
27068
27069LIBIRS_API=$srcdir/lib/irs/api
27070
27071#
27072# Configure any DLZ drivers.
27073#
27074# If config.dlz.in selects one or more DLZ drivers, it will set
27075# CONTRIB_DLZ to a non-empty value, which will be our clue to
27076# build DLZ drivers in contrib.
27077#
27078# This section has to come after the libtool stuff because it needs to
27079# know how to name the driver object files.
27080#
27081
27082CONTRIB_DLZ=""
27083DLZ_DRIVER_INCLUDES=""
27084DLZ_DRIVER_LIBS=""
27085DLZ_DRIVER_SRCS=""
27086DLZ_DRIVER_OBJS=""
27087DLZ_SYSTEM_TEST=""
27088
27089#
27090# Configure support for building a shared library object
27091#
27092# Even when libtool is available it can't always be relied upon
27093# to build an object that can be dlopen()'ed, but this is necessary
27094# for building the dlzexternal system test, so we'll try it the
27095# old-fashioned way.
27096#
27097SO="so"
27098SO_CFLAGS=""
27099SO_LD=""
27100SO_TARGETS=""
27101
27102
27103# Check whether --with-dlopen was given.
27104if test "${with_dlopen+set}" = set; then :
27105  withval=$with_dlopen; dlopen="$withval"
27106else
27107  dlopen="yes"
27108fi
27109
27110
27111if test "$dlopen" = "yes"; then
27112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
27113$as_echo_n "checking for dlopen in -ldl... " >&6; }
27114if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
27115  $as_echo_n "(cached) " >&6
27116else
27117  ac_check_lib_save_LIBS=$LIBS
27118LIBS="-ldl  $LIBS"
27119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27120/* end confdefs.h.  */
27121
27122/* Override any GCC internal prototype to avoid an error.
27123   Use char because int might match the return type of a GCC
27124   builtin and then its argument prototype would still apply.  */
27125#ifdef __cplusplus
27126extern "C"
27127#endif
27128char dlopen ();
27129int
27130main ()
27131{
27132return dlopen ();
27133  ;
27134  return 0;
27135}
27136_ACEOF
27137if ac_fn_c_try_link "$LINENO"; then :
27138  ac_cv_lib_dl_dlopen=yes
27139else
27140  ac_cv_lib_dl_dlopen=no
27141fi
27142rm -f core conftest.err conftest.$ac_objext \
27143    conftest$ac_exeext conftest.$ac_ext
27144LIBS=$ac_check_lib_save_LIBS
27145fi
27146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
27147$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27148if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
27149  have_dl=yes
27150else
27151  have_dl=no
27152fi
27153
27154	if test "$have_dl" = "yes"; then
27155		LIBS="-ldl $LIBS"
27156	fi
27157        for ac_func in dlopen dlclose dlsym
27158do :
27159  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27160ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27161if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27162  cat >>confdefs.h <<_ACEOF
27163#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27164_ACEOF
27165
27166else
27167  dlopen=no
27168fi
27169done
27170
27171fi
27172
27173if test "$dlopen" = "yes"; then
27174	case $host in
27175		*-linux*)
27176			SO_CFLAGS="-fPIC"
27177			if test "$have_dl" = "yes"
27178			then
27179				SO_LD="${CC} -shared"
27180			else
27181				SO_LD="ld -shared"
27182			fi
27183			;;
27184		*-freebsd*|*-openbsd*|*-netbsd*)
27185			SO_CFLAGS="-fpic"
27186			SO_LD="ld -Bshareable -x"
27187			;;
27188		*-solaris*)
27189			SO_CFLAGS="-KPIC"
27190			SO_LD="ld -G -z text"
27191                        ;;
27192		*-hp-hpux*)
27193			SO=sl
27194			SO_CFLAGS="+z"
27195			SO_LD="ld -b"
27196                        ;;
27197		*)
27198			SO_CFLAGS="-fPIC"
27199			;;
27200	esac
27201
27202	if test "X$GCC" = "Xyes"; then
27203		SO_CFLAGS="-fPIC"
27204                test -n "$SO_LD" || SO_LD="${CC} -shared"
27205	fi
27206
27207	# If we still don't know how to make shared objects, don't make any.
27208	if test -n "$SO_LD"; then
27209		SO_TARGETS="\${SO_TARGETS}"
27210
27211$as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
27212
27213	fi
27214fi
27215
27216
27217
27218
27219
27220
27221# Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
27222#
27223# Permission to use, copy, modify, and distribute this software for any
27224# purpose with or without fee is hereby granted, provided that the above
27225# copyright notice and this permission notice appear in all copies.
27226#
27227# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
27228# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
27229# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
27230# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27231# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
27232# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27233# PERFORMANCE OF THIS SOFTWARE.
27234
27235#
27236# Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
27237#
27238dlzdir='${DLZ_DRIVER_DIR}'
27239
27240#
27241# Private autoconf macro to simplify configuring drivers:
27242#
27243#   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
27244#
27245# where:
27246#   DEFINE is FOO (to define -DDLZ_FOO)
27247#   DRIVER is dlz_foo_driver (sources without the .c)
27248#   INCLUDES is any necessary include definitions
27249#   LIBS is any necessary library definitions
27250#
27251
27252
27253#
27254# Check for the various DLZ drivers
27255#
27256
27257#
27258# Was --with-dlz-postgres specified?
27259#
27260
27261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
27262$as_echo_n "checking for Postgres DLZ driver... " >&6; }
27263
27264# Check whether --with-dlz_postgres was given.
27265if test "${with_dlz_postgres+set}" = set; then :
27266  withval=$with_dlz_postgres; use_dlz_postgres="$withval"
27267else
27268  use_dlz_postgres="no"
27269fi
27270
27271
27272if test "$use_dlz_postgres" = "yes"
27273then
27274	# User did not specify a path - guess it
27275	# Ask Postgres to tell us where it is
27276
27277	for ac_prog in pg_config
27278do
27279  # Extract the first word of "$ac_prog", so it can be a program name with args.
27280set dummy $ac_prog; ac_word=$2
27281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27282$as_echo_n "checking for $ac_word... " >&6; }
27283if test "${ac_cv_path_PG_CONFIG+set}" = set; then :
27284  $as_echo_n "(cached) " >&6
27285else
27286  case $PG_CONFIG in
27287  [\\/]* | ?:[\\/]*)
27288  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
27289  ;;
27290  *)
27291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27292for as_dir in $PATH
27293do
27294  IFS=$as_save_IFS
27295  test -z "$as_dir" && as_dir=.
27296    for ac_exec_ext in '' $ac_executable_extensions; do
27297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27298    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27300    break 2
27301  fi
27302done
27303  done
27304IFS=$as_save_IFS
27305
27306  ;;
27307esac
27308fi
27309PG_CONFIG=$ac_cv_path_PG_CONFIG
27310if test -n "$PG_CONFIG"; then
27311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
27312$as_echo "$PG_CONFIG" >&6; }
27313else
27314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27315$as_echo "no" >&6; }
27316fi
27317
27318
27319  test -n "$PG_CONFIG" && break
27320done
27321test -n "$PG_CONFIG" || PG_CONFIG="not found"
27322
27323
27324	if test "$PG_CONFIG" != "not found"
27325	then
27326		use_dlz_postgres=`$PG_CONFIG --includedir`
27327		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
27328	fi
27329fi
27330
27331if test "$use_dlz_postgres" = "yes"
27332then
27333	# User did not specify path and Postgres didn't say - guess it
27334
27335	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
27336	for d in $pgdirs
27337	do
27338		if test -f $d/include/libpq-fe.h
27339		then
27340			use_dlz_postgres=$d/include
27341			use_dlz_postgres_lib=$d/lib
27342			break
27343		fi
27344	done
27345fi
27346
27347if test "$use_dlz_postgres" = "yes"
27348then
27349	# Still no joy, give up
27350
27351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27352$as_echo "not found" >&6; }
27353	as_fn_error $? "No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
27354fi
27355
27356case "$use_dlz_postgres" in
27357	no)
27358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27359$as_echo "no" >&6; }
27360		;;
27361	*)
27362
27363	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
27364	for i in dlz_postgres_driver
27365	do
27366		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
27367		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
27368	done
27369	if test -n "-I$use_dlz_postgres"
27370	then
27371		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
27372	fi
27373	if test -n "-L$use_dlz_postgres_lib -lpq"
27374	then
27375		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
27376	fi
27377
27378
27379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
27380$as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
27381		;;
27382esac
27383
27384
27385#
27386# Was --with-dlz-mysql specified?
27387#
27388
27389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
27390$as_echo_n "checking for MySQL DLZ driver... " >&6; }
27391
27392# Check whether --with-dlz_mysql was given.
27393if test "${with_dlz_mysql+set}" = set; then :
27394  withval=$with_dlz_mysql; use_dlz_mysql="$withval"
27395else
27396  use_dlz_mysql="no"
27397fi
27398
27399
27400mysql_include=""
27401mysql_lib=""
27402if test "$use_dlz_mysql" = "yes"
27403then
27404	# User did not specify a path - guess it
27405	mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
27406	for d in $mysqldirs
27407	do
27408		if test -f $d/include/mysql/mysql.h
27409		then
27410			use_dlz_mysql=$d
27411			mysql_include=$d/include/mysql
27412			if test -d $d/lib/mysql
27413			then
27414				mysql_lib=$d/lib/mysql
27415			else
27416				mysql_lib=$d/lib
27417			fi
27418			break
27419		elif test -f $d/include/mysql.h
27420		then
27421			use_dlz_mysql=$d
27422			mysql_include=$d/include
27423			if test -d $d/lib/mysql
27424			then
27425				mysql_lib=$d/lib/mysql
27426			else
27427				mysql_lib=$d/lib
27428			fi
27429			break
27430		fi
27431	done
27432elif test "$use_dlz_mysql" != "no"
27433then
27434	d=$use_dlz_mysql
27435	if test -f $d/include/mysql/mysql.h
27436	then
27437		mysql_include=$d/include/mysql
27438		if test -d $d/lib/mysql
27439		then
27440			mysql_lib=$d/lib/mysql
27441		else
27442			mysql_lib=$d/lib
27443		fi
27444	elif test -f $d/include/mysql.h
27445	then
27446		mysql_include=$d/include
27447		if test -d $d/lib/mysql
27448		then
27449			mysql_lib=$d/lib/mysql
27450		else
27451			mysql_lib=$d/lib
27452		fi
27453	fi
27454fi
27455
27456if test "$use_dlz_mysql" = "yes"
27457then
27458	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27459$as_echo "not found" >&6; }
27460	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
27461fi
27462
27463case "$use_dlz_mysql" in
27464	no)
27465		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27466$as_echo "no" >&6; }
27467		;;
27468	*)
27469
27470	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
27471	for i in dlz_mysql_driver
27472	do
27473		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
27474		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
27475	done
27476	if test -n "-I${mysql_include}"
27477	then
27478		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
27479	fi
27480	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
27481	then
27482		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
27483	fi
27484
27485
27486		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
27487$as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
27488		;;
27489esac
27490
27491
27492#
27493# Was --with-dlz-bdb specified?
27494#
27495
27496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver" >&5
27497$as_echo_n "checking for Berkeley DB DLZ driver... " >&6; }
27498
27499# Check whether --with-dlz_bdb was given.
27500if test "${with_dlz_bdb+set}" = set; then :
27501  withval=$with_dlz_bdb; use_dlz_bdb="$withval"
27502else
27503  use_dlz_bdb="no"
27504fi
27505
27506
27507case "$use_dlz_bdb" in
27508	no)
27509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27510$as_echo "no" >&6; }
27511		;;
27512	*)
27513		if test "$use_dlz_bdb" = "yes"
27514		then
27515			# User did not specify a path - guess directories
27516			bdbdirs="/usr/local /usr/pkg /usr"
27517		elif test -d "$use_dlz_bdb"
27518		then
27519			# User specified directory and it exists
27520			bdbdirs="$use_dlz_bdb"
27521		else
27522			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27523$as_echo "not found" >&6; }
27524			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
27525			bdbdirs=""
27526		fi
27527
27528		# Use path we were given or guessed.  This is insanely
27529		# complicated because we have to search for a bunch of
27530		# platform-specific variations and have to check
27531		# separately for include and library directories.
27532
27533		# Set both to yes, so we can check them later
27534		dlz_bdb_inc="yes"
27535		dlz_bdb_libs="yes"
27536
27537		for dd in $bdbdirs
27538		do
27539			# Skip nonexistant directories
27540			if test ! -d "$dd"
27541			then
27542				continue
27543			fi
27544
27545			# Check other locations for includes.
27546			# Order is important (sigh).
27547
27548			bdb_incdirs="/ /db48/ /db47/ /db46/ /db45/ /db44/ /db43/ /db42/ /db41/ /db4/ /db/"
27549			for d in $bdb_incdirs
27550			do
27551				if test -f "$dd/include${d}db.h"
27552				then
27553					dlz_bdb_inc="-I$dd/include${d}"
27554					break
27555				fi
27556			done
27557
27558			# Give up on this directory if we couldn't
27559			# find the include subdir
27560
27561			if test "$dlz_bdb_inc" = "yes"
27562			then
27563				continue
27564			fi
27565
27566			# Look for libname other than libdb.so.
27567			# Order is important (sigh).
27568
27569			bdb_libnames="db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db"
27570			for d in $bdb_libnames
27571			do
27572				if test -f "$dd/lib/lib${d}.so"
27573				then
27574					if test "$dd" != "/usr"
27575					then
27576						dlz_bdb_libs="-L${dd}/lib "
27577					else
27578						dlz_bdb_libs=""
27579					fi
27580					dlz_bdb_libs="${dlz_bdb_libs}-l${d}"
27581					break
27582				fi
27583			done
27584
27585			# If we found both incdir and lib, we're done
27586			if test "$dlz_bdb_libs" != "yes"
27587			then
27588				break
27589			fi
27590
27591			# Otherwise, we're starting over
27592
27593			dlz_bdb_inc="yes"
27594			dlz_bdb_libs="yes"
27595		done
27596
27597		# Done searching, now make sure we got everything.
27598
27599		if test "$dlz_bdb_inc" = "yes"
27600		then
27601			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27602$as_echo "not found" >&6; }
27603			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
27604		fi
27605
27606		if test "$dlz_bdb_libs" = "yes"
27607		then
27608			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27609$as_echo "not found" >&6; }
27610			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
27611		fi
27612
27613
27614	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
27615	for i in dlz_bdb_driver dlz_bdbhpt_driver
27616	do
27617		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
27618		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
27619	done
27620	if test -n "$dlz_bdb_inc"
27621	then
27622		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
27623	fi
27624	if test -n "$dlz_bdb_libs"
27625	then
27626		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
27627	fi
27628
27629
27630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
27631$as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
27632
27633		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
27634
27635		;;
27636esac
27637
27638
27639#
27640# Was --with-dlz-filesystem specified?
27641#
27642
27643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
27644$as_echo_n "checking for file system DLZ driver... " >&6; }
27645
27646# Check whether --with-dlz_filesystem was given.
27647if test "${with_dlz_filesystem+set}" = set; then :
27648  withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
27649else
27650  use_dlz_filesystem="no"
27651fi
27652
27653
27654case "$use_dlz_filesystem" in
27655	no)
27656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27657$as_echo "no" >&6; }
27658		;;
27659	*)
27660
27661	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
27662	for i in dlz_filesystem_driver
27663	do
27664		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
27665		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
27666	done
27667	if test -n ""
27668	then
27669		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
27670	fi
27671	if test -n ""
27672	then
27673		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
27674	fi
27675
27676		DLZ_SYSTEM_TEST=filesystem
27677		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27678$as_echo "yes" >&6; }
27679		;;
27680esac
27681
27682
27683#
27684# Was --with-dlz-ldap specified?
27685#
27686
27687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
27688$as_echo_n "checking for LDAP DLZ driver... " >&6; }
27689
27690# Check whether --with-dlz_ldap was given.
27691if test "${with_dlz_ldap+set}" = set; then :
27692  withval=$with_dlz_ldap; use_dlz_ldap="$withval"
27693else
27694  use_dlz_ldap="no"
27695fi
27696
27697
27698if test "$use_dlz_ldap" = "yes"
27699then
27700	# User did not specify a path - guess it
27701	ldapdirs="/usr /usr/local /usr/pkg"
27702	for d in $ldapdirs
27703	do
27704		if test -f $d/include/ldap.h
27705		then
27706			use_dlz_ldap=$d
27707			break
27708		fi
27709	done
27710fi
27711
27712if test "$use_dlz_ldap" = "yes"
27713then
27714	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27715$as_echo "not found" >&6; }
27716	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
27717fi
27718
27719case "$use_dlz_ldap" in
27720	no)
27721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27722$as_echo "no" >&6; }
27723		;;
27724	*)
27725
27726	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
27727	for i in dlz_ldap_driver
27728	do
27729		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
27730		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
27731	done
27732	if test -n "-I$use_dlz_ldap/include"
27733	then
27734		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
27735	fi
27736	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
27737	then
27738		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
27739	fi
27740
27741
27742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
27743$as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
27744		;;
27745esac
27746
27747
27748#
27749# Was --with-dlz-odbc specified?
27750#
27751
27752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
27753$as_echo_n "checking for ODBC DLZ driver... " >&6; }
27754
27755# Check whether --with-dlz_odbc was given.
27756if test "${with_dlz_odbc+set}" = set; then :
27757  withval=$with_dlz_odbc; use_dlz_odbc="$withval"
27758else
27759  use_dlz_odbc="no"
27760fi
27761
27762
27763if test "$use_dlz_odbc" = "yes"
27764then
27765	# User did not specify a path - guess it
27766	odbcdirs="/usr /usr/local /usr/pkg"
27767	for d in $odbcdirs
27768	do
27769		if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
27770		then
27771			use_dlz_odbc=$d
27772			break
27773		fi
27774	done
27775fi
27776
27777case "$use_dlz_odbc" in
27778	no)
27779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27780$as_echo "no" >&6; }
27781		;;
27782	yes)
27783		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27784$as_echo "not found" >&6; }
27785		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
27786		;;
27787	*)
27788
27789	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
27790	for i in dlz_odbc_driver
27791	do
27792		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
27793		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
27794	done
27795	if test -n "-I$use_dlz_odbc/include"
27796	then
27797		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_odbc/include"
27798	fi
27799	if test -n "-L$use_dlz_odbc/lib -lodbc"
27800	then
27801		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_odbc/lib -lodbc"
27802	fi
27803
27804
27805		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
27806$as_echo "using ODBC from $use_dlz_odbc" >&6; }
27807		;;
27808esac
27809
27810
27811#
27812# Was --with-dlz-stub specified?
27813#
27814
27815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
27816$as_echo_n "checking for stub DLZ driver... " >&6; }
27817
27818# Check whether --with-dlz_stub was given.
27819if test "${with_dlz_stub+set}" = set; then :
27820  withval=$with_dlz_stub; use_dlz_stub="$withval"
27821else
27822  use_dlz_stub="no"
27823fi
27824
27825
27826case "$use_dlz_stub" in
27827	no)
27828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27829$as_echo "no" >&6; }
27830		;;
27831	*)
27832
27833
27834	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
27835	for i in dlz_stub_driver
27836	do
27837		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
27838		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
27839	done
27840	if test -n ""
27841	then
27842		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
27843	fi
27844	if test -n ""
27845	then
27846		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
27847	fi
27848
27849
27850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27851$as_echo "yes" >&6; }
27852		;;
27853esac
27854
27855# Add any additional DLZ drivers here.
27856
27857#
27858# Finally, some generic stuff that applies to all drivers, assuming
27859# we're compiling contrib DLZ drivers at all.
27860#
27861if test -n "$CONTRIB_DLZ"
27862then
27863        CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
27864
27865	#
27866	# Where to find DLZ driver header files.
27867	#
27868	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
27869
27870	#
27871	# Initialization and shutdown wrappers, helper functions.
27872	#
27873	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
27874	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
27875fi
27876
27877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
27878$as_echo_n "checking contributed DLZ drivers... " >&6; }
27879
27880if test -n "$CONTRIB_DLZ"
27881then
27882	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27883$as_echo "yes" >&6; }
27884	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
27885	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES"
27886
27887else
27888	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27889$as_echo "no" >&6; }
27890	DLZ_DRIVER_RULES=/dev/null
27891fi
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901if test "$cross_compiling" = "yes"; then
27902	if test -z "$BUILD_CC"; then
27903		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
27904	fi
27905	BUILD_CFLAGS="$BUILD_CFLAGS"
27906	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
27907	BUILD_LDFLAGS="$BUILD_LDFLAGS"
27908	BUILD_LIBS="$BUILD_LIBS"
27909else
27910	BUILD_CC="$CC"
27911	BUILD_CFLAGS="$CFLAGS"
27912	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
27913	BUILD_LDFLAGS="$LDFLAGS"
27914	BUILD_LIBS="$LIBS"
27915fi
27916
27917NEWFLAGS=""
27918for e in $BUILD_LDFLAGS ; do
27919    case $e in
27920	-L*)
27921	    case $host_os in
27922		netbsd*)
27923		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
27924		    NEWFLAGS="$NEWFLAGS $e $ee"
27925		    ;;
27926		freebsd*)
27927		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
27928		    NEWFLAGS="$NEWFLAGS $e $ee"
27929		    ;;
27930		solaris*)
27931		    ee=`echo $e | sed -e 's%^-L%-R%'`
27932		    NEWFLAGS="$NEWFLAGS $e $ee"
27933		    ;;
27934		*)
27935		    NEWFLAGS="$NEWFLAGS $e"
27936		    ;;
27937		esac
27938	    ;;
27939	*)
27940	    NEWFLAGS="$NEWFLAGS $e"
27941	    ;;
27942    esac
27943done
27944BUILD_LDFLAGS="$NEWFLAGS"
27945
27946NEWFLAGS=""
27947for e in $DNS_GSSAPI_LIBS ; do
27948    case $e in
27949	-L*)
27950	    case $host_os in
27951		netbsd*)
27952		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
27953		    NEWFLAGS="$NEWFLAGS $e $ee"
27954		    ;;
27955		freebsd*)
27956		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
27957		    NEWFLAGS="$NEWFLAGS $e $ee"
27958		    ;;
27959		solaris*)
27960		    ee=`echo $e | sed -e 's%^-L%-R%'`
27961		    NEWFLAGS="$NEWFLAGS $e $ee"
27962		    ;;
27963		*)
27964		    NEWFLAGS="$NEWFLAGS $e"
27965		    ;;
27966		esac
27967	    ;;
27968	*)
27969	    NEWFLAGS="$NEWFLAGS $e"
27970	    ;;
27971    esac
27972done
27973DNS_GSSAPI_LIBS="$NEWFLAGS"
27974
27975NEWFLAGS=""
27976for e in $DNS_CRYPTO_LIBS ; do
27977    case $e in
27978	-L*)
27979	    case $host_os in
27980		netbsd*)
27981		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
27982		    NEWFLAGS="$NEWFLAGS $e $ee"
27983		    ;;
27984		freebsd*)
27985		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
27986		    NEWFLAGS="$NEWFLAGS $e $ee"
27987		    ;;
27988		solaris*)
27989		    ee=`echo $e | sed -e 's%^-L%-R%'`
27990		    NEWFLAGS="$NEWFLAGS $e $ee"
27991		    ;;
27992		*)
27993		    NEWFLAGS="$NEWFLAGS $e"
27994		    ;;
27995		esac
27996	    ;;
27997	*)
27998	    NEWFLAGS="$NEWFLAGS $e"
27999	    ;;
28000    esac
28001done
28002DNS_CRYPTO_LIBS="$NEWFLAGS"
28003
28004
28005
28006
28007
28008
28009
28010#
28011# Commands to run at the end of config.status.
28012# Don't just put these into configure, it won't work right if somebody
28013# runs config.status directly (which autoconf allows).
28014#
28015
28016ac_config_commands="$ac_config_commands chmod"
28017
28018
28019#
28020# Files to configure.  These are listed here because we used to
28021# specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
28022# elsewhere if there's a good reason for doing so.
28023#
28024
28025ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/python/Makefile bin/python/dnssec-checkds.py bin/rndc/Makefile bin/tests/Makefile bin/tests/atomic/Makefile bin/tests/db/Makefile bin/tests/dst/Makefile bin/tests/hashes/Makefile bin/tests/headerdep_test.sh bin/tests/master/Makefile bin/tests/mem/Makefile bin/tests/names/Makefile bin/tests/net/Makefile bin/tests/rbt/Makefile bin/tests/resolver/Makefile bin/tests/sockaddr/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlz/prereq.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/named.conf bin/tests/system/ecdsa/prereq.sh bin/tests/system/filter-aaaa/Makefile bin/tests/system/gost/prereq.sh bin/tests/system/lwresd/Makefile bin/tests/system/rpz/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tests/system/tsiggss/Makefile bin/tests/tasks/Makefile bin/tests/timers/Makefile bin/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh bin/tools/Makefile contrib/check-secure-delegation.pl contrib/zone-edit.sh doc/Makefile doc/arm/Makefile doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-docbook-latex.xsl doc/xsl/isc-manpage.xsl isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/Makefile lib/export/Makefile lib/export/dns/Makefile lib/export/dns/include/Makefile lib/export/dns/include/dns/Makefile lib/export/dns/include/dst/Makefile lib/export/irs/Makefile lib/export/irs/include/Makefile lib/export/irs/include/irs/Makefile lib/export/isc/$thread_dir/Makefile lib/export/isc/$thread_dir/include/Makefile lib/export/isc/$thread_dir/include/isc/Makefile lib/export/isc/Makefile lib/export/isc/include/Makefile lib/export/isc/include/isc/Makefile lib/export/isc/nls/Makefile lib/export/isc/unix/Makefile lib/export/isc/unix/include/Makefile lib/export/isc/unix/include/isc/Makefile lib/export/isccfg/Makefile lib/export/isccfg/include/Makefile lib/export/isccfg/include/isccfg/Makefile lib/export/samples/Makefile lib/export/samples/Makefile-postinstall lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/tests/Makefile lib/isc/nls/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/lwres/Makefile lib/lwres/include/Makefile lib/lwres/include/lwres/Makefile lib/lwres/include/lwres/netdb.h lib/lwres/include/lwres/platform.h lib/lwres/man/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/tests/Makefile lib/tests/include/Makefile lib/tests/include/tests/Makefile unit/Makefile unit/unittest.sh"
28026
28027
28028#
28029# Do it
28030#
28031
28032cat >confcache <<\_ACEOF
28033# This file is a shell script that caches the results of configure
28034# tests run on this system so they can be shared between configure
28035# scripts and configure runs, see configure's option --config-cache.
28036# It is not useful on other systems.  If it contains results you don't
28037# want to keep, you may remove or edit it.
28038#
28039# config.status only pays attention to the cache file if you give it
28040# the --recheck option to rerun configure.
28041#
28042# `ac_cv_env_foo' variables (set or unset) will be overridden when
28043# loading this file, other *unset* `ac_cv_foo' will be assigned the
28044# following values.
28045
28046_ACEOF
28047
28048# The following way of writing the cache mishandles newlines in values,
28049# but we know of no workaround that is simple, portable, and efficient.
28050# So, we kill variables containing newlines.
28051# Ultrix sh set writes to stderr and can't be redirected directly,
28052# and sets the high bit in the cache file unless we assign to the vars.
28053(
28054  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28055    eval ac_val=\$$ac_var
28056    case $ac_val in #(
28057    *${as_nl}*)
28058      case $ac_var in #(
28059      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28060$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28061      esac
28062      case $ac_var in #(
28063      _ | IFS | as_nl) ;; #(
28064      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28065      *) { eval $ac_var=; unset $ac_var;} ;;
28066      esac ;;
28067    esac
28068  done
28069
28070  (set) 2>&1 |
28071    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28072    *${as_nl}ac_space=\ *)
28073      # `set' does not quote correctly, so add quotes: double-quote
28074      # substitution turns \\\\ into \\, and sed turns \\ into \.
28075      sed -n \
28076	"s/'/'\\\\''/g;
28077	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28078      ;; #(
28079    *)
28080      # `set' quotes correctly as required by POSIX, so do not add quotes.
28081      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28082      ;;
28083    esac |
28084    sort
28085) |
28086  sed '
28087     /^ac_cv_env_/b end
28088     t clear
28089     :clear
28090     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28091     t end
28092     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28093     :end' >>confcache
28094if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28095  if test -w "$cache_file"; then
28096    test "x$cache_file" != "x/dev/null" &&
28097      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28098$as_echo "$as_me: updating cache $cache_file" >&6;}
28099    cat confcache >$cache_file
28100  else
28101    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28102$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28103  fi
28104fi
28105rm -f confcache
28106
28107test "x$prefix" = xNONE && prefix=$ac_default_prefix
28108# Let make expand exec_prefix.
28109test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28110
28111DEFS=-DHAVE_CONFIG_H
28112
28113ac_libobjs=
28114ac_ltlibobjs=
28115U=
28116for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28117  # 1. Remove the extension, and $U if already installed.
28118  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28119  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28120  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28121  #    will be set to the directory where LIBOBJS objects are built.
28122  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28123  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28124done
28125LIBOBJS=$ac_libobjs
28126
28127LTLIBOBJS=$ac_ltlibobjs
28128
28129
28130
28131
28132: ${CONFIG_STATUS=./config.status}
28133ac_write_fail=0
28134ac_clean_files_save=$ac_clean_files
28135ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28136{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28137$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28138as_write_fail=0
28139cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28140#! $SHELL
28141# Generated by $as_me.
28142# Run this file to recreate the current configuration.
28143# Compiler output produced by configure, useful for debugging
28144# configure, is in config.log if it exists.
28145
28146debug=false
28147ac_cs_recheck=false
28148ac_cs_silent=false
28149
28150SHELL=\${CONFIG_SHELL-$SHELL}
28151export SHELL
28152_ASEOF
28153cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28154## -------------------- ##
28155## M4sh Initialization. ##
28156## -------------------- ##
28157
28158# Be more Bourne compatible
28159DUALCASE=1; export DUALCASE # for MKS sh
28160if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28161  emulate sh
28162  NULLCMD=:
28163  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28164  # is contrary to our usage.  Disable this feature.
28165  alias -g '${1+"$@"}'='"$@"'
28166  setopt NO_GLOB_SUBST
28167else
28168  case `(set -o) 2>/dev/null` in #(
28169  *posix*) :
28170    set -o posix ;; #(
28171  *) :
28172     ;;
28173esac
28174fi
28175
28176
28177as_nl='
28178'
28179export as_nl
28180# Printing a long string crashes Solaris 7 /usr/bin/printf.
28181as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28182as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28184# Prefer a ksh shell builtin over an external printf program on Solaris,
28185# but without wasting forks for bash or zsh.
28186if test -z "$BASH_VERSION$ZSH_VERSION" \
28187    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28188  as_echo='print -r --'
28189  as_echo_n='print -rn --'
28190elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28191  as_echo='printf %s\n'
28192  as_echo_n='printf %s'
28193else
28194  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28195    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28196    as_echo_n='/usr/ucb/echo -n'
28197  else
28198    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28199    as_echo_n_body='eval
28200      arg=$1;
28201      case $arg in #(
28202      *"$as_nl"*)
28203	expr "X$arg" : "X\\(.*\\)$as_nl";
28204	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28205      esac;
28206      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28207    '
28208    export as_echo_n_body
28209    as_echo_n='sh -c $as_echo_n_body as_echo'
28210  fi
28211  export as_echo_body
28212  as_echo='sh -c $as_echo_body as_echo'
28213fi
28214
28215# The user is always right.
28216if test "${PATH_SEPARATOR+set}" != set; then
28217  PATH_SEPARATOR=:
28218  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28219    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28220      PATH_SEPARATOR=';'
28221  }
28222fi
28223
28224
28225# IFS
28226# We need space, tab and new line, in precisely that order.  Quoting is
28227# there to prevent editors from complaining about space-tab.
28228# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28229# splitting by setting IFS to empty value.)
28230IFS=" ""	$as_nl"
28231
28232# Find who we are.  Look in the path if we contain no directory separator.
28233case $0 in #((
28234  *[\\/]* ) as_myself=$0 ;;
28235  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28236for as_dir in $PATH
28237do
28238  IFS=$as_save_IFS
28239  test -z "$as_dir" && as_dir=.
28240    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28241  done
28242IFS=$as_save_IFS
28243
28244     ;;
28245esac
28246# We did not find ourselves, most probably we were run as `sh COMMAND'
28247# in which case we are not to be found in the path.
28248if test "x$as_myself" = x; then
28249  as_myself=$0
28250fi
28251if test ! -f "$as_myself"; then
28252  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28253  exit 1
28254fi
28255
28256# Unset variables that we do not need and which cause bugs (e.g. in
28257# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28258# suppresses any "Segmentation fault" message there.  '((' could
28259# trigger a bug in pdksh 5.2.14.
28260for as_var in BASH_ENV ENV MAIL MAILPATH
28261do eval test x\${$as_var+set} = xset \
28262  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28263done
28264PS1='$ '
28265PS2='> '
28266PS4='+ '
28267
28268# NLS nuisances.
28269LC_ALL=C
28270export LC_ALL
28271LANGUAGE=C
28272export LANGUAGE
28273
28274# CDPATH.
28275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28276
28277
28278# as_fn_error STATUS ERROR [LINENO LOG_FD]
28279# ----------------------------------------
28280# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28281# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28282# script with STATUS, using 1 if that was 0.
28283as_fn_error ()
28284{
28285  as_status=$1; test $as_status -eq 0 && as_status=1
28286  if test "$4"; then
28287    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28288    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28289  fi
28290  $as_echo "$as_me: error: $2" >&2
28291  as_fn_exit $as_status
28292} # as_fn_error
28293
28294
28295# as_fn_set_status STATUS
28296# -----------------------
28297# Set $? to STATUS, without forking.
28298as_fn_set_status ()
28299{
28300  return $1
28301} # as_fn_set_status
28302
28303# as_fn_exit STATUS
28304# -----------------
28305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28306as_fn_exit ()
28307{
28308  set +e
28309  as_fn_set_status $1
28310  exit $1
28311} # as_fn_exit
28312
28313# as_fn_unset VAR
28314# ---------------
28315# Portably unset VAR.
28316as_fn_unset ()
28317{
28318  { eval $1=; unset $1;}
28319}
28320as_unset=as_fn_unset
28321# as_fn_append VAR VALUE
28322# ----------------------
28323# Append the text in VALUE to the end of the definition contained in VAR. Take
28324# advantage of any shell optimizations that allow amortized linear growth over
28325# repeated appends, instead of the typical quadratic growth present in naive
28326# implementations.
28327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28328  eval 'as_fn_append ()
28329  {
28330    eval $1+=\$2
28331  }'
28332else
28333  as_fn_append ()
28334  {
28335    eval $1=\$$1\$2
28336  }
28337fi # as_fn_append
28338
28339# as_fn_arith ARG...
28340# ------------------
28341# Perform arithmetic evaluation on the ARGs, and store the result in the
28342# global $as_val. Take advantage of shells that can avoid forks. The arguments
28343# must be portable across $(()) and expr.
28344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28345  eval 'as_fn_arith ()
28346  {
28347    as_val=$(( $* ))
28348  }'
28349else
28350  as_fn_arith ()
28351  {
28352    as_val=`expr "$@" || test $? -eq 1`
28353  }
28354fi # as_fn_arith
28355
28356
28357if expr a : '\(a\)' >/dev/null 2>&1 &&
28358   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28359  as_expr=expr
28360else
28361  as_expr=false
28362fi
28363
28364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28365  as_basename=basename
28366else
28367  as_basename=false
28368fi
28369
28370if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28371  as_dirname=dirname
28372else
28373  as_dirname=false
28374fi
28375
28376as_me=`$as_basename -- "$0" ||
28377$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28378	 X"$0" : 'X\(//\)$' \| \
28379	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28380$as_echo X/"$0" |
28381    sed '/^.*\/\([^/][^/]*\)\/*$/{
28382	    s//\1/
28383	    q
28384	  }
28385	  /^X\/\(\/\/\)$/{
28386	    s//\1/
28387	    q
28388	  }
28389	  /^X\/\(\/\).*/{
28390	    s//\1/
28391	    q
28392	  }
28393	  s/.*/./; q'`
28394
28395# Avoid depending upon Character Ranges.
28396as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28397as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28398as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28399as_cr_digits='0123456789'
28400as_cr_alnum=$as_cr_Letters$as_cr_digits
28401
28402ECHO_C= ECHO_N= ECHO_T=
28403case `echo -n x` in #(((((
28404-n*)
28405  case `echo 'xy\c'` in
28406  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28407  xy)  ECHO_C='\c';;
28408  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28409       ECHO_T='	';;
28410  esac;;
28411*)
28412  ECHO_N='-n';;
28413esac
28414
28415rm -f conf$$ conf$$.exe conf$$.file
28416if test -d conf$$.dir; then
28417  rm -f conf$$.dir/conf$$.file
28418else
28419  rm -f conf$$.dir
28420  mkdir conf$$.dir 2>/dev/null
28421fi
28422if (echo >conf$$.file) 2>/dev/null; then
28423  if ln -s conf$$.file conf$$ 2>/dev/null; then
28424    as_ln_s='ln -s'
28425    # ... but there are two gotchas:
28426    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28427    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28428    # In both cases, we have to default to `cp -p'.
28429    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28430      as_ln_s='cp -p'
28431  elif ln conf$$.file conf$$ 2>/dev/null; then
28432    as_ln_s=ln
28433  else
28434    as_ln_s='cp -p'
28435  fi
28436else
28437  as_ln_s='cp -p'
28438fi
28439rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28440rmdir conf$$.dir 2>/dev/null
28441
28442
28443# as_fn_mkdir_p
28444# -------------
28445# Create "$as_dir" as a directory, including parents if necessary.
28446as_fn_mkdir_p ()
28447{
28448
28449  case $as_dir in #(
28450  -*) as_dir=./$as_dir;;
28451  esac
28452  test -d "$as_dir" || eval $as_mkdir_p || {
28453    as_dirs=
28454    while :; do
28455      case $as_dir in #(
28456      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28457      *) as_qdir=$as_dir;;
28458      esac
28459      as_dirs="'$as_qdir' $as_dirs"
28460      as_dir=`$as_dirname -- "$as_dir" ||
28461$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28462	 X"$as_dir" : 'X\(//\)[^/]' \| \
28463	 X"$as_dir" : 'X\(//\)$' \| \
28464	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28465$as_echo X"$as_dir" |
28466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28467	    s//\1/
28468	    q
28469	  }
28470	  /^X\(\/\/\)[^/].*/{
28471	    s//\1/
28472	    q
28473	  }
28474	  /^X\(\/\/\)$/{
28475	    s//\1/
28476	    q
28477	  }
28478	  /^X\(\/\).*/{
28479	    s//\1/
28480	    q
28481	  }
28482	  s/.*/./; q'`
28483      test -d "$as_dir" && break
28484    done
28485    test -z "$as_dirs" || eval "mkdir $as_dirs"
28486  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28487
28488
28489} # as_fn_mkdir_p
28490if mkdir -p . 2>/dev/null; then
28491  as_mkdir_p='mkdir -p "$as_dir"'
28492else
28493  test -d ./-p && rmdir ./-p
28494  as_mkdir_p=false
28495fi
28496
28497if test -x / >/dev/null 2>&1; then
28498  as_test_x='test -x'
28499else
28500  if ls -dL / >/dev/null 2>&1; then
28501    as_ls_L_option=L
28502  else
28503    as_ls_L_option=
28504  fi
28505  as_test_x='
28506    eval sh -c '\''
28507      if test -d "$1"; then
28508	test -d "$1/.";
28509      else
28510	case $1 in #(
28511	-*)set "./$1";;
28512	esac;
28513	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28514	???[sx]*):;;*)false;;esac;fi
28515    '\'' sh
28516  '
28517fi
28518as_executable_p=$as_test_x
28519
28520# Sed expression to map a string onto a valid CPP name.
28521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28522
28523# Sed expression to map a string onto a valid variable name.
28524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28525
28526
28527exec 6>&1
28528## ----------------------------------- ##
28529## Main body of $CONFIG_STATUS script. ##
28530## ----------------------------------- ##
28531_ASEOF
28532test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28533
28534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28535# Save the log message, to keep $0 and so on meaningful, and to
28536# report actual input values of CONFIG_FILES etc. instead of their
28537# values after options handling.
28538ac_log="
28539This file was extended by $as_me, which was
28540generated by GNU Autoconf 2.67.  Invocation command line was
28541
28542  CONFIG_FILES    = $CONFIG_FILES
28543  CONFIG_HEADERS  = $CONFIG_HEADERS
28544  CONFIG_LINKS    = $CONFIG_LINKS
28545  CONFIG_COMMANDS = $CONFIG_COMMANDS
28546  $ $0 $@
28547
28548on `(hostname || uname -n) 2>/dev/null | sed 1q`
28549"
28550
28551_ACEOF
28552
28553case $ac_config_files in *"
28554"*) set x $ac_config_files; shift; ac_config_files=$*;;
28555esac
28556
28557case $ac_config_headers in *"
28558"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28559esac
28560
28561
28562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28563# Files that config.status was made for.
28564config_files="$ac_config_files"
28565config_headers="$ac_config_headers"
28566config_commands="$ac_config_commands"
28567
28568_ACEOF
28569
28570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28571ac_cs_usage="\
28572\`$as_me' instantiates files and other configuration actions
28573from templates according to the current configuration.  Unless the files
28574and actions are specified as TAGs, all are instantiated by default.
28575
28576Usage: $0 [OPTION]... [TAG]...
28577
28578  -h, --help       print this help, then exit
28579  -V, --version    print version number and configuration settings, then exit
28580      --config     print configuration, then exit
28581  -q, --quiet, --silent
28582                   do not print progress messages
28583  -d, --debug      don't remove temporary files
28584      --recheck    update $as_me by reconfiguring in the same conditions
28585      --file=FILE[:TEMPLATE]
28586                   instantiate the configuration file FILE
28587      --header=FILE[:TEMPLATE]
28588                   instantiate the configuration header FILE
28589
28590Configuration files:
28591$config_files
28592
28593Configuration headers:
28594$config_headers
28595
28596Configuration commands:
28597$config_commands
28598
28599Report bugs to the package provider."
28600
28601_ACEOF
28602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28603ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28604ac_cs_version="\\
28605config.status
28606configured by $0, generated by GNU Autoconf 2.67,
28607  with options \\"\$ac_cs_config\\"
28608
28609Copyright (C) 2010 Free Software Foundation, Inc.
28610This config.status script is free software; the Free Software Foundation
28611gives unlimited permission to copy, distribute and modify it."
28612
28613ac_pwd='$ac_pwd'
28614srcdir='$srcdir'
28615INSTALL='$INSTALL'
28616test -n "\$AWK" || AWK=awk
28617_ACEOF
28618
28619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28620# The default lists apply if the user does not specify any file.
28621ac_need_defaults=:
28622while test $# != 0
28623do
28624  case $1 in
28625  --*=?*)
28626    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28627    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28628    ac_shift=:
28629    ;;
28630  --*=)
28631    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28632    ac_optarg=
28633    ac_shift=:
28634    ;;
28635  *)
28636    ac_option=$1
28637    ac_optarg=$2
28638    ac_shift=shift
28639    ;;
28640  esac
28641
28642  case $ac_option in
28643  # Handling of the options.
28644  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28645    ac_cs_recheck=: ;;
28646  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28647    $as_echo "$ac_cs_version"; exit ;;
28648  --config | --confi | --conf | --con | --co | --c )
28649    $as_echo "$ac_cs_config"; exit ;;
28650  --debug | --debu | --deb | --de | --d | -d )
28651    debug=: ;;
28652  --file | --fil | --fi | --f )
28653    $ac_shift
28654    case $ac_optarg in
28655    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28656    '') as_fn_error $? "missing file argument" ;;
28657    esac
28658    as_fn_append CONFIG_FILES " '$ac_optarg'"
28659    ac_need_defaults=false;;
28660  --header | --heade | --head | --hea )
28661    $ac_shift
28662    case $ac_optarg in
28663    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28664    esac
28665    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28666    ac_need_defaults=false;;
28667  --he | --h)
28668    # Conflict between --help and --header
28669    as_fn_error $? "ambiguous option: \`$1'
28670Try \`$0 --help' for more information.";;
28671  --help | --hel | -h )
28672    $as_echo "$ac_cs_usage"; exit ;;
28673  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28674  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28675    ac_cs_silent=: ;;
28676
28677  # This is an error.
28678  -*) as_fn_error $? "unrecognized option: \`$1'
28679Try \`$0 --help' for more information." ;;
28680
28681  *) as_fn_append ac_config_targets " $1"
28682     ac_need_defaults=false ;;
28683
28684  esac
28685  shift
28686done
28687
28688ac_configure_extra_args=
28689
28690if $ac_cs_silent; then
28691  exec 6>/dev/null
28692  ac_configure_extra_args="$ac_configure_extra_args --silent"
28693fi
28694
28695_ACEOF
28696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28697if \$ac_cs_recheck; then
28698  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28699  shift
28700  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28701  CONFIG_SHELL='$SHELL'
28702  export CONFIG_SHELL
28703  exec "\$@"
28704fi
28705
28706_ACEOF
28707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28708exec 5>>config.log
28709{
28710  echo
28711  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28712## Running $as_me. ##
28713_ASBOX
28714  $as_echo "$ac_log"
28715} >&5
28716
28717_ACEOF
28718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28719#
28720# INIT-COMMANDS
28721#
28722atfdir=`pwd`/unit/atf
28723
28724_ACEOF
28725
28726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28727
28728# Handling of arguments.
28729for ac_config_target in $ac_config_targets
28730do
28731  case $ac_config_target in
28732    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28733    "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
28734    "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
28735    "atf-config") CONFIG_COMMANDS="$CONFIG_COMMANDS atf-config" ;;
28736    "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
28737    "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
28738    "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
28739    "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
28740    "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
28741    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28742    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
28743    "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
28744    "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
28745    "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
28746    "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
28747    "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
28748    "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
28749    "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
28750    "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
28751    "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
28752    "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
28753    "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
28754    "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
28755    "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
28756    "bin/tests/atomic/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/atomic/Makefile" ;;
28757    "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;;
28758    "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;;
28759    "bin/tests/hashes/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/hashes/Makefile" ;;
28760    "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
28761    "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;;
28762    "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;;
28763    "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;;
28764    "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;;
28765    "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
28766    "bin/tests/resolver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/resolver/Makefile" ;;
28767    "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
28768    "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
28769    "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
28770    "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;;
28771    "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
28772    "bin/tests/system/dlzexternal/ns1/named.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/named.conf" ;;
28773    "bin/tests/system/ecdsa/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/ecdsa/prereq.sh" ;;
28774    "bin/tests/system/filter-aaaa/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/filter-aaaa/Makefile" ;;
28775    "bin/tests/system/gost/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/gost/prereq.sh" ;;
28776    "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
28777    "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
28778    "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
28779    "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
28780    "bin/tests/system/tsiggss/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tsiggss/Makefile" ;;
28781    "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
28782    "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;;
28783    "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
28784    "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
28785    "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
28786    "contrib/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/check-secure-delegation.pl" ;;
28787    "contrib/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/zone-edit.sh" ;;
28788    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28789    "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
28790    "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
28791    "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
28792    "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
28793    "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
28794    "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
28795    "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
28796    "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
28797    "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;;
28798    "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
28799    "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
28800    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28801    "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
28802    "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
28803    "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
28804    "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
28805    "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
28806    "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
28807    "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
28808    "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
28809    "lib/export/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/Makefile" ;;
28810    "lib/export/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/Makefile" ;;
28811    "lib/export/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/Makefile" ;;
28812    "lib/export/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dns/Makefile" ;;
28813    "lib/export/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dst/Makefile" ;;
28814    "lib/export/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/Makefile" ;;
28815    "lib/export/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/Makefile" ;;
28816    "lib/export/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/irs/Makefile" ;;
28817    "lib/export/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/Makefile" ;;
28818    "lib/export/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/Makefile" ;;
28819    "lib/export/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/isc/Makefile" ;;
28820    "lib/export/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/Makefile" ;;
28821    "lib/export/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/Makefile" ;;
28822    "lib/export/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/isc/Makefile" ;;
28823    "lib/export/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/nls/Makefile" ;;
28824    "lib/export/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/Makefile" ;;
28825    "lib/export/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/Makefile" ;;
28826    "lib/export/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/isc/Makefile" ;;
28827    "lib/export/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/Makefile" ;;
28828    "lib/export/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/Makefile" ;;
28829    "lib/export/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/isccfg/Makefile" ;;
28830    "lib/export/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile" ;;
28831    "lib/export/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile-postinstall" ;;
28832    "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
28833    "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
28834    "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
28835    "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
28836    "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
28837    "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
28838    "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
28839    "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
28840    "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
28841    "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
28842    "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
28843    "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
28844    "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
28845    "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
28846    "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
28847    "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
28848    "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
28849    "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
28850    "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
28851    "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
28852    "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
28853    "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
28854    "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
28855    "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
28856    "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
28857    "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
28858    "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;;
28859    "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;;
28860    "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
28861    "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
28862    "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
28863    "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;;
28864    "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
28865    "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
28866    "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
28867    "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;;
28868    "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;;
28869    "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
28870    "unit/Makefile") CONFIG_FILES="$CONFIG_FILES unit/Makefile" ;;
28871    "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
28872
28873  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28874  esac
28875done
28876
28877
28878# If the user did not use the arguments to specify the items to instantiate,
28879# then the envvar interface is used.  Set only those that are not.
28880# We use the long form for the default assignment because of an extremely
28881# bizarre bug on SunOS 4.1.3.
28882if $ac_need_defaults; then
28883  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28884  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28885  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28886fi
28887
28888# Have a temporary directory for convenience.  Make it in the build tree
28889# simply because there is no reason against having it here, and in addition,
28890# creating and moving files from /tmp can sometimes cause problems.
28891# Hook for its removal unless debugging.
28892# Note that there is a small window in which the directory will not be cleaned:
28893# after its creation but before its name has been assigned to `$tmp'.
28894$debug ||
28895{
28896  tmp=
28897  trap 'exit_status=$?
28898  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28899' 0
28900  trap 'as_fn_exit 1' 1 2 13 15
28901}
28902# Create a (secure) tmp directory for tmp files.
28903
28904{
28905  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28906  test -n "$tmp" && test -d "$tmp"
28907}  ||
28908{
28909  tmp=./conf$$-$RANDOM
28910  (umask 077 && mkdir "$tmp")
28911} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28912
28913# Set up the scripts for CONFIG_FILES section.
28914# No need to generate them if there are no CONFIG_FILES.
28915# This happens for instance with `./config.status config.h'.
28916if test -n "$CONFIG_FILES"; then
28917
28918if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28919  ac_cs_awk_getline=:
28920  ac_cs_awk_pipe_init=
28921  ac_cs_awk_read_file='
28922      while ((getline aline < (F[key])) > 0)
28923	print(aline)
28924      close(F[key])'
28925  ac_cs_awk_pipe_fini=
28926else
28927  ac_cs_awk_getline=false
28928  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28929  ac_cs_awk_read_file='
28930      print "|#_!!_#|"
28931      print "cat " F[key] " &&"
28932      '$ac_cs_awk_pipe_init
28933  # The final `:' finishes the AND list.
28934  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28935fi
28936ac_cr=`echo X | tr X '\015'`
28937# On cygwin, bash can eat \r inside `` if the user requested igncr.
28938# But we know of no other shell where ac_cr would be empty at this
28939# point, so we can use a bashism as a fallback.
28940if test "x$ac_cr" = x; then
28941  eval ac_cr=\$\'\\r\'
28942fi
28943ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28944if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28945  ac_cs_awk_cr='\\r'
28946else
28947  ac_cs_awk_cr=$ac_cr
28948fi
28949
28950echo 'BEGIN {' >"$tmp/subs1.awk" &&
28951_ACEOF
28952
28953# Create commands to substitute file output variables.
28954{
28955  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28956  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28957  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28958  echo "_ACAWK" &&
28959  echo "_ACEOF"
28960} >conf$$files.sh &&
28961. ./conf$$files.sh ||
28962  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28963rm -f conf$$files.sh
28964
28965{
28966  echo "cat >conf$$subs.awk <<_ACEOF" &&
28967  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28968  echo "_ACEOF"
28969} >conf$$subs.sh ||
28970  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28971ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28972ac_delim='%!_!# '
28973for ac_last_try in false false false false false :; do
28974  . ./conf$$subs.sh ||
28975    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28976
28977  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28978  if test $ac_delim_n = $ac_delim_num; then
28979    break
28980  elif $ac_last_try; then
28981    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28982  else
28983    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28984  fi
28985done
28986rm -f conf$$subs.sh
28987
28988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28989cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28990_ACEOF
28991sed -n '
28992h
28993s/^/S["/; s/!.*/"]=/
28994p
28995g
28996s/^[^!]*!//
28997:repl
28998t repl
28999s/'"$ac_delim"'$//
29000t delim
29001:nl
29002h
29003s/\(.\{148\}\)..*/\1/
29004t more1
29005s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29006p
29007n
29008b repl
29009:more1
29010s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29011p
29012g
29013s/.\{148\}//
29014t nl
29015:delim
29016h
29017s/\(.\{148\}\)..*/\1/
29018t more2
29019s/["\\]/\\&/g; s/^/"/; s/$/"/
29020p
29021b
29022:more2
29023s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29024p
29025g
29026s/.\{148\}//
29027t delim
29028' <conf$$subs.awk | sed '
29029/^[^""]/{
29030  N
29031  s/\n//
29032}
29033' >>$CONFIG_STATUS || ac_write_fail=1
29034rm -f conf$$subs.awk
29035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29036_ACAWK
29037cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29038  for (key in S) S_is_set[key] = 1
29039  FS = ""
29040  \$ac_cs_awk_pipe_init
29041}
29042{
29043  line = $ 0
29044  nfields = split(line, field, "@")
29045  substed = 0
29046  len = length(field[1])
29047  for (i = 2; i < nfields; i++) {
29048    key = field[i]
29049    keylen = length(key)
29050    if (S_is_set[key]) {
29051      value = S[key]
29052      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29053      len += length(value) + length(field[++i])
29054      substed = 1
29055    } else
29056      len += 1 + keylen
29057  }
29058  if (nfields == 3 && !substed) {
29059    key = field[2]
29060    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
29061      \$ac_cs_awk_read_file
29062      next
29063    }
29064  }
29065  print line
29066}
29067\$ac_cs_awk_pipe_fini
29068_ACAWK
29069_ACEOF
29070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29071if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29072  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29073else
29074  cat
29075fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29076  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29077_ACEOF
29078
29079# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29080# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29081# trailing colons and then remove the whole line if VPATH becomes empty
29082# (actually we leave an empty line to preserve line numbers).
29083if test "x$srcdir" = x.; then
29084  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
29085h
29086s///
29087s/^/:/
29088s/[	 ]*$/:/
29089s/:\$(srcdir):/:/g
29090s/:\${srcdir}:/:/g
29091s/:@srcdir@:/:/g
29092s/^:*//
29093s/:*$//
29094x
29095s/\(=[	 ]*\).*/\1/
29096G
29097s/\n//
29098s/^[^=]*=[	 ]*$//
29099}'
29100fi
29101
29102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29103fi # test -n "$CONFIG_FILES"
29104
29105# Set up the scripts for CONFIG_HEADERS section.
29106# No need to generate them if there are no CONFIG_HEADERS.
29107# This happens for instance with `./config.status Makefile'.
29108if test -n "$CONFIG_HEADERS"; then
29109cat >"$tmp/defines.awk" <<\_ACAWK ||
29110BEGIN {
29111_ACEOF
29112
29113# Transform confdefs.h into an awk script `defines.awk', embedded as
29114# here-document in config.status, that substitutes the proper values into
29115# config.h.in to produce config.h.
29116
29117# Create a delimiter string that does not exist in confdefs.h, to ease
29118# handling of long lines.
29119ac_delim='%!_!# '
29120for ac_last_try in false false :; do
29121  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29122  if test -z "$ac_t"; then
29123    break
29124  elif $ac_last_try; then
29125    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29126  else
29127    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29128  fi
29129done
29130
29131# For the awk script, D is an array of macro values keyed by name,
29132# likewise P contains macro parameters if any.  Preserve backslash
29133# newline sequences.
29134
29135ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29136sed -n '
29137s/.\{148\}/&'"$ac_delim"'/g
29138t rset
29139:rset
29140s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29141t def
29142d
29143:def
29144s/\\$//
29145t bsnl
29146s/["\\]/\\&/g
29147s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29148D["\1"]=" \3"/p
29149s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29150d
29151:bsnl
29152s/["\\]/\\&/g
29153s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29154D["\1"]=" \3\\\\\\n"\\/p
29155t cont
29156s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29157t cont
29158d
29159:cont
29160n
29161s/.\{148\}/&'"$ac_delim"'/g
29162t clear
29163:clear
29164s/\\$//
29165t bsnlc
29166s/["\\]/\\&/g; s/^/"/; s/$/"/p
29167d
29168:bsnlc
29169s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29170b cont
29171' <confdefs.h | sed '
29172s/'"$ac_delim"'/"\\\
29173"/g' >>$CONFIG_STATUS || ac_write_fail=1
29174
29175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29176  for (key in D) D_is_set[key] = 1
29177  FS = ""
29178}
29179/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29180  line = \$ 0
29181  split(line, arg, " ")
29182  if (arg[1] == "#") {
29183    defundef = arg[2]
29184    mac1 = arg[3]
29185  } else {
29186    defundef = substr(arg[1], 2)
29187    mac1 = arg[2]
29188  }
29189  split(mac1, mac2, "(") #)
29190  macro = mac2[1]
29191  prefix = substr(line, 1, index(line, defundef) - 1)
29192  if (D_is_set[macro]) {
29193    # Preserve the white space surrounding the "#".
29194    print prefix "define", macro P[macro] D[macro]
29195    next
29196  } else {
29197    # Replace #undef with comments.  This is necessary, for example,
29198    # in the case of _POSIX_SOURCE, which is predefined and required
29199    # on some systems where configure will not decide to define it.
29200    if (defundef == "undef") {
29201      print "/*", prefix defundef, macro, "*/"
29202      next
29203    }
29204  }
29205}
29206{ print }
29207_ACAWK
29208_ACEOF
29209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29210  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29211fi # test -n "$CONFIG_HEADERS"
29212
29213
29214eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29215shift
29216for ac_tag
29217do
29218  case $ac_tag in
29219  :[FHLC]) ac_mode=$ac_tag; continue;;
29220  esac
29221  case $ac_mode$ac_tag in
29222  :[FHL]*:*);;
29223  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29224  :[FH]-) ac_tag=-:-;;
29225  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29226  esac
29227  ac_save_IFS=$IFS
29228  IFS=:
29229  set x $ac_tag
29230  IFS=$ac_save_IFS
29231  shift
29232  ac_file=$1
29233  shift
29234
29235  case $ac_mode in
29236  :L) ac_source=$1;;
29237  :[FH])
29238    ac_file_inputs=
29239    for ac_f
29240    do
29241      case $ac_f in
29242      -) ac_f="$tmp/stdin";;
29243      *) # Look for the file first in the build tree, then in the source tree
29244	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29245	 # because $ac_f cannot contain `:'.
29246	 test -f "$ac_f" ||
29247	   case $ac_f in
29248	   [\\/$]*) false;;
29249	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29250	   esac ||
29251	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29252      esac
29253      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29254      as_fn_append ac_file_inputs " '$ac_f'"
29255    done
29256
29257    # Let's still pretend it is `configure' which instantiates (i.e., don't
29258    # use $as_me), people would be surprised to read:
29259    #    /* config.h.  Generated by config.status.  */
29260    configure_input='Generated from '`
29261	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29262	`' by configure.'
29263    if test x"$ac_file" != x-; then
29264      configure_input="$ac_file.  $configure_input"
29265      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29266$as_echo "$as_me: creating $ac_file" >&6;}
29267    fi
29268    # Neutralize special characters interpreted by sed in replacement strings.
29269    case $configure_input in #(
29270    *\&* | *\|* | *\\* )
29271       ac_sed_conf_input=`$as_echo "$configure_input" |
29272       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29273    *) ac_sed_conf_input=$configure_input;;
29274    esac
29275
29276    case $ac_tag in
29277    *:-:* | *:-) cat >"$tmp/stdin" \
29278      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29279    esac
29280    ;;
29281  esac
29282
29283  ac_dir=`$as_dirname -- "$ac_file" ||
29284$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29285	 X"$ac_file" : 'X\(//\)[^/]' \| \
29286	 X"$ac_file" : 'X\(//\)$' \| \
29287	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29288$as_echo X"$ac_file" |
29289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29290	    s//\1/
29291	    q
29292	  }
29293	  /^X\(\/\/\)[^/].*/{
29294	    s//\1/
29295	    q
29296	  }
29297	  /^X\(\/\/\)$/{
29298	    s//\1/
29299	    q
29300	  }
29301	  /^X\(\/\).*/{
29302	    s//\1/
29303	    q
29304	  }
29305	  s/.*/./; q'`
29306  as_dir="$ac_dir"; as_fn_mkdir_p
29307  ac_builddir=.
29308
29309case "$ac_dir" in
29310.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29311*)
29312  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29313  # A ".." for each directory in $ac_dir_suffix.
29314  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29315  case $ac_top_builddir_sub in
29316  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29317  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29318  esac ;;
29319esac
29320ac_abs_top_builddir=$ac_pwd
29321ac_abs_builddir=$ac_pwd$ac_dir_suffix
29322# for backward compatibility:
29323ac_top_builddir=$ac_top_build_prefix
29324
29325case $srcdir in
29326  .)  # We are building in place.
29327    ac_srcdir=.
29328    ac_top_srcdir=$ac_top_builddir_sub
29329    ac_abs_top_srcdir=$ac_pwd ;;
29330  [\\/]* | ?:[\\/]* )  # Absolute name.
29331    ac_srcdir=$srcdir$ac_dir_suffix;
29332    ac_top_srcdir=$srcdir
29333    ac_abs_top_srcdir=$srcdir ;;
29334  *) # Relative name.
29335    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29336    ac_top_srcdir=$ac_top_build_prefix$srcdir
29337    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29338esac
29339ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29340
29341
29342  case $ac_mode in
29343  :F)
29344  #
29345  # CONFIG_FILE
29346  #
29347
29348  case $INSTALL in
29349  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29350  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29351  esac
29352_ACEOF
29353
29354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29355# If the template does not know about datarootdir, expand it.
29356# FIXME: This hack should be removed a few years after 2.60.
29357ac_datarootdir_hack=; ac_datarootdir_seen=
29358ac_sed_dataroot='
29359/datarootdir/ {
29360  p
29361  q
29362}
29363/@datadir@/p
29364/@docdir@/p
29365/@infodir@/p
29366/@localedir@/p
29367/@mandir@/p'
29368case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29369*datarootdir*) ac_datarootdir_seen=yes;;
29370*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29371  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29372$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29373_ACEOF
29374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29375  ac_datarootdir_hack='
29376  s&@datadir@&$datadir&g
29377  s&@docdir@&$docdir&g
29378  s&@infodir@&$infodir&g
29379  s&@localedir@&$localedir&g
29380  s&@mandir@&$mandir&g
29381  s&\\\${datarootdir}&$datarootdir&g' ;;
29382esac
29383_ACEOF
29384
29385# Neutralize VPATH when `$srcdir' = `.'.
29386# Shell code in configure.ac might set extrasub.
29387# FIXME: do we really want to maintain this feature?
29388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29389ac_sed_extra="$ac_vpsub
29390$extrasub
29391_ACEOF
29392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29393:t
29394/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29395s|@configure_input@|$ac_sed_conf_input|;t t
29396s&@top_builddir@&$ac_top_builddir_sub&;t t
29397s&@top_build_prefix@&$ac_top_build_prefix&;t t
29398s&@srcdir@&$ac_srcdir&;t t
29399s&@abs_srcdir@&$ac_abs_srcdir&;t t
29400s&@top_srcdir@&$ac_top_srcdir&;t t
29401s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29402s&@builddir@&$ac_builddir&;t t
29403s&@abs_builddir@&$ac_abs_builddir&;t t
29404s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29405s&@INSTALL@&$ac_INSTALL&;t t
29406$ac_datarootdir_hack
29407"
29408eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29409if $ac_cs_awk_getline; then
29410  $AWK -f "$tmp/subs.awk"
29411else
29412  $AWK -f "$tmp/subs.awk" | $SHELL
29413fi >$tmp/out \
29414  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29415
29416test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29417  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29418  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29419  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29420which seems to be undefined.  Please make sure it is defined" >&5
29421$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29422which seems to be undefined.  Please make sure it is defined" >&2;}
29423
29424  rm -f "$tmp/stdin"
29425  case $ac_file in
29426  -) cat "$tmp/out" && rm -f "$tmp/out";;
29427  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29428  esac \
29429  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29430 ;;
29431  :H)
29432  #
29433  # CONFIG_HEADER
29434  #
29435  if test x"$ac_file" != x-; then
29436    {
29437      $as_echo "/* $configure_input  */" \
29438      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29439    } >"$tmp/config.h" \
29440      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29441    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29442      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29443$as_echo "$as_me: $ac_file is unchanged" >&6;}
29444    else
29445      rm -f "$ac_file"
29446      mv "$tmp/config.h" "$ac_file" \
29447	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
29448    fi
29449  else
29450    $as_echo "/* $configure_input  */" \
29451      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29452      || as_fn_error $? "could not create -" "$LINENO" 5
29453  fi
29454 ;;
29455
29456  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29457$as_echo "$as_me: executing $ac_file commands" >&6;}
29458 ;;
29459  esac
29460
29461
29462  case $ac_file$ac_mode in
29463    "atf-config":C) cd unit/atf-src; ${SHELL} ./configure MISSING=: --prefix $atfdir; cd ../.. ;;
29464    "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
29465
29466  esac
29467done # for ac_tag
29468
29469
29470as_fn_exit 0
29471_ACEOF
29472ac_clean_files=$ac_clean_files_save
29473
29474test $ac_write_fail = 0 ||
29475  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29476
29477
29478# configure is writing to config.log, and then calls config.status.
29479# config.status does its own redirection, appending to config.log.
29480# Unfortunately, on DOS this fails, as config.log is still kept open
29481# by configure, so config.status won't be able to write to it; its
29482# output is simply discarded.  So we exec the FD to /dev/null,
29483# effectively closing config.log, so it can be properly (re)opened and
29484# appended to by config.status.  When coming back to configure, we
29485# need to make the FD available again.
29486if test "$no_create" != yes; then
29487  ac_cs_success=:
29488  ac_config_status_args=
29489  test "$silent" = yes &&
29490    ac_config_status_args="$ac_config_status_args --quiet"
29491  exec 5>/dev/null
29492  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29493  exec 5>>config.log
29494  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29495  # would make configure fail if this is the last instruction.
29496  $ac_cs_success || as_fn_exit 1
29497fi
29498if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29499  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29500$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29501fi
29502
29503
29504#
29505# Now that the Makefiles exist we can ensure that everything is rebuilt.
29506#
29507
29508# Check whether --with-make-clean was given.
29509if test "${with_make_clean+set}" = set; then :
29510  withval=$with_make_clean; make_clean="$withval"
29511else
29512  make_clean="yes"
29513fi
29514
29515case "$make_clean" in
29516yes)
29517	make clean
29518	;;
29519esac
29520
29521if test "X$USE_OPENSSL" = "X"; then
29522cat << \EOF
29523BIND is being built without OpenSSL. This means it will not have DNSSEC support.
29524EOF
29525fi
29526
29527if test "X$OPENSSL_WARNING" != "X"; then
29528cat << \EOF
29529WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
29530WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
29531WARNING                                                                 WARNING
29532WARNING         Your OpenSSL crypto library may be vulnerable to        WARNING
29533WARNING         one or more of the the following known security         WARNING
29534WARNING         flaws:                                                  WARNING
29535WARNING                                                                 WARNING
29536WARNING         CAN-2002-0659, CAN-2006-4339, CVE-2006-2937 and         WARNING
29537WARNING         CVE-2006-2940.                                          WARNING
29538WARNING                                                                 WARNING
29539WARNING         It is recommended that you upgrade to OpenSSL           WARNING
29540WARNING         version 0.9.8d/0.9.7l (or greater).                     WARNING
29541WARNING                                                                 WARNING
29542WARNING         You can disable this warning by specifying:             WARNING
29543WARNING                                                                 WARNING
29544WARNING               --disable-openssl-version-check          	        WARNING
29545WARNING                                                                 WARNING
29546WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
29547WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
29548EOF
29549fi
29550
29551# Tell Emacs to edit this file in shell mode.
29552# Local Variables:
29553# mode: sh
29554# End:
29555