1#! /bin/sh 2# Copyright (C) 2004-2011 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$ 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.512.8.15 . 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 1434OPENSSLLINKSRCS 1435OPENSSLLINKOBJS 1436DST_OPENSSL_INC 1437USE_OPENSSL 1438LWRES_PLATFORM_NEEDSYSSELECTH 1439ISC_PLATFORM_NEEDSYSSELECTH 1440ISC_PLATFORM_HAVEDEVPOLL 1441ISC_PLATFORM_HAVEEPOLL 1442ISC_PLATFORM_HAVEKQUEUE 1443ISC_PLATFORM_HAVELIFCONF 1444ISC_PLATFORM_NORETURN_POST 1445ISC_PLATFORM_NORETURN_PRE 1446ISC_PLATFORM_HAVELONGLONG 1447ISC_SOCKADDR_LEN_T 1448PERL 1449ETAGS 1450LN 1451ARFLAGS 1452CCOPT 1453STD_CWARNINGS 1454STD_CDEFINES 1455STD_CINCLUDES 1456INSTALL_DATA 1457INSTALL_SCRIPT 1458INSTALL_PROGRAM 1459LIBTOOL 1460ac_ct_F77 1461FFLAGS 1462F77 1463CXXCPP 1464ac_ct_CXX 1465CXXFLAGS 1466CXX 1467CPP 1468NMEDIT 1469DSYMUTIL 1470STRIP 1471RANLIB 1472AR 1473ECHO 1474LN_S 1475EGREP 1476GREP 1477SED 1478OBJEXT 1479EXEEXT 1480ac_ct_CC 1481CPPFLAGS 1482LDFLAGS 1483CFLAGS 1484CC 1485SET_MAKE 1486host_os 1487host_vendor 1488host_cpu 1489host 1490build_os 1491build_vendor 1492build_cpu 1493build 1494target_alias 1495host_alias 1496build_alias 1497LIBS 1498ECHO_T 1499ECHO_N 1500ECHO_C 1501DEFS 1502mandir 1503localedir 1504libdir 1505psdir 1506pdfdir 1507dvidir 1508htmldir 1509infodir 1510docdir 1511oldincludedir 1512includedir 1513localstatedir 1514sharedstatedir 1515sysconfdir 1516datadir 1517datarootdir 1518libexecdir 1519sbindir 1520bindir 1521program_transform_name 1522prefix 1523exec_prefix 1524PACKAGE_URL 1525PACKAGE_BUGREPORT 1526PACKAGE_STRING 1527PACKAGE_VERSION 1528PACKAGE_TARNAME 1529PACKAGE_NAME 1530PATH_SEPARATOR 1531SHELL' 1532ac_subst_files='BIND9_MAKE_INCLUDES 1533BIND9_MAKE_RULES 1534LIBISC_API 1535LIBISCCC_API 1536LIBISCCFG_API 1537LIBDNS_API 1538LIBBIND9_API 1539LIBLWRES_API 1540LIBIRS_API 1541DLZ_DRIVER_RULES' 1542ac_user_opts=' 1543enable_option_checking 1544enable_shared 1545enable_static 1546enable_fast_install 1547with_gnu_ld 1548enable_libtool_lock 1549with_pic 1550with_tags 1551enable_libbind 1552enable_developer 1553enable_kqueue 1554enable_epoll 1555enable_devpoll 1556with_openssl 1557enable_openssl_version_check 1558with_gost 1559enable_openssl_hash 1560with_pkcs11 1561with_gssapi 1562with_randomdev 1563enable_threads 1564with_libxml2 1565enable_largefile 1566with_purify 1567with_libtool 1568enable_backtrace 1569enable_symtable 1570enable_exportlib 1571with_export_libdir 1572with_export_includedir 1573enable_ipv6 1574with_kame 1575enable_getifaddrs 1576enable_isc_spnego 1577enable_chroot 1578enable_linux_caps 1579with_rlimtype 1580enable_atomic 1581enable_fixed_rrset 1582enable_rpz_nsip 1583enable_rpz_nsdname 1584enable_filter_aaaa 1585with_docbook_xsl 1586with_idn 1587with_libiconv 1588with_iconv 1589with_idnlib 1590with_atf 1591with_dlopen 1592with_dlz_postgres 1593with_dlz_mysql 1594with_dlz_bdb 1595with_dlz_filesystem 1596with_dlz_ldap 1597with_dlz_odbc 1598with_dlz_stub 1599with_make_clean 1600' 1601 ac_precious_vars='build_alias 1602host_alias 1603target_alias 1604CC 1605CFLAGS 1606LDFLAGS 1607LIBS 1608CPPFLAGS 1609CPP 1610CXX 1611CXXFLAGS 1612CCC 1613CXXCPP 1614F77 1615FFLAGS' 1616 1617 1618# Initialize some variables set by options. 1619ac_init_help= 1620ac_init_version=false 1621ac_unrecognized_opts= 1622ac_unrecognized_sep= 1623# The variables have the same names as the options, with 1624# dashes changed to underlines. 1625cache_file=/dev/null 1626exec_prefix=NONE 1627no_create= 1628no_recursion= 1629prefix=NONE 1630program_prefix=NONE 1631program_suffix=NONE 1632program_transform_name=s,x,x, 1633silent= 1634site= 1635srcdir= 1636verbose= 1637x_includes=NONE 1638x_libraries=NONE 1639 1640# Installation directory options. 1641# These are left unexpanded so users can "make install exec_prefix=/foo" 1642# and all the variables that are supposed to be based on exec_prefix 1643# by default will actually change. 1644# Use braces instead of parens because sh, perl, etc. also accept them. 1645# (The list follows the same order as the GNU Coding Standards.) 1646bindir='${exec_prefix}/bin' 1647sbindir='${exec_prefix}/sbin' 1648libexecdir='${exec_prefix}/libexec' 1649datarootdir='${prefix}/share' 1650datadir='${datarootdir}' 1651sysconfdir='${prefix}/etc' 1652sharedstatedir='${prefix}/com' 1653localstatedir='${prefix}/var' 1654includedir='${prefix}/include' 1655oldincludedir='/usr/include' 1656docdir='${datarootdir}/doc/${PACKAGE}' 1657infodir='${datarootdir}/info' 1658htmldir='${docdir}' 1659dvidir='${docdir}' 1660pdfdir='${docdir}' 1661psdir='${docdir}' 1662libdir='${exec_prefix}/lib' 1663localedir='${datarootdir}/locale' 1664mandir='${datarootdir}/man' 1665 1666ac_prev= 1667ac_dashdash= 1668for ac_option 1669do 1670 # If the previous option needs an argument, assign it. 1671 if test -n "$ac_prev"; then 1672 eval $ac_prev=\$ac_option 1673 ac_prev= 1674 continue 1675 fi 1676 1677 case $ac_option in 1678 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1679 *=) ac_optarg= ;; 1680 *) ac_optarg=yes ;; 1681 esac 1682 1683 # Accept the important Cygnus configure options, so we can diagnose typos. 1684 1685 case $ac_dashdash$ac_option in 1686 --) 1687 ac_dashdash=yes ;; 1688 1689 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1690 ac_prev=bindir ;; 1691 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1692 bindir=$ac_optarg ;; 1693 1694 -build | --build | --buil | --bui | --bu) 1695 ac_prev=build_alias ;; 1696 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1697 build_alias=$ac_optarg ;; 1698 1699 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1700 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1701 ac_prev=cache_file ;; 1702 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1703 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1704 cache_file=$ac_optarg ;; 1705 1706 --config-cache | -C) 1707 cache_file=config.cache ;; 1708 1709 -datadir | --datadir | --datadi | --datad) 1710 ac_prev=datadir ;; 1711 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1712 datadir=$ac_optarg ;; 1713 1714 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1715 | --dataroo | --dataro | --datar) 1716 ac_prev=datarootdir ;; 1717 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1718 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1719 datarootdir=$ac_optarg ;; 1720 1721 -disable-* | --disable-*) 1722 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1723 # Reject names that are not valid shell variable names. 1724 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1725 as_fn_error $? "invalid feature name: $ac_useropt" 1726 ac_useropt_orig=$ac_useropt 1727 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1728 case $ac_user_opts in 1729 *" 1730"enable_$ac_useropt" 1731"*) ;; 1732 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1733 ac_unrecognized_sep=', ';; 1734 esac 1735 eval enable_$ac_useropt=no ;; 1736 1737 -docdir | --docdir | --docdi | --doc | --do) 1738 ac_prev=docdir ;; 1739 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1740 docdir=$ac_optarg ;; 1741 1742 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1743 ac_prev=dvidir ;; 1744 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1745 dvidir=$ac_optarg ;; 1746 1747 -enable-* | --enable-*) 1748 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1749 # Reject names that are not valid shell variable names. 1750 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1751 as_fn_error $? "invalid feature name: $ac_useropt" 1752 ac_useropt_orig=$ac_useropt 1753 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1754 case $ac_user_opts in 1755 *" 1756"enable_$ac_useropt" 1757"*) ;; 1758 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1759 ac_unrecognized_sep=', ';; 1760 esac 1761 eval enable_$ac_useropt=\$ac_optarg ;; 1762 1763 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1764 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1765 | --exec | --exe | --ex) 1766 ac_prev=exec_prefix ;; 1767 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1768 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1769 | --exec=* | --exe=* | --ex=*) 1770 exec_prefix=$ac_optarg ;; 1771 1772 -gas | --gas | --ga | --g) 1773 # Obsolete; use --with-gas. 1774 with_gas=yes ;; 1775 1776 -help | --help | --hel | --he | -h) 1777 ac_init_help=long ;; 1778 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1779 ac_init_help=recursive ;; 1780 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1781 ac_init_help=short ;; 1782 1783 -host | --host | --hos | --ho) 1784 ac_prev=host_alias ;; 1785 -host=* | --host=* | --hos=* | --ho=*) 1786 host_alias=$ac_optarg ;; 1787 1788 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1789 ac_prev=htmldir ;; 1790 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1791 | --ht=*) 1792 htmldir=$ac_optarg ;; 1793 1794 -includedir | --includedir | --includedi | --included | --include \ 1795 | --includ | --inclu | --incl | --inc) 1796 ac_prev=includedir ;; 1797 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1798 | --includ=* | --inclu=* | --incl=* | --inc=*) 1799 includedir=$ac_optarg ;; 1800 1801 -infodir | --infodir | --infodi | --infod | --info | --inf) 1802 ac_prev=infodir ;; 1803 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1804 infodir=$ac_optarg ;; 1805 1806 -libdir | --libdir | --libdi | --libd) 1807 ac_prev=libdir ;; 1808 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1809 libdir=$ac_optarg ;; 1810 1811 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1812 | --libexe | --libex | --libe) 1813 ac_prev=libexecdir ;; 1814 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1815 | --libexe=* | --libex=* | --libe=*) 1816 libexecdir=$ac_optarg ;; 1817 1818 -localedir | --localedir | --localedi | --localed | --locale) 1819 ac_prev=localedir ;; 1820 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1821 localedir=$ac_optarg ;; 1822 1823 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1824 | --localstate | --localstat | --localsta | --localst | --locals) 1825 ac_prev=localstatedir ;; 1826 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1827 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1828 localstatedir=$ac_optarg ;; 1829 1830 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1831 ac_prev=mandir ;; 1832 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1833 mandir=$ac_optarg ;; 1834 1835 -nfp | --nfp | --nf) 1836 # Obsolete; use --without-fp. 1837 with_fp=no ;; 1838 1839 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1840 | --no-cr | --no-c | -n) 1841 no_create=yes ;; 1842 1843 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1844 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1845 no_recursion=yes ;; 1846 1847 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1848 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1849 | --oldin | --oldi | --old | --ol | --o) 1850 ac_prev=oldincludedir ;; 1851 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1852 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1853 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1854 oldincludedir=$ac_optarg ;; 1855 1856 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1857 ac_prev=prefix ;; 1858 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1859 prefix=$ac_optarg ;; 1860 1861 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1862 | --program-pre | --program-pr | --program-p) 1863 ac_prev=program_prefix ;; 1864 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1865 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1866 program_prefix=$ac_optarg ;; 1867 1868 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1869 | --program-suf | --program-su | --program-s) 1870 ac_prev=program_suffix ;; 1871 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1872 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1873 program_suffix=$ac_optarg ;; 1874 1875 -program-transform-name | --program-transform-name \ 1876 | --program-transform-nam | --program-transform-na \ 1877 | --program-transform-n | --program-transform- \ 1878 | --program-transform | --program-transfor \ 1879 | --program-transfo | --program-transf \ 1880 | --program-trans | --program-tran \ 1881 | --progr-tra | --program-tr | --program-t) 1882 ac_prev=program_transform_name ;; 1883 -program-transform-name=* | --program-transform-name=* \ 1884 | --program-transform-nam=* | --program-transform-na=* \ 1885 | --program-transform-n=* | --program-transform-=* \ 1886 | --program-transform=* | --program-transfor=* \ 1887 | --program-transfo=* | --program-transf=* \ 1888 | --program-trans=* | --program-tran=* \ 1889 | --progr-tra=* | --program-tr=* | --program-t=*) 1890 program_transform_name=$ac_optarg ;; 1891 1892 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1893 ac_prev=pdfdir ;; 1894 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1895 pdfdir=$ac_optarg ;; 1896 1897 -psdir | --psdir | --psdi | --psd | --ps) 1898 ac_prev=psdir ;; 1899 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1900 psdir=$ac_optarg ;; 1901 1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1903 | -silent | --silent | --silen | --sile | --sil) 1904 silent=yes ;; 1905 1906 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1907 ac_prev=sbindir ;; 1908 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1909 | --sbi=* | --sb=*) 1910 sbindir=$ac_optarg ;; 1911 1912 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1913 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1914 | --sharedst | --shareds | --shared | --share | --shar \ 1915 | --sha | --sh) 1916 ac_prev=sharedstatedir ;; 1917 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1918 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1919 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1920 | --sha=* | --sh=*) 1921 sharedstatedir=$ac_optarg ;; 1922 1923 -site | --site | --sit) 1924 ac_prev=site ;; 1925 -site=* | --site=* | --sit=*) 1926 site=$ac_optarg ;; 1927 1928 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1929 ac_prev=srcdir ;; 1930 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1931 srcdir=$ac_optarg ;; 1932 1933 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1934 | --syscon | --sysco | --sysc | --sys | --sy) 1935 ac_prev=sysconfdir ;; 1936 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1937 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1938 sysconfdir=$ac_optarg ;; 1939 1940 -target | --target | --targe | --targ | --tar | --ta | --t) 1941 ac_prev=target_alias ;; 1942 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1943 target_alias=$ac_optarg ;; 1944 1945 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1946 verbose=yes ;; 1947 1948 -version | --version | --versio | --versi | --vers | -V) 1949 ac_init_version=: ;; 1950 1951 -with-* | --with-*) 1952 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1953 # Reject names that are not valid shell variable names. 1954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1955 as_fn_error $? "invalid package name: $ac_useropt" 1956 ac_useropt_orig=$ac_useropt 1957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1958 case $ac_user_opts in 1959 *" 1960"with_$ac_useropt" 1961"*) ;; 1962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1963 ac_unrecognized_sep=', ';; 1964 esac 1965 eval with_$ac_useropt=\$ac_optarg ;; 1966 1967 -without-* | --without-*) 1968 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1969 # Reject names that are not valid shell variable names. 1970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1971 as_fn_error $? "invalid package name: $ac_useropt" 1972 ac_useropt_orig=$ac_useropt 1973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1974 case $ac_user_opts in 1975 *" 1976"with_$ac_useropt" 1977"*) ;; 1978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1979 ac_unrecognized_sep=', ';; 1980 esac 1981 eval with_$ac_useropt=no ;; 1982 1983 --x) 1984 # Obsolete; use --with-x. 1985 with_x=yes ;; 1986 1987 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1988 | --x-incl | --x-inc | --x-in | --x-i) 1989 ac_prev=x_includes ;; 1990 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1991 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1992 x_includes=$ac_optarg ;; 1993 1994 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1995 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1996 ac_prev=x_libraries ;; 1997 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1998 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1999 x_libraries=$ac_optarg ;; 2000 2001 -*) as_fn_error $? "unrecognized option: \`$ac_option' 2002Try \`$0 --help' for more information" 2003 ;; 2004 2005 *=*) 2006 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 2007 # Reject names that are not valid shell variable names. 2008 case $ac_envvar in #( 2009 '' | [0-9]* | *[!_$as_cr_alnum]* ) 2010 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 2011 esac 2012 eval $ac_envvar=\$ac_optarg 2013 export $ac_envvar ;; 2014 2015 *) 2016 # FIXME: should be removed in autoconf 3.0. 2017 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 2018 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 2019 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 2020 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 2021 ;; 2022 2023 esac 2024done 2025 2026if test -n "$ac_prev"; then 2027 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 2028 as_fn_error $? "missing argument to $ac_option" 2029fi 2030 2031if test -n "$ac_unrecognized_opts"; then 2032 case $enable_option_checking in 2033 no) ;; 2034 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 2035 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 2036 esac 2037fi 2038 2039# Check all directory arguments for consistency. 2040for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 2041 datadir sysconfdir sharedstatedir localstatedir includedir \ 2042 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 2043 libdir localedir mandir 2044do 2045 eval ac_val=\$$ac_var 2046 # Remove trailing slashes. 2047 case $ac_val in 2048 */ ) 2049 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 2050 eval $ac_var=\$ac_val;; 2051 esac 2052 # Be sure to have absolute directory names. 2053 case $ac_val in 2054 [\\/$]* | ?:[\\/]* ) continue;; 2055 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 2056 esac 2057 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 2058done 2059 2060# There might be people who depend on the old broken behavior: `$host' 2061# used to hold the argument of --host etc. 2062# FIXME: To remove some day. 2063build=$build_alias 2064host=$host_alias 2065target=$target_alias 2066 2067# FIXME: To remove some day. 2068if test "x$host_alias" != x; then 2069 if test "x$build_alias" = x; then 2070 cross_compiling=maybe 2071 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 2072 If a cross compiler is detected then cross compile mode will be used" >&2 2073 elif test "x$build_alias" != "x$host_alias"; then 2074 cross_compiling=yes 2075 fi 2076fi 2077 2078ac_tool_prefix= 2079test -n "$host_alias" && ac_tool_prefix=$host_alias- 2080 2081test "$silent" = yes && exec 6>/dev/null 2082 2083 2084ac_pwd=`pwd` && test -n "$ac_pwd" && 2085ac_ls_di=`ls -di .` && 2086ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 2087 as_fn_error $? "working directory cannot be determined" 2088test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 2089 as_fn_error $? "pwd does not report name of working directory" 2090 2091 2092# Find the source files, if location was not specified. 2093if test -z "$srcdir"; then 2094 ac_srcdir_defaulted=yes 2095 # Try the directory containing this script, then the parent directory. 2096 ac_confdir=`$as_dirname -- "$as_myself" || 2097$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2098 X"$as_myself" : 'X\(//\)[^/]' \| \ 2099 X"$as_myself" : 'X\(//\)$' \| \ 2100 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 2101$as_echo X"$as_myself" | 2102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2103 s//\1/ 2104 q 2105 } 2106 /^X\(\/\/\)[^/].*/{ 2107 s//\1/ 2108 q 2109 } 2110 /^X\(\/\/\)$/{ 2111 s//\1/ 2112 q 2113 } 2114 /^X\(\/\).*/{ 2115 s//\1/ 2116 q 2117 } 2118 s/.*/./; q'` 2119 srcdir=$ac_confdir 2120 if test ! -r "$srcdir/$ac_unique_file"; then 2121 srcdir=.. 2122 fi 2123else 2124 ac_srcdir_defaulted=no 2125fi 2126if test ! -r "$srcdir/$ac_unique_file"; then 2127 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2128 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2129fi 2130ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2131ac_abs_confdir=`( 2132 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2133 pwd)` 2134# When building in place, set srcdir=. 2135if test "$ac_abs_confdir" = "$ac_pwd"; then 2136 srcdir=. 2137fi 2138# Remove unnecessary trailing slashes from srcdir. 2139# Double slashes in file names in object file debugging info 2140# mess up M-x gdb in Emacs. 2141case $srcdir in 2142*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2143esac 2144for ac_var in $ac_precious_vars; do 2145 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2146 eval ac_env_${ac_var}_value=\$${ac_var} 2147 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2148 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2149done 2150 2151# 2152# Report the --help message. 2153# 2154if test "$ac_init_help" = "long"; then 2155 # Omit some internal or obsolete options to make the list less imposing. 2156 # This message is too long to be a string in the A/UX 3.1 sh. 2157 cat <<_ACEOF 2158\`configure' configures this package to adapt to many kinds of systems. 2159 2160Usage: $0 [OPTION]... [VAR=VALUE]... 2161 2162To assign environment variables (e.g., CC, CFLAGS...), specify them as 2163VAR=VALUE. See below for descriptions of some of the useful variables. 2164 2165Defaults for the options are specified in brackets. 2166 2167Configuration: 2168 -h, --help display this help and exit 2169 --help=short display options specific to this package 2170 --help=recursive display the short help of all the included packages 2171 -V, --version display version information and exit 2172 -q, --quiet, --silent do not print \`checking ...' messages 2173 --cache-file=FILE cache test results in FILE [disabled] 2174 -C, --config-cache alias for \`--cache-file=config.cache' 2175 -n, --no-create do not create output files 2176 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2177 2178Installation directories: 2179 --prefix=PREFIX install architecture-independent files in PREFIX 2180 [$ac_default_prefix] 2181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2182 [PREFIX] 2183 2184By default, \`make install' will install all the files in 2185\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2186an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2187for instance \`--prefix=\$HOME'. 2188 2189For better control, use the options below. 2190 2191Fine tuning of the installation directories: 2192 --bindir=DIR user executables [EPREFIX/bin] 2193 --sbindir=DIR system admin executables [EPREFIX/sbin] 2194 --libexecdir=DIR program executables [EPREFIX/libexec] 2195 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2196 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2197 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2198 --libdir=DIR object code libraries [EPREFIX/lib] 2199 --includedir=DIR C header files [PREFIX/include] 2200 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2201 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2202 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2203 --infodir=DIR info documentation [DATAROOTDIR/info] 2204 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2205 --mandir=DIR man documentation [DATAROOTDIR/man] 2206 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 2207 --htmldir=DIR html documentation [DOCDIR] 2208 --dvidir=DIR dvi documentation [DOCDIR] 2209 --pdfdir=DIR pdf documentation [DOCDIR] 2210 --psdir=DIR ps documentation [DOCDIR] 2211_ACEOF 2212 2213 cat <<\_ACEOF 2214 2215System types: 2216 --build=BUILD configure for building on BUILD [guessed] 2217 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2218_ACEOF 2219fi 2220 2221if test -n "$ac_init_help"; then 2222 2223 cat <<\_ACEOF 2224 2225Optional Features: 2226 --disable-option-checking ignore unrecognized --enable/--with options 2227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2229 --enable-shared[=PKGS] build shared libraries [default=yes] 2230 --enable-static[=PKGS] build static libraries [default=yes] 2231 --enable-fast-install[=PKGS] 2232 optimize for fast installation [default=yes] 2233 --disable-libtool-lock avoid locking (might break parallel builds) 2234 --enable-libbind deprecated 2235 --enable-developer enable developer build settings 2236 --enable-kqueue use BSD kqueue when available [default=yes] 2237 --enable-epoll use Linux epoll when available [default=auto] 2238 --enable-devpoll use /dev/poll when available [default=yes] 2239 --enable-openssl-version-check 2240 Check OpenSSL Version [default=yes] 2241 --enable-openssl-hash use OpenSSL for hash functions [default=no] 2242 --enable-threads enable multithreading 2243 --enable-largefile 64-bit file support 2244 --enable-backtrace log stack backtrace on abort [default=yes] 2245 --enable-symtable use internal symbol table for backtrace 2246 [all|minimal(default)|none] 2247 --enable-exportlib build exportable library (GNU make required) 2248 [default=no] 2249 --enable-ipv6 use IPv6 default=autodetect 2250 --enable-getifaddrs Enable the use of getifaddrs() [yes|no]. 2251 --disable-isc-spnego use SPNEGO from GSSAPI library 2252 --disable-chroot disable chroot 2253 --disable-linux-caps disable linux capabilities 2254 --enable-atomic enable machine specific atomic operations 2255 [default=autodetect] 2256 --enable-fixed-rrset enable fixed rrset ordering 2257 [default=no] 2258 --enable-rpz-nsip enable rpz-nsip rules [default=no] 2259 --enable-rpz-nsdname enable rpz-nsdname rules [default=no] 2260 --enable-filter-aaaa enable filtering of AAAA records over IPv4 2261 [default=no] 2262 2263Optional Packages: 2264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2266 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2267 --with-pic try to use only PIC/non-PIC objects [default=use 2268 both] 2269 --with-tags[=TAGS] include additional configurations [automatic] 2270 --with-openssl=PATH Build with OpenSSL yes|no|path. 2271 (Required for DNSSEC) 2272 2273 --with-pkcs11=PATH Build with PKCS11 support yes|no|path 2274 (PATH is for the PKCS11 provider) 2275 --with-gssapi=PATH Specify path for system-supplied GSSAPI [default=yes] 2276 --with-randomdev=PATH Specify path for random device 2277 --with-libxml2=PATH Build with libxml2 library yes|no|path 2278 --with-purify=PATH use Rational purify 2279 --with-libtool use GNU libtool 2280 --with-export-libdir=PATH 2281 installation directory for the export library 2282 [EPREFIX/lib/bind9] 2283 --with-export-includedir=PATH 2284 installation directory for the header files of the 2285 export library [PREFIX/include/bind9] 2286 --with-kame=PATH use Kame IPv6 default path /usr/local/v6 2287 --with-docbook-xsl=PATH Specify path for Docbook-XSL stylesheets 2288 --with-idn=MPREFIX enable IDN support using idnkit default PREFIX 2289 --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX 2290 --with-iconv=LIBSPEC specify iconv library default -liconv 2291 --with-idnlib=ARG specify libidnkit 2292 --with-atf=ARG Automated Test Framework support 2293 --with-dlopen=ARG Support dynamically loadable DLZ drivers 2294 --with-dlz-postgres=PATH Build with Postgres DLZ driver yes|no|path. 2295 (Required to use Postgres with DLZ) 2296 --with-dlz-mysql=PATH Build with MySQL DLZ driver yes|no|path. 2297 (Required to use MySQL with DLZ) 2298 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver yes|no|path. 2299 (Required to use Berkeley DB with DLZ) 2300 --with-dlz-filesystem=PATH Build with filesystem DLZ driver yes|no. 2301 (Required to use file system driver with DLZ) 2302 --with-dlz-ldap=PATH Build with LDAP DLZ driver yes|no|path. 2303 (Required to use LDAP with DLZ) 2304 --with-dlz-odbc=PATH Build with ODBC DLZ driver yes|no|path. 2305 (Required to use ODBC with DLZ) 2306 --with-dlz-stub=PATH Build with stub DLZ driver yes|no. 2307 (Required to use stub driver with DLZ) 2308 --with-make-clean Run "make clean" at end of configure [yes|no]. 2309 2310Some influential environment variables: 2311 CC C compiler command 2312 CFLAGS C compiler flags 2313 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2314 nonstandard directory <lib dir> 2315 LIBS libraries to pass to the linker, e.g. -l<library> 2316 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2317 you have headers in a nonstandard directory <include dir> 2318 CPP C preprocessor 2319 CXX C++ compiler command 2320 CXXFLAGS C++ compiler flags 2321 CXXCPP C++ preprocessor 2322 F77 Fortran 77 compiler command 2323 FFLAGS Fortran 77 compiler flags 2324 2325Use these variables to override the choices made by `configure' or to help 2326it to find libraries and programs with nonstandard names/locations. 2327 2328Report bugs to the package provider. 2329_ACEOF 2330ac_status=$? 2331fi 2332 2333if test "$ac_init_help" = "recursive"; then 2334 # If there are subdirs, report their specific --help. 2335 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2336 test -d "$ac_dir" || 2337 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2338 continue 2339 ac_builddir=. 2340 2341case "$ac_dir" in 2342.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2343*) 2344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2345 # A ".." for each directory in $ac_dir_suffix. 2346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2347 case $ac_top_builddir_sub in 2348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2350 esac ;; 2351esac 2352ac_abs_top_builddir=$ac_pwd 2353ac_abs_builddir=$ac_pwd$ac_dir_suffix 2354# for backward compatibility: 2355ac_top_builddir=$ac_top_build_prefix 2356 2357case $srcdir in 2358 .) # We are building in place. 2359 ac_srcdir=. 2360 ac_top_srcdir=$ac_top_builddir_sub 2361 ac_abs_top_srcdir=$ac_pwd ;; 2362 [\\/]* | ?:[\\/]* ) # Absolute name. 2363 ac_srcdir=$srcdir$ac_dir_suffix; 2364 ac_top_srcdir=$srcdir 2365 ac_abs_top_srcdir=$srcdir ;; 2366 *) # Relative name. 2367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2368 ac_top_srcdir=$ac_top_build_prefix$srcdir 2369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2370esac 2371ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2372 2373 cd "$ac_dir" || { ac_status=$?; continue; } 2374 # Check for guested configure. 2375 if test -f "$ac_srcdir/configure.gnu"; then 2376 echo && 2377 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2378 elif test -f "$ac_srcdir/configure"; then 2379 echo && 2380 $SHELL "$ac_srcdir/configure" --help=recursive 2381 else 2382 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2383 fi || ac_status=$? 2384 cd "$ac_pwd" || { ac_status=$?; break; } 2385 done 2386fi 2387 2388test -n "$ac_init_help" && exit $ac_status 2389if $ac_init_version; then 2390 cat <<\_ACEOF 2391configure 2392generated by GNU Autoconf 2.67 2393 2394Copyright (C) 2010 Free Software Foundation, Inc. 2395This configure script is free software; the Free Software Foundation 2396gives unlimited permission to copy, distribute and modify it. 2397_ACEOF 2398 exit 2399fi 2400 2401## ------------------------ ## 2402## Autoconf initialization. ## 2403## ------------------------ ## 2404 2405# ac_fn_c_try_compile LINENO 2406# -------------------------- 2407# Try to compile conftest.$ac_ext, and return whether this succeeded. 2408ac_fn_c_try_compile () 2409{ 2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2411 rm -f conftest.$ac_objext 2412 if { { ac_try="$ac_compile" 2413case "(($ac_try" in 2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2415 *) ac_try_echo=$ac_try;; 2416esac 2417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2418$as_echo "$ac_try_echo"; } >&5 2419 (eval "$ac_compile") 2>conftest.err 2420 ac_status=$? 2421 if test -s conftest.err; then 2422 grep -v '^ *+' conftest.err >conftest.er1 2423 cat conftest.er1 >&5 2424 mv -f conftest.er1 conftest.err 2425 fi 2426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2427 test $ac_status = 0; } && { 2428 test -z "$ac_c_werror_flag" || 2429 test ! -s conftest.err 2430 } && test -s conftest.$ac_objext; then : 2431 ac_retval=0 2432else 2433 $as_echo "$as_me: failed program was:" >&5 2434sed 's/^/| /' conftest.$ac_ext >&5 2435 2436 ac_retval=1 2437fi 2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2439 as_fn_set_status $ac_retval 2440 2441} # ac_fn_c_try_compile 2442 2443# ac_fn_c_try_link LINENO 2444# ----------------------- 2445# Try to link conftest.$ac_ext, and return whether this succeeded. 2446ac_fn_c_try_link () 2447{ 2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2449 rm -f conftest.$ac_objext conftest$ac_exeext 2450 if { { ac_try="$ac_link" 2451case "(($ac_try" in 2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2453 *) ac_try_echo=$ac_try;; 2454esac 2455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2456$as_echo "$ac_try_echo"; } >&5 2457 (eval "$ac_link") 2>conftest.err 2458 ac_status=$? 2459 if test -s conftest.err; then 2460 grep -v '^ *+' conftest.err >conftest.er1 2461 cat conftest.er1 >&5 2462 mv -f conftest.er1 conftest.err 2463 fi 2464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2465 test $ac_status = 0; } && { 2466 test -z "$ac_c_werror_flag" || 2467 test ! -s conftest.err 2468 } && test -s conftest$ac_exeext && { 2469 test "$cross_compiling" = yes || 2470 $as_test_x conftest$ac_exeext 2471 }; then : 2472 ac_retval=0 2473else 2474 $as_echo "$as_me: failed program was:" >&5 2475sed 's/^/| /' conftest.$ac_ext >&5 2476 2477 ac_retval=1 2478fi 2479 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2480 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2481 # interfere with the next link command; also delete a directory that is 2482 # left behind by Apple's compiler. We do this before executing the actions. 2483 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2485 as_fn_set_status $ac_retval 2486 2487} # ac_fn_c_try_link 2488 2489# ac_fn_c_try_cpp LINENO 2490# ---------------------- 2491# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2492ac_fn_c_try_cpp () 2493{ 2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2495 if { { ac_try="$ac_cpp conftest.$ac_ext" 2496case "(($ac_try" in 2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2498 *) ac_try_echo=$ac_try;; 2499esac 2500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2501$as_echo "$ac_try_echo"; } >&5 2502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2503 ac_status=$? 2504 if test -s conftest.err; then 2505 grep -v '^ *+' conftest.err >conftest.er1 2506 cat conftest.er1 >&5 2507 mv -f conftest.er1 conftest.err 2508 fi 2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2510 test $ac_status = 0; } > conftest.i && { 2511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2512 test ! -s conftest.err 2513 }; then : 2514 ac_retval=0 2515else 2516 $as_echo "$as_me: failed program was:" >&5 2517sed 's/^/| /' conftest.$ac_ext >&5 2518 2519 ac_retval=1 2520fi 2521 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2522 as_fn_set_status $ac_retval 2523 2524} # ac_fn_c_try_cpp 2525 2526# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2527# ------------------------------------------------------- 2528# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2529# the include files in INCLUDES and setting the cache variable VAR 2530# accordingly. 2531ac_fn_c_check_header_mongrel () 2532{ 2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2534 if eval "test \"\${$3+set}\"" = set; then : 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2536$as_echo_n "checking for $2... " >&6; } 2537if eval "test \"\${$3+set}\"" = set; then : 2538 $as_echo_n "(cached) " >&6 2539fi 2540eval ac_res=\$$3 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2542$as_echo "$ac_res" >&6; } 2543else 2544 # Is the header compilable? 2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2546$as_echo_n "checking $2 usability... " >&6; } 2547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2548/* end confdefs.h. */ 2549$4 2550#include <$2> 2551_ACEOF 2552if ac_fn_c_try_compile "$LINENO"; then : 2553 ac_header_compiler=yes 2554else 2555 ac_header_compiler=no 2556fi 2557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2559$as_echo "$ac_header_compiler" >&6; } 2560 2561# Is the header present? 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2563$as_echo_n "checking $2 presence... " >&6; } 2564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2565/* end confdefs.h. */ 2566#include <$2> 2567_ACEOF 2568if ac_fn_c_try_cpp "$LINENO"; then : 2569 ac_header_preproc=yes 2570else 2571 ac_header_preproc=no 2572fi 2573rm -f conftest.err conftest.i conftest.$ac_ext 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2575$as_echo "$ac_header_preproc" >&6; } 2576 2577# So? What about this header? 2578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2579 yes:no: ) 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2581$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2583$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2584 ;; 2585 no:yes:* ) 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2587$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2589$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2591$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2593$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2595$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2596 ;; 2597esac 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2599$as_echo_n "checking for $2... " >&6; } 2600if eval "test \"\${$3+set}\"" = set; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 eval "$3=\$ac_header_compiler" 2604fi 2605eval ac_res=\$$3 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2607$as_echo "$ac_res" >&6; } 2608fi 2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2610 2611} # ac_fn_c_check_header_mongrel 2612 2613# ac_fn_c_try_run LINENO 2614# ---------------------- 2615# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2616# that executables *can* be run. 2617ac_fn_c_try_run () 2618{ 2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2620 if { { ac_try="$ac_link" 2621case "(($ac_try" in 2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2623 *) ac_try_echo=$ac_try;; 2624esac 2625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2626$as_echo "$ac_try_echo"; } >&5 2627 (eval "$ac_link") 2>&5 2628 ac_status=$? 2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2631 { { case "(($ac_try" in 2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2633 *) ac_try_echo=$ac_try;; 2634esac 2635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2636$as_echo "$ac_try_echo"; } >&5 2637 (eval "$ac_try") 2>&5 2638 ac_status=$? 2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2640 test $ac_status = 0; }; }; then : 2641 ac_retval=0 2642else 2643 $as_echo "$as_me: program exited with status $ac_status" >&5 2644 $as_echo "$as_me: failed program was:" >&5 2645sed 's/^/| /' conftest.$ac_ext >&5 2646 2647 ac_retval=$ac_status 2648fi 2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2651 as_fn_set_status $ac_retval 2652 2653} # ac_fn_c_try_run 2654 2655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2656# ------------------------------------------------------- 2657# Tests whether HEADER exists and can be compiled using the include files in 2658# INCLUDES, setting the cache variable VAR accordingly. 2659ac_fn_c_check_header_compile () 2660{ 2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2663$as_echo_n "checking for $2... " >&6; } 2664if eval "test \"\${$3+set}\"" = set; then : 2665 $as_echo_n "(cached) " >&6 2666else 2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2668/* end confdefs.h. */ 2669$4 2670#include <$2> 2671_ACEOF 2672if ac_fn_c_try_compile "$LINENO"; then : 2673 eval "$3=yes" 2674else 2675 eval "$3=no" 2676fi 2677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2678fi 2679eval ac_res=\$$3 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2681$as_echo "$ac_res" >&6; } 2682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2683 2684} # ac_fn_c_check_header_compile 2685 2686# ac_fn_c_check_func LINENO FUNC VAR 2687# ---------------------------------- 2688# Tests whether FUNC exists, setting the cache variable VAR accordingly 2689ac_fn_c_check_func () 2690{ 2691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2693$as_echo_n "checking for $2... " >&6; } 2694if eval "test \"\${$3+set}\"" = set; then : 2695 $as_echo_n "(cached) " >&6 2696else 2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2698/* end confdefs.h. */ 2699/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2700 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2701#define $2 innocuous_$2 2702 2703/* System header to define __stub macros and hopefully few prototypes, 2704 which can conflict with char $2 (); below. 2705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2706 <limits.h> exists even on freestanding compilers. */ 2707 2708#ifdef __STDC__ 2709# include <limits.h> 2710#else 2711# include <assert.h> 2712#endif 2713 2714#undef $2 2715 2716/* Override any GCC internal prototype to avoid an error. 2717 Use char because int might match the return type of a GCC 2718 builtin and then its argument prototype would still apply. */ 2719#ifdef __cplusplus 2720extern "C" 2721#endif 2722char $2 (); 2723/* The GNU C library defines this for functions which it implements 2724 to always fail with ENOSYS. Some functions are actually named 2725 something starting with __ and the normal name is an alias. */ 2726#if defined __stub_$2 || defined __stub___$2 2727choke me 2728#endif 2729 2730int 2731main () 2732{ 2733return $2 (); 2734 ; 2735 return 0; 2736} 2737_ACEOF 2738if ac_fn_c_try_link "$LINENO"; then : 2739 eval "$3=yes" 2740else 2741 eval "$3=no" 2742fi 2743rm -f core conftest.err conftest.$ac_objext \ 2744 conftest$ac_exeext conftest.$ac_ext 2745fi 2746eval ac_res=\$$3 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2748$as_echo "$ac_res" >&6; } 2749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2750 2751} # ac_fn_c_check_func 2752 2753# ac_fn_cxx_try_compile LINENO 2754# ---------------------------- 2755# Try to compile conftest.$ac_ext, and return whether this succeeded. 2756ac_fn_cxx_try_compile () 2757{ 2758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2759 rm -f conftest.$ac_objext 2760 if { { ac_try="$ac_compile" 2761case "(($ac_try" in 2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2763 *) ac_try_echo=$ac_try;; 2764esac 2765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2766$as_echo "$ac_try_echo"; } >&5 2767 (eval "$ac_compile") 2>conftest.err 2768 ac_status=$? 2769 if test -s conftest.err; then 2770 grep -v '^ *+' conftest.err >conftest.er1 2771 cat conftest.er1 >&5 2772 mv -f conftest.er1 conftest.err 2773 fi 2774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2775 test $ac_status = 0; } && { 2776 test -z "$ac_cxx_werror_flag" || 2777 test ! -s conftest.err 2778 } && test -s conftest.$ac_objext; then : 2779 ac_retval=0 2780else 2781 $as_echo "$as_me: failed program was:" >&5 2782sed 's/^/| /' conftest.$ac_ext >&5 2783 2784 ac_retval=1 2785fi 2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2787 as_fn_set_status $ac_retval 2788 2789} # ac_fn_cxx_try_compile 2790 2791# ac_fn_cxx_try_cpp LINENO 2792# ------------------------ 2793# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2794ac_fn_cxx_try_cpp () 2795{ 2796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2797 if { { ac_try="$ac_cpp conftest.$ac_ext" 2798case "(($ac_try" in 2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2800 *) ac_try_echo=$ac_try;; 2801esac 2802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2803$as_echo "$ac_try_echo"; } >&5 2804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2805 ac_status=$? 2806 if test -s conftest.err; then 2807 grep -v '^ *+' conftest.err >conftest.er1 2808 cat conftest.er1 >&5 2809 mv -f conftest.er1 conftest.err 2810 fi 2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2812 test $ac_status = 0; } > conftest.i && { 2813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2814 test ! -s conftest.err 2815 }; then : 2816 ac_retval=0 2817else 2818 $as_echo "$as_me: failed program was:" >&5 2819sed 's/^/| /' conftest.$ac_ext >&5 2820 2821 ac_retval=1 2822fi 2823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2824 as_fn_set_status $ac_retval 2825 2826} # ac_fn_cxx_try_cpp 2827 2828# ac_fn_cxx_try_link LINENO 2829# ------------------------- 2830# Try to link conftest.$ac_ext, and return whether this succeeded. 2831ac_fn_cxx_try_link () 2832{ 2833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2834 rm -f conftest.$ac_objext conftest$ac_exeext 2835 if { { ac_try="$ac_link" 2836case "(($ac_try" in 2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2838 *) ac_try_echo=$ac_try;; 2839esac 2840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2841$as_echo "$ac_try_echo"; } >&5 2842 (eval "$ac_link") 2>conftest.err 2843 ac_status=$? 2844 if test -s conftest.err; then 2845 grep -v '^ *+' conftest.err >conftest.er1 2846 cat conftest.er1 >&5 2847 mv -f conftest.er1 conftest.err 2848 fi 2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2850 test $ac_status = 0; } && { 2851 test -z "$ac_cxx_werror_flag" || 2852 test ! -s conftest.err 2853 } && test -s conftest$ac_exeext && { 2854 test "$cross_compiling" = yes || 2855 $as_test_x conftest$ac_exeext 2856 }; then : 2857 ac_retval=0 2858else 2859 $as_echo "$as_me: failed program was:" >&5 2860sed 's/^/| /' conftest.$ac_ext >&5 2861 2862 ac_retval=1 2863fi 2864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2866 # interfere with the next link command; also delete a directory that is 2867 # left behind by Apple's compiler. We do this before executing the actions. 2868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2870 as_fn_set_status $ac_retval 2871 2872} # ac_fn_cxx_try_link 2873 2874# ac_fn_f77_try_compile LINENO 2875# ---------------------------- 2876# Try to compile conftest.$ac_ext, and return whether this succeeded. 2877ac_fn_f77_try_compile () 2878{ 2879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2880 rm -f conftest.$ac_objext 2881 if { { ac_try="$ac_compile" 2882case "(($ac_try" in 2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2884 *) ac_try_echo=$ac_try;; 2885esac 2886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2887$as_echo "$ac_try_echo"; } >&5 2888 (eval "$ac_compile") 2>conftest.err 2889 ac_status=$? 2890 if test -s conftest.err; then 2891 grep -v '^ *+' conftest.err >conftest.er1 2892 cat conftest.er1 >&5 2893 mv -f conftest.er1 conftest.err 2894 fi 2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2896 test $ac_status = 0; } && { 2897 test -z "$ac_f77_werror_flag" || 2898 test ! -s conftest.err 2899 } && test -s conftest.$ac_objext; then : 2900 ac_retval=0 2901else 2902 $as_echo "$as_me: failed program was:" >&5 2903sed 's/^/| /' conftest.$ac_ext >&5 2904 2905 ac_retval=1 2906fi 2907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2908 as_fn_set_status $ac_retval 2909 2910} # ac_fn_f77_try_compile 2911 2912# ac_fn_f77_try_link LINENO 2913# ------------------------- 2914# Try to link conftest.$ac_ext, and return whether this succeeded. 2915ac_fn_f77_try_link () 2916{ 2917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2918 rm -f conftest.$ac_objext conftest$ac_exeext 2919 if { { ac_try="$ac_link" 2920case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923esac 2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2925$as_echo "$ac_try_echo"; } >&5 2926 (eval "$ac_link") 2>conftest.err 2927 ac_status=$? 2928 if test -s conftest.err; then 2929 grep -v '^ *+' conftest.err >conftest.er1 2930 cat conftest.er1 >&5 2931 mv -f conftest.er1 conftest.err 2932 fi 2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2934 test $ac_status = 0; } && { 2935 test -z "$ac_f77_werror_flag" || 2936 test ! -s conftest.err 2937 } && test -s conftest$ac_exeext && { 2938 test "$cross_compiling" = yes || 2939 $as_test_x conftest$ac_exeext 2940 }; then : 2941 ac_retval=0 2942else 2943 $as_echo "$as_me: failed program was:" >&5 2944sed 's/^/| /' conftest.$ac_ext >&5 2945 2946 ac_retval=1 2947fi 2948 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2949 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2950 # interfere with the next link command; also delete a directory that is 2951 # left behind by Apple's compiler. We do this before executing the actions. 2952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2954 as_fn_set_status $ac_retval 2955 2956} # ac_fn_f77_try_link 2957 2958# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2959# ------------------------------------------- 2960# Tests whether TYPE exists after having included INCLUDES, setting cache 2961# variable VAR accordingly. 2962ac_fn_c_check_type () 2963{ 2964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2966$as_echo_n "checking for $2... " >&6; } 2967if eval "test \"\${$3+set}\"" = set; then : 2968 $as_echo_n "(cached) " >&6 2969else 2970 eval "$3=no" 2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2972/* end confdefs.h. */ 2973$4 2974int 2975main () 2976{ 2977if (sizeof ($2)) 2978 return 0; 2979 ; 2980 return 0; 2981} 2982_ACEOF 2983if ac_fn_c_try_compile "$LINENO"; then : 2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2985/* end confdefs.h. */ 2986$4 2987int 2988main () 2989{ 2990if (sizeof (($2))) 2991 return 0; 2992 ; 2993 return 0; 2994} 2995_ACEOF 2996if ac_fn_c_try_compile "$LINENO"; then : 2997 2998else 2999 eval "$3=yes" 3000fi 3001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3002fi 3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3004fi 3005eval ac_res=\$$3 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3007$as_echo "$ac_res" >&6; } 3008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 3009 3010} # ac_fn_c_check_type 3011 3012# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 3013# -------------------------------------------- 3014# Tries to find the compile-time value of EXPR in a program that includes 3015# INCLUDES, setting VAR accordingly. Returns whether the value could be 3016# computed 3017ac_fn_c_compute_int () 3018{ 3019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3020 if test "$cross_compiling" = yes; then 3021 # Depending upon the size, compute the lo and hi bounds. 3022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3023/* end confdefs.h. */ 3024$4 3025int 3026main () 3027{ 3028static int test_array [1 - 2 * !(($2) >= 0)]; 3029test_array [0] = 0 3030 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035if ac_fn_c_try_compile "$LINENO"; then : 3036 ac_lo=0 ac_mid=0 3037 while :; do 3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3039/* end confdefs.h. */ 3040$4 3041int 3042main () 3043{ 3044static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3045test_array [0] = 0 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051if ac_fn_c_try_compile "$LINENO"; then : 3052 ac_hi=$ac_mid; break 3053else 3054 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3055 if test $ac_lo -le $ac_mid; then 3056 ac_lo= ac_hi= 3057 break 3058 fi 3059 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 3060fi 3061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3062 done 3063else 3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3065/* end confdefs.h. */ 3066$4 3067int 3068main () 3069{ 3070static int test_array [1 - 2 * !(($2) < 0)]; 3071test_array [0] = 0 3072 3073 ; 3074 return 0; 3075} 3076_ACEOF 3077if ac_fn_c_try_compile "$LINENO"; then : 3078 ac_hi=-1 ac_mid=-1 3079 while :; do 3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3081/* end confdefs.h. */ 3082$4 3083int 3084main () 3085{ 3086static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3087test_array [0] = 0 3088 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093if ac_fn_c_try_compile "$LINENO"; then : 3094 ac_lo=$ac_mid; break 3095else 3096 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3097 if test $ac_mid -le $ac_hi; then 3098 ac_lo= ac_hi= 3099 break 3100 fi 3101 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3102fi 3103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3104 done 3105else 3106 ac_lo= ac_hi= 3107fi 3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3109fi 3110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3111# Binary search between lo and hi bounds. 3112while test "x$ac_lo" != "x$ac_hi"; do 3113 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3115/* end confdefs.h. */ 3116$4 3117int 3118main () 3119{ 3120static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3121test_array [0] = 0 3122 3123 ; 3124 return 0; 3125} 3126_ACEOF 3127if ac_fn_c_try_compile "$LINENO"; then : 3128 ac_hi=$ac_mid 3129else 3130 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3131fi 3132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3133done 3134case $ac_lo in #(( 3135?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3136'') ac_retval=1 ;; 3137esac 3138 else 3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3140/* end confdefs.h. */ 3141$4 3142static long int longval () { return $2; } 3143static unsigned long int ulongval () { return $2; } 3144#include <stdio.h> 3145#include <stdlib.h> 3146int 3147main () 3148{ 3149 3150 FILE *f = fopen ("conftest.val", "w"); 3151 if (! f) 3152 return 1; 3153 if (($2) < 0) 3154 { 3155 long int i = longval (); 3156 if (i != ($2)) 3157 return 1; 3158 fprintf (f, "%ld", i); 3159 } 3160 else 3161 { 3162 unsigned long int i = ulongval (); 3163 if (i != ($2)) 3164 return 1; 3165 fprintf (f, "%lu", i); 3166 } 3167 /* Do not output a trailing newline, as this causes \r\n confusion 3168 on some platforms. */ 3169 return ferror (f) || fclose (f) != 0; 3170 3171 ; 3172 return 0; 3173} 3174_ACEOF 3175if ac_fn_c_try_run "$LINENO"; then : 3176 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3177else 3178 ac_retval=1 3179fi 3180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3181 conftest.$ac_objext conftest.beam conftest.$ac_ext 3182rm -f conftest.val 3183 3184 fi 3185 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 3186 as_fn_set_status $ac_retval 3187 3188} # ac_fn_c_compute_int 3189cat >config.log <<_ACEOF 3190This file contains any messages produced by compilers while 3191running configure, to aid debugging if configure makes a mistake. 3192 3193It was created by $as_me, which was 3194generated by GNU Autoconf 2.67. Invocation command line was 3195 3196 $ $0 $@ 3197 3198_ACEOF 3199exec 5>>config.log 3200{ 3201cat <<_ASUNAME 3202## --------- ## 3203## Platform. ## 3204## --------- ## 3205 3206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3207uname -m = `(uname -m) 2>/dev/null || echo unknown` 3208uname -r = `(uname -r) 2>/dev/null || echo unknown` 3209uname -s = `(uname -s) 2>/dev/null || echo unknown` 3210uname -v = `(uname -v) 2>/dev/null || echo unknown` 3211 3212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3213/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3214 3215/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3216/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3218/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3219/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3220/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3221/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3222 3223_ASUNAME 3224 3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3226for as_dir in $PATH 3227do 3228 IFS=$as_save_IFS 3229 test -z "$as_dir" && as_dir=. 3230 $as_echo "PATH: $as_dir" 3231 done 3232IFS=$as_save_IFS 3233 3234} >&5 3235 3236cat >&5 <<_ACEOF 3237 3238 3239## ----------- ## 3240## Core tests. ## 3241## ----------- ## 3242 3243_ACEOF 3244 3245 3246# Keep a trace of the command line. 3247# Strip out --no-create and --no-recursion so they do not pile up. 3248# Strip out --silent because we don't want to record it for future runs. 3249# Also quote any args containing shell meta-characters. 3250# Make two passes to allow for proper duplicate-argument suppression. 3251ac_configure_args= 3252ac_configure_args0= 3253ac_configure_args1= 3254ac_must_keep_next=false 3255for ac_pass in 1 2 3256do 3257 for ac_arg 3258 do 3259 case $ac_arg in 3260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3262 | -silent | --silent | --silen | --sile | --sil) 3263 continue ;; 3264 *\'*) 3265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3266 esac 3267 case $ac_pass in 3268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3269 2) 3270 as_fn_append ac_configure_args1 " '$ac_arg'" 3271 if test $ac_must_keep_next = true; then 3272 ac_must_keep_next=false # Got value, back to normal. 3273 else 3274 case $ac_arg in 3275 *=* | --config-cache | -C | -disable-* | --disable-* \ 3276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3278 | -with-* | --with-* | -without-* | --without-* | --x) 3279 case "$ac_configure_args0 " in 3280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3281 esac 3282 ;; 3283 -* ) ac_must_keep_next=true ;; 3284 esac 3285 fi 3286 as_fn_append ac_configure_args " '$ac_arg'" 3287 ;; 3288 esac 3289 done 3290done 3291{ ac_configure_args0=; unset ac_configure_args0;} 3292{ ac_configure_args1=; unset ac_configure_args1;} 3293 3294# When interrupted or exit'd, cleanup temporary files, and complete 3295# config.log. We remove comments because anyway the quotes in there 3296# would cause problems or look ugly. 3297# WARNING: Use '\'' to represent an apostrophe within the trap. 3298# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3299trap 'exit_status=$? 3300 # Save into config.log some information that might help in debugging. 3301 { 3302 echo 3303 3304 $as_echo "## ---------------- ## 3305## Cache variables. ## 3306## ---------------- ##" 3307 echo 3308 # The following way of writing the cache mishandles newlines in values, 3309( 3310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3311 eval ac_val=\$$ac_var 3312 case $ac_val in #( 3313 *${as_nl}*) 3314 case $ac_var in #( 3315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3316$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3317 esac 3318 case $ac_var in #( 3319 _ | IFS | as_nl) ;; #( 3320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3321 *) { eval $ac_var=; unset $ac_var;} ;; 3322 esac ;; 3323 esac 3324 done 3325 (set) 2>&1 | 3326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3327 *${as_nl}ac_space=\ *) 3328 sed -n \ 3329 "s/'\''/'\''\\\\'\'''\''/g; 3330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3331 ;; #( 3332 *) 3333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3334 ;; 3335 esac | 3336 sort 3337) 3338 echo 3339 3340 $as_echo "## ----------------- ## 3341## Output variables. ## 3342## ----------------- ##" 3343 echo 3344 for ac_var in $ac_subst_vars 3345 do 3346 eval ac_val=\$$ac_var 3347 case $ac_val in 3348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3349 esac 3350 $as_echo "$ac_var='\''$ac_val'\''" 3351 done | sort 3352 echo 3353 3354 if test -n "$ac_subst_files"; then 3355 $as_echo "## ------------------- ## 3356## File substitutions. ## 3357## ------------------- ##" 3358 echo 3359 for ac_var in $ac_subst_files 3360 do 3361 eval ac_val=\$$ac_var 3362 case $ac_val in 3363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3364 esac 3365 $as_echo "$ac_var='\''$ac_val'\''" 3366 done | sort 3367 echo 3368 fi 3369 3370 if test -s confdefs.h; then 3371 $as_echo "## ----------- ## 3372## confdefs.h. ## 3373## ----------- ##" 3374 echo 3375 cat confdefs.h 3376 echo 3377 fi 3378 test "$ac_signal" != 0 && 3379 $as_echo "$as_me: caught signal $ac_signal" 3380 $as_echo "$as_me: exit $exit_status" 3381 } >&5 3382 rm -f core *.core core.conftest.* && 3383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3384 exit $exit_status 3385' 0 3386for ac_signal in 1 2 13 15; do 3387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3388done 3389ac_signal=0 3390 3391# confdefs.h avoids OS command line length limits that DEFS can exceed. 3392rm -f -r conftest* confdefs.h 3393 3394$as_echo "/* confdefs.h */" > confdefs.h 3395 3396# Predefined preprocessor variables. 3397 3398cat >>confdefs.h <<_ACEOF 3399#define PACKAGE_NAME "$PACKAGE_NAME" 3400_ACEOF 3401 3402cat >>confdefs.h <<_ACEOF 3403#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3404_ACEOF 3405 3406cat >>confdefs.h <<_ACEOF 3407#define PACKAGE_VERSION "$PACKAGE_VERSION" 3408_ACEOF 3409 3410cat >>confdefs.h <<_ACEOF 3411#define PACKAGE_STRING "$PACKAGE_STRING" 3412_ACEOF 3413 3414cat >>confdefs.h <<_ACEOF 3415#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3416_ACEOF 3417 3418cat >>confdefs.h <<_ACEOF 3419#define PACKAGE_URL "$PACKAGE_URL" 3420_ACEOF 3421 3422 3423# Let the site file select an alternate cache file if it wants to. 3424# Prefer an explicitly selected file to automatically selected ones. 3425ac_site_file1=NONE 3426ac_site_file2=NONE 3427if test -n "$CONFIG_SITE"; then 3428 # We do not want a PATH search for config.site. 3429 case $CONFIG_SITE in #(( 3430 -*) ac_site_file1=./$CONFIG_SITE;; 3431 */*) ac_site_file1=$CONFIG_SITE;; 3432 *) ac_site_file1=./$CONFIG_SITE;; 3433 esac 3434elif test "x$prefix" != xNONE; then 3435 ac_site_file1=$prefix/share/config.site 3436 ac_site_file2=$prefix/etc/config.site 3437else 3438 ac_site_file1=$ac_default_prefix/share/config.site 3439 ac_site_file2=$ac_default_prefix/etc/config.site 3440fi 3441for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3442do 3443 test "x$ac_site_file" = xNONE && continue 3444 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3446$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3447 sed 's/^/| /' "$ac_site_file" >&5 3448 . "$ac_site_file" \ 3449 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3451as_fn_error $? "failed to load site script $ac_site_file 3452See \`config.log' for more details" "$LINENO" 5; } 3453 fi 3454done 3455 3456if test -r "$cache_file"; then 3457 # Some versions of bash will fail to source /dev/null (special files 3458 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3461$as_echo "$as_me: loading cache $cache_file" >&6;} 3462 case $cache_file in 3463 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3464 *) . "./$cache_file";; 3465 esac 3466 fi 3467else 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3469$as_echo "$as_me: creating cache $cache_file" >&6;} 3470 >$cache_file 3471fi 3472 3473# Check that the precious variables saved in the cache have kept the same 3474# value. 3475ac_cache_corrupted=false 3476for ac_var in $ac_precious_vars; do 3477 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3478 eval ac_new_set=\$ac_env_${ac_var}_set 3479 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3480 eval ac_new_val=\$ac_env_${ac_var}_value 3481 case $ac_old_set,$ac_new_set in 3482 set,) 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3484$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3485 ac_cache_corrupted=: ;; 3486 ,set) 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3488$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3489 ac_cache_corrupted=: ;; 3490 ,);; 3491 *) 3492 if test "x$ac_old_val" != "x$ac_new_val"; then 3493 # differences in whitespace do not lead to failure. 3494 ac_old_val_w=`echo x $ac_old_val` 3495 ac_new_val_w=`echo x $ac_new_val` 3496 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3498$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3499 ac_cache_corrupted=: 3500 else 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3502$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3503 eval $ac_var=\$ac_old_val 3504 fi 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3506$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3508$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3509 fi;; 3510 esac 3511 # Pass precious variables to config.status. 3512 if test "$ac_new_set" = set; then 3513 case $ac_new_val in 3514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3515 *) ac_arg=$ac_var=$ac_new_val ;; 3516 esac 3517 case " $ac_configure_args " in 3518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3519 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3520 esac 3521 fi 3522done 3523if $ac_cache_corrupted; then 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3527$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3528 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3529fi 3530## -------------------- ## 3531## Main body of script. ## 3532## -------------------- ## 3533 3534ac_ext=c 3535ac_cpp='$CPP $CPPFLAGS' 3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3538ac_compiler_gnu=$ac_cv_c_compiler_gnu 3539 3540 3541 3542 3543ac_config_headers="$ac_config_headers config.h" 3544 3545 3546ac_aux_dir= 3547for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3548 if test -f "$ac_dir/install-sh"; then 3549 ac_aux_dir=$ac_dir 3550 ac_install_sh="$ac_aux_dir/install-sh -c" 3551 break 3552 elif test -f "$ac_dir/install.sh"; then 3553 ac_aux_dir=$ac_dir 3554 ac_install_sh="$ac_aux_dir/install.sh -c" 3555 break 3556 elif test -f "$ac_dir/shtool"; then 3557 ac_aux_dir=$ac_dir 3558 ac_install_sh="$ac_aux_dir/shtool install -c" 3559 break 3560 fi 3561done 3562if test -z "$ac_aux_dir"; then 3563 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3564fi 3565 3566# These three variables are undocumented and unsupported, 3567# and are intended to be withdrawn in a future Autoconf release. 3568# They can cause serious problems if a builder's source tree is in a directory 3569# whose full name contains unusual characters. 3570ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3571ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3572ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3573 3574 3575# Make sure we can run config.sub. 3576$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3577 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3578 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3580$as_echo_n "checking build system type... " >&6; } 3581if test "${ac_cv_build+set}" = set; then : 3582 $as_echo_n "(cached) " >&6 3583else 3584 ac_build_alias=$build_alias 3585test "x$ac_build_alias" = x && 3586 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3587test "x$ac_build_alias" = x && 3588 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3589ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3591 3592fi 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3594$as_echo "$ac_cv_build" >&6; } 3595case $ac_cv_build in 3596*-*-*) ;; 3597*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3598esac 3599build=$ac_cv_build 3600ac_save_IFS=$IFS; IFS='-' 3601set x $ac_cv_build 3602shift 3603build_cpu=$1 3604build_vendor=$2 3605shift; shift 3606# Remember, the first character of IFS is used to create $*, 3607# except with old shells: 3608build_os=$* 3609IFS=$ac_save_IFS 3610case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3611 3612 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3614$as_echo_n "checking host system type... " >&6; } 3615if test "${ac_cv_host+set}" = set; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 if test "x$host_alias" = x; then 3619 ac_cv_host=$ac_cv_build 3620else 3621 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3622 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3623fi 3624 3625fi 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3627$as_echo "$ac_cv_host" >&6; } 3628case $ac_cv_host in 3629*-*-*) ;; 3630*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3631esac 3632host=$ac_cv_host 3633ac_save_IFS=$IFS; IFS='-' 3634set x $ac_cv_host 3635shift 3636host_cpu=$1 3637host_vendor=$2 3638shift; shift 3639# Remember, the first character of IFS is used to create $*, 3640# except with old shells: 3641host_os=$* 3642IFS=$ac_save_IFS 3643case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3644 3645 3646 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3648$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3649set x ${MAKE-make} 3650ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3651if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 cat >conftest.make <<\_ACEOF 3655SHELL = /bin/sh 3656all: 3657 @echo '@@@%%%=$(MAKE)=@@@%%%' 3658_ACEOF 3659# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3660case `${MAKE-make} -f conftest.make 2>/dev/null` in 3661 *@@@%%%=?*=@@@%%%*) 3662 eval ac_cv_prog_make_${ac_make}_set=yes;; 3663 *) 3664 eval ac_cv_prog_make_${ac_make}_set=no;; 3665esac 3666rm -f conftest.make 3667fi 3668if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3670$as_echo "yes" >&6; } 3671 SET_MAKE= 3672else 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3674$as_echo "no" >&6; } 3675 SET_MAKE="MAKE=${MAKE-make}" 3676fi 3677 3678 3679# 3680# GNU libtool support 3681# 3682case $build_os in 3683sunos*) 3684 # Just set the maximum command line length for sunos as it otherwise 3685 # takes a exceptionally long time to work it out. Required for libtool. 3686 3687 lt_cv_sys_max_cmd_len=4096; 3688 ;; 3689esac 3690 3691# Check whether --enable-shared was given. 3692if test "${enable_shared+set}" = set; then : 3693 enableval=$enable_shared; p=${PACKAGE-default} 3694 case $enableval in 3695 yes) enable_shared=yes ;; 3696 no) enable_shared=no ;; 3697 *) 3698 enable_shared=no 3699 # Look at the argument we got. We use all the common list separators. 3700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3701 for pkg in $enableval; do 3702 IFS="$lt_save_ifs" 3703 if test "X$pkg" = "X$p"; then 3704 enable_shared=yes 3705 fi 3706 done 3707 IFS="$lt_save_ifs" 3708 ;; 3709 esac 3710else 3711 enable_shared=yes 3712fi 3713 3714 3715# Check whether --enable-static was given. 3716if test "${enable_static+set}" = set; then : 3717 enableval=$enable_static; p=${PACKAGE-default} 3718 case $enableval in 3719 yes) enable_static=yes ;; 3720 no) enable_static=no ;; 3721 *) 3722 enable_static=no 3723 # Look at the argument we got. We use all the common list separators. 3724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3725 for pkg in $enableval; do 3726 IFS="$lt_save_ifs" 3727 if test "X$pkg" = "X$p"; then 3728 enable_static=yes 3729 fi 3730 done 3731 IFS="$lt_save_ifs" 3732 ;; 3733 esac 3734else 3735 enable_static=yes 3736fi 3737 3738 3739# Check whether --enable-fast-install was given. 3740if test "${enable_fast_install+set}" = set; then : 3741 enableval=$enable_fast_install; p=${PACKAGE-default} 3742 case $enableval in 3743 yes) enable_fast_install=yes ;; 3744 no) enable_fast_install=no ;; 3745 *) 3746 enable_fast_install=no 3747 # Look at the argument we got. We use all the common list separators. 3748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3749 for pkg in $enableval; do 3750 IFS="$lt_save_ifs" 3751 if test "X$pkg" = "X$p"; then 3752 enable_fast_install=yes 3753 fi 3754 done 3755 IFS="$lt_save_ifs" 3756 ;; 3757 esac 3758else 3759 enable_fast_install=yes 3760fi 3761 3762 3763ac_ext=c 3764ac_cpp='$CPP $CPPFLAGS' 3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3767ac_compiler_gnu=$ac_cv_c_compiler_gnu 3768if test -n "$ac_tool_prefix"; then 3769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3770set dummy ${ac_tool_prefix}gcc; ac_word=$2 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3772$as_echo_n "checking for $ac_word... " >&6; } 3773if test "${ac_cv_prog_CC+set}" = set; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 if test -n "$CC"; then 3777 ac_cv_prog_CC="$CC" # Let the user override the test. 3778else 3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3786 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3788 break 2 3789 fi 3790done 3791 done 3792IFS=$as_save_IFS 3793 3794fi 3795fi 3796CC=$ac_cv_prog_CC 3797if test -n "$CC"; then 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3799$as_echo "$CC" >&6; } 3800else 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3802$as_echo "no" >&6; } 3803fi 3804 3805 3806fi 3807if test -z "$ac_cv_prog_CC"; then 3808 ac_ct_CC=$CC 3809 # Extract the first word of "gcc", so it can be a program name with args. 3810set dummy gcc; ac_word=$2 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3812$as_echo_n "checking for $ac_word... " >&6; } 3813if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3814 $as_echo_n "(cached) " >&6 3815else 3816 if test -n "$ac_ct_CC"; then 3817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3818else 3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820for as_dir in $PATH 3821do 3822 IFS=$as_save_IFS 3823 test -z "$as_dir" && as_dir=. 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3826 ac_cv_prog_ac_ct_CC="gcc" 3827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3828 break 2 3829 fi 3830done 3831 done 3832IFS=$as_save_IFS 3833 3834fi 3835fi 3836ac_ct_CC=$ac_cv_prog_ac_ct_CC 3837if test -n "$ac_ct_CC"; then 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3839$as_echo "$ac_ct_CC" >&6; } 3840else 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3842$as_echo "no" >&6; } 3843fi 3844 3845 if test "x$ac_ct_CC" = x; then 3846 CC="" 3847 else 3848 case $cross_compiling:$ac_tool_warned in 3849yes:) 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3852ac_tool_warned=yes ;; 3853esac 3854 CC=$ac_ct_CC 3855 fi 3856else 3857 CC="$ac_cv_prog_CC" 3858fi 3859 3860if test -z "$CC"; then 3861 if test -n "$ac_tool_prefix"; then 3862 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3863set dummy ${ac_tool_prefix}cc; ac_word=$2 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3865$as_echo_n "checking for $ac_word... " >&6; } 3866if test "${ac_cv_prog_CC+set}" = set; then : 3867 $as_echo_n "(cached) " >&6 3868else 3869 if test -n "$CC"; then 3870 ac_cv_prog_CC="$CC" # Let the user override the test. 3871else 3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3873for as_dir in $PATH 3874do 3875 IFS=$as_save_IFS 3876 test -z "$as_dir" && as_dir=. 3877 for ac_exec_ext in '' $ac_executable_extensions; do 3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3879 ac_cv_prog_CC="${ac_tool_prefix}cc" 3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3881 break 2 3882 fi 3883done 3884 done 3885IFS=$as_save_IFS 3886 3887fi 3888fi 3889CC=$ac_cv_prog_CC 3890if test -n "$CC"; then 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3892$as_echo "$CC" >&6; } 3893else 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3895$as_echo "no" >&6; } 3896fi 3897 3898 3899 fi 3900fi 3901if test -z "$CC"; then 3902 # Extract the first word of "cc", so it can be a program name with args. 3903set dummy cc; ac_word=$2 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3905$as_echo_n "checking for $ac_word... " >&6; } 3906if test "${ac_cv_prog_CC+set}" = set; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 if test -n "$CC"; then 3910 ac_cv_prog_CC="$CC" # Let the user override the test. 3911else 3912 ac_prog_rejected=no 3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3914for as_dir in $PATH 3915do 3916 IFS=$as_save_IFS 3917 test -z "$as_dir" && as_dir=. 3918 for ac_exec_ext in '' $ac_executable_extensions; do 3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3921 ac_prog_rejected=yes 3922 continue 3923 fi 3924 ac_cv_prog_CC="cc" 3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3926 break 2 3927 fi 3928done 3929 done 3930IFS=$as_save_IFS 3931 3932if test $ac_prog_rejected = yes; then 3933 # We found a bogon in the path, so make sure we never use it. 3934 set dummy $ac_cv_prog_CC 3935 shift 3936 if test $# != 0; then 3937 # We chose a different compiler from the bogus one. 3938 # However, it has the same basename, so the bogon will be chosen 3939 # first if we set CC to just the basename; use the full file name. 3940 shift 3941 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3942 fi 3943fi 3944fi 3945fi 3946CC=$ac_cv_prog_CC 3947if test -n "$CC"; then 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3949$as_echo "$CC" >&6; } 3950else 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3952$as_echo "no" >&6; } 3953fi 3954 3955 3956fi 3957if test -z "$CC"; then 3958 if test -n "$ac_tool_prefix"; then 3959 for ac_prog in cl.exe 3960 do 3961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3962set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3964$as_echo_n "checking for $ac_word... " >&6; } 3965if test "${ac_cv_prog_CC+set}" = set; then : 3966 $as_echo_n "(cached) " >&6 3967else 3968 if test -n "$CC"; then 3969 ac_cv_prog_CC="$CC" # Let the user override the test. 3970else 3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3972for as_dir in $PATH 3973do 3974 IFS=$as_save_IFS 3975 test -z "$as_dir" && as_dir=. 3976 for ac_exec_ext in '' $ac_executable_extensions; do 3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3978 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3980 break 2 3981 fi 3982done 3983 done 3984IFS=$as_save_IFS 3985 3986fi 3987fi 3988CC=$ac_cv_prog_CC 3989if test -n "$CC"; then 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3991$as_echo "$CC" >&6; } 3992else 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3994$as_echo "no" >&6; } 3995fi 3996 3997 3998 test -n "$CC" && break 3999 done 4000fi 4001if test -z "$CC"; then 4002 ac_ct_CC=$CC 4003 for ac_prog in cl.exe 4004do 4005 # Extract the first word of "$ac_prog", so it can be a program name with args. 4006set dummy $ac_prog; ac_word=$2 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4008$as_echo_n "checking for $ac_word... " >&6; } 4009if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4010 $as_echo_n "(cached) " >&6 4011else 4012 if test -n "$ac_ct_CC"; then 4013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4014else 4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH 4017do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 for ac_exec_ext in '' $ac_executable_extensions; do 4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4022 ac_cv_prog_ac_ct_CC="$ac_prog" 4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4024 break 2 4025 fi 4026done 4027 done 4028IFS=$as_save_IFS 4029 4030fi 4031fi 4032ac_ct_CC=$ac_cv_prog_ac_ct_CC 4033if test -n "$ac_ct_CC"; then 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4035$as_echo "$ac_ct_CC" >&6; } 4036else 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4038$as_echo "no" >&6; } 4039fi 4040 4041 4042 test -n "$ac_ct_CC" && break 4043done 4044 4045 if test "x$ac_ct_CC" = x; then 4046 CC="" 4047 else 4048 case $cross_compiling:$ac_tool_warned in 4049yes:) 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4052ac_tool_warned=yes ;; 4053esac 4054 CC=$ac_ct_CC 4055 fi 4056fi 4057 4058fi 4059 4060 4061test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4063as_fn_error $? "no acceptable C compiler found in \$PATH 4064See \`config.log' for more details" "$LINENO" 5; } 4065 4066# Provide some information about the compiler. 4067$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4068set X $ac_compile 4069ac_compiler=$2 4070for ac_option in --version -v -V -qversion; do 4071 { { ac_try="$ac_compiler $ac_option >&5" 4072case "(($ac_try" in 4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4074 *) ac_try_echo=$ac_try;; 4075esac 4076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4077$as_echo "$ac_try_echo"; } >&5 4078 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4079 ac_status=$? 4080 if test -s conftest.err; then 4081 sed '10a\ 4082... rest of stderr output deleted ... 4083 10q' conftest.err >conftest.er1 4084 cat conftest.er1 >&5 4085 fi 4086 rm -f conftest.er1 conftest.err 4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4088 test $ac_status = 0; } 4089done 4090 4091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4092/* end confdefs.h. */ 4093 4094int 4095main () 4096{ 4097 4098 ; 4099 return 0; 4100} 4101_ACEOF 4102ac_clean_files_save=$ac_clean_files 4103ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4104# Try to create an executable without -o first, disregard a.out. 4105# It will help us diagnose broken compilers, and finding out an intuition 4106# of exeext. 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4108$as_echo_n "checking whether the C compiler works... " >&6; } 4109ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4110 4111# The possible output files: 4112ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4113 4114ac_rmfiles= 4115for ac_file in $ac_files 4116do 4117 case $ac_file in 4118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4119 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4120 esac 4121done 4122rm -f $ac_rmfiles 4123 4124if { { ac_try="$ac_link_default" 4125case "(($ac_try" in 4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4127 *) ac_try_echo=$ac_try;; 4128esac 4129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4130$as_echo "$ac_try_echo"; } >&5 4131 (eval "$ac_link_default") 2>&5 4132 ac_status=$? 4133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4134 test $ac_status = 0; }; then : 4135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4136# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4137# in a Makefile. We should not override ac_cv_exeext if it was cached, 4138# so that the user can short-circuit this test for compilers unknown to 4139# Autoconf. 4140for ac_file in $ac_files '' 4141do 4142 test -f "$ac_file" || continue 4143 case $ac_file in 4144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4145 ;; 4146 [ab].out ) 4147 # We found the default executable, but exeext='' is most 4148 # certainly right. 4149 break;; 4150 *.* ) 4151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4152 then :; else 4153 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4154 fi 4155 # We set ac_cv_exeext here because the later test for it is not 4156 # safe: cross compilers may not add the suffix if given an `-o' 4157 # argument, so we may need to know it at that point already. 4158 # Even if this section looks crufty: it has the advantage of 4159 # actually working. 4160 break;; 4161 * ) 4162 break;; 4163 esac 4164done 4165test "$ac_cv_exeext" = no && ac_cv_exeext= 4166 4167else 4168 ac_file='' 4169fi 4170if test -z "$ac_file"; then : 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4172$as_echo "no" >&6; } 4173$as_echo "$as_me: failed program was:" >&5 4174sed 's/^/| /' conftest.$ac_ext >&5 4175 4176{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4178as_fn_error 77 "C compiler cannot create executables 4179See \`config.log' for more details" "$LINENO" 5; } 4180else 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4182$as_echo "yes" >&6; } 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4185$as_echo_n "checking for C compiler default output file name... " >&6; } 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4187$as_echo "$ac_file" >&6; } 4188ac_exeext=$ac_cv_exeext 4189 4190rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4191ac_clean_files=$ac_clean_files_save 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4193$as_echo_n "checking for suffix of executables... " >&6; } 4194if { { ac_try="$ac_link" 4195case "(($ac_try" in 4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4197 *) ac_try_echo=$ac_try;; 4198esac 4199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4200$as_echo "$ac_try_echo"; } >&5 4201 (eval "$ac_link") 2>&5 4202 ac_status=$? 4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4204 test $ac_status = 0; }; then : 4205 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4206# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4207# work properly (i.e., refer to `conftest.exe'), while it won't with 4208# `rm'. 4209for ac_file in conftest.exe conftest conftest.*; do 4210 test -f "$ac_file" || continue 4211 case $ac_file in 4212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4214 break;; 4215 * ) break;; 4216 esac 4217done 4218else 4219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4221as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4222See \`config.log' for more details" "$LINENO" 5; } 4223fi 4224rm -f conftest conftest$ac_cv_exeext 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4226$as_echo "$ac_cv_exeext" >&6; } 4227 4228rm -f conftest.$ac_ext 4229EXEEXT=$ac_cv_exeext 4230ac_exeext=$EXEEXT 4231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233#include <stdio.h> 4234int 4235main () 4236{ 4237FILE *f = fopen ("conftest.out", "w"); 4238 return ferror (f) || fclose (f) != 0; 4239 4240 ; 4241 return 0; 4242} 4243_ACEOF 4244ac_clean_files="$ac_clean_files conftest.out" 4245# Check that the compiler produces executables we can run. If not, either 4246# the compiler is broken, or we cross compile. 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4248$as_echo_n "checking whether we are cross compiling... " >&6; } 4249if test "$cross_compiling" != yes; then 4250 { { ac_try="$ac_link" 4251case "(($ac_try" in 4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4253 *) ac_try_echo=$ac_try;; 4254esac 4255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4256$as_echo "$ac_try_echo"; } >&5 4257 (eval "$ac_link") 2>&5 4258 ac_status=$? 4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4260 test $ac_status = 0; } 4261 if { ac_try='./conftest$ac_cv_exeext' 4262 { { case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265esac 4266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4267$as_echo "$ac_try_echo"; } >&5 4268 (eval "$ac_try") 2>&5 4269 ac_status=$? 4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4271 test $ac_status = 0; }; }; then 4272 cross_compiling=no 4273 else 4274 if test "$cross_compiling" = maybe; then 4275 cross_compiling=yes 4276 else 4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4279as_fn_error $? "cannot run C compiled programs. 4280If you meant to cross compile, use \`--host'. 4281See \`config.log' for more details" "$LINENO" 5; } 4282 fi 4283 fi 4284fi 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4286$as_echo "$cross_compiling" >&6; } 4287 4288rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4289ac_clean_files=$ac_clean_files_save 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4291$as_echo_n "checking for suffix of object files... " >&6; } 4292if test "${ac_cv_objext+set}" = set; then : 4293 $as_echo_n "(cached) " >&6 4294else 4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296/* end confdefs.h. */ 4297 4298int 4299main () 4300{ 4301 4302 ; 4303 return 0; 4304} 4305_ACEOF 4306rm -f conftest.o conftest.obj 4307if { { ac_try="$ac_compile" 4308case "(($ac_try" in 4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4310 *) ac_try_echo=$ac_try;; 4311esac 4312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4313$as_echo "$ac_try_echo"; } >&5 4314 (eval "$ac_compile") 2>&5 4315 ac_status=$? 4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4317 test $ac_status = 0; }; then : 4318 for ac_file in conftest.o conftest.obj conftest.*; do 4319 test -f "$ac_file" || continue; 4320 case $ac_file in 4321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4323 break;; 4324 esac 4325done 4326else 4327 $as_echo "$as_me: failed program was:" >&5 4328sed 's/^/| /' conftest.$ac_ext >&5 4329 4330{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4332as_fn_error $? "cannot compute suffix of object files: cannot compile 4333See \`config.log' for more details" "$LINENO" 5; } 4334fi 4335rm -f conftest.$ac_cv_objext conftest.$ac_ext 4336fi 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4338$as_echo "$ac_cv_objext" >&6; } 4339OBJEXT=$ac_cv_objext 4340ac_objext=$OBJEXT 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4342$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4343if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4344 $as_echo_n "(cached) " >&6 4345else 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4347/* end confdefs.h. */ 4348 4349int 4350main () 4351{ 4352#ifndef __GNUC__ 4353 choke me 4354#endif 4355 4356 ; 4357 return 0; 4358} 4359_ACEOF 4360if ac_fn_c_try_compile "$LINENO"; then : 4361 ac_compiler_gnu=yes 4362else 4363 ac_compiler_gnu=no 4364fi 4365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4366ac_cv_c_compiler_gnu=$ac_compiler_gnu 4367 4368fi 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4370$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4371if test $ac_compiler_gnu = yes; then 4372 GCC=yes 4373else 4374 GCC= 4375fi 4376ac_test_CFLAGS=${CFLAGS+set} 4377ac_save_CFLAGS=$CFLAGS 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4379$as_echo_n "checking whether $CC accepts -g... " >&6; } 4380if test "${ac_cv_prog_cc_g+set}" = set; then : 4381 $as_echo_n "(cached) " >&6 4382else 4383 ac_save_c_werror_flag=$ac_c_werror_flag 4384 ac_c_werror_flag=yes 4385 ac_cv_prog_cc_g=no 4386 CFLAGS="-g" 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389 4390int 4391main () 4392{ 4393 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398if ac_fn_c_try_compile "$LINENO"; then : 4399 ac_cv_prog_cc_g=yes 4400else 4401 CFLAGS="" 4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4403/* end confdefs.h. */ 4404 4405int 4406main () 4407{ 4408 4409 ; 4410 return 0; 4411} 4412_ACEOF 4413if ac_fn_c_try_compile "$LINENO"; then : 4414 4415else 4416 ac_c_werror_flag=$ac_save_c_werror_flag 4417 CFLAGS="-g" 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4419/* end confdefs.h. */ 4420 4421int 4422main () 4423{ 4424 4425 ; 4426 return 0; 4427} 4428_ACEOF 4429if ac_fn_c_try_compile "$LINENO"; then : 4430 ac_cv_prog_cc_g=yes 4431fi 4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4433fi 4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4435fi 4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4437 ac_c_werror_flag=$ac_save_c_werror_flag 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4440$as_echo "$ac_cv_prog_cc_g" >&6; } 4441if test "$ac_test_CFLAGS" = set; then 4442 CFLAGS=$ac_save_CFLAGS 4443elif test $ac_cv_prog_cc_g = yes; then 4444 if test "$GCC" = yes; then 4445 CFLAGS="-g -O2" 4446 else 4447 CFLAGS="-g" 4448 fi 4449else 4450 if test "$GCC" = yes; then 4451 CFLAGS="-O2" 4452 else 4453 CFLAGS= 4454 fi 4455fi 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4457$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4458if test "${ac_cv_prog_cc_c89+set}" = set; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 ac_cv_prog_cc_c89=no 4462ac_save_CC=$CC 4463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4464/* end confdefs.h. */ 4465#include <stdarg.h> 4466#include <stdio.h> 4467#include <sys/types.h> 4468#include <sys/stat.h> 4469/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4470struct buf { int x; }; 4471FILE * (*rcsopen) (struct buf *, struct stat *, int); 4472static char *e (p, i) 4473 char **p; 4474 int i; 4475{ 4476 return p[i]; 4477} 4478static char *f (char * (*g) (char **, int), char **p, ...) 4479{ 4480 char *s; 4481 va_list v; 4482 va_start (v,p); 4483 s = g (p, va_arg (v,int)); 4484 va_end (v); 4485 return s; 4486} 4487 4488/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4489 function prototypes and stuff, but not '\xHH' hex character constants. 4490 These don't provoke an error unfortunately, instead are silently treated 4491 as 'x'. The following induces an error, until -std is added to get 4492 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4493 array size at least. It's necessary to write '\x00'==0 to get something 4494 that's true only with -std. */ 4495int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4496 4497/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4498 inside strings and character constants. */ 4499#define FOO(x) 'x' 4500int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4501 4502int test (int i, double x); 4503struct s1 {int (*f) (int a);}; 4504struct s2 {int (*f) (double a);}; 4505int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4506int argc; 4507char **argv; 4508int 4509main () 4510{ 4511return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4512 ; 4513 return 0; 4514} 4515_ACEOF 4516for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4517 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4518do 4519 CC="$ac_save_CC $ac_arg" 4520 if ac_fn_c_try_compile "$LINENO"; then : 4521 ac_cv_prog_cc_c89=$ac_arg 4522fi 4523rm -f core conftest.err conftest.$ac_objext 4524 test "x$ac_cv_prog_cc_c89" != "xno" && break 4525done 4526rm -f conftest.$ac_ext 4527CC=$ac_save_CC 4528 4529fi 4530# AC_CACHE_VAL 4531case "x$ac_cv_prog_cc_c89" in 4532 x) 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4534$as_echo "none needed" >&6; } ;; 4535 xno) 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4537$as_echo "unsupported" >&6; } ;; 4538 *) 4539 CC="$CC $ac_cv_prog_cc_c89" 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4541$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4542esac 4543if test "x$ac_cv_prog_cc_c89" != xno; then : 4544 4545fi 4546 4547ac_ext=c 4548ac_cpp='$CPP $CPPFLAGS' 4549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4551ac_compiler_gnu=$ac_cv_c_compiler_gnu 4552 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4554$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4555if test "${lt_cv_path_SED+set}" = set; then : 4556 $as_echo_n "(cached) " >&6 4557else 4558 # Loop through the user's path and test for sed and gsed. 4559# Then use that list of sed's as ones to test for truncation. 4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561for as_dir in $PATH 4562do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for lt_ac_prog in sed gsed; do 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4568 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4569 fi 4570 done 4571 done 4572done 4573IFS=$as_save_IFS 4574lt_ac_max=0 4575lt_ac_count=0 4576# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4577# along with /bin/sed that truncates output. 4578for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4579 test ! -f $lt_ac_sed && continue 4580 cat /dev/null > conftest.in 4581 lt_ac_count=0 4582 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4583 # Check for GNU sed and select it if it is found. 4584 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4585 lt_cv_path_SED=$lt_ac_sed 4586 break 4587 fi 4588 while true; do 4589 cat conftest.in conftest.in >conftest.tmp 4590 mv conftest.tmp conftest.in 4591 cp conftest.in conftest.nl 4592 echo >>conftest.nl 4593 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4594 cmp -s conftest.out conftest.nl || break 4595 # 10000 chars as input seems more than enough 4596 test $lt_ac_count -gt 10 && break 4597 lt_ac_count=`expr $lt_ac_count + 1` 4598 if test $lt_ac_count -gt $lt_ac_max; then 4599 lt_ac_max=$lt_ac_count 4600 lt_cv_path_SED=$lt_ac_sed 4601 fi 4602 done 4603done 4604 4605fi 4606 4607SED=$lt_cv_path_SED 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4610$as_echo "$SED" >&6; } 4611 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4613$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4614if test "${ac_cv_path_GREP+set}" = set; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 if test -z "$GREP"; then 4618 ac_path_GREP_found=false 4619 # Loop through the user's path and test for each of PROGNAME-LIST 4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4622do 4623 IFS=$as_save_IFS 4624 test -z "$as_dir" && as_dir=. 4625 for ac_prog in grep ggrep; do 4626 for ac_exec_ext in '' $ac_executable_extensions; do 4627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4628 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4629# Check for GNU ac_path_GREP and select it if it is found. 4630 # Check for GNU $ac_path_GREP 4631case `"$ac_path_GREP" --version 2>&1` in 4632*GNU*) 4633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4634*) 4635 ac_count=0 4636 $as_echo_n 0123456789 >"conftest.in" 4637 while : 4638 do 4639 cat "conftest.in" "conftest.in" >"conftest.tmp" 4640 mv "conftest.tmp" "conftest.in" 4641 cp "conftest.in" "conftest.nl" 4642 $as_echo 'GREP' >> "conftest.nl" 4643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4645 as_fn_arith $ac_count + 1 && ac_count=$as_val 4646 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4647 # Best one so far, save it but keep looking for a better one 4648 ac_cv_path_GREP="$ac_path_GREP" 4649 ac_path_GREP_max=$ac_count 4650 fi 4651 # 10*(2^10) chars as input seems more than enough 4652 test $ac_count -gt 10 && break 4653 done 4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4655esac 4656 4657 $ac_path_GREP_found && break 3 4658 done 4659 done 4660 done 4661IFS=$as_save_IFS 4662 if test -z "$ac_cv_path_GREP"; then 4663 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4664 fi 4665else 4666 ac_cv_path_GREP=$GREP 4667fi 4668 4669fi 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4671$as_echo "$ac_cv_path_GREP" >&6; } 4672 GREP="$ac_cv_path_GREP" 4673 4674 4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4676$as_echo_n "checking for egrep... " >&6; } 4677if test "${ac_cv_path_EGREP+set}" = set; then : 4678 $as_echo_n "(cached) " >&6 4679else 4680 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4681 then ac_cv_path_EGREP="$GREP -E" 4682 else 4683 if test -z "$EGREP"; then 4684 ac_path_EGREP_found=false 4685 # Loop through the user's path and test for each of PROGNAME-LIST 4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4687for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4688do 4689 IFS=$as_save_IFS 4690 test -z "$as_dir" && as_dir=. 4691 for ac_prog in egrep; do 4692 for ac_exec_ext in '' $ac_executable_extensions; do 4693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4694 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4695# Check for GNU ac_path_EGREP and select it if it is found. 4696 # Check for GNU $ac_path_EGREP 4697case `"$ac_path_EGREP" --version 2>&1` in 4698*GNU*) 4699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4700*) 4701 ac_count=0 4702 $as_echo_n 0123456789 >"conftest.in" 4703 while : 4704 do 4705 cat "conftest.in" "conftest.in" >"conftest.tmp" 4706 mv "conftest.tmp" "conftest.in" 4707 cp "conftest.in" "conftest.nl" 4708 $as_echo 'EGREP' >> "conftest.nl" 4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4711 as_fn_arith $ac_count + 1 && ac_count=$as_val 4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4713 # Best one so far, save it but keep looking for a better one 4714 ac_cv_path_EGREP="$ac_path_EGREP" 4715 ac_path_EGREP_max=$ac_count 4716 fi 4717 # 10*(2^10) chars as input seems more than enough 4718 test $ac_count -gt 10 && break 4719 done 4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4721esac 4722 4723 $ac_path_EGREP_found && break 3 4724 done 4725 done 4726 done 4727IFS=$as_save_IFS 4728 if test -z "$ac_cv_path_EGREP"; then 4729 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4730 fi 4731else 4732 ac_cv_path_EGREP=$EGREP 4733fi 4734 4735 fi 4736fi 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4738$as_echo "$ac_cv_path_EGREP" >&6; } 4739 EGREP="$ac_cv_path_EGREP" 4740 4741 4742 4743# Check whether --with-gnu-ld was given. 4744if test "${with_gnu_ld+set}" = set; then : 4745 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4746else 4747 with_gnu_ld=no 4748fi 4749 4750ac_prog=ld 4751if test "$GCC" = yes; then 4752 # Check if gcc -print-prog-name=ld gives a path. 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4754$as_echo_n "checking for ld used by $CC... " >&6; } 4755 case $host in 4756 *-*-mingw*) 4757 # gcc leaves a trailing carriage return which upsets mingw 4758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4759 *) 4760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4761 esac 4762 case $ac_prog in 4763 # Accept absolute paths. 4764 [\\/]* | ?:[\\/]*) 4765 re_direlt='/[^/][^/]*/\.\./' 4766 # Canonicalize the pathname of ld 4767 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4769 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4770 done 4771 test -z "$LD" && LD="$ac_prog" 4772 ;; 4773 "") 4774 # If it fails, then pretend we aren't using GCC. 4775 ac_prog=ld 4776 ;; 4777 *) 4778 # If it is relative, then search for the first ld in PATH. 4779 with_gnu_ld=unknown 4780 ;; 4781 esac 4782elif test "$with_gnu_ld" = yes; then 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4784$as_echo_n "checking for GNU ld... " >&6; } 4785else 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4787$as_echo_n "checking for non-GNU ld... " >&6; } 4788fi 4789if test "${lt_cv_path_LD+set}" = set; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 if test -z "$LD"; then 4793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4794 for ac_dir in $PATH; do 4795 IFS="$lt_save_ifs" 4796 test -z "$ac_dir" && ac_dir=. 4797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4798 lt_cv_path_LD="$ac_dir/$ac_prog" 4799 # Check to see if the program is GNU ld. I'd rather use --version, 4800 # but apparently some variants of GNU ld only accept -v. 4801 # Break only if it was the GNU/non-GNU ld that we prefer. 4802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4803 *GNU* | *'with BFD'*) 4804 test "$with_gnu_ld" != no && break 4805 ;; 4806 *) 4807 test "$with_gnu_ld" != yes && break 4808 ;; 4809 esac 4810 fi 4811 done 4812 IFS="$lt_save_ifs" 4813else 4814 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4815fi 4816fi 4817 4818LD="$lt_cv_path_LD" 4819if test -n "$LD"; then 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4821$as_echo "$LD" >&6; } 4822else 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4824$as_echo "no" >&6; } 4825fi 4826test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4828$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4829if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4830 $as_echo_n "(cached) " >&6 4831else 4832 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4833case `$LD -v 2>&1 </dev/null` in 4834*GNU* | *'with BFD'*) 4835 lt_cv_prog_gnu_ld=yes 4836 ;; 4837*) 4838 lt_cv_prog_gnu_ld=no 4839 ;; 4840esac 4841fi 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4843$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4844with_gnu_ld=$lt_cv_prog_gnu_ld 4845 4846 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4848$as_echo_n "checking for $LD option to reload object files... " >&6; } 4849if test "${lt_cv_ld_reload_flag+set}" = set; then : 4850 $as_echo_n "(cached) " >&6 4851else 4852 lt_cv_ld_reload_flag='-r' 4853fi 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4855$as_echo "$lt_cv_ld_reload_flag" >&6; } 4856reload_flag=$lt_cv_ld_reload_flag 4857case $reload_flag in 4858"" | " "*) ;; 4859*) reload_flag=" $reload_flag" ;; 4860esac 4861reload_cmds='$LD$reload_flag -o $output$reload_objs' 4862case $host_os in 4863 darwin*) 4864 if test "$GCC" = yes; then 4865 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4866 else 4867 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4868 fi 4869 ;; 4870esac 4871 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 4873$as_echo_n "checking for BSD-compatible nm... " >&6; } 4874if test "${lt_cv_path_NM+set}" = set; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 if test -n "$NM"; then 4878 # Let the user override the test. 4879 lt_cv_path_NM="$NM" 4880else 4881 lt_nm_to_check="${ac_tool_prefix}nm" 4882 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4883 lt_nm_to_check="$lt_nm_to_check nm" 4884 fi 4885 for lt_tmp_nm in $lt_nm_to_check; do 4886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4887 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4888 IFS="$lt_save_ifs" 4889 test -z "$ac_dir" && ac_dir=. 4890 tmp_nm="$ac_dir/$lt_tmp_nm" 4891 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4892 # Check to see if the nm accepts a BSD-compat flag. 4893 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4894 # nm: unknown option "B" ignored 4895 # Tru64's nm complains that /dev/null is an invalid object file 4896 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4897 */dev/null* | *'Invalid file or object type'*) 4898 lt_cv_path_NM="$tmp_nm -B" 4899 break 4900 ;; 4901 *) 4902 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4903 */dev/null*) 4904 lt_cv_path_NM="$tmp_nm -p" 4905 break 4906 ;; 4907 *) 4908 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4909 continue # so that we can try to find one that supports BSD flags 4910 ;; 4911 esac 4912 ;; 4913 esac 4914 fi 4915 done 4916 IFS="$lt_save_ifs" 4917 done 4918 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4919fi 4920fi 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4922$as_echo "$lt_cv_path_NM" >&6; } 4923NM="$lt_cv_path_NM" 4924 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4926$as_echo_n "checking whether ln -s works... " >&6; } 4927LN_S=$as_ln_s 4928if test "$LN_S" = "ln -s"; then 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4930$as_echo "yes" >&6; } 4931else 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4933$as_echo "no, using $LN_S" >&6; } 4934fi 4935 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4937$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4938if test "${lt_cv_deplibs_check_method+set}" = set; then : 4939 $as_echo_n "(cached) " >&6 4940else 4941 lt_cv_file_magic_cmd='$MAGIC_CMD' 4942lt_cv_file_magic_test_file= 4943lt_cv_deplibs_check_method='unknown' 4944# Need to set the preceding variable on all platforms that support 4945# interlibrary dependencies. 4946# 'none' -- dependencies not supported. 4947# `unknown' -- same as none, but documents that we really don't know. 4948# 'pass_all' -- all dependencies passed with no checks. 4949# 'test_compile' -- check by making test program. 4950# 'file_magic [[regex]]' -- check by looking for files in library path 4951# which responds to the $file_magic_cmd with a given extended regex. 4952# If you have `file' or equivalent on your system and you're not sure 4953# whether `pass_all' will *always* work, you probably want this one. 4954 4955case $host_os in 4956aix[4-9]*) 4957 lt_cv_deplibs_check_method=pass_all 4958 ;; 4959 4960beos*) 4961 lt_cv_deplibs_check_method=pass_all 4962 ;; 4963 4964bsdi[45]*) 4965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4966 lt_cv_file_magic_cmd='/usr/bin/file -L' 4967 lt_cv_file_magic_test_file=/shlib/libc.so 4968 ;; 4969 4970cygwin*) 4971 # func_win32_libid is a shell function defined in ltmain.sh 4972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4973 lt_cv_file_magic_cmd='func_win32_libid' 4974 ;; 4975 4976mingw* | pw32*) 4977 # Base MSYS/MinGW do not provide the 'file' command needed by 4978 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4979 # unless we find 'file', for example because we are cross-compiling. 4980 if ( file / ) >/dev/null 2>&1; then 4981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4982 lt_cv_file_magic_cmd='func_win32_libid' 4983 else 4984 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4985 lt_cv_file_magic_cmd='$OBJDUMP -f' 4986 fi 4987 ;; 4988 4989darwin* | rhapsody*) 4990 lt_cv_deplibs_check_method=pass_all 4991 ;; 4992 4993freebsd* | dragonfly*) 4994 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4995 case $host_cpu in 4996 i*86 ) 4997 # Not sure whether the presence of OpenBSD here was a mistake. 4998 # Let's accept both of them until this is cleared up. 4999 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5000 lt_cv_file_magic_cmd=/usr/bin/file 5001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5002 ;; 5003 esac 5004 else 5005 lt_cv_deplibs_check_method=pass_all 5006 fi 5007 ;; 5008 5009gnu*) 5010 lt_cv_deplibs_check_method=pass_all 5011 ;; 5012 5013hpux10.20* | hpux11*) 5014 lt_cv_file_magic_cmd=/usr/bin/file 5015 case $host_cpu in 5016 ia64*) 5017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5018 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5019 ;; 5020 hppa*64*) 5021 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]' 5022 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5023 ;; 5024 *) 5025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5026 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5027 ;; 5028 esac 5029 ;; 5030 5031interix[3-9]*) 5032 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5034 ;; 5035 5036irix5* | irix6* | nonstopux*) 5037 case $LD in 5038 *-32|*"-32 ") libmagic=32-bit;; 5039 *-n32|*"-n32 ") libmagic=N32;; 5040 *-64|*"-64 ") libmagic=64-bit;; 5041 *) libmagic=never-match;; 5042 esac 5043 lt_cv_deplibs_check_method=pass_all 5044 ;; 5045 5046# This must be Linux ELF. 5047linux* | k*bsd*-gnu) 5048 lt_cv_deplibs_check_method=pass_all 5049 ;; 5050 5051netbsd*) 5052 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5054 else 5055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5056 fi 5057 ;; 5058 5059newos6*) 5060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5061 lt_cv_file_magic_cmd=/usr/bin/file 5062 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5063 ;; 5064 5065nto-qnx*) 5066 lt_cv_deplibs_check_method=unknown 5067 ;; 5068 5069openbsd*) 5070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5072 else 5073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5074 fi 5075 ;; 5076 5077osf3* | osf4* | osf5*) 5078 lt_cv_deplibs_check_method=pass_all 5079 ;; 5080 5081rdos*) 5082 lt_cv_deplibs_check_method=pass_all 5083 ;; 5084 5085solaris*) 5086 lt_cv_deplibs_check_method=pass_all 5087 ;; 5088 5089sysv4 | sysv4.3*) 5090 case $host_vendor in 5091 motorola) 5092 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]' 5093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5094 ;; 5095 ncr) 5096 lt_cv_deplibs_check_method=pass_all 5097 ;; 5098 sequent) 5099 lt_cv_file_magic_cmd='/bin/file' 5100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5101 ;; 5102 sni) 5103 lt_cv_file_magic_cmd='/bin/file' 5104 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5105 lt_cv_file_magic_test_file=/lib/libc.so 5106 ;; 5107 siemens) 5108 lt_cv_deplibs_check_method=pass_all 5109 ;; 5110 pc) 5111 lt_cv_deplibs_check_method=pass_all 5112 ;; 5113 esac 5114 ;; 5115 5116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5117 lt_cv_deplibs_check_method=pass_all 5118 ;; 5119esac 5120 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5123$as_echo "$lt_cv_deplibs_check_method" >&6; } 5124file_magic_cmd=$lt_cv_file_magic_cmd 5125deplibs_check_method=$lt_cv_deplibs_check_method 5126test -z "$deplibs_check_method" && deplibs_check_method=unknown 5127 5128 5129 5130 5131# If no C compiler was specified, use CC. 5132LTCC=${LTCC-"$CC"} 5133 5134# If no C compiler flags were specified, use CFLAGS. 5135LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5136 5137# Allow CC to be a program name with arguments. 5138compiler=$CC 5139 5140 5141# Check whether --enable-libtool-lock was given. 5142if test "${enable_libtool_lock+set}" = set; then : 5143 enableval=$enable_libtool_lock; 5144fi 5145 5146test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5147 5148# Some flags need to be propagated to the compiler or linker for good 5149# libtool support. 5150case $host in 5151ia64-*-hpux*) 5152 # Find out which ABI we are using. 5153 echo 'int i;' > conftest.$ac_ext 5154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5155 (eval $ac_compile) 2>&5 5156 ac_status=$? 5157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5158 test $ac_status = 0; }; then 5159 case `/usr/bin/file conftest.$ac_objext` in 5160 *ELF-32*) 5161 HPUX_IA64_MODE="32" 5162 ;; 5163 *ELF-64*) 5164 HPUX_IA64_MODE="64" 5165 ;; 5166 esac 5167 fi 5168 rm -rf conftest* 5169 ;; 5170*-*-irix6*) 5171 # Find out which ABI we are using. 5172 echo '#line 5172 "configure"' > conftest.$ac_ext 5173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5174 (eval $ac_compile) 2>&5 5175 ac_status=$? 5176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5177 test $ac_status = 0; }; then 5178 if test "$lt_cv_prog_gnu_ld" = yes; then 5179 case `/usr/bin/file conftest.$ac_objext` in 5180 *32-bit*) 5181 LD="${LD-ld} -melf32bsmip" 5182 ;; 5183 *N32*) 5184 LD="${LD-ld} -melf32bmipn32" 5185 ;; 5186 *64-bit*) 5187 LD="${LD-ld} -melf64bmip" 5188 ;; 5189 esac 5190 else 5191 case `/usr/bin/file conftest.$ac_objext` in 5192 *32-bit*) 5193 LD="${LD-ld} -32" 5194 ;; 5195 *N32*) 5196 LD="${LD-ld} -n32" 5197 ;; 5198 *64-bit*) 5199 LD="${LD-ld} -64" 5200 ;; 5201 esac 5202 fi 5203 fi 5204 rm -rf conftest* 5205 ;; 5206 5207x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5208s390*-*linux*|sparc*-*linux*) 5209 # Find out which ABI we are using. 5210 echo 'int i;' > conftest.$ac_ext 5211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5212 (eval $ac_compile) 2>&5 5213 ac_status=$? 5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5215 test $ac_status = 0; }; then 5216 case `/usr/bin/file conftest.o` in 5217 *32-bit*) 5218 case $host in 5219 x86_64-*kfreebsd*-gnu) 5220 LD="${LD-ld} -m elf_i386_fbsd" 5221 ;; 5222 x86_64-*linux*) 5223 LD="${LD-ld} -m elf_i386" 5224 ;; 5225 ppc64-*linux*|powerpc64-*linux*) 5226 LD="${LD-ld} -m elf32ppclinux" 5227 ;; 5228 s390x-*linux*) 5229 LD="${LD-ld} -m elf_s390" 5230 ;; 5231 sparc64-*linux*) 5232 LD="${LD-ld} -m elf32_sparc" 5233 ;; 5234 esac 5235 ;; 5236 *64-bit*) 5237 case $host in 5238 x86_64-*kfreebsd*-gnu) 5239 LD="${LD-ld} -m elf_x86_64_fbsd" 5240 ;; 5241 x86_64-*linux*) 5242 LD="${LD-ld} -m elf_x86_64" 5243 ;; 5244 ppc*-*linux*|powerpc*-*linux*) 5245 LD="${LD-ld} -m elf64ppc" 5246 ;; 5247 s390*-*linux*) 5248 LD="${LD-ld} -m elf64_s390" 5249 ;; 5250 sparc*-*linux*) 5251 LD="${LD-ld} -m elf64_sparc" 5252 ;; 5253 esac 5254 ;; 5255 esac 5256 fi 5257 rm -rf conftest* 5258 ;; 5259 5260*-*-sco3.2v5*) 5261 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5262 SAVE_CFLAGS="$CFLAGS" 5263 CFLAGS="$CFLAGS -belf" 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5265$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5266if test "${lt_cv_cc_needs_belf+set}" = set; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 ac_ext=c 5270ac_cpp='$CPP $CPPFLAGS' 5271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5273ac_compiler_gnu=$ac_cv_c_compiler_gnu 5274 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277 5278int 5279main () 5280{ 5281 5282 ; 5283 return 0; 5284} 5285_ACEOF 5286if ac_fn_c_try_link "$LINENO"; then : 5287 lt_cv_cc_needs_belf=yes 5288else 5289 lt_cv_cc_needs_belf=no 5290fi 5291rm -f core conftest.err conftest.$ac_objext \ 5292 conftest$ac_exeext conftest.$ac_ext 5293 ac_ext=c 5294ac_cpp='$CPP $CPPFLAGS' 5295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5297ac_compiler_gnu=$ac_cv_c_compiler_gnu 5298 5299fi 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5301$as_echo "$lt_cv_cc_needs_belf" >&6; } 5302 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5303 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5304 CFLAGS="$SAVE_CFLAGS" 5305 fi 5306 ;; 5307sparc*-*solaris*) 5308 # Find out which ABI we are using. 5309 echo 'int i;' > conftest.$ac_ext 5310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5311 (eval $ac_compile) 2>&5 5312 ac_status=$? 5313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5314 test $ac_status = 0; }; then 5315 case `/usr/bin/file conftest.o` in 5316 *64-bit*) 5317 case $lt_cv_prog_gnu_ld in 5318 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5319 *) 5320 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5321 LD="${LD-ld} -64" 5322 fi 5323 ;; 5324 esac 5325 ;; 5326 esac 5327 fi 5328 rm -rf conftest* 5329 ;; 5330 5331 5332esac 5333 5334need_locks="$enable_libtool_lock" 5335 5336 5337ac_ext=c 5338ac_cpp='$CPP $CPPFLAGS' 5339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5341ac_compiler_gnu=$ac_cv_c_compiler_gnu 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5343$as_echo_n "checking how to run the C preprocessor... " >&6; } 5344# On Suns, sometimes $CPP names a directory. 5345if test -n "$CPP" && test -d "$CPP"; then 5346 CPP= 5347fi 5348if test -z "$CPP"; then 5349 if test "${ac_cv_prog_CPP+set}" = set; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 # Double quotes because CPP needs to be expanded 5353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5354 do 5355 ac_preproc_ok=false 5356for ac_c_preproc_warn_flag in '' yes 5357do 5358 # Use a header file that comes with gcc, so configuring glibc 5359 # with a fresh cross-compiler works. 5360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5361 # <limits.h> exists even on freestanding compilers. 5362 # On the NeXT, cc -E runs the code through the compiler's parser, 5363 # not just through cpp. "Syntax error" is here to catch this case. 5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5365/* end confdefs.h. */ 5366#ifdef __STDC__ 5367# include <limits.h> 5368#else 5369# include <assert.h> 5370#endif 5371 Syntax error 5372_ACEOF 5373if ac_fn_c_try_cpp "$LINENO"; then : 5374 5375else 5376 # Broken: fails on valid input. 5377continue 5378fi 5379rm -f conftest.err conftest.i conftest.$ac_ext 5380 5381 # OK, works on sane cases. Now check whether nonexistent headers 5382 # can be detected and how. 5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5384/* end confdefs.h. */ 5385#include <ac_nonexistent.h> 5386_ACEOF 5387if ac_fn_c_try_cpp "$LINENO"; then : 5388 # Broken: success on invalid input. 5389continue 5390else 5391 # Passes both tests. 5392ac_preproc_ok=: 5393break 5394fi 5395rm -f conftest.err conftest.i conftest.$ac_ext 5396 5397done 5398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5399rm -f conftest.i conftest.err conftest.$ac_ext 5400if $ac_preproc_ok; then : 5401 break 5402fi 5403 5404 done 5405 ac_cv_prog_CPP=$CPP 5406 5407fi 5408 CPP=$ac_cv_prog_CPP 5409else 5410 ac_cv_prog_CPP=$CPP 5411fi 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5413$as_echo "$CPP" >&6; } 5414ac_preproc_ok=false 5415for ac_c_preproc_warn_flag in '' yes 5416do 5417 # Use a header file that comes with gcc, so configuring glibc 5418 # with a fresh cross-compiler works. 5419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5420 # <limits.h> exists even on freestanding compilers. 5421 # On the NeXT, cc -E runs the code through the compiler's parser, 5422 # not just through cpp. "Syntax error" is here to catch this case. 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424/* end confdefs.h. */ 5425#ifdef __STDC__ 5426# include <limits.h> 5427#else 5428# include <assert.h> 5429#endif 5430 Syntax error 5431_ACEOF 5432if ac_fn_c_try_cpp "$LINENO"; then : 5433 5434else 5435 # Broken: fails on valid input. 5436continue 5437fi 5438rm -f conftest.err conftest.i conftest.$ac_ext 5439 5440 # OK, works on sane cases. Now check whether nonexistent headers 5441 # can be detected and how. 5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5443/* end confdefs.h. */ 5444#include <ac_nonexistent.h> 5445_ACEOF 5446if ac_fn_c_try_cpp "$LINENO"; then : 5447 # Broken: success on invalid input. 5448continue 5449else 5450 # Passes both tests. 5451ac_preproc_ok=: 5452break 5453fi 5454rm -f conftest.err conftest.i conftest.$ac_ext 5455 5456done 5457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5458rm -f conftest.i conftest.err conftest.$ac_ext 5459if $ac_preproc_ok; then : 5460 5461else 5462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5464as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5465See \`config.log' for more details" "$LINENO" 5; } 5466fi 5467 5468ac_ext=c 5469ac_cpp='$CPP $CPPFLAGS' 5470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5472ac_compiler_gnu=$ac_cv_c_compiler_gnu 5473 5474 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5476$as_echo_n "checking for ANSI C header files... " >&6; } 5477if test "${ac_cv_header_stdc+set}" = set; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482#include <stdlib.h> 5483#include <stdarg.h> 5484#include <string.h> 5485#include <float.h> 5486 5487int 5488main () 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_compile "$LINENO"; then : 5496 ac_cv_header_stdc=yes 5497else 5498 ac_cv_header_stdc=no 5499fi 5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5501 5502if test $ac_cv_header_stdc = yes; then 5503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5505/* end confdefs.h. */ 5506#include <string.h> 5507 5508_ACEOF 5509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5510 $EGREP "memchr" >/dev/null 2>&1; then : 5511 5512else 5513 ac_cv_header_stdc=no 5514fi 5515rm -f conftest* 5516 5517fi 5518 5519if test $ac_cv_header_stdc = yes; then 5520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522/* end confdefs.h. */ 5523#include <stdlib.h> 5524 5525_ACEOF 5526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5527 $EGREP "free" >/dev/null 2>&1; then : 5528 5529else 5530 ac_cv_header_stdc=no 5531fi 5532rm -f conftest* 5533 5534fi 5535 5536if test $ac_cv_header_stdc = yes; then 5537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5538 if test "$cross_compiling" = yes; then : 5539 : 5540else 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543#include <ctype.h> 5544#include <stdlib.h> 5545#if ((' ' & 0x0FF) == 0x020) 5546# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5547# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5548#else 5549# define ISLOWER(c) \ 5550 (('a' <= (c) && (c) <= 'i') \ 5551 || ('j' <= (c) && (c) <= 'r') \ 5552 || ('s' <= (c) && (c) <= 'z')) 5553# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5554#endif 5555 5556#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5557int 5558main () 5559{ 5560 int i; 5561 for (i = 0; i < 256; i++) 5562 if (XOR (islower (i), ISLOWER (i)) 5563 || toupper (i) != TOUPPER (i)) 5564 return 2; 5565 return 0; 5566} 5567_ACEOF 5568if ac_fn_c_try_run "$LINENO"; then : 5569 5570else 5571 ac_cv_header_stdc=no 5572fi 5573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5574 conftest.$ac_objext conftest.beam conftest.$ac_ext 5575fi 5576 5577fi 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5580$as_echo "$ac_cv_header_stdc" >&6; } 5581if test $ac_cv_header_stdc = yes; then 5582 5583$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5584 5585fi 5586 5587# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5588for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5589 inttypes.h stdint.h unistd.h 5590do : 5591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5592ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5593" 5594if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5595 cat >>confdefs.h <<_ACEOF 5596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5597_ACEOF 5598 5599fi 5600 5601done 5602 5603 5604for ac_header in dlfcn.h 5605do : 5606 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 5607if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 5608 cat >>confdefs.h <<_ACEOF 5609#define HAVE_DLFCN_H 1 5610_ACEOF 5611 5612fi 5613 5614done 5615 5616ac_ext=cpp 5617ac_cpp='$CXXCPP $CPPFLAGS' 5618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5621if test -z "$CXX"; then 5622 if test -n "$CCC"; then 5623 CXX=$CCC 5624 else 5625 if test -n "$ac_tool_prefix"; then 5626 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5627 do 5628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5629set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5631$as_echo_n "checking for $ac_word... " >&6; } 5632if test "${ac_cv_prog_CXX+set}" = set; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 if test -n "$CXX"; then 5636 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5637else 5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5639for as_dir in $PATH 5640do 5641 IFS=$as_save_IFS 5642 test -z "$as_dir" && as_dir=. 5643 for ac_exec_ext in '' $ac_executable_extensions; do 5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5645 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5647 break 2 5648 fi 5649done 5650 done 5651IFS=$as_save_IFS 5652 5653fi 5654fi 5655CXX=$ac_cv_prog_CXX 5656if test -n "$CXX"; then 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5658$as_echo "$CXX" >&6; } 5659else 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5661$as_echo "no" >&6; } 5662fi 5663 5664 5665 test -n "$CXX" && break 5666 done 5667fi 5668if test -z "$CXX"; then 5669 ac_ct_CXX=$CXX 5670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5671do 5672 # Extract the first word of "$ac_prog", so it can be a program name with args. 5673set dummy $ac_prog; ac_word=$2 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5675$as_echo_n "checking for $ac_word... " >&6; } 5676if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 5677 $as_echo_n "(cached) " >&6 5678else 5679 if test -n "$ac_ct_CXX"; then 5680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5681else 5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683for as_dir in $PATH 5684do 5685 IFS=$as_save_IFS 5686 test -z "$as_dir" && as_dir=. 5687 for ac_exec_ext in '' $ac_executable_extensions; do 5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5689 ac_cv_prog_ac_ct_CXX="$ac_prog" 5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5691 break 2 5692 fi 5693done 5694 done 5695IFS=$as_save_IFS 5696 5697fi 5698fi 5699ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5700if test -n "$ac_ct_CXX"; then 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5702$as_echo "$ac_ct_CXX" >&6; } 5703else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5705$as_echo "no" >&6; } 5706fi 5707 5708 5709 test -n "$ac_ct_CXX" && break 5710done 5711 5712 if test "x$ac_ct_CXX" = x; then 5713 CXX="g++" 5714 else 5715 case $cross_compiling:$ac_tool_warned in 5716yes:) 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5719ac_tool_warned=yes ;; 5720esac 5721 CXX=$ac_ct_CXX 5722 fi 5723fi 5724 5725 fi 5726fi 5727# Provide some information about the compiler. 5728$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5729set X $ac_compile 5730ac_compiler=$2 5731for ac_option in --version -v -V -qversion; do 5732 { { ac_try="$ac_compiler $ac_option >&5" 5733case "(($ac_try" in 5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5735 *) ac_try_echo=$ac_try;; 5736esac 5737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5738$as_echo "$ac_try_echo"; } >&5 5739 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5740 ac_status=$? 5741 if test -s conftest.err; then 5742 sed '10a\ 5743... rest of stderr output deleted ... 5744 10q' conftest.err >conftest.er1 5745 cat conftest.er1 >&5 5746 fi 5747 rm -f conftest.er1 conftest.err 5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5749 test $ac_status = 0; } 5750done 5751 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5753$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5754if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5758/* end confdefs.h. */ 5759 5760int 5761main () 5762{ 5763#ifndef __GNUC__ 5764 choke me 5765#endif 5766 5767 ; 5768 return 0; 5769} 5770_ACEOF 5771if ac_fn_cxx_try_compile "$LINENO"; then : 5772 ac_compiler_gnu=yes 5773else 5774 ac_compiler_gnu=no 5775fi 5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5777ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5778 5779fi 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5781$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5782if test $ac_compiler_gnu = yes; then 5783 GXX=yes 5784else 5785 GXX= 5786fi 5787ac_test_CXXFLAGS=${CXXFLAGS+set} 5788ac_save_CXXFLAGS=$CXXFLAGS 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5790$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5791if test "${ac_cv_prog_cxx_g+set}" = set; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5795 ac_cxx_werror_flag=yes 5796 ac_cv_prog_cxx_g=no 5797 CXXFLAGS="-g" 5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799/* end confdefs.h. */ 5800 5801int 5802main () 5803{ 5804 5805 ; 5806 return 0; 5807} 5808_ACEOF 5809if ac_fn_cxx_try_compile "$LINENO"; then : 5810 ac_cv_prog_cxx_g=yes 5811else 5812 CXXFLAGS="" 5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5814/* end confdefs.h. */ 5815 5816int 5817main () 5818{ 5819 5820 ; 5821 return 0; 5822} 5823_ACEOF 5824if ac_fn_cxx_try_compile "$LINENO"; then : 5825 5826else 5827 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5828 CXXFLAGS="-g" 5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830/* end confdefs.h. */ 5831 5832int 5833main () 5834{ 5835 5836 ; 5837 return 0; 5838} 5839_ACEOF 5840if ac_fn_cxx_try_compile "$LINENO"; then : 5841 ac_cv_prog_cxx_g=yes 5842fi 5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5844fi 5845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5846fi 5847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5848 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5849fi 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5851$as_echo "$ac_cv_prog_cxx_g" >&6; } 5852if test "$ac_test_CXXFLAGS" = set; then 5853 CXXFLAGS=$ac_save_CXXFLAGS 5854elif test $ac_cv_prog_cxx_g = yes; then 5855 if test "$GXX" = yes; then 5856 CXXFLAGS="-g -O2" 5857 else 5858 CXXFLAGS="-g" 5859 fi 5860else 5861 if test "$GXX" = yes; then 5862 CXXFLAGS="-O2" 5863 else 5864 CXXFLAGS= 5865 fi 5866fi 5867ac_ext=cpp 5868ac_cpp='$CXXCPP $CPPFLAGS' 5869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5872 5873 5874 5875if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5876 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5877 (test "X$CXX" != "Xg++"))) ; then 5878 ac_ext=cpp 5879ac_cpp='$CXXCPP $CPPFLAGS' 5880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5884$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5885if test -z "$CXXCPP"; then 5886 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 # Double quotes because CXXCPP needs to be expanded 5890 for CXXCPP in "$CXX -E" "/lib/cpp" 5891 do 5892 ac_preproc_ok=false 5893for ac_cxx_preproc_warn_flag in '' yes 5894do 5895 # Use a header file that comes with gcc, so configuring glibc 5896 # with a fresh cross-compiler works. 5897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5898 # <limits.h> exists even on freestanding compilers. 5899 # On the NeXT, cc -E runs the code through the compiler's parser, 5900 # not just through cpp. "Syntax error" is here to catch this case. 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903#ifdef __STDC__ 5904# include <limits.h> 5905#else 5906# include <assert.h> 5907#endif 5908 Syntax error 5909_ACEOF 5910if ac_fn_cxx_try_cpp "$LINENO"; then : 5911 5912else 5913 # Broken: fails on valid input. 5914continue 5915fi 5916rm -f conftest.err conftest.i conftest.$ac_ext 5917 5918 # OK, works on sane cases. Now check whether nonexistent headers 5919 # can be detected and how. 5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5921/* end confdefs.h. */ 5922#include <ac_nonexistent.h> 5923_ACEOF 5924if ac_fn_cxx_try_cpp "$LINENO"; then : 5925 # Broken: success on invalid input. 5926continue 5927else 5928 # Passes both tests. 5929ac_preproc_ok=: 5930break 5931fi 5932rm -f conftest.err conftest.i conftest.$ac_ext 5933 5934done 5935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5936rm -f conftest.i conftest.err conftest.$ac_ext 5937if $ac_preproc_ok; then : 5938 break 5939fi 5940 5941 done 5942 ac_cv_prog_CXXCPP=$CXXCPP 5943 5944fi 5945 CXXCPP=$ac_cv_prog_CXXCPP 5946else 5947 ac_cv_prog_CXXCPP=$CXXCPP 5948fi 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5950$as_echo "$CXXCPP" >&6; } 5951ac_preproc_ok=false 5952for ac_cxx_preproc_warn_flag in '' yes 5953do 5954 # Use a header file that comes with gcc, so configuring glibc 5955 # with a fresh cross-compiler works. 5956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5957 # <limits.h> exists even on freestanding compilers. 5958 # On the NeXT, cc -E runs the code through the compiler's parser, 5959 # not just through cpp. "Syntax error" is here to catch this case. 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5961/* end confdefs.h. */ 5962#ifdef __STDC__ 5963# include <limits.h> 5964#else 5965# include <assert.h> 5966#endif 5967 Syntax error 5968_ACEOF 5969if ac_fn_cxx_try_cpp "$LINENO"; then : 5970 5971else 5972 # Broken: fails on valid input. 5973continue 5974fi 5975rm -f conftest.err conftest.i conftest.$ac_ext 5976 5977 # OK, works on sane cases. Now check whether nonexistent headers 5978 # can be detected and how. 5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5980/* end confdefs.h. */ 5981#include <ac_nonexistent.h> 5982_ACEOF 5983if ac_fn_cxx_try_cpp "$LINENO"; then : 5984 # Broken: success on invalid input. 5985continue 5986else 5987 # Passes both tests. 5988ac_preproc_ok=: 5989break 5990fi 5991rm -f conftest.err conftest.i conftest.$ac_ext 5992 5993done 5994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5995rm -f conftest.i conftest.err conftest.$ac_ext 5996if $ac_preproc_ok; then : 5997 5998else 5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6001as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 6002See \`config.log' for more details" "$LINENO" 5; } 6003fi 6004 6005ac_ext=cpp 6006ac_cpp='$CXXCPP $CPPFLAGS' 6007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6010 6011fi 6012 6013 6014ac_ext=f 6015ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6016ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6017ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6018if test -n "$ac_tool_prefix"; then 6019 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 6020 do 6021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6022set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6024$as_echo_n "checking for $ac_word... " >&6; } 6025if test "${ac_cv_prog_F77+set}" = set; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 if test -n "$F77"; then 6029 ac_cv_prog_F77="$F77" # Let the user override the test. 6030else 6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6032for as_dir in $PATH 6033do 6034 IFS=$as_save_IFS 6035 test -z "$as_dir" && as_dir=. 6036 for ac_exec_ext in '' $ac_executable_extensions; do 6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6038 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6040 break 2 6041 fi 6042done 6043 done 6044IFS=$as_save_IFS 6045 6046fi 6047fi 6048F77=$ac_cv_prog_F77 6049if test -n "$F77"; then 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 6051$as_echo "$F77" >&6; } 6052else 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6054$as_echo "no" >&6; } 6055fi 6056 6057 6058 test -n "$F77" && break 6059 done 6060fi 6061if test -z "$F77"; then 6062 ac_ct_F77=$F77 6063 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 6064do 6065 # Extract the first word of "$ac_prog", so it can be a program name with args. 6066set dummy $ac_prog; ac_word=$2 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6068$as_echo_n "checking for $ac_word... " >&6; } 6069if test "${ac_cv_prog_ac_ct_F77+set}" = set; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 if test -n "$ac_ct_F77"; then 6073 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6074else 6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076for as_dir in $PATH 6077do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_exec_ext in '' $ac_executable_extensions; do 6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6082 ac_cv_prog_ac_ct_F77="$ac_prog" 6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6084 break 2 6085 fi 6086done 6087 done 6088IFS=$as_save_IFS 6089 6090fi 6091fi 6092ac_ct_F77=$ac_cv_prog_ac_ct_F77 6093if test -n "$ac_ct_F77"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 6095$as_echo "$ac_ct_F77" >&6; } 6096else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098$as_echo "no" >&6; } 6099fi 6100 6101 6102 test -n "$ac_ct_F77" && break 6103done 6104 6105 if test "x$ac_ct_F77" = x; then 6106 F77="" 6107 else 6108 case $cross_compiling:$ac_tool_warned in 6109yes:) 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6112ac_tool_warned=yes ;; 6113esac 6114 F77=$ac_ct_F77 6115 fi 6116fi 6117 6118 6119# Provide some information about the compiler. 6120$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 6121set X $ac_compile 6122ac_compiler=$2 6123for ac_option in --version -v -V -qversion; do 6124 { { ac_try="$ac_compiler $ac_option >&5" 6125case "(($ac_try" in 6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6127 *) ac_try_echo=$ac_try;; 6128esac 6129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6130$as_echo "$ac_try_echo"; } >&5 6131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6132 ac_status=$? 6133 if test -s conftest.err; then 6134 sed '10a\ 6135... rest of stderr output deleted ... 6136 10q' conftest.err >conftest.er1 6137 cat conftest.er1 >&5 6138 fi 6139 rm -f conftest.er1 conftest.err 6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6141 test $ac_status = 0; } 6142done 6143rm -f a.out 6144 6145# If we don't use `.F' as extension, the preprocessor is not run on the 6146# input file. (Note that this only needs to work for GNU compilers.) 6147ac_save_ext=$ac_ext 6148ac_ext=F 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 6150$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6151if test "${ac_cv_f77_compiler_gnu+set}" = set; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 cat > conftest.$ac_ext <<_ACEOF 6155 program main 6156#ifndef __GNUC__ 6157 choke me 6158#endif 6159 6160 end 6161_ACEOF 6162if ac_fn_f77_try_compile "$LINENO"; then : 6163 ac_compiler_gnu=yes 6164else 6165 ac_compiler_gnu=no 6166fi 6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6168ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6169 6170fi 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 6172$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6173ac_ext=$ac_save_ext 6174ac_test_FFLAGS=${FFLAGS+set} 6175ac_save_FFLAGS=$FFLAGS 6176FFLAGS= 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 6178$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6179if test "${ac_cv_prog_f77_g+set}" = set; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 FFLAGS=-g 6183cat > conftest.$ac_ext <<_ACEOF 6184 program main 6185 6186 end 6187_ACEOF 6188if ac_fn_f77_try_compile "$LINENO"; then : 6189 ac_cv_prog_f77_g=yes 6190else 6191 ac_cv_prog_f77_g=no 6192fi 6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6194 6195fi 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 6197$as_echo "$ac_cv_prog_f77_g" >&6; } 6198if test "$ac_test_FFLAGS" = set; then 6199 FFLAGS=$ac_save_FFLAGS 6200elif test $ac_cv_prog_f77_g = yes; then 6201 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6202 FFLAGS="-g -O2" 6203 else 6204 FFLAGS="-g" 6205 fi 6206else 6207 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6208 FFLAGS="-O2" 6209 else 6210 FFLAGS= 6211 fi 6212fi 6213 6214if test $ac_compiler_gnu = yes; then 6215 G77=yes 6216else 6217 G77= 6218fi 6219ac_ext=c 6220ac_cpp='$CPP $CPPFLAGS' 6221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6223ac_compiler_gnu=$ac_cv_c_compiler_gnu 6224 6225 6226 6227# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6228# find the maximum length of command line arguments 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6230$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6231if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 i=0 6235 teststring="ABCD" 6236 6237 case $build_os in 6238 msdosdjgpp*) 6239 # On DJGPP, this test can blow up pretty badly due to problems in libc 6240 # (any single argument exceeding 2000 bytes causes a buffer overrun 6241 # during glob expansion). Even if it were fixed, the result of this 6242 # check would be larger than it should be. 6243 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6244 ;; 6245 6246 gnu*) 6247 # Under GNU Hurd, this test is not required because there is 6248 # no limit to the length of command line arguments. 6249 # Libtool will interpret -1 as no limit whatsoever 6250 lt_cv_sys_max_cmd_len=-1; 6251 ;; 6252 6253 cygwin* | mingw*) 6254 # On Win9x/ME, this test blows up -- it succeeds, but takes 6255 # about 5 minutes as the teststring grows exponentially. 6256 # Worse, since 9x/ME are not pre-emptively multitasking, 6257 # you end up with a "frozen" computer, even though with patience 6258 # the test eventually succeeds (with a max line length of 256k). 6259 # Instead, let's just punt: use the minimum linelength reported by 6260 # all of the supported platforms: 8192 (on NT/2K/XP). 6261 lt_cv_sys_max_cmd_len=8192; 6262 ;; 6263 6264 amigaos*) 6265 # On AmigaOS with pdksh, this test takes hours, literally. 6266 # So we just punt and use a minimum line length of 8192. 6267 lt_cv_sys_max_cmd_len=8192; 6268 ;; 6269 6270 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6271 # This has been around since 386BSD, at least. Likely further. 6272 if test -x /sbin/sysctl; then 6273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6274 elif test -x /usr/sbin/sysctl; then 6275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6276 else 6277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6278 fi 6279 # And add a safety zone 6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6282 ;; 6283 6284 interix*) 6285 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6286 lt_cv_sys_max_cmd_len=196608 6287 ;; 6288 6289 osf*) 6290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6292 # nice to cause kernel panics so lets avoid the loop below. 6293 # First set a reasonable default. 6294 lt_cv_sys_max_cmd_len=16384 6295 # 6296 if test -x /sbin/sysconfig; then 6297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6298 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6299 esac 6300 fi 6301 ;; 6302 sco3.2v5*) 6303 lt_cv_sys_max_cmd_len=102400 6304 ;; 6305 sysv5* | sco5v6* | sysv4.2uw2*) 6306 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6307 if test -n "$kargmax"; then 6308 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6309 else 6310 lt_cv_sys_max_cmd_len=32768 6311 fi 6312 ;; 6313 *) 6314 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6315 if test -n "$lt_cv_sys_max_cmd_len"; then 6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6318 else 6319 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6320 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6321 = "XX$teststring") >/dev/null 2>&1 && 6322 new_result=`expr "X$teststring" : ".*" 2>&1` && 6323 lt_cv_sys_max_cmd_len=$new_result && 6324 test $i != 17 # 1/2 MB should be enough 6325 do 6326 i=`expr $i + 1` 6327 teststring=$teststring$teststring 6328 done 6329 teststring= 6330 # Add a significant safety factor because C++ compilers can tack on massive 6331 # amounts of additional arguments before passing them to the linker. 6332 # It appears as though 1/2 is a usable value. 6333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6334 fi 6335 ;; 6336 esac 6337 6338fi 6339 6340if test -n $lt_cv_sys_max_cmd_len ; then 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6342$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6343else 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6345$as_echo "none" >&6; } 6346fi 6347 6348 6349 6350 6351 6352# Check for command to grab the raw symbol name followed by C symbol from nm. 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6354$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6355if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 6359# These are sane defaults that work on at least a few old systems. 6360# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6361 6362# Character class describing NM global symbol codes. 6363symcode='[BCDEGRST]' 6364 6365# Regexp to match symbols that can be accessed directly from C. 6366sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6367 6368# Transform an extracted symbol line into a proper C declaration 6369lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6370 6371# Transform an extracted symbol line into symbol name and symbol address 6372lt_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'" 6373 6374# Define system-specific variables. 6375case $host_os in 6376aix*) 6377 symcode='[BCDT]' 6378 ;; 6379cygwin* | mingw* | pw32*) 6380 symcode='[ABCDGISTW]' 6381 ;; 6382hpux*) # Its linker distinguishes data from code symbols 6383 if test "$host_cpu" = ia64; then 6384 symcode='[ABCDEGRST]' 6385 fi 6386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6387 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'" 6388 ;; 6389linux* | k*bsd*-gnu) 6390 if test "$host_cpu" = ia64; then 6391 symcode='[ABCDGIRSTW]' 6392 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6393 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'" 6394 fi 6395 ;; 6396irix* | nonstopux*) 6397 symcode='[BCDEGRST]' 6398 ;; 6399osf*) 6400 symcode='[BCDEGQRST]' 6401 ;; 6402solaris*) 6403 symcode='[BDRT]' 6404 ;; 6405sco3.2v5*) 6406 symcode='[DT]' 6407 ;; 6408sysv4.2uw2*) 6409 symcode='[DT]' 6410 ;; 6411sysv5* | sco5v6* | unixware* | OpenUNIX*) 6412 symcode='[ABDT]' 6413 ;; 6414sysv4) 6415 symcode='[DFNSTU]' 6416 ;; 6417esac 6418 6419# Handle CRLF in mingw tool chain 6420opt_cr= 6421case $build_os in 6422mingw*) 6423 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6424 ;; 6425esac 6426 6427# If we're using GNU nm, then use its standard symbol codes. 6428case `$NM -V 2>&1` in 6429*GNU* | *'with BFD'*) 6430 symcode='[ABCDGIRSTW]' ;; 6431esac 6432 6433# Try without a prefix undercore, then with it. 6434for ac_symprfx in "" "_"; do 6435 6436 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6437 symxfrm="\\1 $ac_symprfx\\2 \\2" 6438 6439 # Write the raw and C identifiers. 6440 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6441 6442 # Check to see that the pipe works correctly. 6443 pipe_works=no 6444 6445 rm -f conftest* 6446 cat > conftest.$ac_ext <<EOF 6447#ifdef __cplusplus 6448extern "C" { 6449#endif 6450char nm_test_var; 6451void nm_test_func(){} 6452#ifdef __cplusplus 6453} 6454#endif 6455int main(){nm_test_var='a';nm_test_func();return(0);} 6456EOF 6457 6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6459 (eval $ac_compile) 2>&5 6460 ac_status=$? 6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6462 test $ac_status = 0; }; then 6463 # Now try to grab the symbols. 6464 nlist=conftest.nm 6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6466 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6467 ac_status=$? 6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6469 test $ac_status = 0; } && test -s "$nlist"; then 6470 # Try sorting and uniquifying the output. 6471 if sort "$nlist" | uniq > "$nlist"T; then 6472 mv -f "$nlist"T "$nlist" 6473 else 6474 rm -f "$nlist"T 6475 fi 6476 6477 # Make sure that we snagged all the symbols we need. 6478 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6479 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6480 cat <<EOF > conftest.$ac_ext 6481#ifdef __cplusplus 6482extern "C" { 6483#endif 6484 6485EOF 6486 # Now generate the symbol file. 6487 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6488 6489 cat <<EOF >> conftest.$ac_ext 6490#if defined (__STDC__) && __STDC__ 6491# define lt_ptr_t void * 6492#else 6493# define lt_ptr_t char * 6494# define const 6495#endif 6496 6497/* The mapping between symbol names and symbols. */ 6498const struct { 6499 const char *name; 6500 lt_ptr_t address; 6501} 6502lt_preloaded_symbols[] = 6503{ 6504EOF 6505 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6506 cat <<\EOF >> conftest.$ac_ext 6507 {0, (lt_ptr_t) 0} 6508}; 6509 6510#ifdef __cplusplus 6511} 6512#endif 6513EOF 6514 # Now try linking the two files. 6515 mv conftest.$ac_objext conftstm.$ac_objext 6516 lt_save_LIBS="$LIBS" 6517 lt_save_CFLAGS="$CFLAGS" 6518 LIBS="conftstm.$ac_objext" 6519 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6521 (eval $ac_link) 2>&5 6522 ac_status=$? 6523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6524 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6525 pipe_works=yes 6526 fi 6527 LIBS="$lt_save_LIBS" 6528 CFLAGS="$lt_save_CFLAGS" 6529 else 6530 echo "cannot find nm_test_func in $nlist" >&5 6531 fi 6532 else 6533 echo "cannot find nm_test_var in $nlist" >&5 6534 fi 6535 else 6536 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6537 fi 6538 else 6539 echo "$progname: failed program was:" >&5 6540 cat conftest.$ac_ext >&5 6541 fi 6542 rm -rf conftest* conftst* 6543 6544 # Do not use the global_symbol_pipe unless it works. 6545 if test "$pipe_works" = yes; then 6546 break 6547 else 6548 lt_cv_sys_global_symbol_pipe= 6549 fi 6550done 6551 6552fi 6553 6554if test -z "$lt_cv_sys_global_symbol_pipe"; then 6555 lt_cv_sys_global_symbol_to_cdecl= 6556fi 6557if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6559$as_echo "failed" >&6; } 6560else 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6562$as_echo "ok" >&6; } 6563fi 6564 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6566$as_echo_n "checking for objdir... " >&6; } 6567if test "${lt_cv_objdir+set}" = set; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 rm -f .libs 2>/dev/null 6571mkdir .libs 2>/dev/null 6572if test -d .libs; then 6573 lt_cv_objdir=.libs 6574else 6575 # MS-DOS does not allow filenames that begin with a dot. 6576 lt_cv_objdir=_libs 6577fi 6578rmdir .libs 2>/dev/null 6579fi 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6581$as_echo "$lt_cv_objdir" >&6; } 6582objdir=$lt_cv_objdir 6583 6584 6585 6586 6587 6588case $host_os in 6589aix3*) 6590 # AIX sometimes has problems with the GCC collect2 program. For some 6591 # reason, if we set the COLLECT_NAMES environment variable, the problems 6592 # vanish in a puff of smoke. 6593 if test "X${COLLECT_NAMES+set}" != Xset; then 6594 COLLECT_NAMES= 6595 export COLLECT_NAMES 6596 fi 6597 ;; 6598esac 6599 6600# Sed substitution that helps us do robust quoting. It backslashifies 6601# metacharacters that are still active within double-quoted strings. 6602Xsed='sed -e 1s/^X//' 6603sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6604 6605# Same as above, but do not quote variable references. 6606double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6607 6608# Sed substitution to delay expansion of an escaped shell variable in a 6609# double_quote_subst'ed string. 6610delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6611 6612# Sed substitution to avoid accidental globbing in evaled expressions 6613no_glob_subst='s/\*/\\\*/g' 6614 6615# Constants: 6616rm="rm -f" 6617 6618# Global variables: 6619default_ofile=libtool 6620can_build_shared=yes 6621 6622# All known linkers require a `.a' archive for static linking (except MSVC, 6623# which needs '.lib'). 6624libext=a 6625ltmain="$ac_aux_dir/ltmain.sh" 6626ofile="$default_ofile" 6627with_gnu_ld="$lt_cv_prog_gnu_ld" 6628 6629if test -n "$ac_tool_prefix"; then 6630 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6631set dummy ${ac_tool_prefix}ar; ac_word=$2 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6633$as_echo_n "checking for $ac_word... " >&6; } 6634if test "${ac_cv_prog_AR+set}" = set; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 if test -n "$AR"; then 6638 ac_cv_prog_AR="$AR" # Let the user override the test. 6639else 6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641for as_dir in $PATH 6642do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6647 ac_cv_prog_AR="${ac_tool_prefix}ar" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652 done 6653IFS=$as_save_IFS 6654 6655fi 6656fi 6657AR=$ac_cv_prog_AR 6658if test -n "$AR"; then 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6660$as_echo "$AR" >&6; } 6661else 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663$as_echo "no" >&6; } 6664fi 6665 6666 6667fi 6668if test -z "$ac_cv_prog_AR"; then 6669 ac_ct_AR=$AR 6670 # Extract the first word of "ar", so it can be a program name with args. 6671set dummy ar; ac_word=$2 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6673$as_echo_n "checking for $ac_word... " >&6; } 6674if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 if test -n "$ac_ct_AR"; then 6678 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6687 ac_cv_prog_ac_ct_AR="ar" 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692 done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697ac_ct_AR=$ac_cv_prog_ac_ct_AR 6698if test -n "$ac_ct_AR"; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6700$as_echo "$ac_ct_AR" >&6; } 6701else 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703$as_echo "no" >&6; } 6704fi 6705 6706 if test "x$ac_ct_AR" = x; then 6707 AR="false" 6708 else 6709 case $cross_compiling:$ac_tool_warned in 6710yes:) 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6713ac_tool_warned=yes ;; 6714esac 6715 AR=$ac_ct_AR 6716 fi 6717else 6718 AR="$ac_cv_prog_AR" 6719fi 6720 6721if test -n "$ac_tool_prefix"; then 6722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6723set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6725$as_echo_n "checking for $ac_word... " >&6; } 6726if test "${ac_cv_prog_RANLIB+set}" = set; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 if test -n "$RANLIB"; then 6730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6731else 6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733for as_dir in $PATH 6734do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743done 6744 done 6745IFS=$as_save_IFS 6746 6747fi 6748fi 6749RANLIB=$ac_cv_prog_RANLIB 6750if test -n "$RANLIB"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6752$as_echo "$RANLIB" >&6; } 6753else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755$as_echo "no" >&6; } 6756fi 6757 6758 6759fi 6760if test -z "$ac_cv_prog_RANLIB"; then 6761 ac_ct_RANLIB=$RANLIB 6762 # Extract the first word of "ranlib", so it can be a program name with args. 6763set dummy ranlib; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$ac_ct_RANLIB"; then 6770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6779 ac_cv_prog_ac_ct_RANLIB="ranlib" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6790if test -n "$ac_ct_RANLIB"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6792$as_echo "$ac_ct_RANLIB" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 if test "x$ac_ct_RANLIB" = x; then 6799 RANLIB=":" 6800 else 6801 case $cross_compiling:$ac_tool_warned in 6802yes:) 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6805ac_tool_warned=yes ;; 6806esac 6807 RANLIB=$ac_ct_RANLIB 6808 fi 6809else 6810 RANLIB="$ac_cv_prog_RANLIB" 6811fi 6812 6813if test -n "$ac_tool_prefix"; then 6814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6815set dummy ${ac_tool_prefix}strip; ac_word=$2 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6817$as_echo_n "checking for $ac_word... " >&6; } 6818if test "${ac_cv_prog_STRIP+set}" = set; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 if test -n "$STRIP"; then 6822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6823else 6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825for as_dir in $PATH 6826do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6831 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835done 6836 done 6837IFS=$as_save_IFS 6838 6839fi 6840fi 6841STRIP=$ac_cv_prog_STRIP 6842if test -n "$STRIP"; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6844$as_echo "$STRIP" >&6; } 6845else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847$as_echo "no" >&6; } 6848fi 6849 6850 6851fi 6852if test -z "$ac_cv_prog_STRIP"; then 6853 ac_ct_STRIP=$STRIP 6854 # Extract the first word of "strip", so it can be a program name with args. 6855set dummy strip; ac_word=$2 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6857$as_echo_n "checking for $ac_word... " >&6; } 6858if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 if test -n "$ac_ct_STRIP"; then 6862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 for ac_exec_ext in '' $ac_executable_extensions; do 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6871 ac_cv_prog_ac_ct_STRIP="strip" 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6873 break 2 6874 fi 6875done 6876 done 6877IFS=$as_save_IFS 6878 6879fi 6880fi 6881ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6882if test -n "$ac_ct_STRIP"; then 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6884$as_echo "$ac_ct_STRIP" >&6; } 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888fi 6889 6890 if test "x$ac_ct_STRIP" = x; then 6891 STRIP=":" 6892 else 6893 case $cross_compiling:$ac_tool_warned in 6894yes:) 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6897ac_tool_warned=yes ;; 6898esac 6899 STRIP=$ac_ct_STRIP 6900 fi 6901else 6902 STRIP="$ac_cv_prog_STRIP" 6903fi 6904 6905 6906old_CC="$CC" 6907old_CFLAGS="$CFLAGS" 6908 6909# Set sane defaults for various variables 6910test -z "$AR" && AR=ar 6911test -z "$AR_FLAGS" && AR_FLAGS=cru 6912test -z "$AS" && AS=as 6913test -z "$CC" && CC=cc 6914test -z "$LTCC" && LTCC=$CC 6915test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6916test -z "$DLLTOOL" && DLLTOOL=dlltool 6917test -z "$LD" && LD=ld 6918test -z "$LN_S" && LN_S="ln -s" 6919test -z "$MAGIC_CMD" && MAGIC_CMD=file 6920test -z "$NM" && NM=nm 6921test -z "$SED" && SED=sed 6922test -z "$OBJDUMP" && OBJDUMP=objdump 6923test -z "$RANLIB" && RANLIB=: 6924test -z "$STRIP" && STRIP=: 6925test -z "$ac_objext" && ac_objext=o 6926 6927# Determine commands to create old-style static archives. 6928old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6929old_postinstall_cmds='chmod 644 $oldlib' 6930old_postuninstall_cmds= 6931 6932if test -n "$RANLIB"; then 6933 case $host_os in 6934 openbsd*) 6935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6936 ;; 6937 *) 6938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6939 ;; 6940 esac 6941 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6942fi 6943 6944for cc_temp in $compiler""; do 6945 case $cc_temp in 6946 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6947 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6948 \-*) ;; 6949 *) break;; 6950 esac 6951done 6952cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6953 6954 6955# Only perform the check for file, if the check method requires it 6956case $deplibs_check_method in 6957file_magic*) 6958 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 6960$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6961if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 case $MAGIC_CMD in 6965[\\/*] | ?:[\\/]*) 6966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6967 ;; 6968*) 6969 lt_save_MAGIC_CMD="$MAGIC_CMD" 6970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6972 for ac_dir in $ac_dummy; do 6973 IFS="$lt_save_ifs" 6974 test -z "$ac_dir" && ac_dir=. 6975 if test -f $ac_dir/${ac_tool_prefix}file; then 6976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6977 if test -n "$file_magic_test_file"; then 6978 case $deplibs_check_method in 6979 "file_magic "*) 6980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6983 $EGREP "$file_magic_regex" > /dev/null; then 6984 : 6985 else 6986 cat <<EOF 1>&2 6987 6988*** Warning: the command libtool uses to detect shared libraries, 6989*** $file_magic_cmd, produces output that libtool cannot recognize. 6990*** The result is that libtool may fail to recognize shared libraries 6991*** as such. This will affect the creation of libtool libraries that 6992*** depend on shared libraries, but programs linked with such libtool 6993*** libraries will work regardless of this problem. Nevertheless, you 6994*** may want to report the problem to your system manager and/or to 6995*** bug-libtool@gnu.org 6996 6997EOF 6998 fi ;; 6999 esac 7000 fi 7001 break 7002 fi 7003 done 7004 IFS="$lt_save_ifs" 7005 MAGIC_CMD="$lt_save_MAGIC_CMD" 7006 ;; 7007esac 7008fi 7009 7010MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7011if test -n "$MAGIC_CMD"; then 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7013$as_echo "$MAGIC_CMD" >&6; } 7014else 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7016$as_echo "no" >&6; } 7017fi 7018 7019if test -z "$lt_cv_path_MAGIC_CMD"; then 7020 if test -n "$ac_tool_prefix"; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7022$as_echo_n "checking for file... " >&6; } 7023if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7024 $as_echo_n "(cached) " >&6 7025else 7026 case $MAGIC_CMD in 7027[\\/*] | ?:[\\/]*) 7028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7029 ;; 7030*) 7031 lt_save_MAGIC_CMD="$MAGIC_CMD" 7032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7033 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7034 for ac_dir in $ac_dummy; do 7035 IFS="$lt_save_ifs" 7036 test -z "$ac_dir" && ac_dir=. 7037 if test -f $ac_dir/file; then 7038 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7039 if test -n "$file_magic_test_file"; then 7040 case $deplibs_check_method in 7041 "file_magic "*) 7042 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7044 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7045 $EGREP "$file_magic_regex" > /dev/null; then 7046 : 7047 else 7048 cat <<EOF 1>&2 7049 7050*** Warning: the command libtool uses to detect shared libraries, 7051*** $file_magic_cmd, produces output that libtool cannot recognize. 7052*** The result is that libtool may fail to recognize shared libraries 7053*** as such. This will affect the creation of libtool libraries that 7054*** depend on shared libraries, but programs linked with such libtool 7055*** libraries will work regardless of this problem. Nevertheless, you 7056*** may want to report the problem to your system manager and/or to 7057*** bug-libtool@gnu.org 7058 7059EOF 7060 fi ;; 7061 esac 7062 fi 7063 break 7064 fi 7065 done 7066 IFS="$lt_save_ifs" 7067 MAGIC_CMD="$lt_save_MAGIC_CMD" 7068 ;; 7069esac 7070fi 7071 7072MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7073if test -n "$MAGIC_CMD"; then 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7075$as_echo "$MAGIC_CMD" >&6; } 7076else 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7078$as_echo "no" >&6; } 7079fi 7080 7081 else 7082 MAGIC_CMD=: 7083 fi 7084fi 7085 7086 fi 7087 ;; 7088esac 7089 7090 7091 case $host_os in 7092 rhapsody* | darwin*) 7093 if test -n "$ac_tool_prefix"; then 7094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7095set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7097$as_echo_n "checking for $ac_word... " >&6; } 7098if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 if test -n "$DSYMUTIL"; then 7102 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7103else 7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105for as_dir in $PATH 7106do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115done 7116 done 7117IFS=$as_save_IFS 7118 7119fi 7120fi 7121DSYMUTIL=$ac_cv_prog_DSYMUTIL 7122if test -n "$DSYMUTIL"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7124$as_echo "$DSYMUTIL" >&6; } 7125else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127$as_echo "no" >&6; } 7128fi 7129 7130 7131fi 7132if test -z "$ac_cv_prog_DSYMUTIL"; then 7133 ac_ct_DSYMUTIL=$DSYMUTIL 7134 # Extract the first word of "dsymutil", so it can be a program name with args. 7135set dummy dsymutil; ac_word=$2 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7137$as_echo_n "checking for $ac_word... " >&6; } 7138if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 if test -n "$ac_ct_DSYMUTIL"; then 7142 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7143else 7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145for as_dir in $PATH 7146do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7151 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155done 7156 done 7157IFS=$as_save_IFS 7158 7159fi 7160fi 7161ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7162if test -n "$ac_ct_DSYMUTIL"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7164$as_echo "$ac_ct_DSYMUTIL" >&6; } 7165else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167$as_echo "no" >&6; } 7168fi 7169 7170 if test "x$ac_ct_DSYMUTIL" = x; then 7171 DSYMUTIL=":" 7172 else 7173 case $cross_compiling:$ac_tool_warned in 7174yes:) 7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7177ac_tool_warned=yes ;; 7178esac 7179 DSYMUTIL=$ac_ct_DSYMUTIL 7180 fi 7181else 7182 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7183fi 7184 7185 if test -n "$ac_tool_prefix"; then 7186 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7187set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7189$as_echo_n "checking for $ac_word... " >&6; } 7190if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7191 $as_echo_n "(cached) " >&6 7192else 7193 if test -n "$NMEDIT"; then 7194 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7195else 7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7197for as_dir in $PATH 7198do 7199 IFS=$as_save_IFS 7200 test -z "$as_dir" && as_dir=. 7201 for ac_exec_ext in '' $ac_executable_extensions; do 7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7205 break 2 7206 fi 7207done 7208 done 7209IFS=$as_save_IFS 7210 7211fi 7212fi 7213NMEDIT=$ac_cv_prog_NMEDIT 7214if test -n "$NMEDIT"; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7216$as_echo "$NMEDIT" >&6; } 7217else 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7219$as_echo "no" >&6; } 7220fi 7221 7222 7223fi 7224if test -z "$ac_cv_prog_NMEDIT"; then 7225 ac_ct_NMEDIT=$NMEDIT 7226 # Extract the first word of "nmedit", so it can be a program name with args. 7227set dummy nmedit; ac_word=$2 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7229$as_echo_n "checking for $ac_word... " >&6; } 7230if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 if test -n "$ac_ct_NMEDIT"; then 7234 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7235else 7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237for as_dir in $PATH 7238do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7243 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247done 7248 done 7249IFS=$as_save_IFS 7250 7251fi 7252fi 7253ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7254if test -n "$ac_ct_NMEDIT"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7256$as_echo "$ac_ct_NMEDIT" >&6; } 7257else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259$as_echo "no" >&6; } 7260fi 7261 7262 if test "x$ac_ct_NMEDIT" = x; then 7263 NMEDIT=":" 7264 else 7265 case $cross_compiling:$ac_tool_warned in 7266yes:) 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7269ac_tool_warned=yes ;; 7270esac 7271 NMEDIT=$ac_ct_NMEDIT 7272 fi 7273else 7274 NMEDIT="$ac_cv_prog_NMEDIT" 7275fi 7276 7277 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7279$as_echo_n "checking for -single_module linker flag... " >&6; } 7280if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7281 $as_echo_n "(cached) " >&6 7282else 7283 lt_cv_apple_cc_single_mod=no 7284 if test -z "${LT_MULTI_MODULE}"; then 7285 # By default we will add the -single_module flag. You can override 7286 # by either setting the environment variable LT_MULTI_MODULE 7287 # non-empty at configure time, or by adding -multi_module to the 7288 # link flags. 7289 echo "int foo(void){return 1;}" > conftest.c 7290 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7291 -dynamiclib ${wl}-single_module conftest.c 7292 if test -f libconftest.dylib; then 7293 lt_cv_apple_cc_single_mod=yes 7294 rm -rf libconftest.dylib* 7295 fi 7296 rm conftest.c 7297 fi 7298fi 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7300$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7302$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7303if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7304 $as_echo_n "(cached) " >&6 7305else 7306 lt_cv_ld_exported_symbols_list=no 7307 save_LDFLAGS=$LDFLAGS 7308 echo "_main" > conftest.sym 7309 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7311/* end confdefs.h. */ 7312 7313int 7314main () 7315{ 7316 7317 ; 7318 return 0; 7319} 7320_ACEOF 7321if ac_fn_c_try_link "$LINENO"; then : 7322 lt_cv_ld_exported_symbols_list=yes 7323else 7324 lt_cv_ld_exported_symbols_list=no 7325fi 7326rm -f core conftest.err conftest.$ac_objext \ 7327 conftest$ac_exeext conftest.$ac_ext 7328 LDFLAGS="$save_LDFLAGS" 7329 7330fi 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7332$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7333 case $host_os in 7334 rhapsody* | darwin1.[0123]) 7335 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7336 darwin1.*) 7337 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7338 darwin*) 7339 # if running on 10.5 or later, the deployment target defaults 7340 # to the OS version, if on x86, and 10.4, the deployment 7341 # target defaults to 10.4. Don't you love it? 7342 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7343 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7345 10.[012]*) 7346 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7347 10.*) 7348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7349 esac 7350 ;; 7351 esac 7352 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7353 _lt_dar_single_mod='$single_module' 7354 fi 7355 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7356 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7357 else 7358 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7359 fi 7360 if test "$DSYMUTIL" != ":"; then 7361 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7362 else 7363 _lt_dsymutil= 7364 fi 7365 ;; 7366 esac 7367 7368 7369enable_dlopen=no 7370enable_win32_dll=no 7371 7372# Check whether --enable-libtool-lock was given. 7373if test "${enable_libtool_lock+set}" = set; then : 7374 enableval=$enable_libtool_lock; 7375fi 7376 7377test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7378 7379 7380# Check whether --with-pic was given. 7381if test "${with_pic+set}" = set; then : 7382 withval=$with_pic; pic_mode="$withval" 7383else 7384 pic_mode=default 7385fi 7386 7387test -z "$pic_mode" && pic_mode=default 7388 7389# Use C for the default configuration in the libtool script 7390tagname= 7391lt_save_CC="$CC" 7392ac_ext=c 7393ac_cpp='$CPP $CPPFLAGS' 7394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7396ac_compiler_gnu=$ac_cv_c_compiler_gnu 7397 7398 7399# Source file extension for C test sources. 7400ac_ext=c 7401 7402# Object file extension for compiled C test sources. 7403objext=o 7404objext=$objext 7405 7406# Code to be used in simple compile tests 7407lt_simple_compile_test_code="int some_variable = 0;" 7408 7409# Code to be used in simple link tests 7410lt_simple_link_test_code='int main(){return(0);}' 7411 7412 7413# If no C compiler was specified, use CC. 7414LTCC=${LTCC-"$CC"} 7415 7416# If no C compiler flags were specified, use CFLAGS. 7417LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7418 7419# Allow CC to be a program name with arguments. 7420compiler=$CC 7421 7422 7423# save warnings/boilerplate of simple test code 7424ac_outfile=conftest.$ac_objext 7425echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7426eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7427_lt_compiler_boilerplate=`cat conftest.err` 7428$rm conftest* 7429 7430ac_outfile=conftest.$ac_objext 7431echo "$lt_simple_link_test_code" >conftest.$ac_ext 7432eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7433_lt_linker_boilerplate=`cat conftest.err` 7434$rm -r conftest* 7435 7436 7437## CAVEAT EMPTOR: 7438## There is no encapsulation within the following macros, do not change 7439## the running order or otherwise move them around unless you know exactly 7440## what you are doing... 7441 7442lt_prog_compiler_no_builtin_flag= 7443 7444if test "$GCC" = yes; then 7445 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7446 7447 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7449$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7450if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 lt_cv_prog_compiler_rtti_exceptions=no 7454 ac_outfile=conftest.$ac_objext 7455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7456 lt_compiler_flag="-fno-rtti -fno-exceptions" 7457 # Insert the option either (1) after the last *FLAGS variable, or 7458 # (2) before a word containing "conftest.", or (3) at the end. 7459 # Note that $ac_compile itself does not contain backslashes and begins 7460 # with a dollar sign (not a hyphen), so the echo should work correctly. 7461 # The option is referenced via a variable to avoid confusing sed. 7462 lt_compile=`echo "$ac_compile" | $SED \ 7463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7465 -e 's:$: $lt_compiler_flag:'` 7466 (eval echo "\"\$as_me:7466: $lt_compile\"" >&5) 7467 (eval "$lt_compile" 2>conftest.err) 7468 ac_status=$? 7469 cat conftest.err >&5 7470 echo "$as_me:7470: \$? = $ac_status" >&5 7471 if (exit $ac_status) && test -s "$ac_outfile"; then 7472 # The compiler can only warn and ignore the option if not recognized 7473 # So say no if there are warnings other than the usual output. 7474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7477 lt_cv_prog_compiler_rtti_exceptions=yes 7478 fi 7479 fi 7480 $rm conftest* 7481 7482fi 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7484$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7485 7486if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7488else 7489 : 7490fi 7491 7492fi 7493 7494lt_prog_compiler_wl= 7495lt_prog_compiler_pic= 7496lt_prog_compiler_static= 7497 7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7499$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7500 7501 if test "$GCC" = yes; then 7502 lt_prog_compiler_wl='-Wl,' 7503 lt_prog_compiler_static='-static' 7504 7505 case $host_os in 7506 aix*) 7507 # All AIX code is PIC. 7508 if test "$host_cpu" = ia64; then 7509 # AIX 5 now supports IA64 processor 7510 lt_prog_compiler_static='-Bstatic' 7511 fi 7512 ;; 7513 7514 amigaos*) 7515 # FIXME: we need at least 68020 code to build shared libraries, but 7516 # adding the `-m68020' flag to GCC prevents building anything better, 7517 # like `-m68040'. 7518 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7519 ;; 7520 7521 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7522 # PIC is the default for these OSes. 7523 ;; 7524 7525 mingw* | cygwin* | pw32* | os2*) 7526 # This hack is so that the source file can tell whether it is being 7527 # built for inclusion in a dll (and should export symbols for example). 7528 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7529 # (--disable-auto-import) libraries 7530 lt_prog_compiler_pic='-DDLL_EXPORT' 7531 ;; 7532 7533 darwin* | rhapsody*) 7534 # PIC is the default on this platform 7535 # Common symbols not allowed in MH_DYLIB files 7536 lt_prog_compiler_pic='-fno-common' 7537 ;; 7538 7539 interix[3-9]*) 7540 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7541 # Instead, we relocate shared libraries at runtime. 7542 ;; 7543 7544 msdosdjgpp*) 7545 # Just because we use GCC doesn't mean we suddenly get shared libraries 7546 # on systems that don't support them. 7547 lt_prog_compiler_can_build_shared=no 7548 enable_shared=no 7549 ;; 7550 7551 sysv4*MP*) 7552 if test -d /usr/nec; then 7553 lt_prog_compiler_pic=-Kconform_pic 7554 fi 7555 ;; 7556 7557 hpux*) 7558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7559 # not for PA HP-UX. 7560 case $host_cpu in 7561 hppa*64*|ia64*) 7562 # +Z the default 7563 ;; 7564 *) 7565 lt_prog_compiler_pic='-fPIC' 7566 ;; 7567 esac 7568 ;; 7569 7570 *) 7571 lt_prog_compiler_pic='-fPIC' 7572 ;; 7573 esac 7574 else 7575 # PORTME Check for flag to pass linker flags through the system compiler. 7576 case $host_os in 7577 aix*) 7578 lt_prog_compiler_wl='-Wl,' 7579 if test "$host_cpu" = ia64; then 7580 # AIX 5 now supports IA64 processor 7581 lt_prog_compiler_static='-Bstatic' 7582 else 7583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7584 fi 7585 ;; 7586 darwin*) 7587 # PIC is the default on this platform 7588 # Common symbols not allowed in MH_DYLIB files 7589 case $cc_basename in 7590 xlc*) 7591 lt_prog_compiler_pic='-qnocommon' 7592 lt_prog_compiler_wl='-Wl,' 7593 ;; 7594 esac 7595 ;; 7596 7597 mingw* | cygwin* | pw32* | os2*) 7598 # This hack is so that the source file can tell whether it is being 7599 # built for inclusion in a dll (and should export symbols for example). 7600 lt_prog_compiler_pic='-DDLL_EXPORT' 7601 ;; 7602 7603 hpux9* | hpux10* | hpux11*) 7604 lt_prog_compiler_wl='-Wl,' 7605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7606 # not for PA HP-UX. 7607 case $host_cpu in 7608 hppa*64*|ia64*) 7609 # +Z the default 7610 ;; 7611 *) 7612 lt_prog_compiler_pic='+Z' 7613 ;; 7614 esac 7615 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7616 lt_prog_compiler_static='${wl}-a ${wl}archive' 7617 ;; 7618 7619 irix5* | irix6* | nonstopux*) 7620 lt_prog_compiler_wl='-Wl,' 7621 # PIC (with -KPIC) is the default. 7622 lt_prog_compiler_static='-non_shared' 7623 ;; 7624 7625 newsos6) 7626 lt_prog_compiler_pic='-KPIC' 7627 lt_prog_compiler_static='-Bstatic' 7628 ;; 7629 7630 linux* | k*bsd*-gnu) 7631 case $cc_basename in 7632 icc* | ecc*) 7633 lt_prog_compiler_wl='-Wl,' 7634 lt_prog_compiler_pic='-KPIC' 7635 lt_prog_compiler_static='-static' 7636 ;; 7637 pgcc* | pgf77* | pgf90* | pgf95*) 7638 # Portland Group compilers (*not* the Pentium gcc compiler, 7639 # which looks to be a dead project) 7640 lt_prog_compiler_wl='-Wl,' 7641 lt_prog_compiler_pic='-fpic' 7642 lt_prog_compiler_static='-Bstatic' 7643 ;; 7644 ccc*) 7645 lt_prog_compiler_wl='-Wl,' 7646 # All Alpha code is PIC. 7647 lt_prog_compiler_static='-non_shared' 7648 ;; 7649 *) 7650 case `$CC -V 2>&1 | sed 5q` in 7651 *Sun\ C*) 7652 # Sun C 5.9 7653 lt_prog_compiler_pic='-KPIC' 7654 lt_prog_compiler_static='-Bstatic' 7655 lt_prog_compiler_wl='-Wl,' 7656 ;; 7657 *Sun\ F*) 7658 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7659 lt_prog_compiler_pic='-KPIC' 7660 lt_prog_compiler_static='-Bstatic' 7661 lt_prog_compiler_wl='' 7662 ;; 7663 esac 7664 ;; 7665 esac 7666 ;; 7667 7668 osf3* | osf4* | osf5*) 7669 lt_prog_compiler_wl='-Wl,' 7670 # All OSF/1 code is PIC. 7671 lt_prog_compiler_static='-non_shared' 7672 ;; 7673 7674 rdos*) 7675 lt_prog_compiler_static='-non_shared' 7676 ;; 7677 7678 solaris*) 7679 lt_prog_compiler_pic='-KPIC' 7680 lt_prog_compiler_static='-Bstatic' 7681 case $cc_basename in 7682 f77* | f90* | f95*) 7683 lt_prog_compiler_wl='-Qoption ld ';; 7684 *) 7685 lt_prog_compiler_wl='-Wl,';; 7686 esac 7687 ;; 7688 7689 sunos4*) 7690 lt_prog_compiler_wl='-Qoption ld ' 7691 lt_prog_compiler_pic='-PIC' 7692 lt_prog_compiler_static='-Bstatic' 7693 ;; 7694 7695 sysv4 | sysv4.2uw2* | sysv4.3*) 7696 lt_prog_compiler_wl='-Wl,' 7697 lt_prog_compiler_pic='-KPIC' 7698 lt_prog_compiler_static='-Bstatic' 7699 ;; 7700 7701 sysv4*MP*) 7702 if test -d /usr/nec ;then 7703 lt_prog_compiler_pic='-Kconform_pic' 7704 lt_prog_compiler_static='-Bstatic' 7705 fi 7706 ;; 7707 7708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7709 lt_prog_compiler_wl='-Wl,' 7710 lt_prog_compiler_pic='-KPIC' 7711 lt_prog_compiler_static='-Bstatic' 7712 ;; 7713 7714 unicos*) 7715 lt_prog_compiler_wl='-Wl,' 7716 lt_prog_compiler_can_build_shared=no 7717 ;; 7718 7719 uts4*) 7720 lt_prog_compiler_pic='-pic' 7721 lt_prog_compiler_static='-Bstatic' 7722 ;; 7723 7724 *) 7725 lt_prog_compiler_can_build_shared=no 7726 ;; 7727 esac 7728 fi 7729 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7731$as_echo "$lt_prog_compiler_pic" >&6; } 7732 7733# 7734# Check to make sure the PIC flag actually works. 7735# 7736if test -n "$lt_prog_compiler_pic"; then 7737 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7739$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7740if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 lt_cv_prog_compiler_pic_works=no 7744 ac_outfile=conftest.$ac_objext 7745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7746 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7747 # Insert the option either (1) after the last *FLAGS variable, or 7748 # (2) before a word containing "conftest.", or (3) at the end. 7749 # Note that $ac_compile itself does not contain backslashes and begins 7750 # with a dollar sign (not a hyphen), so the echo should work correctly. 7751 # The option is referenced via a variable to avoid confusing sed. 7752 lt_compile=`echo "$ac_compile" | $SED \ 7753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7755 -e 's:$: $lt_compiler_flag:'` 7756 (eval echo "\"\$as_me:7756: $lt_compile\"" >&5) 7757 (eval "$lt_compile" 2>conftest.err) 7758 ac_status=$? 7759 cat conftest.err >&5 7760 echo "$as_me:7760: \$? = $ac_status" >&5 7761 if (exit $ac_status) && test -s "$ac_outfile"; then 7762 # The compiler can only warn and ignore the option if not recognized 7763 # So say no if there are warnings other than the usual output. 7764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7767 lt_cv_prog_compiler_pic_works=yes 7768 fi 7769 fi 7770 $rm conftest* 7771 7772fi 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7774$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7775 7776if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7777 case $lt_prog_compiler_pic in 7778 "" | " "*) ;; 7779 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7780 esac 7781else 7782 lt_prog_compiler_pic= 7783 lt_prog_compiler_can_build_shared=no 7784fi 7785 7786fi 7787case $host_os in 7788 # For platforms which do not support PIC, -DPIC is meaningless: 7789 *djgpp*) 7790 lt_prog_compiler_pic= 7791 ;; 7792 *) 7793 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7794 ;; 7795esac 7796 7797# 7798# Check to make sure the static flag actually works. 7799# 7800wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7802$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7803if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 lt_cv_prog_compiler_static_works=no 7807 save_LDFLAGS="$LDFLAGS" 7808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7809 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7811 # The linker can only warn and ignore the option if not recognized 7812 # So say no if there are warnings 7813 if test -s conftest.err; then 7814 # Append any errors to the config.log. 7815 cat conftest.err 1>&5 7816 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7818 if diff conftest.exp conftest.er2 >/dev/null; then 7819 lt_cv_prog_compiler_static_works=yes 7820 fi 7821 else 7822 lt_cv_prog_compiler_static_works=yes 7823 fi 7824 fi 7825 $rm -r conftest* 7826 LDFLAGS="$save_LDFLAGS" 7827 7828fi 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7830$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7831 7832if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7833 : 7834else 7835 lt_prog_compiler_static= 7836fi 7837 7838 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7841if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 lt_cv_prog_compiler_c_o=no 7845 $rm -r conftest 2>/dev/null 7846 mkdir conftest 7847 cd conftest 7848 mkdir out 7849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7850 7851 lt_compiler_flag="-o out/conftest2.$ac_objext" 7852 # Insert the option either (1) after the last *FLAGS variable, or 7853 # (2) before a word containing "conftest.", or (3) at the end. 7854 # Note that $ac_compile itself does not contain backslashes and begins 7855 # with a dollar sign (not a hyphen), so the echo should work correctly. 7856 lt_compile=`echo "$ac_compile" | $SED \ 7857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7859 -e 's:$: $lt_compiler_flag:'` 7860 (eval echo "\"\$as_me:7860: $lt_compile\"" >&5) 7861 (eval "$lt_compile" 2>out/conftest.err) 7862 ac_status=$? 7863 cat out/conftest.err >&5 7864 echo "$as_me:7864: \$? = $ac_status" >&5 7865 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7866 then 7867 # The compiler can only warn and ignore the option if not recognized 7868 # So say no if there are warnings 7869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7872 lt_cv_prog_compiler_c_o=yes 7873 fi 7874 fi 7875 chmod u+w . 2>&5 7876 $rm conftest* 7877 # SGI C++ compiler will create directory out/ii_files/ for 7878 # template instantiation 7879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7880 $rm out/* && rmdir out 7881 cd .. 7882 rmdir conftest 7883 $rm conftest* 7884 7885fi 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7887$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7888 7889 7890hard_links="nottested" 7891if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7892 # do not overwrite the value of need_locks provided by the user 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7894$as_echo_n "checking if we can lock with hard links... " >&6; } 7895 hard_links=yes 7896 $rm conftest* 7897 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7898 touch conftest.a 7899 ln conftest.a conftest.b 2>&5 || hard_links=no 7900 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7902$as_echo "$hard_links" >&6; } 7903 if test "$hard_links" = no; then 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7905$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7906 need_locks=warn 7907 fi 7908else 7909 need_locks=no 7910fi 7911 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7913$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7914 7915 runpath_var= 7916 allow_undefined_flag= 7917 enable_shared_with_static_runtimes=no 7918 archive_cmds= 7919 archive_expsym_cmds= 7920 old_archive_From_new_cmds= 7921 old_archive_from_expsyms_cmds= 7922 export_dynamic_flag_spec= 7923 whole_archive_flag_spec= 7924 thread_safe_flag_spec= 7925 hardcode_libdir_flag_spec= 7926 hardcode_libdir_flag_spec_ld= 7927 hardcode_libdir_separator= 7928 hardcode_direct=no 7929 hardcode_minus_L=no 7930 hardcode_shlibpath_var=unsupported 7931 link_all_deplibs=unknown 7932 hardcode_automatic=no 7933 module_cmds= 7934 module_expsym_cmds= 7935 always_export_symbols=no 7936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7937 # include_expsyms should be a list of space-separated symbols to be *always* 7938 # included in the symbol list 7939 include_expsyms= 7940 # exclude_expsyms can be an extended regexp of symbols to exclude 7941 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7943 # as well as any symbol that contains `d'. 7944 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7946 # platforms (ab)use it in PIC code, but their linkers get confused if 7947 # the symbol is explicitly referenced. Since portable code cannot 7948 # rely on this symbol name, it's probably fine to never include it in 7949 # preloaded symbol tables. 7950 # Exclude shared library initialization/finalization symbols. 7951 extract_expsyms_cmds= 7952 # Just being paranoid about ensuring that cc_basename is set. 7953 for cc_temp in $compiler""; do 7954 case $cc_temp in 7955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7957 \-*) ;; 7958 *) break;; 7959 esac 7960done 7961cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7962 7963 case $host_os in 7964 cygwin* | mingw* | pw32*) 7965 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7966 # When not using gcc, we currently assume that we are using 7967 # Microsoft Visual C++. 7968 if test "$GCC" != yes; then 7969 with_gnu_ld=no 7970 fi 7971 ;; 7972 interix*) 7973 # we just hope/assume this is gcc and not c89 (= MSVC++) 7974 with_gnu_ld=yes 7975 ;; 7976 openbsd*) 7977 with_gnu_ld=no 7978 ;; 7979 esac 7980 7981 ld_shlibs=yes 7982 if test "$with_gnu_ld" = yes; then 7983 # If archive_cmds runs LD, not CC, wlarc should be empty 7984 wlarc='${wl}' 7985 7986 # Set some defaults for GNU ld with shared library support. These 7987 # are reset later if shared libraries are not supported. Putting them 7988 # here allows them to be overridden if necessary. 7989 runpath_var=LD_RUN_PATH 7990 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7991 export_dynamic_flag_spec='${wl}--export-dynamic' 7992 # ancient GNU ld didn't support --whole-archive et. al. 7993 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7994 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7995 else 7996 whole_archive_flag_spec= 7997 fi 7998 supports_anon_versioning=no 7999 case `$LD -v 2>/dev/null` in 8000 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8001 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8002 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8003 *\ 2.11.*) ;; # other 2.11 versions 8004 *) supports_anon_versioning=yes ;; 8005 esac 8006 8007 # See if GNU ld supports shared libraries. 8008 case $host_os in 8009 aix[3-9]*) 8010 # On AIX/PPC, the GNU linker is very broken 8011 if test "$host_cpu" != ia64; then 8012 ld_shlibs=no 8013 cat <<EOF 1>&2 8014 8015*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8016*** to be unable to reliably create shared libraries on AIX. 8017*** Therefore, libtool is disabling shared libraries support. If you 8018*** really care for shared libraries, you may want to modify your PATH 8019*** so that a non-GNU linker is found, and then restart. 8020 8021EOF 8022 fi 8023 ;; 8024 8025 amigaos*) 8026 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)' 8027 hardcode_libdir_flag_spec='-L$libdir' 8028 hardcode_minus_L=yes 8029 8030 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8031 # that the semantics of dynamic libraries on AmigaOS, at least up 8032 # to version 4, is to share data among multiple programs linked 8033 # with the same dynamic library. Since this doesn't match the 8034 # behavior of shared libraries on other platforms, we can't use 8035 # them. 8036 ld_shlibs=no 8037 ;; 8038 8039 beos*) 8040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8041 allow_undefined_flag=unsupported 8042 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8043 # support --undefined. This deserves some investigation. FIXME 8044 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8045 else 8046 ld_shlibs=no 8047 fi 8048 ;; 8049 8050 cygwin* | mingw* | pw32*) 8051 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8052 # as there is no search path for DLLs. 8053 hardcode_libdir_flag_spec='-L$libdir' 8054 allow_undefined_flag=unsupported 8055 always_export_symbols=no 8056 enable_shared_with_static_runtimes=yes 8057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8058 8059 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8061 # If the export-symbols file already is a .def file (1st line 8062 # is EXPORTS), use it as is; otherwise, prepend... 8063 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8064 cp $export_symbols $output_objdir/$soname.def; 8065 else 8066 echo EXPORTS > $output_objdir/$soname.def; 8067 cat $export_symbols >> $output_objdir/$soname.def; 8068 fi~ 8069 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8070 else 8071 ld_shlibs=no 8072 fi 8073 ;; 8074 8075 interix[3-9]*) 8076 hardcode_direct=no 8077 hardcode_shlibpath_var=no 8078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8079 export_dynamic_flag_spec='${wl}-E' 8080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8081 # Instead, shared libraries are loaded at an image base (0x10000000 by 8082 # default) and relocated if they conflict, which is a slow very memory 8083 # consuming and fragmenting process. To avoid this, we pick a random, 8084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8085 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8087 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' 8088 ;; 8089 8090 gnu* | linux* | k*bsd*-gnu) 8091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8092 tmp_addflag= 8093 case $cc_basename,$host_cpu in 8094 pgcc*) # Portland Group C compiler 8095 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' 8096 tmp_addflag=' $pic_flag' 8097 ;; 8098 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8099 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' 8100 tmp_addflag=' $pic_flag -Mnomain' ;; 8101 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8102 tmp_addflag=' -i_dynamic' ;; 8103 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8104 tmp_addflag=' -i_dynamic -nofor_main' ;; 8105 ifc* | ifort*) # Intel Fortran compiler 8106 tmp_addflag=' -nofor_main' ;; 8107 esac 8108 case `$CC -V 2>&1 | sed 5q` in 8109 *Sun\ C*) # Sun C 5.9 8110 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' 8111 tmp_sharedflag='-G' ;; 8112 *Sun\ F*) # Sun Fortran 8.3 8113 tmp_sharedflag='-G' ;; 8114 *) 8115 tmp_sharedflag='-shared' ;; 8116 esac 8117 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8118 8119 if test $supports_anon_versioning = yes; then 8120 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8122 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8123 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8124 fi 8125 else 8126 ld_shlibs=no 8127 fi 8128 ;; 8129 8130 netbsd*) 8131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8132 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8133 wlarc= 8134 else 8135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8137 fi 8138 ;; 8139 8140 solaris*) 8141 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8142 ld_shlibs=no 8143 cat <<EOF 1>&2 8144 8145*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8146*** create shared libraries on Solaris systems. Therefore, libtool 8147*** is disabling shared libraries support. We urge you to upgrade GNU 8148*** binutils to release 2.9.1 or newer. Another option is to modify 8149*** your PATH or compiler configuration so that the native linker is 8150*** used, and then restart. 8151 8152EOF 8153 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8156 else 8157 ld_shlibs=no 8158 fi 8159 ;; 8160 8161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8162 case `$LD -v 2>&1` in 8163 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8164 ld_shlibs=no 8165 cat <<_LT_EOF 1>&2 8166 8167*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8168*** reliably create shared libraries on SCO systems. Therefore, libtool 8169*** is disabling shared libraries support. We urge you to upgrade GNU 8170*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8171*** your PATH or compiler configuration so that the native linker is 8172*** used, and then restart. 8173 8174_LT_EOF 8175 ;; 8176 *) 8177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8178 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8181 else 8182 ld_shlibs=no 8183 fi 8184 ;; 8185 esac 8186 ;; 8187 8188 sunos4*) 8189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8190 wlarc= 8191 hardcode_direct=yes 8192 hardcode_shlibpath_var=no 8193 ;; 8194 8195 *) 8196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8199 else 8200 ld_shlibs=no 8201 fi 8202 ;; 8203 esac 8204 8205 if test "$ld_shlibs" = no; then 8206 runpath_var= 8207 hardcode_libdir_flag_spec= 8208 export_dynamic_flag_spec= 8209 whole_archive_flag_spec= 8210 fi 8211 else 8212 # PORTME fill in a description of your system's linker (not GNU ld) 8213 case $host_os in 8214 aix3*) 8215 allow_undefined_flag=unsupported 8216 always_export_symbols=yes 8217 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' 8218 # Note: this linker hardcodes the directories in LIBPATH if there 8219 # are no directories specified by -L. 8220 hardcode_minus_L=yes 8221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8222 # Neither direct hardcoding nor static linking is supported with a 8223 # broken collect2. 8224 hardcode_direct=unsupported 8225 fi 8226 ;; 8227 8228 aix[4-9]*) 8229 if test "$host_cpu" = ia64; then 8230 # On IA64, the linker does run time linking by default, so we don't 8231 # have to do anything special. 8232 aix_use_runtimelinking=no 8233 exp_sym_flag='-Bexport' 8234 no_entry_flag="" 8235 else 8236 # If we're using GNU nm, then we don't want the "-C" option. 8237 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8239 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' 8240 else 8241 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' 8242 fi 8243 aix_use_runtimelinking=no 8244 8245 # Test if we are trying to use run time linking or normal 8246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8247 # need to do runtime linking. 8248 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8249 for ld_flag in $LDFLAGS; do 8250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8251 aix_use_runtimelinking=yes 8252 break 8253 fi 8254 done 8255 ;; 8256 esac 8257 8258 exp_sym_flag='-bexport' 8259 no_entry_flag='-bnoentry' 8260 fi 8261 8262 # When large executables or shared objects are built, AIX ld can 8263 # have problems creating the table of contents. If linking a library 8264 # or program results in "error TOC overflow" add -mminimal-toc to 8265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8267 8268 archive_cmds='' 8269 hardcode_direct=yes 8270 hardcode_libdir_separator=':' 8271 link_all_deplibs=yes 8272 8273 if test "$GCC" = yes; then 8274 case $host_os in aix4.[012]|aix4.[012].*) 8275 # We only want to do this on AIX 4.2 and lower, the check 8276 # below for broken collect2 doesn't work under 4.3+ 8277 collect2name=`${CC} -print-prog-name=collect2` 8278 if test -f "$collect2name" && \ 8279 strings "$collect2name" | grep resolve_lib_name >/dev/null 8280 then 8281 # We have reworked collect2 8282 : 8283 else 8284 # We have old collect2 8285 hardcode_direct=unsupported 8286 # It fails to find uninstalled libraries when the uninstalled 8287 # path is not listed in the libpath. Setting hardcode_minus_L 8288 # to unsupported forces relinking 8289 hardcode_minus_L=yes 8290 hardcode_libdir_flag_spec='-L$libdir' 8291 hardcode_libdir_separator= 8292 fi 8293 ;; 8294 esac 8295 shared_flag='-shared' 8296 if test "$aix_use_runtimelinking" = yes; then 8297 shared_flag="$shared_flag "'${wl}-G' 8298 fi 8299 else 8300 # not using gcc 8301 if test "$host_cpu" = ia64; then 8302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8303 # chokes on -Wl,-G. The following line is correct: 8304 shared_flag='-G' 8305 else 8306 if test "$aix_use_runtimelinking" = yes; then 8307 shared_flag='${wl}-G' 8308 else 8309 shared_flag='${wl}-bM:SRE' 8310 fi 8311 fi 8312 fi 8313 8314 # It seems that -bexpall does not export symbols beginning with 8315 # underscore (_), so it is better to generate a list of symbols to export. 8316 always_export_symbols=yes 8317 if test "$aix_use_runtimelinking" = yes; then 8318 # Warning - without using the other runtime loading flags (-brtl), 8319 # -berok will link without error, but may produce a broken library. 8320 allow_undefined_flag='-berok' 8321 # Determine the default libpath from the value encoded in an empty executable. 8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8323/* end confdefs.h. */ 8324 8325int 8326main () 8327{ 8328 8329 ; 8330 return 0; 8331} 8332_ACEOF 8333if ac_fn_c_try_link "$LINENO"; then : 8334 8335lt_aix_libpath_sed=' 8336 /Import File Strings/,/^$/ { 8337 /^0/ { 8338 s/^0 *\(.*\)$/\1/ 8339 p 8340 } 8341 }' 8342aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8343# Check for a 64-bit object if we didn't find anything. 8344if test -z "$aix_libpath"; then 8345 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8346fi 8347fi 8348rm -f core conftest.err conftest.$ac_objext \ 8349 conftest$ac_exeext conftest.$ac_ext 8350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8351 8352 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8353 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" 8354 else 8355 if test "$host_cpu" = ia64; then 8356 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8357 allow_undefined_flag="-z nodefs" 8358 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" 8359 else 8360 # Determine the default libpath from the value encoded in an empty executable. 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363 8364int 8365main () 8366{ 8367 8368 ; 8369 return 0; 8370} 8371_ACEOF 8372if ac_fn_c_try_link "$LINENO"; then : 8373 8374lt_aix_libpath_sed=' 8375 /Import File Strings/,/^$/ { 8376 /^0/ { 8377 s/^0 *\(.*\)$/\1/ 8378 p 8379 } 8380 }' 8381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8382# Check for a 64-bit object if we didn't find anything. 8383if test -z "$aix_libpath"; then 8384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8385fi 8386fi 8387rm -f core conftest.err conftest.$ac_objext \ 8388 conftest$ac_exeext conftest.$ac_ext 8389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8390 8391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8392 # Warning - without using the other run time loading flags, 8393 # -berok will link without error, but may produce a broken library. 8394 no_undefined_flag=' ${wl}-bernotok' 8395 allow_undefined_flag=' ${wl}-berok' 8396 # Exported symbols can be pulled into shared objects from archives 8397 whole_archive_flag_spec='$convenience' 8398 archive_cmds_need_lc=yes 8399 # This is similar to how AIX traditionally builds its shared libraries. 8400 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' 8401 fi 8402 fi 8403 ;; 8404 8405 amigaos*) 8406 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)' 8407 hardcode_libdir_flag_spec='-L$libdir' 8408 hardcode_minus_L=yes 8409 # see comment about different semantics on the GNU ld section 8410 ld_shlibs=no 8411 ;; 8412 8413 bsdi[45]*) 8414 export_dynamic_flag_spec=-rdynamic 8415 ;; 8416 8417 cygwin* | mingw* | pw32*) 8418 # When not using gcc, we currently assume that we are using 8419 # Microsoft Visual C++. 8420 # hardcode_libdir_flag_spec is actually meaningless, as there is 8421 # no search path for DLLs. 8422 hardcode_libdir_flag_spec=' ' 8423 allow_undefined_flag=unsupported 8424 # Tell ltmain to make .lib files, not .a files. 8425 libext=lib 8426 # Tell ltmain to make .dll files, not .so files. 8427 shrext_cmds=".dll" 8428 # FIXME: Setting linknames here is a bad hack. 8429 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8430 # The linker will automatically build a .lib file if we build a DLL. 8431 old_archive_From_new_cmds='true' 8432 # FIXME: Should let the user specify the lib program. 8433 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8434 fix_srcfile_path='`cygpath -w "$srcfile"`' 8435 enable_shared_with_static_runtimes=yes 8436 ;; 8437 8438 darwin* | rhapsody*) 8439 case $host_os in 8440 rhapsody* | darwin1.[012]) 8441 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8442 ;; 8443 *) # Darwin 1.3 on 8444 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8445 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8446 else 8447 case ${MACOSX_DEPLOYMENT_TARGET} in 8448 10.[012]) 8449 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8450 ;; 8451 10.*) 8452 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8453 ;; 8454 esac 8455 fi 8456 ;; 8457 esac 8458 archive_cmds_need_lc=no 8459 hardcode_direct=no 8460 hardcode_automatic=yes 8461 hardcode_shlibpath_var=unsupported 8462 whole_archive_flag_spec='' 8463 link_all_deplibs=yes 8464 if test "$GCC" = yes ; then 8465 output_verbose_link_cmd='echo' 8466 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8467 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8468 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}" 8469 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}" 8470 else 8471 case $cc_basename in 8472 xlc*) 8473 output_verbose_link_cmd='echo' 8474 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8475 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8477 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}' 8478 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}' 8479 ;; 8480 *) 8481 ld_shlibs=no 8482 ;; 8483 esac 8484 fi 8485 ;; 8486 8487 dgux*) 8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8489 hardcode_libdir_flag_spec='-L$libdir' 8490 hardcode_shlibpath_var=no 8491 ;; 8492 8493 freebsd1*) 8494 ld_shlibs=no 8495 ;; 8496 8497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8498 # support. Future versions do this automatically, but an explicit c++rt0.o 8499 # does not break anything, and helps significantly (at the cost of a little 8500 # extra space). 8501 freebsd2.2*) 8502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8503 hardcode_libdir_flag_spec='-R$libdir' 8504 hardcode_direct=yes 8505 hardcode_shlibpath_var=no 8506 ;; 8507 8508 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8509 freebsd2*) 8510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8511 hardcode_direct=yes 8512 hardcode_minus_L=yes 8513 hardcode_shlibpath_var=no 8514 ;; 8515 8516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8517 freebsd* | dragonfly*) 8518 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8519 hardcode_libdir_flag_spec='-R$libdir' 8520 hardcode_direct=yes 8521 hardcode_shlibpath_var=no 8522 ;; 8523 8524 hpux9*) 8525 if test "$GCC" = yes; then 8526 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' 8527 else 8528 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' 8529 fi 8530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8531 hardcode_libdir_separator=: 8532 hardcode_direct=yes 8533 8534 # hardcode_minus_L: Not really in the search PATH, 8535 # but as the default location of the library. 8536 hardcode_minus_L=yes 8537 export_dynamic_flag_spec='${wl}-E' 8538 ;; 8539 8540 hpux10*) 8541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8542 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8543 else 8544 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8545 fi 8546 if test "$with_gnu_ld" = no; then 8547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8548 hardcode_libdir_separator=: 8549 8550 hardcode_direct=yes 8551 export_dynamic_flag_spec='${wl}-E' 8552 8553 # hardcode_minus_L: Not really in the search PATH, 8554 # but as the default location of the library. 8555 hardcode_minus_L=yes 8556 fi 8557 ;; 8558 8559 hpux11*) 8560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8561 case $host_cpu in 8562 hppa*64*) 8563 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8564 ;; 8565 ia64*) 8566 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8567 ;; 8568 *) 8569 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8570 ;; 8571 esac 8572 else 8573 case $host_cpu in 8574 hppa*64*) 8575 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8576 ;; 8577 ia64*) 8578 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8579 ;; 8580 *) 8581 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8582 ;; 8583 esac 8584 fi 8585 if test "$with_gnu_ld" = no; then 8586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8587 hardcode_libdir_separator=: 8588 8589 case $host_cpu in 8590 hppa*64*|ia64*) 8591 hardcode_libdir_flag_spec_ld='+b $libdir' 8592 hardcode_direct=no 8593 hardcode_shlibpath_var=no 8594 ;; 8595 *) 8596 hardcode_direct=yes 8597 export_dynamic_flag_spec='${wl}-E' 8598 8599 # hardcode_minus_L: Not really in the search PATH, 8600 # but as the default location of the library. 8601 hardcode_minus_L=yes 8602 ;; 8603 esac 8604 fi 8605 ;; 8606 8607 irix5* | irix6* | nonstopux*) 8608 if test "$GCC" = yes; then 8609 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' 8610 else 8611 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' 8612 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8613 fi 8614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8615 hardcode_libdir_separator=: 8616 link_all_deplibs=yes 8617 ;; 8618 8619 netbsd*) 8620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8622 else 8623 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8624 fi 8625 hardcode_libdir_flag_spec='-R$libdir' 8626 hardcode_direct=yes 8627 hardcode_shlibpath_var=no 8628 ;; 8629 8630 newsos6) 8631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8632 hardcode_direct=yes 8633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8634 hardcode_libdir_separator=: 8635 hardcode_shlibpath_var=no 8636 ;; 8637 8638 openbsd*) 8639 if test -f /usr/libexec/ld.so; then 8640 hardcode_direct=yes 8641 hardcode_shlibpath_var=no 8642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8643 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8644 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8645 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8646 export_dynamic_flag_spec='${wl}-E' 8647 else 8648 case $host_os in 8649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8651 hardcode_libdir_flag_spec='-R$libdir' 8652 ;; 8653 *) 8654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8656 ;; 8657 esac 8658 fi 8659 else 8660 ld_shlibs=no 8661 fi 8662 ;; 8663 8664 os2*) 8665 hardcode_libdir_flag_spec='-L$libdir' 8666 hardcode_minus_L=yes 8667 allow_undefined_flag=unsupported 8668 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' 8669 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8670 ;; 8671 8672 osf3*) 8673 if test "$GCC" = yes; then 8674 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8675 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' 8676 else 8677 allow_undefined_flag=' -expect_unresolved \*' 8678 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' 8679 fi 8680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8681 hardcode_libdir_separator=: 8682 ;; 8683 8684 osf4* | osf5*) # as osf3* with the addition of -msym flag 8685 if test "$GCC" = yes; then 8686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8687 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' 8688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8689 else 8690 allow_undefined_flag=' -expect_unresolved \*' 8691 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' 8692 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8693 $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' 8694 8695 # Both c and cxx compiler support -rpath directly 8696 hardcode_libdir_flag_spec='-rpath $libdir' 8697 fi 8698 hardcode_libdir_separator=: 8699 ;; 8700 8701 solaris*) 8702 no_undefined_flag=' -z text' 8703 if test "$GCC" = yes; then 8704 wlarc='${wl}' 8705 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8706 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8707 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8708 else 8709 wlarc='' 8710 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8711 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8713 fi 8714 hardcode_libdir_flag_spec='-R$libdir' 8715 hardcode_shlibpath_var=no 8716 case $host_os in 8717 solaris2.[0-5] | solaris2.[0-5].*) ;; 8718 *) 8719 # The compiler driver will combine and reorder linker options, 8720 # but understands `-z linker_flag'. GCC discards it without `$wl', 8721 # but is careful enough not to reorder. 8722 # Supported since Solaris 2.6 (maybe 2.5.1?) 8723 if test "$GCC" = yes; then 8724 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8725 else 8726 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8727 fi 8728 ;; 8729 esac 8730 link_all_deplibs=yes 8731 ;; 8732 8733 sunos4*) 8734 if test "x$host_vendor" = xsequent; then 8735 # Use $CC to link under sequent, because it throws in some extra .o 8736 # files that make .init and .fini sections work. 8737 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8738 else 8739 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8740 fi 8741 hardcode_libdir_flag_spec='-L$libdir' 8742 hardcode_direct=yes 8743 hardcode_minus_L=yes 8744 hardcode_shlibpath_var=no 8745 ;; 8746 8747 sysv4) 8748 case $host_vendor in 8749 sni) 8750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8751 hardcode_direct=yes # is this really true??? 8752 ;; 8753 siemens) 8754 ## LD is ld it makes a PLAMLIB 8755 ## CC just makes a GrossModule. 8756 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8757 reload_cmds='$CC -r -o $output$reload_objs' 8758 hardcode_direct=no 8759 ;; 8760 motorola) 8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8762 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8763 ;; 8764 esac 8765 runpath_var='LD_RUN_PATH' 8766 hardcode_shlibpath_var=no 8767 ;; 8768 8769 sysv4.3*) 8770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8771 hardcode_shlibpath_var=no 8772 export_dynamic_flag_spec='-Bexport' 8773 ;; 8774 8775 sysv4*MP*) 8776 if test -d /usr/nec; then 8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8778 hardcode_shlibpath_var=no 8779 runpath_var=LD_RUN_PATH 8780 hardcode_runpath_var=yes 8781 ld_shlibs=yes 8782 fi 8783 ;; 8784 8785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8786 no_undefined_flag='${wl}-z,text' 8787 archive_cmds_need_lc=no 8788 hardcode_shlibpath_var=no 8789 runpath_var='LD_RUN_PATH' 8790 8791 if test "$GCC" = yes; then 8792 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8793 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8794 else 8795 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8796 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8797 fi 8798 ;; 8799 8800 sysv5* | sco3.2v5* | sco5v6*) 8801 # Note: We can NOT use -z defs as we might desire, because we do not 8802 # link with -lc, and that would cause any symbols used from libc to 8803 # always be unresolved, which means just about no library would 8804 # ever link correctly. If we're not using GNU ld we use -z text 8805 # though, which does catch some bad symbols but isn't as heavy-handed 8806 # as -z defs. 8807 no_undefined_flag='${wl}-z,text' 8808 allow_undefined_flag='${wl}-z,nodefs' 8809 archive_cmds_need_lc=no 8810 hardcode_shlibpath_var=no 8811 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8812 hardcode_libdir_separator=':' 8813 link_all_deplibs=yes 8814 export_dynamic_flag_spec='${wl}-Bexport' 8815 runpath_var='LD_RUN_PATH' 8816 8817 if test "$GCC" = yes; then 8818 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8819 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8820 else 8821 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8822 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8823 fi 8824 ;; 8825 8826 uts4*) 8827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8828 hardcode_libdir_flag_spec='-L$libdir' 8829 hardcode_shlibpath_var=no 8830 ;; 8831 8832 *) 8833 ld_shlibs=no 8834 ;; 8835 esac 8836 fi 8837 8838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8839$as_echo "$ld_shlibs" >&6; } 8840test "$ld_shlibs" = no && can_build_shared=no 8841 8842# 8843# Do we need to explicitly link libc? 8844# 8845case "x$archive_cmds_need_lc" in 8846x|xyes) 8847 # Assume -lc should be added 8848 archive_cmds_need_lc=yes 8849 8850 if test "$enable_shared" = yes && test "$GCC" = yes; then 8851 case $archive_cmds in 8852 *'~'*) 8853 # FIXME: we may have to deal with multi-command sequences. 8854 ;; 8855 '$CC '*) 8856 # Test whether the compiler implicitly links with -lc since on some 8857 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8858 # to ld, don't add -lc before -lgcc. 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8860$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8861 $rm conftest* 8862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8863 8864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8865 (eval $ac_compile) 2>&5 8866 ac_status=$? 8867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8868 test $ac_status = 0; } 2>conftest.err; then 8869 soname=conftest 8870 lib=conftest 8871 libobjs=conftest.$ac_objext 8872 deplibs= 8873 wl=$lt_prog_compiler_wl 8874 pic_flag=$lt_prog_compiler_pic 8875 compiler_flags=-v 8876 linker_flags=-v 8877 verstring= 8878 output_objdir=. 8879 libname=conftest 8880 lt_save_allow_undefined_flag=$allow_undefined_flag 8881 allow_undefined_flag= 8882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8883 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8884 ac_status=$? 8885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8886 test $ac_status = 0; } 8887 then 8888 archive_cmds_need_lc=no 8889 else 8890 archive_cmds_need_lc=yes 8891 fi 8892 allow_undefined_flag=$lt_save_allow_undefined_flag 8893 else 8894 cat conftest.err 1>&5 8895 fi 8896 $rm conftest* 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8898$as_echo "$archive_cmds_need_lc" >&6; } 8899 ;; 8900 esac 8901 fi 8902 ;; 8903esac 8904 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 8906$as_echo_n "checking dynamic linker characteristics... " >&6; } 8907library_names_spec= 8908libname_spec='lib$name' 8909soname_spec= 8910shrext_cmds=".so" 8911postinstall_cmds= 8912postuninstall_cmds= 8913finish_cmds= 8914finish_eval= 8915shlibpath_var= 8916shlibpath_overrides_runpath=unknown 8917version_type=none 8918dynamic_linker="$host_os ld.so" 8919sys_lib_dlsearch_path_spec="/lib /usr/lib" 8920 8921if test "$GCC" = yes; then 8922 case $host_os in 8923 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8924 *) lt_awk_arg="/^libraries:/" ;; 8925 esac 8926 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8927 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8928 # if the path contains ";" then we assume it to be the separator 8929 # otherwise default to the standard path separator (i.e. ":") - it is 8930 # assumed that no part of a normal pathname contains ";" but that should 8931 # okay in the real world where ";" in dirpaths is itself problematic. 8932 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8933 else 8934 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8935 fi 8936 # Ok, now we have the path, separated by spaces, we can step through it 8937 # and add multilib dir if necessary. 8938 lt_tmp_lt_search_path_spec= 8939 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8940 for lt_sys_path in $lt_search_path_spec; do 8941 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8942 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8943 else 8944 test -d "$lt_sys_path" && \ 8945 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8946 fi 8947 done 8948 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8949BEGIN {RS=" "; FS="/|\n";} { 8950 lt_foo=""; 8951 lt_count=0; 8952 for (lt_i = NF; lt_i > 0; lt_i--) { 8953 if ($lt_i != "" && $lt_i != ".") { 8954 if ($lt_i == "..") { 8955 lt_count++; 8956 } else { 8957 if (lt_count == 0) { 8958 lt_foo="/" $lt_i lt_foo; 8959 } else { 8960 lt_count--; 8961 } 8962 } 8963 } 8964 } 8965 if (lt_foo != "") { lt_freq[lt_foo]++; } 8966 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8967}'` 8968 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8969else 8970 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8971fi 8972need_lib_prefix=unknown 8973hardcode_into_libs=no 8974 8975# when you set need_version to no, make sure it does not cause -set_version 8976# flags to be left without arguments 8977need_version=unknown 8978 8979case $host_os in 8980aix3*) 8981 version_type=linux 8982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8983 shlibpath_var=LIBPATH 8984 8985 # AIX 3 has no versioning support, so we append a major version to the name. 8986 soname_spec='${libname}${release}${shared_ext}$major' 8987 ;; 8988 8989aix[4-9]*) 8990 version_type=linux 8991 need_lib_prefix=no 8992 need_version=no 8993 hardcode_into_libs=yes 8994 if test "$host_cpu" = ia64; then 8995 # AIX 5 supports IA64 8996 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8997 shlibpath_var=LD_LIBRARY_PATH 8998 else 8999 # With GCC up to 2.95.x, collect2 would create an import file 9000 # for dependence libraries. The import file would start with 9001 # the line `#! .'. This would cause the generated library to 9002 # depend on `.', always an invalid library. This was fixed in 9003 # development snapshots of GCC prior to 3.0. 9004 case $host_os in 9005 aix4 | aix4.[01] | aix4.[01].*) 9006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9007 echo ' yes ' 9008 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9009 : 9010 else 9011 can_build_shared=no 9012 fi 9013 ;; 9014 esac 9015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9016 # soname into executable. Probably we can add versioning support to 9017 # collect2, so additional links can be useful in future. 9018 if test "$aix_use_runtimelinking" = yes; then 9019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9020 # instead of lib<name>.a to let people know that these are not 9021 # typical AIX shared libraries. 9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9023 else 9024 # We preserve .a as extension for shared libraries through AIX4.2 9025 # and later when we are not doing run time linking. 9026 library_names_spec='${libname}${release}.a $libname.a' 9027 soname_spec='${libname}${release}${shared_ext}$major' 9028 fi 9029 shlibpath_var=LIBPATH 9030 fi 9031 ;; 9032 9033amigaos*) 9034 library_names_spec='$libname.ixlibrary $libname.a' 9035 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9036 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' 9037 ;; 9038 9039beos*) 9040 library_names_spec='${libname}${shared_ext}' 9041 dynamic_linker="$host_os ld.so" 9042 shlibpath_var=LIBRARY_PATH 9043 ;; 9044 9045bsdi[45]*) 9046 version_type=linux 9047 need_version=no 9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9049 soname_spec='${libname}${release}${shared_ext}$major' 9050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9051 shlibpath_var=LD_LIBRARY_PATH 9052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9054 # the default ld.so.conf also contains /usr/contrib/lib and 9055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9056 # libtool to hard-code these into programs 9057 ;; 9058 9059cygwin* | mingw* | pw32*) 9060 version_type=windows 9061 shrext_cmds=".dll" 9062 need_version=no 9063 need_lib_prefix=no 9064 9065 case $GCC,$host_os in 9066 yes,cygwin* | yes,mingw* | yes,pw32*) 9067 library_names_spec='$libname.dll.a' 9068 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9069 postinstall_cmds='base_file=`basename \${file}`~ 9070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9071 dldir=$destdir/`dirname \$dlpath`~ 9072 test -d \$dldir || mkdir -p \$dldir~ 9073 $install_prog $dir/$dlname \$dldir/$dlname~ 9074 chmod a+x \$dldir/$dlname' 9075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9076 dlpath=$dir/\$dldll~ 9077 $rm \$dlpath' 9078 shlibpath_overrides_runpath=yes 9079 9080 case $host_os in 9081 cygwin*) 9082 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9085 ;; 9086 mingw*) 9087 # MinGW DLLs use traditional 'lib' prefix 9088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9090 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9091 # It is most probably a Windows format PATH printed by 9092 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9093 # path with ; separators, and with drive letters. We can handle the 9094 # drive letters (cygwin fileutils understands them), so leave them, 9095 # especially as we might pass files found there to a mingw objdump, 9096 # which wouldn't understand a cygwinified path. Ahh. 9097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9098 else 9099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9100 fi 9101 ;; 9102 pw32*) 9103 # pw32 DLLs use 'pw' prefix rather than 'lib' 9104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9105 ;; 9106 esac 9107 ;; 9108 9109 *) 9110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9111 ;; 9112 esac 9113 dynamic_linker='Win32 ld.exe' 9114 # FIXME: first we should search . and the directory the executable is in 9115 shlibpath_var=PATH 9116 ;; 9117 9118darwin* | rhapsody*) 9119 dynamic_linker="$host_os dyld" 9120 version_type=darwin 9121 need_lib_prefix=no 9122 need_version=no 9123 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9124 soname_spec='${libname}${release}${major}$shared_ext' 9125 shlibpath_overrides_runpath=yes 9126 shlibpath_var=DYLD_LIBRARY_PATH 9127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9128 9129 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9131 ;; 9132 9133dgux*) 9134 version_type=linux 9135 need_lib_prefix=no 9136 need_version=no 9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9138 soname_spec='${libname}${release}${shared_ext}$major' 9139 shlibpath_var=LD_LIBRARY_PATH 9140 ;; 9141 9142freebsd1*) 9143 dynamic_linker=no 9144 ;; 9145 9146freebsd* | dragonfly*) 9147 # DragonFly does not have aout. When/if they implement a new 9148 # versioning mechanism, adjust this. 9149 if test -x /usr/bin/objformat; then 9150 objformat=`/usr/bin/objformat` 9151 else 9152 case $host_os in 9153 freebsd[123]*) objformat=aout ;; 9154 *) objformat=elf ;; 9155 esac 9156 fi 9157 version_type=freebsd-$objformat 9158 case $version_type in 9159 freebsd-elf*) 9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9161 need_version=no 9162 need_lib_prefix=no 9163 ;; 9164 freebsd-*) 9165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9166 need_version=yes 9167 ;; 9168 esac 9169 shlibpath_var=LD_LIBRARY_PATH 9170 case $host_os in 9171 freebsd2*) 9172 shlibpath_overrides_runpath=yes 9173 ;; 9174 freebsd3.[01]* | freebsdelf3.[01]*) 9175 shlibpath_overrides_runpath=yes 9176 hardcode_into_libs=yes 9177 ;; 9178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9180 shlibpath_overrides_runpath=no 9181 hardcode_into_libs=yes 9182 ;; 9183 *) # from 4.6 on, and DragonFly 9184 shlibpath_overrides_runpath=yes 9185 hardcode_into_libs=yes 9186 ;; 9187 esac 9188 ;; 9189 9190gnu*) 9191 version_type=linux 9192 need_lib_prefix=no 9193 need_version=no 9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9195 soname_spec='${libname}${release}${shared_ext}$major' 9196 shlibpath_var=LD_LIBRARY_PATH 9197 hardcode_into_libs=yes 9198 ;; 9199 9200hpux9* | hpux10* | hpux11*) 9201 # Give a soname corresponding to the major version so that dld.sl refuses to 9202 # link against other versions. 9203 version_type=sunos 9204 need_lib_prefix=no 9205 need_version=no 9206 case $host_cpu in 9207 ia64*) 9208 shrext_cmds='.so' 9209 hardcode_into_libs=yes 9210 dynamic_linker="$host_os dld.so" 9211 shlibpath_var=LD_LIBRARY_PATH 9212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9214 soname_spec='${libname}${release}${shared_ext}$major' 9215 if test "X$HPUX_IA64_MODE" = X32; then 9216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9217 else 9218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9219 fi 9220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9221 ;; 9222 hppa*64*) 9223 shrext_cmds='.sl' 9224 hardcode_into_libs=yes 9225 dynamic_linker="$host_os dld.sl" 9226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9229 soname_spec='${libname}${release}${shared_ext}$major' 9230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9232 ;; 9233 *) 9234 shrext_cmds='.sl' 9235 dynamic_linker="$host_os dld.sl" 9236 shlibpath_var=SHLIB_PATH 9237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9239 soname_spec='${libname}${release}${shared_ext}$major' 9240 ;; 9241 esac 9242 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9243 postinstall_cmds='chmod 555 $lib' 9244 ;; 9245 9246interix[3-9]*) 9247 version_type=linux 9248 need_lib_prefix=no 9249 need_version=no 9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9251 soname_spec='${libname}${release}${shared_ext}$major' 9252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9253 shlibpath_var=LD_LIBRARY_PATH 9254 shlibpath_overrides_runpath=no 9255 hardcode_into_libs=yes 9256 ;; 9257 9258irix5* | irix6* | nonstopux*) 9259 case $host_os in 9260 nonstopux*) version_type=nonstopux ;; 9261 *) 9262 if test "$lt_cv_prog_gnu_ld" = yes; then 9263 version_type=linux 9264 else 9265 version_type=irix 9266 fi ;; 9267 esac 9268 need_lib_prefix=no 9269 need_version=no 9270 soname_spec='${libname}${release}${shared_ext}$major' 9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9272 case $host_os in 9273 irix5* | nonstopux*) 9274 libsuff= shlibsuff= 9275 ;; 9276 *) 9277 case $LD in # libtool.m4 will add one of these switches to LD 9278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9279 libsuff= shlibsuff= libmagic=32-bit;; 9280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9281 libsuff=32 shlibsuff=N32 libmagic=N32;; 9282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9283 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9284 *) libsuff= shlibsuff= libmagic=never-match;; 9285 esac 9286 ;; 9287 esac 9288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9289 shlibpath_overrides_runpath=no 9290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9292 hardcode_into_libs=yes 9293 ;; 9294 9295# No shared lib support for Linux oldld, aout, or coff. 9296linux*oldld* | linux*aout* | linux*coff*) 9297 dynamic_linker=no 9298 ;; 9299 9300# This must be Linux ELF. 9301linux* | k*bsd*-gnu) 9302 version_type=linux 9303 need_lib_prefix=no 9304 need_version=no 9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9306 soname_spec='${libname}${release}${shared_ext}$major' 9307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9308 shlibpath_var=LD_LIBRARY_PATH 9309 shlibpath_overrides_runpath=no 9310 # This implies no fast_install, which is unacceptable. 9311 # Some rework will be needed to allow for fast_install 9312 # before this can be enabled. 9313 hardcode_into_libs=yes 9314 9315 # Append ld.so.conf contents to the search path 9316 if test -f /etc/ld.so.conf; then 9317 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' ' '` 9318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9319 fi 9320 9321 # We used to test for /lib/ld.so.1 and disable shared libraries on 9322 # powerpc, because MkLinux only supported shared libraries with the 9323 # GNU dynamic linker. Since this was broken with cross compilers, 9324 # most powerpc-linux boxes support dynamic linking these days and 9325 # people can always --disable-shared, the test was removed, and we 9326 # assume the GNU/Linux dynamic linker is in use. 9327 dynamic_linker='GNU/Linux ld.so' 9328 ;; 9329 9330netbsd*) 9331 version_type=sunos 9332 need_lib_prefix=no 9333 need_version=no 9334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9337 dynamic_linker='NetBSD (a.out) ld.so' 9338 else 9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9340 soname_spec='${libname}${release}${shared_ext}$major' 9341 dynamic_linker='NetBSD ld.elf_so' 9342 fi 9343 shlibpath_var=LD_LIBRARY_PATH 9344 shlibpath_overrides_runpath=yes 9345 hardcode_into_libs=yes 9346 ;; 9347 9348newsos6) 9349 version_type=linux 9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9351 shlibpath_var=LD_LIBRARY_PATH 9352 shlibpath_overrides_runpath=yes 9353 ;; 9354 9355nto-qnx*) 9356 version_type=linux 9357 need_lib_prefix=no 9358 need_version=no 9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9360 soname_spec='${libname}${release}${shared_ext}$major' 9361 shlibpath_var=LD_LIBRARY_PATH 9362 shlibpath_overrides_runpath=yes 9363 ;; 9364 9365openbsd*) 9366 version_type=sunos 9367 sys_lib_dlsearch_path_spec="/usr/lib" 9368 need_lib_prefix=no 9369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9370 case $host_os in 9371 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9372 *) need_version=no ;; 9373 esac 9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9376 shlibpath_var=LD_LIBRARY_PATH 9377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9378 case $host_os in 9379 openbsd2.[89] | openbsd2.[89].*) 9380 shlibpath_overrides_runpath=no 9381 ;; 9382 *) 9383 shlibpath_overrides_runpath=yes 9384 ;; 9385 esac 9386 else 9387 shlibpath_overrides_runpath=yes 9388 fi 9389 ;; 9390 9391os2*) 9392 libname_spec='$name' 9393 shrext_cmds=".dll" 9394 need_lib_prefix=no 9395 library_names_spec='$libname${shared_ext} $libname.a' 9396 dynamic_linker='OS/2 ld.exe' 9397 shlibpath_var=LIBPATH 9398 ;; 9399 9400osf3* | osf4* | osf5*) 9401 version_type=osf 9402 need_lib_prefix=no 9403 need_version=no 9404 soname_spec='${libname}${release}${shared_ext}$major' 9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9406 shlibpath_var=LD_LIBRARY_PATH 9407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9409 ;; 9410 9411rdos*) 9412 dynamic_linker=no 9413 ;; 9414 9415solaris*) 9416 version_type=linux 9417 need_lib_prefix=no 9418 need_version=no 9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9420 soname_spec='${libname}${release}${shared_ext}$major' 9421 shlibpath_var=LD_LIBRARY_PATH 9422 shlibpath_overrides_runpath=yes 9423 hardcode_into_libs=yes 9424 # ldd complains unless libraries are executable 9425 postinstall_cmds='chmod +x $lib' 9426 ;; 9427 9428sunos4*) 9429 version_type=sunos 9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9432 shlibpath_var=LD_LIBRARY_PATH 9433 shlibpath_overrides_runpath=yes 9434 if test "$with_gnu_ld" = yes; then 9435 need_lib_prefix=no 9436 fi 9437 need_version=yes 9438 ;; 9439 9440sysv4 | sysv4.3*) 9441 version_type=linux 9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9443 soname_spec='${libname}${release}${shared_ext}$major' 9444 shlibpath_var=LD_LIBRARY_PATH 9445 case $host_vendor in 9446 sni) 9447 shlibpath_overrides_runpath=no 9448 need_lib_prefix=no 9449 export_dynamic_flag_spec='${wl}-Blargedynsym' 9450 runpath_var=LD_RUN_PATH 9451 ;; 9452 siemens) 9453 need_lib_prefix=no 9454 ;; 9455 motorola) 9456 need_lib_prefix=no 9457 need_version=no 9458 shlibpath_overrides_runpath=no 9459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9460 ;; 9461 esac 9462 ;; 9463 9464sysv4*MP*) 9465 if test -d /usr/nec ;then 9466 version_type=linux 9467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9468 soname_spec='$libname${shared_ext}.$major' 9469 shlibpath_var=LD_LIBRARY_PATH 9470 fi 9471 ;; 9472 9473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9474 version_type=freebsd-elf 9475 need_lib_prefix=no 9476 need_version=no 9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9478 soname_spec='${libname}${release}${shared_ext}$major' 9479 shlibpath_var=LD_LIBRARY_PATH 9480 hardcode_into_libs=yes 9481 if test "$with_gnu_ld" = yes; then 9482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9483 shlibpath_overrides_runpath=no 9484 else 9485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9486 shlibpath_overrides_runpath=yes 9487 case $host_os in 9488 sco3.2v5*) 9489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9490 ;; 9491 esac 9492 fi 9493 sys_lib_dlsearch_path_spec='/usr/lib' 9494 ;; 9495 9496uts4*) 9497 version_type=linux 9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9499 soname_spec='${libname}${release}${shared_ext}$major' 9500 shlibpath_var=LD_LIBRARY_PATH 9501 ;; 9502 9503*) 9504 dynamic_linker=no 9505 ;; 9506esac 9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9508$as_echo "$dynamic_linker" >&6; } 9509test "$dynamic_linker" = no && can_build_shared=no 9510 9511if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 9512 $as_echo_n "(cached) " >&6 9513else 9514 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9515fi 9516 9517sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9518if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9522fi 9523 9524sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9525 9526variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9527if test "$GCC" = yes; then 9528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9529fi 9530 9531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9532$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9533hardcode_action= 9534if test -n "$hardcode_libdir_flag_spec" || \ 9535 test -n "$runpath_var" || \ 9536 test "X$hardcode_automatic" = "Xyes" ; then 9537 9538 # We can hardcode non-existant directories. 9539 if test "$hardcode_direct" != no && 9540 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9541 # have to relink, otherwise we might link with an installed library 9542 # when we should be linking with a yet-to-be-installed one 9543 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9544 test "$hardcode_minus_L" != no; then 9545 # Linking always hardcodes the temporary library directory. 9546 hardcode_action=relink 9547 else 9548 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9549 hardcode_action=immediate 9550 fi 9551else 9552 # We cannot hardcode anything, or else we can only hardcode existing 9553 # directories. 9554 hardcode_action=unsupported 9555fi 9556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9557$as_echo "$hardcode_action" >&6; } 9558 9559if test "$hardcode_action" = relink; then 9560 # Fast installation is not supported 9561 enable_fast_install=no 9562elif test "$shlibpath_overrides_runpath" = yes || 9563 test "$enable_shared" = no; then 9564 # Fast installation is not necessary 9565 enable_fast_install=needless 9566fi 9567 9568striplib= 9569old_striplib= 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 9571$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9572if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9573 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9574 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9576$as_echo "yes" >&6; } 9577else 9578# FIXME - insert some real tests, host_os isn't really good enough 9579 case $host_os in 9580 darwin*) 9581 if test -n "$STRIP" ; then 9582 striplib="$STRIP -x" 9583 old_striplib="$STRIP -S" 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9585$as_echo "yes" >&6; } 9586 else 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9588$as_echo "no" >&6; } 9589fi 9590 ;; 9591 *) 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9593$as_echo "no" >&6; } 9594 ;; 9595 esac 9596fi 9597 9598if test "x$enable_dlopen" != xyes; then 9599 enable_dlopen=unknown 9600 enable_dlopen_self=unknown 9601 enable_dlopen_self_static=unknown 9602else 9603 lt_cv_dlopen=no 9604 lt_cv_dlopen_libs= 9605 9606 case $host_os in 9607 beos*) 9608 lt_cv_dlopen="load_add_on" 9609 lt_cv_dlopen_libs= 9610 lt_cv_dlopen_self=yes 9611 ;; 9612 9613 mingw* | pw32*) 9614 lt_cv_dlopen="LoadLibrary" 9615 lt_cv_dlopen_libs= 9616 ;; 9617 9618 cygwin*) 9619 lt_cv_dlopen="dlopen" 9620 lt_cv_dlopen_libs= 9621 ;; 9622 9623 darwin*) 9624 # if libdl is installed we need to link against it 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9626$as_echo_n "checking for dlopen in -ldl... " >&6; } 9627if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9628 $as_echo_n "(cached) " >&6 9629else 9630 ac_check_lib_save_LIBS=$LIBS 9631LIBS="-ldl $LIBS" 9632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9633/* end confdefs.h. */ 9634 9635/* Override any GCC internal prototype to avoid an error. 9636 Use char because int might match the return type of a GCC 9637 builtin and then its argument prototype would still apply. */ 9638#ifdef __cplusplus 9639extern "C" 9640#endif 9641char dlopen (); 9642int 9643main () 9644{ 9645return dlopen (); 9646 ; 9647 return 0; 9648} 9649_ACEOF 9650if ac_fn_c_try_link "$LINENO"; then : 9651 ac_cv_lib_dl_dlopen=yes 9652else 9653 ac_cv_lib_dl_dlopen=no 9654fi 9655rm -f core conftest.err conftest.$ac_objext \ 9656 conftest$ac_exeext conftest.$ac_ext 9657LIBS=$ac_check_lib_save_LIBS 9658fi 9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9660$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9661if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9663else 9664 9665 lt_cv_dlopen="dyld" 9666 lt_cv_dlopen_libs= 9667 lt_cv_dlopen_self=yes 9668 9669fi 9670 9671 ;; 9672 9673 *) 9674 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9675if test "x$ac_cv_func_shl_load" = x""yes; then : 9676 lt_cv_dlopen="shl_load" 9677else 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9679$as_echo_n "checking for shl_load in -ldld... " >&6; } 9680if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 9681 $as_echo_n "(cached) " >&6 9682else 9683 ac_check_lib_save_LIBS=$LIBS 9684LIBS="-ldld $LIBS" 9685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9686/* end confdefs.h. */ 9687 9688/* Override any GCC internal prototype to avoid an error. 9689 Use char because int might match the return type of a GCC 9690 builtin and then its argument prototype would still apply. */ 9691#ifdef __cplusplus 9692extern "C" 9693#endif 9694char shl_load (); 9695int 9696main () 9697{ 9698return shl_load (); 9699 ; 9700 return 0; 9701} 9702_ACEOF 9703if ac_fn_c_try_link "$LINENO"; then : 9704 ac_cv_lib_dld_shl_load=yes 9705else 9706 ac_cv_lib_dld_shl_load=no 9707fi 9708rm -f core conftest.err conftest.$ac_objext \ 9709 conftest$ac_exeext conftest.$ac_ext 9710LIBS=$ac_check_lib_save_LIBS 9711fi 9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9713$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9714if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 9715 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9716else 9717 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9718if test "x$ac_cv_func_dlopen" = x""yes; then : 9719 lt_cv_dlopen="dlopen" 9720else 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9722$as_echo_n "checking for dlopen in -ldl... " >&6; } 9723if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9724 $as_echo_n "(cached) " >&6 9725else 9726 ac_check_lib_save_LIBS=$LIBS 9727LIBS="-ldl $LIBS" 9728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9729/* end confdefs.h. */ 9730 9731/* Override any GCC internal prototype to avoid an error. 9732 Use char because int might match the return type of a GCC 9733 builtin and then its argument prototype would still apply. */ 9734#ifdef __cplusplus 9735extern "C" 9736#endif 9737char dlopen (); 9738int 9739main () 9740{ 9741return dlopen (); 9742 ; 9743 return 0; 9744} 9745_ACEOF 9746if ac_fn_c_try_link "$LINENO"; then : 9747 ac_cv_lib_dl_dlopen=yes 9748else 9749 ac_cv_lib_dl_dlopen=no 9750fi 9751rm -f core conftest.err conftest.$ac_objext \ 9752 conftest$ac_exeext conftest.$ac_ext 9753LIBS=$ac_check_lib_save_LIBS 9754fi 9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9756$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9757if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9759else 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9761$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9762if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 9763 $as_echo_n "(cached) " >&6 9764else 9765 ac_check_lib_save_LIBS=$LIBS 9766LIBS="-lsvld $LIBS" 9767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9768/* end confdefs.h. */ 9769 9770/* Override any GCC internal prototype to avoid an error. 9771 Use char because int might match the return type of a GCC 9772 builtin and then its argument prototype would still apply. */ 9773#ifdef __cplusplus 9774extern "C" 9775#endif 9776char dlopen (); 9777int 9778main () 9779{ 9780return dlopen (); 9781 ; 9782 return 0; 9783} 9784_ACEOF 9785if ac_fn_c_try_link "$LINENO"; then : 9786 ac_cv_lib_svld_dlopen=yes 9787else 9788 ac_cv_lib_svld_dlopen=no 9789fi 9790rm -f core conftest.err conftest.$ac_objext \ 9791 conftest$ac_exeext conftest.$ac_ext 9792LIBS=$ac_check_lib_save_LIBS 9793fi 9794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9795$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9796if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 9797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9798else 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9800$as_echo_n "checking for dld_link in -ldld... " >&6; } 9801if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 9802 $as_echo_n "(cached) " >&6 9803else 9804 ac_check_lib_save_LIBS=$LIBS 9805LIBS="-ldld $LIBS" 9806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9807/* end confdefs.h. */ 9808 9809/* Override any GCC internal prototype to avoid an error. 9810 Use char because int might match the return type of a GCC 9811 builtin and then its argument prototype would still apply. */ 9812#ifdef __cplusplus 9813extern "C" 9814#endif 9815char dld_link (); 9816int 9817main () 9818{ 9819return dld_link (); 9820 ; 9821 return 0; 9822} 9823_ACEOF 9824if ac_fn_c_try_link "$LINENO"; then : 9825 ac_cv_lib_dld_dld_link=yes 9826else 9827 ac_cv_lib_dld_dld_link=no 9828fi 9829rm -f core conftest.err conftest.$ac_objext \ 9830 conftest$ac_exeext conftest.$ac_ext 9831LIBS=$ac_check_lib_save_LIBS 9832fi 9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9834$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9835if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 9836 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9837fi 9838 9839 9840fi 9841 9842 9843fi 9844 9845 9846fi 9847 9848 9849fi 9850 9851 9852fi 9853 9854 ;; 9855 esac 9856 9857 if test "x$lt_cv_dlopen" != xno; then 9858 enable_dlopen=yes 9859 else 9860 enable_dlopen=no 9861 fi 9862 9863 case $lt_cv_dlopen in 9864 dlopen) 9865 save_CPPFLAGS="$CPPFLAGS" 9866 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9867 9868 save_LDFLAGS="$LDFLAGS" 9869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9870 9871 save_LIBS="$LIBS" 9872 LIBS="$lt_cv_dlopen_libs $LIBS" 9873 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9875$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9876if test "${lt_cv_dlopen_self+set}" = set; then : 9877 $as_echo_n "(cached) " >&6 9878else 9879 if test "$cross_compiling" = yes; then : 9880 lt_cv_dlopen_self=cross 9881else 9882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9883 lt_status=$lt_dlunknown 9884 cat > conftest.$ac_ext <<EOF 9885#line 9885 "configure" 9886#include "confdefs.h" 9887 9888#if HAVE_DLFCN_H 9889#include <dlfcn.h> 9890#endif 9891 9892#include <stdio.h> 9893 9894#ifdef RTLD_GLOBAL 9895# define LT_DLGLOBAL RTLD_GLOBAL 9896#else 9897# ifdef DL_GLOBAL 9898# define LT_DLGLOBAL DL_GLOBAL 9899# else 9900# define LT_DLGLOBAL 0 9901# endif 9902#endif 9903 9904/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9905 find out it does not work in some platform. */ 9906#ifndef LT_DLLAZY_OR_NOW 9907# ifdef RTLD_LAZY 9908# define LT_DLLAZY_OR_NOW RTLD_LAZY 9909# else 9910# ifdef DL_LAZY 9911# define LT_DLLAZY_OR_NOW DL_LAZY 9912# else 9913# ifdef RTLD_NOW 9914# define LT_DLLAZY_OR_NOW RTLD_NOW 9915# else 9916# ifdef DL_NOW 9917# define LT_DLLAZY_OR_NOW DL_NOW 9918# else 9919# define LT_DLLAZY_OR_NOW 0 9920# endif 9921# endif 9922# endif 9923# endif 9924#endif 9925 9926#ifdef __cplusplus 9927extern "C" void exit (int); 9928#endif 9929 9930void fnord() { int i=42;} 9931int main () 9932{ 9933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9934 int status = $lt_dlunknown; 9935 9936 if (self) 9937 { 9938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9939 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9940 /* dlclose (self); */ 9941 } 9942 else 9943 puts (dlerror ()); 9944 9945 exit (status); 9946} 9947EOF 9948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9949 (eval $ac_link) 2>&5 9950 ac_status=$? 9951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9952 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9953 (./conftest; exit; ) >&5 2>/dev/null 9954 lt_status=$? 9955 case x$lt_status in 9956 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9957 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9958 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9959 esac 9960 else : 9961 # compilation failed 9962 lt_cv_dlopen_self=no 9963 fi 9964fi 9965rm -fr conftest* 9966 9967 9968fi 9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 9970$as_echo "$lt_cv_dlopen_self" >&6; } 9971 9972 if test "x$lt_cv_dlopen_self" = xyes; then 9973 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 9975$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 9976if test "${lt_cv_dlopen_self_static+set}" = set; then : 9977 $as_echo_n "(cached) " >&6 9978else 9979 if test "$cross_compiling" = yes; then : 9980 lt_cv_dlopen_self_static=cross 9981else 9982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9983 lt_status=$lt_dlunknown 9984 cat > conftest.$ac_ext <<EOF 9985#line 9985 "configure" 9986#include "confdefs.h" 9987 9988#if HAVE_DLFCN_H 9989#include <dlfcn.h> 9990#endif 9991 9992#include <stdio.h> 9993 9994#ifdef RTLD_GLOBAL 9995# define LT_DLGLOBAL RTLD_GLOBAL 9996#else 9997# ifdef DL_GLOBAL 9998# define LT_DLGLOBAL DL_GLOBAL 9999# else 10000# define LT_DLGLOBAL 0 10001# endif 10002#endif 10003 10004/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10005 find out it does not work in some platform. */ 10006#ifndef LT_DLLAZY_OR_NOW 10007# ifdef RTLD_LAZY 10008# define LT_DLLAZY_OR_NOW RTLD_LAZY 10009# else 10010# ifdef DL_LAZY 10011# define LT_DLLAZY_OR_NOW DL_LAZY 10012# else 10013# ifdef RTLD_NOW 10014# define LT_DLLAZY_OR_NOW RTLD_NOW 10015# else 10016# ifdef DL_NOW 10017# define LT_DLLAZY_OR_NOW DL_NOW 10018# else 10019# define LT_DLLAZY_OR_NOW 0 10020# endif 10021# endif 10022# endif 10023# endif 10024#endif 10025 10026#ifdef __cplusplus 10027extern "C" void exit (int); 10028#endif 10029 10030void fnord() { int i=42;} 10031int main () 10032{ 10033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10034 int status = $lt_dlunknown; 10035 10036 if (self) 10037 { 10038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10039 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10040 /* dlclose (self); */ 10041 } 10042 else 10043 puts (dlerror ()); 10044 10045 exit (status); 10046} 10047EOF 10048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10049 (eval $ac_link) 2>&5 10050 ac_status=$? 10051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10052 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10053 (./conftest; exit; ) >&5 2>/dev/null 10054 lt_status=$? 10055 case x$lt_status in 10056 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10057 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10058 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10059 esac 10060 else : 10061 # compilation failed 10062 lt_cv_dlopen_self_static=no 10063 fi 10064fi 10065rm -fr conftest* 10066 10067 10068fi 10069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10070$as_echo "$lt_cv_dlopen_self_static" >&6; } 10071 fi 10072 10073 CPPFLAGS="$save_CPPFLAGS" 10074 LDFLAGS="$save_LDFLAGS" 10075 LIBS="$save_LIBS" 10076 ;; 10077 esac 10078 10079 case $lt_cv_dlopen_self in 10080 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10081 *) enable_dlopen_self=unknown ;; 10082 esac 10083 10084 case $lt_cv_dlopen_self_static in 10085 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10086 *) enable_dlopen_self_static=unknown ;; 10087 esac 10088fi 10089 10090 10091# Report which library types will actually be built 10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10093$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10095$as_echo "$can_build_shared" >&6; } 10096 10097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10098$as_echo_n "checking whether to build shared libraries... " >&6; } 10099test "$can_build_shared" = "no" && enable_shared=no 10100 10101# On AIX, shared libraries and static libraries use the same namespace, and 10102# are all built from PIC. 10103case $host_os in 10104aix3*) 10105 test "$enable_shared" = yes && enable_static=no 10106 if test -n "$RANLIB"; then 10107 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10108 postinstall_cmds='$RANLIB $lib' 10109 fi 10110 ;; 10111 10112aix[4-9]*) 10113 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10114 test "$enable_shared" = yes && enable_static=no 10115 fi 10116 ;; 10117esac 10118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10119$as_echo "$enable_shared" >&6; } 10120 10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10122$as_echo_n "checking whether to build static libraries... " >&6; } 10123# Make sure either enable_shared or enable_static is yes. 10124test "$enable_shared" = yes || enable_static=yes 10125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10126$as_echo "$enable_static" >&6; } 10127 10128# The else clause should only fire when bootstrapping the 10129# libtool distribution, otherwise you forgot to ship ltmain.sh 10130# with your package, and you will get complaints that there are 10131# no rules to generate ltmain.sh. 10132if test -f "$ltmain"; then 10133 # See if we are running on zsh, and set the options which allow our commands through 10134 # without removal of \ escapes. 10135 if test -n "${ZSH_VERSION+set}" ; then 10136 setopt NO_GLOB_SUBST 10137 fi 10138 # Now quote all the things that may contain metacharacters while being 10139 # careful not to overquote the AC_SUBSTed values. We take copies of the 10140 # variables and quote the copies for generation of the libtool script. 10141 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10142 SED SHELL STRIP \ 10143 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10144 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10145 deplibs_check_method reload_flag reload_cmds need_locks \ 10146 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10147 lt_cv_sys_global_symbol_to_c_name_address \ 10148 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10149 old_postinstall_cmds old_postuninstall_cmds \ 10150 compiler \ 10151 CC \ 10152 LD \ 10153 lt_prog_compiler_wl \ 10154 lt_prog_compiler_pic \ 10155 lt_prog_compiler_static \ 10156 lt_prog_compiler_no_builtin_flag \ 10157 export_dynamic_flag_spec \ 10158 thread_safe_flag_spec \ 10159 whole_archive_flag_spec \ 10160 enable_shared_with_static_runtimes \ 10161 old_archive_cmds \ 10162 old_archive_from_new_cmds \ 10163 predep_objects \ 10164 postdep_objects \ 10165 predeps \ 10166 postdeps \ 10167 compiler_lib_search_path \ 10168 compiler_lib_search_dirs \ 10169 archive_cmds \ 10170 archive_expsym_cmds \ 10171 postinstall_cmds \ 10172 postuninstall_cmds \ 10173 old_archive_from_expsyms_cmds \ 10174 allow_undefined_flag \ 10175 no_undefined_flag \ 10176 export_symbols_cmds \ 10177 hardcode_libdir_flag_spec \ 10178 hardcode_libdir_flag_spec_ld \ 10179 hardcode_libdir_separator \ 10180 hardcode_automatic \ 10181 module_cmds \ 10182 module_expsym_cmds \ 10183 lt_cv_prog_compiler_c_o \ 10184 fix_srcfile_path \ 10185 exclude_expsyms \ 10186 include_expsyms; do 10187 10188 case $var in 10189 old_archive_cmds | \ 10190 old_archive_from_new_cmds | \ 10191 archive_cmds | \ 10192 archive_expsym_cmds | \ 10193 module_cmds | \ 10194 module_expsym_cmds | \ 10195 old_archive_from_expsyms_cmds | \ 10196 export_symbols_cmds | \ 10197 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10198 postinstall_cmds | postuninstall_cmds | \ 10199 old_postinstall_cmds | old_postuninstall_cmds | \ 10200 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10201 # Double-quote double-evaled strings. 10202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10203 ;; 10204 *) 10205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10206 ;; 10207 esac 10208 done 10209 10210 case $lt_echo in 10211 *'\$0 --fallback-echo"') 10212 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10213 ;; 10214 esac 10215 10216cfgfile="${ofile}T" 10217 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10218 $rm -f "$cfgfile" 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 10220$as_echo "$as_me: creating $ofile" >&6;} 10221 10222 cat <<__EOF__ >> "$cfgfile" 10223#! $SHELL 10224 10225# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10226# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10227# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10228# 10229# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10230# Free Software Foundation, Inc. 10231# 10232# This file is part of GNU Libtool: 10233# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10234# 10235# This program is free software; you can redistribute it and/or modify 10236# it under the terms of the GNU General Public License as published by 10237# the Free Software Foundation; either version 2 of the License, or 10238# (at your option) any later version. 10239# 10240# This program is distributed in the hope that it will be useful, but 10241# WITHOUT ANY WARRANTY; without even the implied warranty of 10242# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10243# General Public License for more details. 10244# 10245# You should have received a copy of the GNU General Public License 10246# along with this program; if not, write to the Free Software 10247# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10248# 10249# As a special exception to the GNU General Public License, if you 10250# distribute this file as part of a program that contains a 10251# configuration script generated by Autoconf, you may include it under 10252# the same distribution terms that you use for the rest of that program. 10253 10254# A sed program that does not truncate output. 10255SED=$lt_SED 10256 10257# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10258Xsed="$SED -e 1s/^X//" 10259 10260# The HP-UX ksh and POSIX shell print the target directory to stdout 10261# if CDPATH is set. 10262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10263 10264# The names of the tagged configurations supported by this script. 10265available_tags= 10266 10267# ### BEGIN LIBTOOL CONFIG 10268 10269# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10270 10271# Shell to use when invoking shell scripts. 10272SHELL=$lt_SHELL 10273 10274# Whether or not to build shared libraries. 10275build_libtool_libs=$enable_shared 10276 10277# Whether or not to build static libraries. 10278build_old_libs=$enable_static 10279 10280# Whether or not to add -lc for building shared libraries. 10281build_libtool_need_lc=$archive_cmds_need_lc 10282 10283# Whether or not to disallow shared libs when runtime libs are static 10284allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10285 10286# Whether or not to optimize for fast installation. 10287fast_install=$enable_fast_install 10288 10289# The host system. 10290host_alias=$host_alias 10291host=$host 10292host_os=$host_os 10293 10294# The build system. 10295build_alias=$build_alias 10296build=$build 10297build_os=$build_os 10298 10299# An echo program that does not interpret backslashes. 10300echo=$lt_echo 10301 10302# The archiver. 10303AR=$lt_AR 10304AR_FLAGS=$lt_AR_FLAGS 10305 10306# A C compiler. 10307LTCC=$lt_LTCC 10308 10309# LTCC compiler flags. 10310LTCFLAGS=$lt_LTCFLAGS 10311 10312# A language-specific compiler. 10313CC=$lt_compiler 10314 10315# Is the compiler the GNU C compiler? 10316with_gcc=$GCC 10317 10318# An ERE matcher. 10319EGREP=$lt_EGREP 10320 10321# The linker used to build libraries. 10322LD=$lt_LD 10323 10324# Whether we need hard or soft links. 10325LN_S=$lt_LN_S 10326 10327# A BSD-compatible nm program. 10328NM=$lt_NM 10329 10330# A symbol stripping program 10331STRIP=$lt_STRIP 10332 10333# Used to examine libraries when file_magic_cmd begins "file" 10334MAGIC_CMD=$MAGIC_CMD 10335 10336# Used on cygwin: DLL creation program. 10337DLLTOOL="$DLLTOOL" 10338 10339# Used on cygwin: object dumper. 10340OBJDUMP="$OBJDUMP" 10341 10342# Used on cygwin: assembler. 10343AS="$AS" 10344 10345# The name of the directory that contains temporary libtool files. 10346objdir=$objdir 10347 10348# How to create reloadable object files. 10349reload_flag=$lt_reload_flag 10350reload_cmds=$lt_reload_cmds 10351 10352# How to pass a linker flag through the compiler. 10353wl=$lt_lt_prog_compiler_wl 10354 10355# Object file suffix (normally "o"). 10356objext="$ac_objext" 10357 10358# Old archive suffix (normally "a"). 10359libext="$libext" 10360 10361# Shared library suffix (normally ".so"). 10362shrext_cmds='$shrext_cmds' 10363 10364# Executable file suffix (normally ""). 10365exeext="$exeext" 10366 10367# Additional compiler flags for building library objects. 10368pic_flag=$lt_lt_prog_compiler_pic 10369pic_mode=$pic_mode 10370 10371# What is the maximum length of a command? 10372max_cmd_len=$lt_cv_sys_max_cmd_len 10373 10374# Does compiler simultaneously support -c and -o options? 10375compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10376 10377# Must we lock files when doing compilation? 10378need_locks=$lt_need_locks 10379 10380# Do we need the lib prefix for modules? 10381need_lib_prefix=$need_lib_prefix 10382 10383# Do we need a version for libraries? 10384need_version=$need_version 10385 10386# Whether dlopen is supported. 10387dlopen_support=$enable_dlopen 10388 10389# Whether dlopen of programs is supported. 10390dlopen_self=$enable_dlopen_self 10391 10392# Whether dlopen of statically linked programs is supported. 10393dlopen_self_static=$enable_dlopen_self_static 10394 10395# Compiler flag to prevent dynamic linking. 10396link_static_flag=$lt_lt_prog_compiler_static 10397 10398# Compiler flag to turn off builtin functions. 10399no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10400 10401# Compiler flag to allow reflexive dlopens. 10402export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10403 10404# Compiler flag to generate shared objects directly from archives. 10405whole_archive_flag_spec=$lt_whole_archive_flag_spec 10406 10407# Compiler flag to generate thread-safe objects. 10408thread_safe_flag_spec=$lt_thread_safe_flag_spec 10409 10410# Library versioning type. 10411version_type=$version_type 10412 10413# Format of library name prefix. 10414libname_spec=$lt_libname_spec 10415 10416# List of archive names. First name is the real one, the rest are links. 10417# The last name is the one that the linker finds with -lNAME. 10418library_names_spec=$lt_library_names_spec 10419 10420# The coded name of the library, if different from the real name. 10421soname_spec=$lt_soname_spec 10422 10423# Commands used to build and install an old-style archive. 10424RANLIB=$lt_RANLIB 10425old_archive_cmds=$lt_old_archive_cmds 10426old_postinstall_cmds=$lt_old_postinstall_cmds 10427old_postuninstall_cmds=$lt_old_postuninstall_cmds 10428 10429# Create an old-style archive from a shared archive. 10430old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10431 10432# Create a temporary old-style archive to link instead of a shared archive. 10433old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10434 10435# Commands used to build and install a shared archive. 10436archive_cmds=$lt_archive_cmds 10437archive_expsym_cmds=$lt_archive_expsym_cmds 10438postinstall_cmds=$lt_postinstall_cmds 10439postuninstall_cmds=$lt_postuninstall_cmds 10440 10441# Commands used to build a loadable module (assumed same as above if empty) 10442module_cmds=$lt_module_cmds 10443module_expsym_cmds=$lt_module_expsym_cmds 10444 10445# Commands to strip libraries. 10446old_striplib=$lt_old_striplib 10447striplib=$lt_striplib 10448 10449# Dependencies to place before the objects being linked to create a 10450# shared library. 10451predep_objects=$lt_predep_objects 10452 10453# Dependencies to place after the objects being linked to create a 10454# shared library. 10455postdep_objects=$lt_postdep_objects 10456 10457# Dependencies to place before the objects being linked to create a 10458# shared library. 10459predeps=$lt_predeps 10460 10461# Dependencies to place after the objects being linked to create a 10462# shared library. 10463postdeps=$lt_postdeps 10464 10465# The directories searched by this compiler when creating a shared 10466# library 10467compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10468 10469# The library search path used internally by the compiler when linking 10470# a shared library. 10471compiler_lib_search_path=$lt_compiler_lib_search_path 10472 10473# Method to check whether dependent libraries are shared objects. 10474deplibs_check_method=$lt_deplibs_check_method 10475 10476# Command to use when deplibs_check_method == file_magic. 10477file_magic_cmd=$lt_file_magic_cmd 10478 10479# Flag that allows shared libraries with undefined symbols to be built. 10480allow_undefined_flag=$lt_allow_undefined_flag 10481 10482# Flag that forces no undefined symbols. 10483no_undefined_flag=$lt_no_undefined_flag 10484 10485# Commands used to finish a libtool library installation in a directory. 10486finish_cmds=$lt_finish_cmds 10487 10488# Same as above, but a single script fragment to be evaled but not shown. 10489finish_eval=$lt_finish_eval 10490 10491# Take the output of nm and produce a listing of raw symbols and C names. 10492global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10493 10494# Transform the output of nm in a proper C declaration 10495global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10496 10497# Transform the output of nm in a C name address pair 10498global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10499 10500# This is the shared library runtime path variable. 10501runpath_var=$runpath_var 10502 10503# This is the shared library path variable. 10504shlibpath_var=$shlibpath_var 10505 10506# Is shlibpath searched before the hard-coded library search path? 10507shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10508 10509# How to hardcode a shared library path into an executable. 10510hardcode_action=$hardcode_action 10511 10512# Whether we should hardcode library paths into libraries. 10513hardcode_into_libs=$hardcode_into_libs 10514 10515# Flag to hardcode \$libdir into a binary during linking. 10516# This must work even if \$libdir does not exist. 10517hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10518 10519# If ld is used when linking, flag to hardcode \$libdir into 10520# a binary during linking. This must work even if \$libdir does 10521# not exist. 10522hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10523 10524# Whether we need a single -rpath flag with a separated argument. 10525hardcode_libdir_separator=$lt_hardcode_libdir_separator 10526 10527# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10528# resulting binary. 10529hardcode_direct=$hardcode_direct 10530 10531# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10532# resulting binary. 10533hardcode_minus_L=$hardcode_minus_L 10534 10535# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10536# the resulting binary. 10537hardcode_shlibpath_var=$hardcode_shlibpath_var 10538 10539# Set to yes if building a shared library automatically hardcodes DIR into the library 10540# and all subsequent libraries and executables linked against it. 10541hardcode_automatic=$hardcode_automatic 10542 10543# Variables whose values should be saved in libtool wrapper scripts and 10544# restored at relink time. 10545variables_saved_for_relink="$variables_saved_for_relink" 10546 10547# Whether libtool must link a program against all its dependency libraries. 10548link_all_deplibs=$link_all_deplibs 10549 10550# Compile-time system search path for libraries 10551sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10552 10553# Run-time system search path for libraries 10554sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10555 10556# Fix the shell variable \$srcfile for the compiler. 10557fix_srcfile_path=$lt_fix_srcfile_path 10558 10559# Set to yes if exported symbols are required. 10560always_export_symbols=$always_export_symbols 10561 10562# The commands to list exported symbols. 10563export_symbols_cmds=$lt_export_symbols_cmds 10564 10565# The commands to extract the exported symbol list from a shared archive. 10566extract_expsyms_cmds=$lt_extract_expsyms_cmds 10567 10568# Symbols that should not be listed in the preloaded symbols. 10569exclude_expsyms=$lt_exclude_expsyms 10570 10571# Symbols that must always be exported. 10572include_expsyms=$lt_include_expsyms 10573 10574# ### END LIBTOOL CONFIG 10575 10576__EOF__ 10577 10578 10579 case $host_os in 10580 aix3*) 10581 cat <<\EOF >> "$cfgfile" 10582 10583# AIX sometimes has problems with the GCC collect2 program. For some 10584# reason, if we set the COLLECT_NAMES environment variable, the problems 10585# vanish in a puff of smoke. 10586if test "X${COLLECT_NAMES+set}" != Xset; then 10587 COLLECT_NAMES= 10588 export COLLECT_NAMES 10589fi 10590EOF 10591 ;; 10592 esac 10593 10594 # We use sed instead of cat because bash on DJGPP gets confused if 10595 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10596 # text mode, it properly converts lines to CR/LF. This bash problem 10597 # is reportedly fixed, but why not run on old versions too? 10598 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10599 10600 mv -f "$cfgfile" "$ofile" || \ 10601 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10602 chmod +x "$ofile" 10603 10604else 10605 # If there is no Makefile yet, we rely on a make rule to execute 10606 # `config.status --recheck' to rerun these tests and create the 10607 # libtool script then. 10608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10609 if test -f "$ltmain_in"; then 10610 test -f Makefile && make "$ltmain" 10611 fi 10612fi 10613 10614 10615ac_ext=c 10616ac_cpp='$CPP $CPPFLAGS' 10617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10619ac_compiler_gnu=$ac_cv_c_compiler_gnu 10620 10621CC="$lt_save_CC" 10622 10623 10624# Check whether --with-tags was given. 10625if test "${with_tags+set}" = set; then : 10626 withval=$with_tags; tagnames="$withval" 10627fi 10628 10629 10630if test -f "$ltmain" && test -n "$tagnames"; then 10631 if test ! -f "${ofile}"; then 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 10633$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10634 fi 10635 10636 if test -z "$LTCC"; then 10637 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10638 if test -z "$LTCC"; then 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10640$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10641 else 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10643$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10644 fi 10645 fi 10646 if test -z "$LTCFLAGS"; then 10647 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10648 fi 10649 10650 # Extract list of available tagged configurations in $ofile. 10651 # Note that this assumes the entire list is on one line. 10652 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10653 10654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10655 for tagname in $tagnames; do 10656 IFS="$lt_save_ifs" 10657 # Check whether tagname contains only valid characters 10658 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10659 "") ;; 10660 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5 10661 ;; 10662 esac 10663 10664 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10665 then 10666 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5 10667 fi 10668 10669 # Update the list of available tags. 10670 if test -n "$tagname"; then 10671 echo appending configuration tag \"$tagname\" to $ofile 10672 10673 case $tagname in 10674 CXX) 10675 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10676 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10677 (test "X$CXX" != "Xg++"))) ; then 10678 ac_ext=cpp 10679ac_cpp='$CXXCPP $CPPFLAGS' 10680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10683 10684 10685 10686 10687archive_cmds_need_lc_CXX=no 10688allow_undefined_flag_CXX= 10689always_export_symbols_CXX=no 10690archive_expsym_cmds_CXX= 10691export_dynamic_flag_spec_CXX= 10692hardcode_direct_CXX=no 10693hardcode_libdir_flag_spec_CXX= 10694hardcode_libdir_flag_spec_ld_CXX= 10695hardcode_libdir_separator_CXX= 10696hardcode_minus_L_CXX=no 10697hardcode_shlibpath_var_CXX=unsupported 10698hardcode_automatic_CXX=no 10699module_cmds_CXX= 10700module_expsym_cmds_CXX= 10701link_all_deplibs_CXX=unknown 10702old_archive_cmds_CXX=$old_archive_cmds 10703no_undefined_flag_CXX= 10704whole_archive_flag_spec_CXX= 10705enable_shared_with_static_runtimes_CXX=no 10706 10707# Dependencies to place before and after the object being linked: 10708predep_objects_CXX= 10709postdep_objects_CXX= 10710predeps_CXX= 10711postdeps_CXX= 10712compiler_lib_search_path_CXX= 10713compiler_lib_search_dirs_CXX= 10714 10715# Source file extension for C++ test sources. 10716ac_ext=cpp 10717 10718# Object file extension for compiled C++ test sources. 10719objext=o 10720objext_CXX=$objext 10721 10722# Code to be used in simple compile tests 10723lt_simple_compile_test_code="int some_variable = 0;" 10724 10725# Code to be used in simple link tests 10726lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10727 10728# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10729 10730# If no C compiler was specified, use CC. 10731LTCC=${LTCC-"$CC"} 10732 10733# If no C compiler flags were specified, use CFLAGS. 10734LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10735 10736# Allow CC to be a program name with arguments. 10737compiler=$CC 10738 10739 10740# save warnings/boilerplate of simple test code 10741ac_outfile=conftest.$ac_objext 10742echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10744_lt_compiler_boilerplate=`cat conftest.err` 10745$rm conftest* 10746 10747ac_outfile=conftest.$ac_objext 10748echo "$lt_simple_link_test_code" >conftest.$ac_ext 10749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10750_lt_linker_boilerplate=`cat conftest.err` 10751$rm -r conftest* 10752 10753 10754# Allow CC to be a program name with arguments. 10755lt_save_CC=$CC 10756lt_save_LD=$LD 10757lt_save_GCC=$GCC 10758GCC=$GXX 10759lt_save_with_gnu_ld=$with_gnu_ld 10760lt_save_path_LD=$lt_cv_path_LD 10761if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10762 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10763else 10764 $as_unset lt_cv_prog_gnu_ld 10765fi 10766if test -n "${lt_cv_path_LDCXX+set}"; then 10767 lt_cv_path_LD=$lt_cv_path_LDCXX 10768else 10769 $as_unset lt_cv_path_LD 10770fi 10771test -z "${LDCXX+set}" || LD=$LDCXX 10772CC=${CXX-"c++"} 10773compiler=$CC 10774compiler_CXX=$CC 10775for cc_temp in $compiler""; do 10776 case $cc_temp in 10777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10779 \-*) ;; 10780 *) break;; 10781 esac 10782done 10783cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10784 10785 10786# We don't want -fno-exception wen compiling C++ code, so set the 10787# no_builtin_flag separately 10788if test "$GXX" = yes; then 10789 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10790else 10791 lt_prog_compiler_no_builtin_flag_CXX= 10792fi 10793 10794if test "$GXX" = yes; then 10795 # Set up default GNU C++ configuration 10796 10797 10798# Check whether --with-gnu-ld was given. 10799if test "${with_gnu_ld+set}" = set; then : 10800 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10801else 10802 with_gnu_ld=no 10803fi 10804 10805ac_prog=ld 10806if test "$GCC" = yes; then 10807 # Check if gcc -print-prog-name=ld gives a path. 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10809$as_echo_n "checking for ld used by $CC... " >&6; } 10810 case $host in 10811 *-*-mingw*) 10812 # gcc leaves a trailing carriage return which upsets mingw 10813 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10814 *) 10815 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10816 esac 10817 case $ac_prog in 10818 # Accept absolute paths. 10819 [\\/]* | ?:[\\/]*) 10820 re_direlt='/[^/][^/]*/\.\./' 10821 # Canonicalize the pathname of ld 10822 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10823 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10824 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10825 done 10826 test -z "$LD" && LD="$ac_prog" 10827 ;; 10828 "") 10829 # If it fails, then pretend we aren't using GCC. 10830 ac_prog=ld 10831 ;; 10832 *) 10833 # If it is relative, then search for the first ld in PATH. 10834 with_gnu_ld=unknown 10835 ;; 10836 esac 10837elif test "$with_gnu_ld" = yes; then 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10839$as_echo_n "checking for GNU ld... " >&6; } 10840else 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10842$as_echo_n "checking for non-GNU ld... " >&6; } 10843fi 10844if test "${lt_cv_path_LD+set}" = set; then : 10845 $as_echo_n "(cached) " >&6 10846else 10847 if test -z "$LD"; then 10848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10849 for ac_dir in $PATH; do 10850 IFS="$lt_save_ifs" 10851 test -z "$ac_dir" && ac_dir=. 10852 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10853 lt_cv_path_LD="$ac_dir/$ac_prog" 10854 # Check to see if the program is GNU ld. I'd rather use --version, 10855 # but apparently some variants of GNU ld only accept -v. 10856 # Break only if it was the GNU/non-GNU ld that we prefer. 10857 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10858 *GNU* | *'with BFD'*) 10859 test "$with_gnu_ld" != no && break 10860 ;; 10861 *) 10862 test "$with_gnu_ld" != yes && break 10863 ;; 10864 esac 10865 fi 10866 done 10867 IFS="$lt_save_ifs" 10868else 10869 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10870fi 10871fi 10872 10873LD="$lt_cv_path_LD" 10874if test -n "$LD"; then 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10876$as_echo "$LD" >&6; } 10877else 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10879$as_echo "no" >&6; } 10880fi 10881test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10883$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10884if test "${lt_cv_prog_gnu_ld+set}" = set; then : 10885 $as_echo_n "(cached) " >&6 10886else 10887 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10888case `$LD -v 2>&1 </dev/null` in 10889*GNU* | *'with BFD'*) 10890 lt_cv_prog_gnu_ld=yes 10891 ;; 10892*) 10893 lt_cv_prog_gnu_ld=no 10894 ;; 10895esac 10896fi 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 10898$as_echo "$lt_cv_prog_gnu_ld" >&6; } 10899with_gnu_ld=$lt_cv_prog_gnu_ld 10900 10901 10902 10903 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10904 # archiving commands below assume that GNU ld is being used. 10905 if test "$with_gnu_ld" = yes; then 10906 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10907 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' 10908 10909 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10911 10912 # If archive_cmds runs LD, not CC, wlarc should be empty 10913 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10914 # investigate it a little bit more. (MM) 10915 wlarc='${wl}' 10916 10917 # ancient GNU ld didn't support --whole-archive et. al. 10918 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10919 grep 'no-whole-archive' > /dev/null; then 10920 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10921 else 10922 whole_archive_flag_spec_CXX= 10923 fi 10924 else 10925 with_gnu_ld=no 10926 wlarc= 10927 10928 # A generic and very simple default shared library creation 10929 # command for GNU C++ for the case where it uses the native 10930 # linker, instead of GNU ld. If possible, this setting should 10931 # overridden to take advantage of the native linker features on 10932 # the platform it is being used on. 10933 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10934 fi 10935 10936 # Commands to make compiler produce verbose output that lists 10937 # what "hidden" libraries, object files and flags are used when 10938 # linking a shared library. 10939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10940 10941else 10942 GXX=no 10943 with_gnu_ld=no 10944 wlarc= 10945fi 10946 10947# PORTME: fill in a description of your system's C++ link characteristics 10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10949$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10950ld_shlibs_CXX=yes 10951case $host_os in 10952 aix3*) 10953 # FIXME: insert proper C++ library support 10954 ld_shlibs_CXX=no 10955 ;; 10956 aix[4-9]*) 10957 if test "$host_cpu" = ia64; then 10958 # On IA64, the linker does run time linking by default, so we don't 10959 # have to do anything special. 10960 aix_use_runtimelinking=no 10961 exp_sym_flag='-Bexport' 10962 no_entry_flag="" 10963 else 10964 aix_use_runtimelinking=no 10965 10966 # Test if we are trying to use run time linking or normal 10967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10968 # need to do runtime linking. 10969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10970 for ld_flag in $LDFLAGS; do 10971 case $ld_flag in 10972 *-brtl*) 10973 aix_use_runtimelinking=yes 10974 break 10975 ;; 10976 esac 10977 done 10978 ;; 10979 esac 10980 10981 exp_sym_flag='-bexport' 10982 no_entry_flag='-bnoentry' 10983 fi 10984 10985 # When large executables or shared objects are built, AIX ld can 10986 # have problems creating the table of contents. If linking a library 10987 # or program results in "error TOC overflow" add -mminimal-toc to 10988 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10989 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10990 10991 archive_cmds_CXX='' 10992 hardcode_direct_CXX=yes 10993 hardcode_libdir_separator_CXX=':' 10994 link_all_deplibs_CXX=yes 10995 10996 if test "$GXX" = yes; then 10997 case $host_os in aix4.[012]|aix4.[012].*) 10998 # We only want to do this on AIX 4.2 and lower, the check 10999 # below for broken collect2 doesn't work under 4.3+ 11000 collect2name=`${CC} -print-prog-name=collect2` 11001 if test -f "$collect2name" && \ 11002 strings "$collect2name" | grep resolve_lib_name >/dev/null 11003 then 11004 # We have reworked collect2 11005 : 11006 else 11007 # We have old collect2 11008 hardcode_direct_CXX=unsupported 11009 # It fails to find uninstalled libraries when the uninstalled 11010 # path is not listed in the libpath. Setting hardcode_minus_L 11011 # to unsupported forces relinking 11012 hardcode_minus_L_CXX=yes 11013 hardcode_libdir_flag_spec_CXX='-L$libdir' 11014 hardcode_libdir_separator_CXX= 11015 fi 11016 ;; 11017 esac 11018 shared_flag='-shared' 11019 if test "$aix_use_runtimelinking" = yes; then 11020 shared_flag="$shared_flag "'${wl}-G' 11021 fi 11022 else 11023 # not using gcc 11024 if test "$host_cpu" = ia64; then 11025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11026 # chokes on -Wl,-G. The following line is correct: 11027 shared_flag='-G' 11028 else 11029 if test "$aix_use_runtimelinking" = yes; then 11030 shared_flag='${wl}-G' 11031 else 11032 shared_flag='${wl}-bM:SRE' 11033 fi 11034 fi 11035 fi 11036 11037 # It seems that -bexpall does not export symbols beginning with 11038 # underscore (_), so it is better to generate a list of symbols to export. 11039 always_export_symbols_CXX=yes 11040 if test "$aix_use_runtimelinking" = yes; then 11041 # Warning - without using the other runtime loading flags (-brtl), 11042 # -berok will link without error, but may produce a broken library. 11043 allow_undefined_flag_CXX='-berok' 11044 # Determine the default libpath from the value encoded in an empty executable. 11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11046/* end confdefs.h. */ 11047 11048int 11049main () 11050{ 11051 11052 ; 11053 return 0; 11054} 11055_ACEOF 11056if ac_fn_cxx_try_link "$LINENO"; then : 11057 11058lt_aix_libpath_sed=' 11059 /Import File Strings/,/^$/ { 11060 /^0/ { 11061 s/^0 *\(.*\)$/\1/ 11062 p 11063 } 11064 }' 11065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11066# Check for a 64-bit object if we didn't find anything. 11067if test -z "$aix_libpath"; then 11068 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11069fi 11070fi 11071rm -f core conftest.err conftest.$ac_objext \ 11072 conftest$ac_exeext conftest.$ac_ext 11073if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11074 11075 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11076 11077 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" 11078 else 11079 if test "$host_cpu" = ia64; then 11080 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11081 allow_undefined_flag_CXX="-z nodefs" 11082 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" 11083 else 11084 # Determine the default libpath from the value encoded in an empty executable. 11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11086/* end confdefs.h. */ 11087 11088int 11089main () 11090{ 11091 11092 ; 11093 return 0; 11094} 11095_ACEOF 11096if ac_fn_cxx_try_link "$LINENO"; then : 11097 11098lt_aix_libpath_sed=' 11099 /Import File Strings/,/^$/ { 11100 /^0/ { 11101 s/^0 *\(.*\)$/\1/ 11102 p 11103 } 11104 }' 11105aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11106# Check for a 64-bit object if we didn't find anything. 11107if test -z "$aix_libpath"; then 11108 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11109fi 11110fi 11111rm -f core conftest.err conftest.$ac_objext \ 11112 conftest$ac_exeext conftest.$ac_ext 11113if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11114 11115 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11116 # Warning - without using the other run time loading flags, 11117 # -berok will link without error, but may produce a broken library. 11118 no_undefined_flag_CXX=' ${wl}-bernotok' 11119 allow_undefined_flag_CXX=' ${wl}-berok' 11120 # Exported symbols can be pulled into shared objects from archives 11121 whole_archive_flag_spec_CXX='$convenience' 11122 archive_cmds_need_lc_CXX=yes 11123 # This is similar to how AIX traditionally builds its shared libraries. 11124 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' 11125 fi 11126 fi 11127 ;; 11128 11129 beos*) 11130 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11131 allow_undefined_flag_CXX=unsupported 11132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11133 # support --undefined. This deserves some investigation. FIXME 11134 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11135 else 11136 ld_shlibs_CXX=no 11137 fi 11138 ;; 11139 11140 chorus*) 11141 case $cc_basename in 11142 *) 11143 # FIXME: insert proper C++ library support 11144 ld_shlibs_CXX=no 11145 ;; 11146 esac 11147 ;; 11148 11149 cygwin* | mingw* | pw32*) 11150 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11151 # as there is no search path for DLLs. 11152 hardcode_libdir_flag_spec_CXX='-L$libdir' 11153 allow_undefined_flag_CXX=unsupported 11154 always_export_symbols_CXX=no 11155 enable_shared_with_static_runtimes_CXX=yes 11156 11157 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11158 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' 11159 # If the export-symbols file already is a .def file (1st line 11160 # is EXPORTS), use it as is; otherwise, prepend... 11161 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11162 cp $export_symbols $output_objdir/$soname.def; 11163 else 11164 echo EXPORTS > $output_objdir/$soname.def; 11165 cat $export_symbols >> $output_objdir/$soname.def; 11166 fi~ 11167 $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' 11168 else 11169 ld_shlibs_CXX=no 11170 fi 11171 ;; 11172 darwin* | rhapsody*) 11173 archive_cmds_need_lc_CXX=no 11174 hardcode_direct_CXX=no 11175 hardcode_automatic_CXX=yes 11176 hardcode_shlibpath_var_CXX=unsupported 11177 whole_archive_flag_spec_CXX='' 11178 link_all_deplibs_CXX=yes 11179 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11180 if test "$GXX" = yes ; then 11181 output_verbose_link_cmd='echo' 11182 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}" 11183 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11184 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}" 11185 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}" 11186 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11187 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}" 11188 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}" 11189 fi 11190 else 11191 case $cc_basename in 11192 xlc*) 11193 output_verbose_link_cmd='echo' 11194 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' 11195 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11197 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}' 11198 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}' 11199 ;; 11200 *) 11201 ld_shlibs_CXX=no 11202 ;; 11203 esac 11204 fi 11205 ;; 11206 11207 dgux*) 11208 case $cc_basename in 11209 ec++*) 11210 # FIXME: insert proper C++ library support 11211 ld_shlibs_CXX=no 11212 ;; 11213 ghcx*) 11214 # Green Hills C++ Compiler 11215 # FIXME: insert proper C++ library support 11216 ld_shlibs_CXX=no 11217 ;; 11218 *) 11219 # FIXME: insert proper C++ library support 11220 ld_shlibs_CXX=no 11221 ;; 11222 esac 11223 ;; 11224 freebsd[12]*) 11225 # C++ shared libraries reported to be fairly broken before switch to ELF 11226 ld_shlibs_CXX=no 11227 ;; 11228 freebsd-elf*) 11229 archive_cmds_need_lc_CXX=no 11230 ;; 11231 freebsd* | dragonfly*) 11232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11233 # conventions 11234 ld_shlibs_CXX=yes 11235 ;; 11236 gnu*) 11237 ;; 11238 hpux9*) 11239 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11240 hardcode_libdir_separator_CXX=: 11241 export_dynamic_flag_spec_CXX='${wl}-E' 11242 hardcode_direct_CXX=yes 11243 hardcode_minus_L_CXX=yes # Not in the search PATH, 11244 # but as the default 11245 # location of the library. 11246 11247 case $cc_basename in 11248 CC*) 11249 # FIXME: insert proper C++ library support 11250 ld_shlibs_CXX=no 11251 ;; 11252 aCC*) 11253 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' 11254 # Commands to make compiler produce verbose output that lists 11255 # what "hidden" libraries, object files and flags are used when 11256 # linking a shared library. 11257 # 11258 # There doesn't appear to be a way to prevent this compiler from 11259 # explicitly linking system object files so we need to strip them 11260 # from the output so that they don't get included in the library 11261 # dependencies. 11262 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' 11263 ;; 11264 *) 11265 if test "$GXX" = yes; then 11266 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' 11267 else 11268 # FIXME: insert proper C++ library support 11269 ld_shlibs_CXX=no 11270 fi 11271 ;; 11272 esac 11273 ;; 11274 hpux10*|hpux11*) 11275 if test $with_gnu_ld = no; then 11276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11277 hardcode_libdir_separator_CXX=: 11278 11279 case $host_cpu in 11280 hppa*64*|ia64*) ;; 11281 *) 11282 export_dynamic_flag_spec_CXX='${wl}-E' 11283 ;; 11284 esac 11285 fi 11286 case $host_cpu in 11287 hppa*64*|ia64*) 11288 hardcode_direct_CXX=no 11289 hardcode_shlibpath_var_CXX=no 11290 ;; 11291 *) 11292 hardcode_direct_CXX=yes 11293 hardcode_minus_L_CXX=yes # Not in the search PATH, 11294 # but as the default 11295 # location of the library. 11296 ;; 11297 esac 11298 11299 case $cc_basename in 11300 CC*) 11301 # FIXME: insert proper C++ library support 11302 ld_shlibs_CXX=no 11303 ;; 11304 aCC*) 11305 case $host_cpu in 11306 hppa*64*) 11307 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11308 ;; 11309 ia64*) 11310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11311 ;; 11312 *) 11313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11314 ;; 11315 esac 11316 # Commands to make compiler produce verbose output that lists 11317 # what "hidden" libraries, object files and flags are used when 11318 # linking a shared library. 11319 # 11320 # There doesn't appear to be a way to prevent this compiler from 11321 # explicitly linking system object files so we need to strip them 11322 # from the output so that they don't get included in the library 11323 # dependencies. 11324 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' 11325 ;; 11326 *) 11327 if test "$GXX" = yes; then 11328 if test $with_gnu_ld = no; then 11329 case $host_cpu in 11330 hppa*64*) 11331 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11332 ;; 11333 ia64*) 11334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11335 ;; 11336 *) 11337 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' 11338 ;; 11339 esac 11340 fi 11341 else 11342 # FIXME: insert proper C++ library support 11343 ld_shlibs_CXX=no 11344 fi 11345 ;; 11346 esac 11347 ;; 11348 interix[3-9]*) 11349 hardcode_direct_CXX=no 11350 hardcode_shlibpath_var_CXX=no 11351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11352 export_dynamic_flag_spec_CXX='${wl}-E' 11353 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11354 # Instead, shared libraries are loaded at an image base (0x10000000 by 11355 # default) and relocated if they conflict, which is a slow very memory 11356 # consuming and fragmenting process. To avoid this, we pick a random, 11357 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11358 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11359 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' 11360 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' 11361 ;; 11362 irix5* | irix6*) 11363 case $cc_basename in 11364 CC*) 11365 # SGI C++ 11366 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' 11367 11368 # Archives containing C++ object files must be created using 11369 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11370 # necessary to make sure instantiated templates are included 11371 # in the archive. 11372 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11373 ;; 11374 *) 11375 if test "$GXX" = yes; then 11376 if test "$with_gnu_ld" = no; then 11377 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' 11378 else 11379 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' 11380 fi 11381 fi 11382 link_all_deplibs_CXX=yes 11383 ;; 11384 esac 11385 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11386 hardcode_libdir_separator_CXX=: 11387 ;; 11388 linux* | k*bsd*-gnu) 11389 case $cc_basename in 11390 KCC*) 11391 # Kuck and Associates, Inc. (KAI) C++ Compiler 11392 11393 # KCC will only create a shared library if the output file 11394 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11395 # to its proper name (with version) after linking. 11396 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' 11397 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' 11398 # Commands to make compiler produce verbose output that lists 11399 # what "hidden" libraries, object files and flags are used when 11400 # linking a shared library. 11401 # 11402 # There doesn't appear to be a way to prevent this compiler from 11403 # explicitly linking system object files so we need to strip them 11404 # from the output so that they don't get included in the library 11405 # dependencies. 11406 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' 11407 11408 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11410 11411 # Archives containing C++ object files must be created using 11412 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11413 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11414 ;; 11415 icpc*) 11416 # Intel C++ 11417 with_gnu_ld=yes 11418 # version 8.0 and above of icpc choke on multiply defined symbols 11419 # if we add $predep_objects and $postdep_objects, however 7.1 and 11420 # earlier do not add the objects themselves. 11421 case `$CC -V 2>&1` in 11422 *"Version 7."*) 11423 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11424 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' 11425 ;; 11426 *) # Version 8.0 or newer 11427 tmp_idyn= 11428 case $host_cpu in 11429 ia64*) tmp_idyn=' -i_dynamic';; 11430 esac 11431 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11432 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' 11433 ;; 11434 esac 11435 archive_cmds_need_lc_CXX=no 11436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11438 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11439 ;; 11440 pgCC* | pgcpp*) 11441 # Portland Group C++ compiler 11442 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11443 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' 11444 11445 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11447 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' 11448 ;; 11449 cxx*) 11450 # Compaq C++ 11451 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11452 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' 11453 11454 runpath_var=LD_RUN_PATH 11455 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11456 hardcode_libdir_separator_CXX=: 11457 11458 # Commands to make compiler produce verbose output that lists 11459 # what "hidden" libraries, object files and flags are used when 11460 # linking a shared library. 11461 # 11462 # There doesn't appear to be a way to prevent this compiler from 11463 # explicitly linking system object files so we need to strip them 11464 # from the output so that they don't get included in the library 11465 # dependencies. 11466 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' 11467 ;; 11468 *) 11469 case `$CC -V 2>&1 | sed 5q` in 11470 *Sun\ C*) 11471 # Sun C++ 5.9 11472 no_undefined_flag_CXX=' -zdefs' 11473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11474 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' 11475 hardcode_libdir_flag_spec_CXX='-R$libdir' 11476 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' 11477 11478 # Not sure whether something based on 11479 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11480 # would be better. 11481 output_verbose_link_cmd='echo' 11482 11483 # Archives containing C++ object files must be created using 11484 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11485 # necessary to make sure instantiated templates are included 11486 # in the archive. 11487 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11488 ;; 11489 esac 11490 ;; 11491 esac 11492 ;; 11493 lynxos*) 11494 # FIXME: insert proper C++ library support 11495 ld_shlibs_CXX=no 11496 ;; 11497 m88k*) 11498 # FIXME: insert proper C++ library support 11499 ld_shlibs_CXX=no 11500 ;; 11501 mvs*) 11502 case $cc_basename in 11503 cxx*) 11504 # FIXME: insert proper C++ library support 11505 ld_shlibs_CXX=no 11506 ;; 11507 *) 11508 # FIXME: insert proper C++ library support 11509 ld_shlibs_CXX=no 11510 ;; 11511 esac 11512 ;; 11513 netbsd*) 11514 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11515 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11516 wlarc= 11517 hardcode_libdir_flag_spec_CXX='-R$libdir' 11518 hardcode_direct_CXX=yes 11519 hardcode_shlibpath_var_CXX=no 11520 fi 11521 # Workaround some broken pre-1.5 toolchains 11522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11523 ;; 11524 openbsd2*) 11525 # C++ shared libraries are fairly broken 11526 ld_shlibs_CXX=no 11527 ;; 11528 openbsd*) 11529 if test -f /usr/libexec/ld.so; then 11530 hardcode_direct_CXX=yes 11531 hardcode_shlibpath_var_CXX=no 11532 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11533 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11535 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11536 export_dynamic_flag_spec_CXX='${wl}-E' 11537 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11538 fi 11539 output_verbose_link_cmd='echo' 11540 else 11541 ld_shlibs_CXX=no 11542 fi 11543 ;; 11544 osf3*) 11545 case $cc_basename in 11546 KCC*) 11547 # Kuck and Associates, Inc. (KAI) C++ Compiler 11548 11549 # KCC will only create a shared library if the output file 11550 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11551 # to its proper name (with version) after linking. 11552 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' 11553 11554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11555 hardcode_libdir_separator_CXX=: 11556 11557 # Archives containing C++ object files must be created using 11558 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11559 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11560 11561 ;; 11562 RCC*) 11563 # Rational C++ 2.4.1 11564 # FIXME: insert proper C++ library support 11565 ld_shlibs_CXX=no 11566 ;; 11567 cxx*) 11568 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11569 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' 11570 11571 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11572 hardcode_libdir_separator_CXX=: 11573 11574 # Commands to make compiler produce verbose output that lists 11575 # what "hidden" libraries, object files and flags are used when 11576 # linking a shared library. 11577 # 11578 # There doesn't appear to be a way to prevent this compiler from 11579 # explicitly linking system object files so we need to strip them 11580 # from the output so that they don't get included in the library 11581 # dependencies. 11582 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' 11583 ;; 11584 *) 11585 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11586 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11587 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' 11588 11589 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11590 hardcode_libdir_separator_CXX=: 11591 11592 # Commands to make compiler produce verbose output that lists 11593 # what "hidden" libraries, object files and flags are used when 11594 # linking a shared library. 11595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11596 11597 else 11598 # FIXME: insert proper C++ library support 11599 ld_shlibs_CXX=no 11600 fi 11601 ;; 11602 esac 11603 ;; 11604 osf4* | osf5*) 11605 case $cc_basename in 11606 KCC*) 11607 # Kuck and Associates, Inc. (KAI) C++ Compiler 11608 11609 # KCC will only create a shared library if the output file 11610 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11611 # to its proper name (with version) after linking. 11612 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' 11613 11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11615 hardcode_libdir_separator_CXX=: 11616 11617 # Archives containing C++ object files must be created using 11618 # the KAI C++ compiler. 11619 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11620 ;; 11621 RCC*) 11622 # Rational C++ 2.4.1 11623 # FIXME: insert proper C++ library support 11624 ld_shlibs_CXX=no 11625 ;; 11626 cxx*) 11627 allow_undefined_flag_CXX=' -expect_unresolved \*' 11628 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' 11629 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11630 echo "-hidden">> $lib.exp~ 11631 $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~ 11632 $rm $lib.exp' 11633 11634 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11635 hardcode_libdir_separator_CXX=: 11636 11637 # Commands to make compiler produce verbose output that lists 11638 # what "hidden" libraries, object files and flags are used when 11639 # linking a shared library. 11640 # 11641 # There doesn't appear to be a way to prevent this compiler from 11642 # explicitly linking system object files so we need to strip them 11643 # from the output so that they don't get included in the library 11644 # dependencies. 11645 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' 11646 ;; 11647 *) 11648 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11649 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11650 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' 11651 11652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11653 hardcode_libdir_separator_CXX=: 11654 11655 # Commands to make compiler produce verbose output that lists 11656 # what "hidden" libraries, object files and flags are used when 11657 # linking a shared library. 11658 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11659 11660 else 11661 # FIXME: insert proper C++ library support 11662 ld_shlibs_CXX=no 11663 fi 11664 ;; 11665 esac 11666 ;; 11667 psos*) 11668 # FIXME: insert proper C++ library support 11669 ld_shlibs_CXX=no 11670 ;; 11671 sunos4*) 11672 case $cc_basename in 11673 CC*) 11674 # Sun C++ 4.x 11675 # FIXME: insert proper C++ library support 11676 ld_shlibs_CXX=no 11677 ;; 11678 lcc*) 11679 # Lucid 11680 # FIXME: insert proper C++ library support 11681 ld_shlibs_CXX=no 11682 ;; 11683 *) 11684 # FIXME: insert proper C++ library support 11685 ld_shlibs_CXX=no 11686 ;; 11687 esac 11688 ;; 11689 solaris*) 11690 case $cc_basename in 11691 CC*) 11692 # Sun C++ 4.2, 5.x and Centerline C++ 11693 archive_cmds_need_lc_CXX=yes 11694 no_undefined_flag_CXX=' -zdefs' 11695 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11696 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11697 $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' 11698 11699 hardcode_libdir_flag_spec_CXX='-R$libdir' 11700 hardcode_shlibpath_var_CXX=no 11701 case $host_os in 11702 solaris2.[0-5] | solaris2.[0-5].*) ;; 11703 *) 11704 # The compiler driver will combine and reorder linker options, 11705 # but understands `-z linker_flag'. 11706 # Supported since Solaris 2.6 (maybe 2.5.1?) 11707 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11708 ;; 11709 esac 11710 link_all_deplibs_CXX=yes 11711 11712 output_verbose_link_cmd='echo' 11713 11714 # Archives containing C++ object files must be created using 11715 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11716 # necessary to make sure instantiated templates are included 11717 # in the archive. 11718 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11719 ;; 11720 gcx*) 11721 # Green Hills C++ Compiler 11722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11723 11724 # The C++ compiler must be used to create the archive. 11725 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11726 ;; 11727 *) 11728 # GNU C++ compiler with Solaris linker 11729 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11730 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11731 if $CC --version | grep -v '^2\.7' > /dev/null; then 11732 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11733 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11734 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11735 11736 # Commands to make compiler produce verbose output that lists 11737 # what "hidden" libraries, object files and flags are used when 11738 # linking a shared library. 11739 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11740 else 11741 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11742 # platform. 11743 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11744 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11745 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11746 11747 # Commands to make compiler produce verbose output that lists 11748 # what "hidden" libraries, object files and flags are used when 11749 # linking a shared library. 11750 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11751 fi 11752 11753 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11754 case $host_os in 11755 solaris2.[0-5] | solaris2.[0-5].*) ;; 11756 *) 11757 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11758 ;; 11759 esac 11760 fi 11761 ;; 11762 esac 11763 ;; 11764 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11765 no_undefined_flag_CXX='${wl}-z,text' 11766 archive_cmds_need_lc_CXX=no 11767 hardcode_shlibpath_var_CXX=no 11768 runpath_var='LD_RUN_PATH' 11769 11770 case $cc_basename in 11771 CC*) 11772 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11773 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11774 ;; 11775 *) 11776 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11777 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11778 ;; 11779 esac 11780 ;; 11781 sysv5* | sco3.2v5* | sco5v6*) 11782 # Note: We can NOT use -z defs as we might desire, because we do not 11783 # link with -lc, and that would cause any symbols used from libc to 11784 # always be unresolved, which means just about no library would 11785 # ever link correctly. If we're not using GNU ld we use -z text 11786 # though, which does catch some bad symbols but isn't as heavy-handed 11787 # as -z defs. 11788 # For security reasons, it is highly recommended that you always 11789 # use absolute paths for naming shared libraries, and exclude the 11790 # DT_RUNPATH tag from executables and libraries. But doing so 11791 # requires that you compile everything twice, which is a pain. 11792 # So that behaviour is only enabled if SCOABSPATH is set to a 11793 # non-empty value in the environment. Most likely only useful for 11794 # creating official distributions of packages. 11795 # This is a hack until libtool officially supports absolute path 11796 # names for shared libraries. 11797 no_undefined_flag_CXX='${wl}-z,text' 11798 allow_undefined_flag_CXX='${wl}-z,nodefs' 11799 archive_cmds_need_lc_CXX=no 11800 hardcode_shlibpath_var_CXX=no 11801 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11802 hardcode_libdir_separator_CXX=':' 11803 link_all_deplibs_CXX=yes 11804 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11805 runpath_var='LD_RUN_PATH' 11806 11807 case $cc_basename in 11808 CC*) 11809 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11810 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11811 ;; 11812 *) 11813 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11814 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11815 ;; 11816 esac 11817 ;; 11818 tandem*) 11819 case $cc_basename in 11820 NCC*) 11821 # NonStop-UX NCC 3.20 11822 # FIXME: insert proper C++ library support 11823 ld_shlibs_CXX=no 11824 ;; 11825 *) 11826 # FIXME: insert proper C++ library support 11827 ld_shlibs_CXX=no 11828 ;; 11829 esac 11830 ;; 11831 vxworks*) 11832 # FIXME: insert proper C++ library support 11833 ld_shlibs_CXX=no 11834 ;; 11835 *) 11836 # FIXME: insert proper C++ library support 11837 ld_shlibs_CXX=no 11838 ;; 11839esac 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 11841$as_echo "$ld_shlibs_CXX" >&6; } 11842test "$ld_shlibs_CXX" = no && can_build_shared=no 11843 11844GCC_CXX="$GXX" 11845LD_CXX="$LD" 11846 11847## CAVEAT EMPTOR: 11848## There is no encapsulation within the following macros, do not change 11849## the running order or otherwise move them around unless you know exactly 11850## what you are doing... 11851cat > conftest.$ac_ext <<EOF 11852class Foo 11853{ 11854public: 11855 Foo (void) { a = 0; } 11856private: 11857 int a; 11858}; 11859EOF 11860 11861if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11862 (eval $ac_compile) 2>&5 11863 ac_status=$? 11864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11865 test $ac_status = 0; }; then 11866 # Parse the compiler output and extract the necessary 11867 # objects, libraries and library flags. 11868 11869 # Sentinel used to keep track of whether or not we are before 11870 # the conftest object file. 11871 pre_test_object_deps_done=no 11872 11873 # The `*' in the case matches for architectures that use `case' in 11874 # $output_verbose_cmd can trigger glob expansion during the loop 11875 # eval without this substitution. 11876 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11877 11878 for p in `eval $output_verbose_link_cmd`; do 11879 case $p in 11880 11881 -L* | -R* | -l*) 11882 # Some compilers place space between "-{L,R}" and the path. 11883 # Remove the space. 11884 if test $p = "-L" \ 11885 || test $p = "-R"; then 11886 prev=$p 11887 continue 11888 else 11889 prev= 11890 fi 11891 11892 if test "$pre_test_object_deps_done" = no; then 11893 case $p in 11894 -L* | -R*) 11895 # Internal compiler library paths should come after those 11896 # provided the user. The postdeps already come after the 11897 # user supplied libs so there is no need to process them. 11898 if test -z "$compiler_lib_search_path_CXX"; then 11899 compiler_lib_search_path_CXX="${prev}${p}" 11900 else 11901 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11902 fi 11903 ;; 11904 # The "-l" case would never come before the object being 11905 # linked, so don't bother handling this case. 11906 esac 11907 else 11908 if test -z "$postdeps_CXX"; then 11909 postdeps_CXX="${prev}${p}" 11910 else 11911 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11912 fi 11913 fi 11914 ;; 11915 11916 *.$objext) 11917 # This assumes that the test object file only shows up 11918 # once in the compiler output. 11919 if test "$p" = "conftest.$objext"; then 11920 pre_test_object_deps_done=yes 11921 continue 11922 fi 11923 11924 if test "$pre_test_object_deps_done" = no; then 11925 if test -z "$predep_objects_CXX"; then 11926 predep_objects_CXX="$p" 11927 else 11928 predep_objects_CXX="$predep_objects_CXX $p" 11929 fi 11930 else 11931 if test -z "$postdep_objects_CXX"; then 11932 postdep_objects_CXX="$p" 11933 else 11934 postdep_objects_CXX="$postdep_objects_CXX $p" 11935 fi 11936 fi 11937 ;; 11938 11939 *) ;; # Ignore the rest. 11940 11941 esac 11942 done 11943 11944 # Clean up. 11945 rm -f a.out a.exe 11946else 11947 echo "libtool.m4: error: problem compiling CXX test program" 11948fi 11949 11950$rm -f confest.$objext 11951 11952compiler_lib_search_dirs_CXX= 11953if test -n "$compiler_lib_search_path_CXX"; then 11954 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 11955fi 11956 11957# PORTME: override above test on systems where it is broken 11958case $host_os in 11959interix[3-9]*) 11960 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11961 # hack all around it, let's just trust "g++" to DTRT. 11962 predep_objects_CXX= 11963 postdep_objects_CXX= 11964 postdeps_CXX= 11965 ;; 11966 11967linux*) 11968 case `$CC -V 2>&1 | sed 5q` in 11969 *Sun\ C*) 11970 # Sun C++ 5.9 11971 # 11972 # The more standards-conforming stlport4 library is 11973 # incompatible with the Cstd library. Avoid specifying 11974 # it if it's in CXXFLAGS. Ignore libCrun as 11975 # -library=stlport4 depends on it. 11976 case " $CXX $CXXFLAGS " in 11977 *" -library=stlport4 "*) 11978 solaris_use_stlport4=yes 11979 ;; 11980 esac 11981 if test "$solaris_use_stlport4" != yes; then 11982 postdeps_CXX='-library=Cstd -library=Crun' 11983 fi 11984 ;; 11985 esac 11986 ;; 11987 11988solaris*) 11989 case $cc_basename in 11990 CC*) 11991 # The more standards-conforming stlport4 library is 11992 # incompatible with the Cstd library. Avoid specifying 11993 # it if it's in CXXFLAGS. Ignore libCrun as 11994 # -library=stlport4 depends on it. 11995 case " $CXX $CXXFLAGS " in 11996 *" -library=stlport4 "*) 11997 solaris_use_stlport4=yes 11998 ;; 11999 esac 12000 12001 # Adding this requires a known-good setup of shared libraries for 12002 # Sun compiler versions before 5.6, else PIC objects from an old 12003 # archive will be linked into the output, leading to subtle bugs. 12004 if test "$solaris_use_stlport4" != yes; then 12005 postdeps_CXX='-library=Cstd -library=Crun' 12006 fi 12007 ;; 12008 esac 12009 ;; 12010esac 12011 12012case " $postdeps_CXX " in 12013*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12014esac 12015 12016lt_prog_compiler_wl_CXX= 12017lt_prog_compiler_pic_CXX= 12018lt_prog_compiler_static_CXX= 12019 12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12021$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12022 12023 # C++ specific cases for pic, static, wl, etc. 12024 if test "$GXX" = yes; then 12025 lt_prog_compiler_wl_CXX='-Wl,' 12026 lt_prog_compiler_static_CXX='-static' 12027 12028 case $host_os in 12029 aix*) 12030 # All AIX code is PIC. 12031 if test "$host_cpu" = ia64; then 12032 # AIX 5 now supports IA64 processor 12033 lt_prog_compiler_static_CXX='-Bstatic' 12034 fi 12035 ;; 12036 amigaos*) 12037 # FIXME: we need at least 68020 code to build shared libraries, but 12038 # adding the `-m68020' flag to GCC prevents building anything better, 12039 # like `-m68040'. 12040 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12041 ;; 12042 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12043 # PIC is the default for these OSes. 12044 ;; 12045 mingw* | cygwin* | os2* | pw32*) 12046 # This hack is so that the source file can tell whether it is being 12047 # built for inclusion in a dll (and should export symbols for example). 12048 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12049 # (--disable-auto-import) libraries 12050 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12051 ;; 12052 darwin* | rhapsody*) 12053 # PIC is the default on this platform 12054 # Common symbols not allowed in MH_DYLIB files 12055 lt_prog_compiler_pic_CXX='-fno-common' 12056 ;; 12057 *djgpp*) 12058 # DJGPP does not support shared libraries at all 12059 lt_prog_compiler_pic_CXX= 12060 ;; 12061 interix[3-9]*) 12062 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12063 # Instead, we relocate shared libraries at runtime. 12064 ;; 12065 sysv4*MP*) 12066 if test -d /usr/nec; then 12067 lt_prog_compiler_pic_CXX=-Kconform_pic 12068 fi 12069 ;; 12070 hpux*) 12071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12072 # not for PA HP-UX. 12073 case $host_cpu in 12074 hppa*64*|ia64*) 12075 ;; 12076 *) 12077 lt_prog_compiler_pic_CXX='-fPIC' 12078 ;; 12079 esac 12080 ;; 12081 *) 12082 lt_prog_compiler_pic_CXX='-fPIC' 12083 ;; 12084 esac 12085 else 12086 case $host_os in 12087 aix[4-9]*) 12088 # All AIX code is PIC. 12089 if test "$host_cpu" = ia64; then 12090 # AIX 5 now supports IA64 processor 12091 lt_prog_compiler_static_CXX='-Bstatic' 12092 else 12093 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12094 fi 12095 ;; 12096 chorus*) 12097 case $cc_basename in 12098 cxch68*) 12099 # Green Hills C++ Compiler 12100 # _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" 12101 ;; 12102 esac 12103 ;; 12104 darwin*) 12105 # PIC is the default on this platform 12106 # Common symbols not allowed in MH_DYLIB files 12107 case $cc_basename in 12108 xlc*) 12109 lt_prog_compiler_pic_CXX='-qnocommon' 12110 lt_prog_compiler_wl_CXX='-Wl,' 12111 ;; 12112 esac 12113 ;; 12114 dgux*) 12115 case $cc_basename in 12116 ec++*) 12117 lt_prog_compiler_pic_CXX='-KPIC' 12118 ;; 12119 ghcx*) 12120 # Green Hills C++ Compiler 12121 lt_prog_compiler_pic_CXX='-pic' 12122 ;; 12123 *) 12124 ;; 12125 esac 12126 ;; 12127 freebsd* | dragonfly*) 12128 # FreeBSD uses GNU C++ 12129 ;; 12130 hpux9* | hpux10* | hpux11*) 12131 case $cc_basename in 12132 CC*) 12133 lt_prog_compiler_wl_CXX='-Wl,' 12134 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12135 if test "$host_cpu" != ia64; then 12136 lt_prog_compiler_pic_CXX='+Z' 12137 fi 12138 ;; 12139 aCC*) 12140 lt_prog_compiler_wl_CXX='-Wl,' 12141 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12142 case $host_cpu in 12143 hppa*64*|ia64*) 12144 # +Z the default 12145 ;; 12146 *) 12147 lt_prog_compiler_pic_CXX='+Z' 12148 ;; 12149 esac 12150 ;; 12151 *) 12152 ;; 12153 esac 12154 ;; 12155 interix*) 12156 # This is c89, which is MS Visual C++ (no shared libs) 12157 # Anyone wants to do a port? 12158 ;; 12159 irix5* | irix6* | nonstopux*) 12160 case $cc_basename in 12161 CC*) 12162 lt_prog_compiler_wl_CXX='-Wl,' 12163 lt_prog_compiler_static_CXX='-non_shared' 12164 # CC pic flag -KPIC is the default. 12165 ;; 12166 *) 12167 ;; 12168 esac 12169 ;; 12170 linux* | k*bsd*-gnu) 12171 case $cc_basename in 12172 KCC*) 12173 # KAI C++ Compiler 12174 lt_prog_compiler_wl_CXX='--backend -Wl,' 12175 lt_prog_compiler_pic_CXX='-fPIC' 12176 ;; 12177 icpc* | ecpc*) 12178 # Intel C++ 12179 lt_prog_compiler_wl_CXX='-Wl,' 12180 lt_prog_compiler_pic_CXX='-KPIC' 12181 lt_prog_compiler_static_CXX='-static' 12182 ;; 12183 pgCC* | pgcpp*) 12184 # Portland Group C++ compiler. 12185 lt_prog_compiler_wl_CXX='-Wl,' 12186 lt_prog_compiler_pic_CXX='-fpic' 12187 lt_prog_compiler_static_CXX='-Bstatic' 12188 ;; 12189 cxx*) 12190 # Compaq C++ 12191 # Make sure the PIC flag is empty. It appears that all Alpha 12192 # Linux and Compaq Tru64 Unix objects are PIC. 12193 lt_prog_compiler_pic_CXX= 12194 lt_prog_compiler_static_CXX='-non_shared' 12195 ;; 12196 *) 12197 case `$CC -V 2>&1 | sed 5q` in 12198 *Sun\ C*) 12199 # Sun C++ 5.9 12200 lt_prog_compiler_pic_CXX='-KPIC' 12201 lt_prog_compiler_static_CXX='-Bstatic' 12202 lt_prog_compiler_wl_CXX='-Qoption ld ' 12203 ;; 12204 esac 12205 ;; 12206 esac 12207 ;; 12208 lynxos*) 12209 ;; 12210 m88k*) 12211 ;; 12212 mvs*) 12213 case $cc_basename in 12214 cxx*) 12215 lt_prog_compiler_pic_CXX='-W c,exportall' 12216 ;; 12217 *) 12218 ;; 12219 esac 12220 ;; 12221 netbsd*) 12222 ;; 12223 osf3* | osf4* | osf5*) 12224 case $cc_basename in 12225 KCC*) 12226 lt_prog_compiler_wl_CXX='--backend -Wl,' 12227 ;; 12228 RCC*) 12229 # Rational C++ 2.4.1 12230 lt_prog_compiler_pic_CXX='-pic' 12231 ;; 12232 cxx*) 12233 # Digital/Compaq C++ 12234 lt_prog_compiler_wl_CXX='-Wl,' 12235 # Make sure the PIC flag is empty. It appears that all Alpha 12236 # Linux and Compaq Tru64 Unix objects are PIC. 12237 lt_prog_compiler_pic_CXX= 12238 lt_prog_compiler_static_CXX='-non_shared' 12239 ;; 12240 *) 12241 ;; 12242 esac 12243 ;; 12244 psos*) 12245 ;; 12246 solaris*) 12247 case $cc_basename in 12248 CC*) 12249 # Sun C++ 4.2, 5.x and Centerline C++ 12250 lt_prog_compiler_pic_CXX='-KPIC' 12251 lt_prog_compiler_static_CXX='-Bstatic' 12252 lt_prog_compiler_wl_CXX='-Qoption ld ' 12253 ;; 12254 gcx*) 12255 # Green Hills C++ Compiler 12256 lt_prog_compiler_pic_CXX='-PIC' 12257 ;; 12258 *) 12259 ;; 12260 esac 12261 ;; 12262 sunos4*) 12263 case $cc_basename in 12264 CC*) 12265 # Sun C++ 4.x 12266 lt_prog_compiler_pic_CXX='-pic' 12267 lt_prog_compiler_static_CXX='-Bstatic' 12268 ;; 12269 lcc*) 12270 # Lucid 12271 lt_prog_compiler_pic_CXX='-pic' 12272 ;; 12273 *) 12274 ;; 12275 esac 12276 ;; 12277 tandem*) 12278 case $cc_basename in 12279 NCC*) 12280 # NonStop-UX NCC 3.20 12281 lt_prog_compiler_pic_CXX='-KPIC' 12282 ;; 12283 *) 12284 ;; 12285 esac 12286 ;; 12287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12288 case $cc_basename in 12289 CC*) 12290 lt_prog_compiler_wl_CXX='-Wl,' 12291 lt_prog_compiler_pic_CXX='-KPIC' 12292 lt_prog_compiler_static_CXX='-Bstatic' 12293 ;; 12294 esac 12295 ;; 12296 vxworks*) 12297 ;; 12298 *) 12299 lt_prog_compiler_can_build_shared_CXX=no 12300 ;; 12301 esac 12302 fi 12303 12304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 12305$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12306 12307# 12308# Check to make sure the PIC flag actually works. 12309# 12310if test -n "$lt_prog_compiler_pic_CXX"; then 12311 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12313$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12314if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 12315 $as_echo_n "(cached) " >&6 12316else 12317 lt_cv_prog_compiler_pic_works_CXX=no 12318 ac_outfile=conftest.$ac_objext 12319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12320 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12321 # Insert the option either (1) after the last *FLAGS variable, or 12322 # (2) before a word containing "conftest.", or (3) at the end. 12323 # Note that $ac_compile itself does not contain backslashes and begins 12324 # with a dollar sign (not a hyphen), so the echo should work correctly. 12325 # The option is referenced via a variable to avoid confusing sed. 12326 lt_compile=`echo "$ac_compile" | $SED \ 12327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12329 -e 's:$: $lt_compiler_flag:'` 12330 (eval echo "\"\$as_me:12330: $lt_compile\"" >&5) 12331 (eval "$lt_compile" 2>conftest.err) 12332 ac_status=$? 12333 cat conftest.err >&5 12334 echo "$as_me:12334: \$? = $ac_status" >&5 12335 if (exit $ac_status) && test -s "$ac_outfile"; then 12336 # The compiler can only warn and ignore the option if not recognized 12337 # So say no if there are warnings other than the usual output. 12338 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12341 lt_cv_prog_compiler_pic_works_CXX=yes 12342 fi 12343 fi 12344 $rm conftest* 12345 12346fi 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12348$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12349 12350if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12351 case $lt_prog_compiler_pic_CXX in 12352 "" | " "*) ;; 12353 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12354 esac 12355else 12356 lt_prog_compiler_pic_CXX= 12357 lt_prog_compiler_can_build_shared_CXX=no 12358fi 12359 12360fi 12361case $host_os in 12362 # For platforms which do not support PIC, -DPIC is meaningless: 12363 *djgpp*) 12364 lt_prog_compiler_pic_CXX= 12365 ;; 12366 *) 12367 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12368 ;; 12369esac 12370 12371# 12372# Check to make sure the static flag actually works. 12373# 12374wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12376$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12377if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 12378 $as_echo_n "(cached) " >&6 12379else 12380 lt_cv_prog_compiler_static_works_CXX=no 12381 save_LDFLAGS="$LDFLAGS" 12382 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12383 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12385 # The linker can only warn and ignore the option if not recognized 12386 # So say no if there are warnings 12387 if test -s conftest.err; then 12388 # Append any errors to the config.log. 12389 cat conftest.err 1>&5 12390 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12392 if diff conftest.exp conftest.er2 >/dev/null; then 12393 lt_cv_prog_compiler_static_works_CXX=yes 12394 fi 12395 else 12396 lt_cv_prog_compiler_static_works_CXX=yes 12397 fi 12398 fi 12399 $rm -r conftest* 12400 LDFLAGS="$save_LDFLAGS" 12401 12402fi 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12404$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12405 12406if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12407 : 12408else 12409 lt_prog_compiler_static_CXX= 12410fi 12411 12412 12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12414$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12415if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 12416 $as_echo_n "(cached) " >&6 12417else 12418 lt_cv_prog_compiler_c_o_CXX=no 12419 $rm -r conftest 2>/dev/null 12420 mkdir conftest 12421 cd conftest 12422 mkdir out 12423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12424 12425 lt_compiler_flag="-o out/conftest2.$ac_objext" 12426 # Insert the option either (1) after the last *FLAGS variable, or 12427 # (2) before a word containing "conftest.", or (3) at the end. 12428 # Note that $ac_compile itself does not contain backslashes and begins 12429 # with a dollar sign (not a hyphen), so the echo should work correctly. 12430 lt_compile=`echo "$ac_compile" | $SED \ 12431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12433 -e 's:$: $lt_compiler_flag:'` 12434 (eval echo "\"\$as_me:12434: $lt_compile\"" >&5) 12435 (eval "$lt_compile" 2>out/conftest.err) 12436 ac_status=$? 12437 cat out/conftest.err >&5 12438 echo "$as_me:12438: \$? = $ac_status" >&5 12439 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12440 then 12441 # The compiler can only warn and ignore the option if not recognized 12442 # So say no if there are warnings 12443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12446 lt_cv_prog_compiler_c_o_CXX=yes 12447 fi 12448 fi 12449 chmod u+w . 2>&5 12450 $rm conftest* 12451 # SGI C++ compiler will create directory out/ii_files/ for 12452 # template instantiation 12453 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12454 $rm out/* && rmdir out 12455 cd .. 12456 rmdir conftest 12457 $rm conftest* 12458 12459fi 12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12461$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 12462 12463 12464hard_links="nottested" 12465if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12466 # do not overwrite the value of need_locks provided by the user 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12468$as_echo_n "checking if we can lock with hard links... " >&6; } 12469 hard_links=yes 12470 $rm conftest* 12471 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12472 touch conftest.a 12473 ln conftest.a conftest.b 2>&5 || hard_links=no 12474 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12476$as_echo "$hard_links" >&6; } 12477 if test "$hard_links" = no; then 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12479$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12480 need_locks=warn 12481 fi 12482else 12483 need_locks=no 12484fi 12485 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12487$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12488 12489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12490 case $host_os in 12491 aix[4-9]*) 12492 # If we're using GNU nm, then we don't want the "-C" option. 12493 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12495 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' 12496 else 12497 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' 12498 fi 12499 ;; 12500 pw32*) 12501 export_symbols_cmds_CXX="$ltdll_cmds" 12502 ;; 12503 cygwin* | mingw*) 12504 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' 12505 ;; 12506 *) 12507 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12508 ;; 12509 esac 12510 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12511 12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12513$as_echo "$ld_shlibs_CXX" >&6; } 12514test "$ld_shlibs_CXX" = no && can_build_shared=no 12515 12516# 12517# Do we need to explicitly link libc? 12518# 12519case "x$archive_cmds_need_lc_CXX" in 12520x|xyes) 12521 # Assume -lc should be added 12522 archive_cmds_need_lc_CXX=yes 12523 12524 if test "$enable_shared" = yes && test "$GCC" = yes; then 12525 case $archive_cmds_CXX in 12526 *'~'*) 12527 # FIXME: we may have to deal with multi-command sequences. 12528 ;; 12529 '$CC '*) 12530 # Test whether the compiler implicitly links with -lc since on some 12531 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12532 # to ld, don't add -lc before -lgcc. 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12534$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12535 $rm conftest* 12536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12537 12538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12539 (eval $ac_compile) 2>&5 12540 ac_status=$? 12541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12542 test $ac_status = 0; } 2>conftest.err; then 12543 soname=conftest 12544 lib=conftest 12545 libobjs=conftest.$ac_objext 12546 deplibs= 12547 wl=$lt_prog_compiler_wl_CXX 12548 pic_flag=$lt_prog_compiler_pic_CXX 12549 compiler_flags=-v 12550 linker_flags=-v 12551 verstring= 12552 output_objdir=. 12553 libname=conftest 12554 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12555 allow_undefined_flag_CXX= 12556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12557 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12558 ac_status=$? 12559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12560 test $ac_status = 0; } 12561 then 12562 archive_cmds_need_lc_CXX=no 12563 else 12564 archive_cmds_need_lc_CXX=yes 12565 fi 12566 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12567 else 12568 cat conftest.err 1>&5 12569 fi 12570 $rm conftest* 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 12572$as_echo "$archive_cmds_need_lc_CXX" >&6; } 12573 ;; 12574 esac 12575 fi 12576 ;; 12577esac 12578 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12580$as_echo_n "checking dynamic linker characteristics... " >&6; } 12581library_names_spec= 12582libname_spec='lib$name' 12583soname_spec= 12584shrext_cmds=".so" 12585postinstall_cmds= 12586postuninstall_cmds= 12587finish_cmds= 12588finish_eval= 12589shlibpath_var= 12590shlibpath_overrides_runpath=unknown 12591version_type=none 12592dynamic_linker="$host_os ld.so" 12593sys_lib_dlsearch_path_spec="/lib /usr/lib" 12594 12595need_lib_prefix=unknown 12596hardcode_into_libs=no 12597 12598# when you set need_version to no, make sure it does not cause -set_version 12599# flags to be left without arguments 12600need_version=unknown 12601 12602case $host_os in 12603aix3*) 12604 version_type=linux 12605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12606 shlibpath_var=LIBPATH 12607 12608 # AIX 3 has no versioning support, so we append a major version to the name. 12609 soname_spec='${libname}${release}${shared_ext}$major' 12610 ;; 12611 12612aix[4-9]*) 12613 version_type=linux 12614 need_lib_prefix=no 12615 need_version=no 12616 hardcode_into_libs=yes 12617 if test "$host_cpu" = ia64; then 12618 # AIX 5 supports IA64 12619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12620 shlibpath_var=LD_LIBRARY_PATH 12621 else 12622 # With GCC up to 2.95.x, collect2 would create an import file 12623 # for dependence libraries. The import file would start with 12624 # the line `#! .'. This would cause the generated library to 12625 # depend on `.', always an invalid library. This was fixed in 12626 # development snapshots of GCC prior to 3.0. 12627 case $host_os in 12628 aix4 | aix4.[01] | aix4.[01].*) 12629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12630 echo ' yes ' 12631 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12632 : 12633 else 12634 can_build_shared=no 12635 fi 12636 ;; 12637 esac 12638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12639 # soname into executable. Probably we can add versioning support to 12640 # collect2, so additional links can be useful in future. 12641 if test "$aix_use_runtimelinking" = yes; then 12642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12643 # instead of lib<name>.a to let people know that these are not 12644 # typical AIX shared libraries. 12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12646 else 12647 # We preserve .a as extension for shared libraries through AIX4.2 12648 # and later when we are not doing run time linking. 12649 library_names_spec='${libname}${release}.a $libname.a' 12650 soname_spec='${libname}${release}${shared_ext}$major' 12651 fi 12652 shlibpath_var=LIBPATH 12653 fi 12654 ;; 12655 12656amigaos*) 12657 library_names_spec='$libname.ixlibrary $libname.a' 12658 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12659 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' 12660 ;; 12661 12662beos*) 12663 library_names_spec='${libname}${shared_ext}' 12664 dynamic_linker="$host_os ld.so" 12665 shlibpath_var=LIBRARY_PATH 12666 ;; 12667 12668bsdi[45]*) 12669 version_type=linux 12670 need_version=no 12671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12672 soname_spec='${libname}${release}${shared_ext}$major' 12673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12674 shlibpath_var=LD_LIBRARY_PATH 12675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12677 # the default ld.so.conf also contains /usr/contrib/lib and 12678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12679 # libtool to hard-code these into programs 12680 ;; 12681 12682cygwin* | mingw* | pw32*) 12683 version_type=windows 12684 shrext_cmds=".dll" 12685 need_version=no 12686 need_lib_prefix=no 12687 12688 case $GCC,$host_os in 12689 yes,cygwin* | yes,mingw* | yes,pw32*) 12690 library_names_spec='$libname.dll.a' 12691 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12692 postinstall_cmds='base_file=`basename \${file}`~ 12693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12694 dldir=$destdir/`dirname \$dlpath`~ 12695 test -d \$dldir || mkdir -p \$dldir~ 12696 $install_prog $dir/$dlname \$dldir/$dlname~ 12697 chmod a+x \$dldir/$dlname' 12698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12699 dlpath=$dir/\$dldll~ 12700 $rm \$dlpath' 12701 shlibpath_overrides_runpath=yes 12702 12703 case $host_os in 12704 cygwin*) 12705 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12708 ;; 12709 mingw*) 12710 # MinGW DLLs use traditional 'lib' prefix 12711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12714 # It is most probably a Windows format PATH printed by 12715 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12716 # path with ; separators, and with drive letters. We can handle the 12717 # drive letters (cygwin fileutils understands them), so leave them, 12718 # especially as we might pass files found there to a mingw objdump, 12719 # which wouldn't understand a cygwinified path. Ahh. 12720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12721 else 12722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12723 fi 12724 ;; 12725 pw32*) 12726 # pw32 DLLs use 'pw' prefix rather than 'lib' 12727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12728 ;; 12729 esac 12730 ;; 12731 12732 *) 12733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12734 ;; 12735 esac 12736 dynamic_linker='Win32 ld.exe' 12737 # FIXME: first we should search . and the directory the executable is in 12738 shlibpath_var=PATH 12739 ;; 12740 12741darwin* | rhapsody*) 12742 dynamic_linker="$host_os dyld" 12743 version_type=darwin 12744 need_lib_prefix=no 12745 need_version=no 12746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12747 soname_spec='${libname}${release}${major}$shared_ext' 12748 shlibpath_overrides_runpath=yes 12749 shlibpath_var=DYLD_LIBRARY_PATH 12750 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12751 12752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12753 ;; 12754 12755dgux*) 12756 version_type=linux 12757 need_lib_prefix=no 12758 need_version=no 12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12760 soname_spec='${libname}${release}${shared_ext}$major' 12761 shlibpath_var=LD_LIBRARY_PATH 12762 ;; 12763 12764freebsd1*) 12765 dynamic_linker=no 12766 ;; 12767 12768freebsd* | dragonfly*) 12769 # DragonFly does not have aout. When/if they implement a new 12770 # versioning mechanism, adjust this. 12771 if test -x /usr/bin/objformat; then 12772 objformat=`/usr/bin/objformat` 12773 else 12774 case $host_os in 12775 freebsd[123]*) objformat=aout ;; 12776 *) objformat=elf ;; 12777 esac 12778 fi 12779 version_type=freebsd-$objformat 12780 case $version_type in 12781 freebsd-elf*) 12782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12783 need_version=no 12784 need_lib_prefix=no 12785 ;; 12786 freebsd-*) 12787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12788 need_version=yes 12789 ;; 12790 esac 12791 shlibpath_var=LD_LIBRARY_PATH 12792 case $host_os in 12793 freebsd2*) 12794 shlibpath_overrides_runpath=yes 12795 ;; 12796 freebsd3.[01]* | freebsdelf3.[01]*) 12797 shlibpath_overrides_runpath=yes 12798 hardcode_into_libs=yes 12799 ;; 12800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12802 shlibpath_overrides_runpath=no 12803 hardcode_into_libs=yes 12804 ;; 12805 *) # from 4.6 on, and DragonFly 12806 shlibpath_overrides_runpath=yes 12807 hardcode_into_libs=yes 12808 ;; 12809 esac 12810 ;; 12811 12812gnu*) 12813 version_type=linux 12814 need_lib_prefix=no 12815 need_version=no 12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12817 soname_spec='${libname}${release}${shared_ext}$major' 12818 shlibpath_var=LD_LIBRARY_PATH 12819 hardcode_into_libs=yes 12820 ;; 12821 12822hpux9* | hpux10* | hpux11*) 12823 # Give a soname corresponding to the major version so that dld.sl refuses to 12824 # link against other versions. 12825 version_type=sunos 12826 need_lib_prefix=no 12827 need_version=no 12828 case $host_cpu in 12829 ia64*) 12830 shrext_cmds='.so' 12831 hardcode_into_libs=yes 12832 dynamic_linker="$host_os dld.so" 12833 shlibpath_var=LD_LIBRARY_PATH 12834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12836 soname_spec='${libname}${release}${shared_ext}$major' 12837 if test "X$HPUX_IA64_MODE" = X32; then 12838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12839 else 12840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12841 fi 12842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12843 ;; 12844 hppa*64*) 12845 shrext_cmds='.sl' 12846 hardcode_into_libs=yes 12847 dynamic_linker="$host_os dld.sl" 12848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12851 soname_spec='${libname}${release}${shared_ext}$major' 12852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12854 ;; 12855 *) 12856 shrext_cmds='.sl' 12857 dynamic_linker="$host_os dld.sl" 12858 shlibpath_var=SHLIB_PATH 12859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12861 soname_spec='${libname}${release}${shared_ext}$major' 12862 ;; 12863 esac 12864 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12865 postinstall_cmds='chmod 555 $lib' 12866 ;; 12867 12868interix[3-9]*) 12869 version_type=linux 12870 need_lib_prefix=no 12871 need_version=no 12872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12873 soname_spec='${libname}${release}${shared_ext}$major' 12874 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12875 shlibpath_var=LD_LIBRARY_PATH 12876 shlibpath_overrides_runpath=no 12877 hardcode_into_libs=yes 12878 ;; 12879 12880irix5* | irix6* | nonstopux*) 12881 case $host_os in 12882 nonstopux*) version_type=nonstopux ;; 12883 *) 12884 if test "$lt_cv_prog_gnu_ld" = yes; then 12885 version_type=linux 12886 else 12887 version_type=irix 12888 fi ;; 12889 esac 12890 need_lib_prefix=no 12891 need_version=no 12892 soname_spec='${libname}${release}${shared_ext}$major' 12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12894 case $host_os in 12895 irix5* | nonstopux*) 12896 libsuff= shlibsuff= 12897 ;; 12898 *) 12899 case $LD in # libtool.m4 will add one of these switches to LD 12900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12901 libsuff= shlibsuff= libmagic=32-bit;; 12902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12903 libsuff=32 shlibsuff=N32 libmagic=N32;; 12904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12905 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12906 *) libsuff= shlibsuff= libmagic=never-match;; 12907 esac 12908 ;; 12909 esac 12910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12911 shlibpath_overrides_runpath=no 12912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12914 hardcode_into_libs=yes 12915 ;; 12916 12917# No shared lib support for Linux oldld, aout, or coff. 12918linux*oldld* | linux*aout* | linux*coff*) 12919 dynamic_linker=no 12920 ;; 12921 12922# This must be Linux ELF. 12923linux* | k*bsd*-gnu) 12924 version_type=linux 12925 need_lib_prefix=no 12926 need_version=no 12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12928 soname_spec='${libname}${release}${shared_ext}$major' 12929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12930 shlibpath_var=LD_LIBRARY_PATH 12931 shlibpath_overrides_runpath=no 12932 # This implies no fast_install, which is unacceptable. 12933 # Some rework will be needed to allow for fast_install 12934 # before this can be enabled. 12935 hardcode_into_libs=yes 12936 12937 # Append ld.so.conf contents to the search path 12938 if test -f /etc/ld.so.conf; then 12939 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' ' '` 12940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12941 fi 12942 12943 # We used to test for /lib/ld.so.1 and disable shared libraries on 12944 # powerpc, because MkLinux only supported shared libraries with the 12945 # GNU dynamic linker. Since this was broken with cross compilers, 12946 # most powerpc-linux boxes support dynamic linking these days and 12947 # people can always --disable-shared, the test was removed, and we 12948 # assume the GNU/Linux dynamic linker is in use. 12949 dynamic_linker='GNU/Linux ld.so' 12950 ;; 12951 12952netbsd*) 12953 version_type=sunos 12954 need_lib_prefix=no 12955 need_version=no 12956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12959 dynamic_linker='NetBSD (a.out) ld.so' 12960 else 12961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12962 soname_spec='${libname}${release}${shared_ext}$major' 12963 dynamic_linker='NetBSD ld.elf_so' 12964 fi 12965 shlibpath_var=LD_LIBRARY_PATH 12966 shlibpath_overrides_runpath=yes 12967 hardcode_into_libs=yes 12968 ;; 12969 12970newsos6) 12971 version_type=linux 12972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12973 shlibpath_var=LD_LIBRARY_PATH 12974 shlibpath_overrides_runpath=yes 12975 ;; 12976 12977nto-qnx*) 12978 version_type=linux 12979 need_lib_prefix=no 12980 need_version=no 12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12982 soname_spec='${libname}${release}${shared_ext}$major' 12983 shlibpath_var=LD_LIBRARY_PATH 12984 shlibpath_overrides_runpath=yes 12985 ;; 12986 12987openbsd*) 12988 version_type=sunos 12989 sys_lib_dlsearch_path_spec="/usr/lib" 12990 need_lib_prefix=no 12991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12992 case $host_os in 12993 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12994 *) need_version=no ;; 12995 esac 12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12998 shlibpath_var=LD_LIBRARY_PATH 12999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13000 case $host_os in 13001 openbsd2.[89] | openbsd2.[89].*) 13002 shlibpath_overrides_runpath=no 13003 ;; 13004 *) 13005 shlibpath_overrides_runpath=yes 13006 ;; 13007 esac 13008 else 13009 shlibpath_overrides_runpath=yes 13010 fi 13011 ;; 13012 13013os2*) 13014 libname_spec='$name' 13015 shrext_cmds=".dll" 13016 need_lib_prefix=no 13017 library_names_spec='$libname${shared_ext} $libname.a' 13018 dynamic_linker='OS/2 ld.exe' 13019 shlibpath_var=LIBPATH 13020 ;; 13021 13022osf3* | osf4* | osf5*) 13023 version_type=osf 13024 need_lib_prefix=no 13025 need_version=no 13026 soname_spec='${libname}${release}${shared_ext}$major' 13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13028 shlibpath_var=LD_LIBRARY_PATH 13029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13031 ;; 13032 13033rdos*) 13034 dynamic_linker=no 13035 ;; 13036 13037solaris*) 13038 version_type=linux 13039 need_lib_prefix=no 13040 need_version=no 13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13042 soname_spec='${libname}${release}${shared_ext}$major' 13043 shlibpath_var=LD_LIBRARY_PATH 13044 shlibpath_overrides_runpath=yes 13045 hardcode_into_libs=yes 13046 # ldd complains unless libraries are executable 13047 postinstall_cmds='chmod +x $lib' 13048 ;; 13049 13050sunos4*) 13051 version_type=sunos 13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13054 shlibpath_var=LD_LIBRARY_PATH 13055 shlibpath_overrides_runpath=yes 13056 if test "$with_gnu_ld" = yes; then 13057 need_lib_prefix=no 13058 fi 13059 need_version=yes 13060 ;; 13061 13062sysv4 | sysv4.3*) 13063 version_type=linux 13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13065 soname_spec='${libname}${release}${shared_ext}$major' 13066 shlibpath_var=LD_LIBRARY_PATH 13067 case $host_vendor in 13068 sni) 13069 shlibpath_overrides_runpath=no 13070 need_lib_prefix=no 13071 export_dynamic_flag_spec='${wl}-Blargedynsym' 13072 runpath_var=LD_RUN_PATH 13073 ;; 13074 siemens) 13075 need_lib_prefix=no 13076 ;; 13077 motorola) 13078 need_lib_prefix=no 13079 need_version=no 13080 shlibpath_overrides_runpath=no 13081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13082 ;; 13083 esac 13084 ;; 13085 13086sysv4*MP*) 13087 if test -d /usr/nec ;then 13088 version_type=linux 13089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13090 soname_spec='$libname${shared_ext}.$major' 13091 shlibpath_var=LD_LIBRARY_PATH 13092 fi 13093 ;; 13094 13095sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13096 version_type=freebsd-elf 13097 need_lib_prefix=no 13098 need_version=no 13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13100 soname_spec='${libname}${release}${shared_ext}$major' 13101 shlibpath_var=LD_LIBRARY_PATH 13102 hardcode_into_libs=yes 13103 if test "$with_gnu_ld" = yes; then 13104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13105 shlibpath_overrides_runpath=no 13106 else 13107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13108 shlibpath_overrides_runpath=yes 13109 case $host_os in 13110 sco3.2v5*) 13111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13112 ;; 13113 esac 13114 fi 13115 sys_lib_dlsearch_path_spec='/usr/lib' 13116 ;; 13117 13118uts4*) 13119 version_type=linux 13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13121 soname_spec='${libname}${release}${shared_ext}$major' 13122 shlibpath_var=LD_LIBRARY_PATH 13123 ;; 13124 13125*) 13126 dynamic_linker=no 13127 ;; 13128esac 13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13130$as_echo "$dynamic_linker" >&6; } 13131test "$dynamic_linker" = no && can_build_shared=no 13132 13133if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 13134 $as_echo_n "(cached) " >&6 13135else 13136 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13137fi 13138 13139sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13140if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 13141 $as_echo_n "(cached) " >&6 13142else 13143 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13144fi 13145 13146sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13147 13148variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13149if test "$GCC" = yes; then 13150 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13151fi 13152 13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13154$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13155hardcode_action_CXX= 13156if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13157 test -n "$runpath_var_CXX" || \ 13158 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13159 13160 # We can hardcode non-existant directories. 13161 if test "$hardcode_direct_CXX" != no && 13162 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13163 # have to relink, otherwise we might link with an installed library 13164 # when we should be linking with a yet-to-be-installed one 13165 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13166 test "$hardcode_minus_L_CXX" != no; then 13167 # Linking always hardcodes the temporary library directory. 13168 hardcode_action_CXX=relink 13169 else 13170 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13171 hardcode_action_CXX=immediate 13172 fi 13173else 13174 # We cannot hardcode anything, or else we can only hardcode existing 13175 # directories. 13176 hardcode_action_CXX=unsupported 13177fi 13178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 13179$as_echo "$hardcode_action_CXX" >&6; } 13180 13181if test "$hardcode_action_CXX" = relink; then 13182 # Fast installation is not supported 13183 enable_fast_install=no 13184elif test "$shlibpath_overrides_runpath" = yes || 13185 test "$enable_shared" = no; then 13186 # Fast installation is not necessary 13187 enable_fast_install=needless 13188fi 13189 13190 13191# The else clause should only fire when bootstrapping the 13192# libtool distribution, otherwise you forgot to ship ltmain.sh 13193# with your package, and you will get complaints that there are 13194# no rules to generate ltmain.sh. 13195if test -f "$ltmain"; then 13196 # See if we are running on zsh, and set the options which allow our commands through 13197 # without removal of \ escapes. 13198 if test -n "${ZSH_VERSION+set}" ; then 13199 setopt NO_GLOB_SUBST 13200 fi 13201 # Now quote all the things that may contain metacharacters while being 13202 # careful not to overquote the AC_SUBSTed values. We take copies of the 13203 # variables and quote the copies for generation of the libtool script. 13204 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13205 SED SHELL STRIP \ 13206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13208 deplibs_check_method reload_flag reload_cmds need_locks \ 13209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13210 lt_cv_sys_global_symbol_to_c_name_address \ 13211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13212 old_postinstall_cmds old_postuninstall_cmds \ 13213 compiler_CXX \ 13214 CC_CXX \ 13215 LD_CXX \ 13216 lt_prog_compiler_wl_CXX \ 13217 lt_prog_compiler_pic_CXX \ 13218 lt_prog_compiler_static_CXX \ 13219 lt_prog_compiler_no_builtin_flag_CXX \ 13220 export_dynamic_flag_spec_CXX \ 13221 thread_safe_flag_spec_CXX \ 13222 whole_archive_flag_spec_CXX \ 13223 enable_shared_with_static_runtimes_CXX \ 13224 old_archive_cmds_CXX \ 13225 old_archive_from_new_cmds_CXX \ 13226 predep_objects_CXX \ 13227 postdep_objects_CXX \ 13228 predeps_CXX \ 13229 postdeps_CXX \ 13230 compiler_lib_search_path_CXX \ 13231 compiler_lib_search_dirs_CXX \ 13232 archive_cmds_CXX \ 13233 archive_expsym_cmds_CXX \ 13234 postinstall_cmds_CXX \ 13235 postuninstall_cmds_CXX \ 13236 old_archive_from_expsyms_cmds_CXX \ 13237 allow_undefined_flag_CXX \ 13238 no_undefined_flag_CXX \ 13239 export_symbols_cmds_CXX \ 13240 hardcode_libdir_flag_spec_CXX \ 13241 hardcode_libdir_flag_spec_ld_CXX \ 13242 hardcode_libdir_separator_CXX \ 13243 hardcode_automatic_CXX \ 13244 module_cmds_CXX \ 13245 module_expsym_cmds_CXX \ 13246 lt_cv_prog_compiler_c_o_CXX \ 13247 fix_srcfile_path_CXX \ 13248 exclude_expsyms_CXX \ 13249 include_expsyms_CXX; do 13250 13251 case $var in 13252 old_archive_cmds_CXX | \ 13253 old_archive_from_new_cmds_CXX | \ 13254 archive_cmds_CXX | \ 13255 archive_expsym_cmds_CXX | \ 13256 module_cmds_CXX | \ 13257 module_expsym_cmds_CXX | \ 13258 old_archive_from_expsyms_cmds_CXX | \ 13259 export_symbols_cmds_CXX | \ 13260 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13261 postinstall_cmds | postuninstall_cmds | \ 13262 old_postinstall_cmds | old_postuninstall_cmds | \ 13263 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13264 # Double-quote double-evaled strings. 13265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13266 ;; 13267 *) 13268 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13269 ;; 13270 esac 13271 done 13272 13273 case $lt_echo in 13274 *'\$0 --fallback-echo"') 13275 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13276 ;; 13277 esac 13278 13279cfgfile="$ofile" 13280 13281 cat <<__EOF__ >> "$cfgfile" 13282# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13283 13284# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13285 13286# Shell to use when invoking shell scripts. 13287SHELL=$lt_SHELL 13288 13289# Whether or not to build shared libraries. 13290build_libtool_libs=$enable_shared 13291 13292# Whether or not to build static libraries. 13293build_old_libs=$enable_static 13294 13295# Whether or not to add -lc for building shared libraries. 13296build_libtool_need_lc=$archive_cmds_need_lc_CXX 13297 13298# Whether or not to disallow shared libs when runtime libs are static 13299allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13300 13301# Whether or not to optimize for fast installation. 13302fast_install=$enable_fast_install 13303 13304# The host system. 13305host_alias=$host_alias 13306host=$host 13307host_os=$host_os 13308 13309# The build system. 13310build_alias=$build_alias 13311build=$build 13312build_os=$build_os 13313 13314# An echo program that does not interpret backslashes. 13315echo=$lt_echo 13316 13317# The archiver. 13318AR=$lt_AR 13319AR_FLAGS=$lt_AR_FLAGS 13320 13321# A C compiler. 13322LTCC=$lt_LTCC 13323 13324# LTCC compiler flags. 13325LTCFLAGS=$lt_LTCFLAGS 13326 13327# A language-specific compiler. 13328CC=$lt_compiler_CXX 13329 13330# Is the compiler the GNU C compiler? 13331with_gcc=$GCC_CXX 13332 13333# An ERE matcher. 13334EGREP=$lt_EGREP 13335 13336# The linker used to build libraries. 13337LD=$lt_LD_CXX 13338 13339# Whether we need hard or soft links. 13340LN_S=$lt_LN_S 13341 13342# A BSD-compatible nm program. 13343NM=$lt_NM 13344 13345# A symbol stripping program 13346STRIP=$lt_STRIP 13347 13348# Used to examine libraries when file_magic_cmd begins "file" 13349MAGIC_CMD=$MAGIC_CMD 13350 13351# Used on cygwin: DLL creation program. 13352DLLTOOL="$DLLTOOL" 13353 13354# Used on cygwin: object dumper. 13355OBJDUMP="$OBJDUMP" 13356 13357# Used on cygwin: assembler. 13358AS="$AS" 13359 13360# The name of the directory that contains temporary libtool files. 13361objdir=$objdir 13362 13363# How to create reloadable object files. 13364reload_flag=$lt_reload_flag 13365reload_cmds=$lt_reload_cmds 13366 13367# How to pass a linker flag through the compiler. 13368wl=$lt_lt_prog_compiler_wl_CXX 13369 13370# Object file suffix (normally "o"). 13371objext="$ac_objext" 13372 13373# Old archive suffix (normally "a"). 13374libext="$libext" 13375 13376# Shared library suffix (normally ".so"). 13377shrext_cmds='$shrext_cmds' 13378 13379# Executable file suffix (normally ""). 13380exeext="$exeext" 13381 13382# Additional compiler flags for building library objects. 13383pic_flag=$lt_lt_prog_compiler_pic_CXX 13384pic_mode=$pic_mode 13385 13386# What is the maximum length of a command? 13387max_cmd_len=$lt_cv_sys_max_cmd_len 13388 13389# Does compiler simultaneously support -c and -o options? 13390compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13391 13392# Must we lock files when doing compilation? 13393need_locks=$lt_need_locks 13394 13395# Do we need the lib prefix for modules? 13396need_lib_prefix=$need_lib_prefix 13397 13398# Do we need a version for libraries? 13399need_version=$need_version 13400 13401# Whether dlopen is supported. 13402dlopen_support=$enable_dlopen 13403 13404# Whether dlopen of programs is supported. 13405dlopen_self=$enable_dlopen_self 13406 13407# Whether dlopen of statically linked programs is supported. 13408dlopen_self_static=$enable_dlopen_self_static 13409 13410# Compiler flag to prevent dynamic linking. 13411link_static_flag=$lt_lt_prog_compiler_static_CXX 13412 13413# Compiler flag to turn off builtin functions. 13414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13415 13416# Compiler flag to allow reflexive dlopens. 13417export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13418 13419# Compiler flag to generate shared objects directly from archives. 13420whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13421 13422# Compiler flag to generate thread-safe objects. 13423thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13424 13425# Library versioning type. 13426version_type=$version_type 13427 13428# Format of library name prefix. 13429libname_spec=$lt_libname_spec 13430 13431# List of archive names. First name is the real one, the rest are links. 13432# The last name is the one that the linker finds with -lNAME. 13433library_names_spec=$lt_library_names_spec 13434 13435# The coded name of the library, if different from the real name. 13436soname_spec=$lt_soname_spec 13437 13438# Commands used to build and install an old-style archive. 13439RANLIB=$lt_RANLIB 13440old_archive_cmds=$lt_old_archive_cmds_CXX 13441old_postinstall_cmds=$lt_old_postinstall_cmds 13442old_postuninstall_cmds=$lt_old_postuninstall_cmds 13443 13444# Create an old-style archive from a shared archive. 13445old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13446 13447# Create a temporary old-style archive to link instead of a shared archive. 13448old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13449 13450# Commands used to build and install a shared archive. 13451archive_cmds=$lt_archive_cmds_CXX 13452archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13453postinstall_cmds=$lt_postinstall_cmds 13454postuninstall_cmds=$lt_postuninstall_cmds 13455 13456# Commands used to build a loadable module (assumed same as above if empty) 13457module_cmds=$lt_module_cmds_CXX 13458module_expsym_cmds=$lt_module_expsym_cmds_CXX 13459 13460# Commands to strip libraries. 13461old_striplib=$lt_old_striplib 13462striplib=$lt_striplib 13463 13464# Dependencies to place before the objects being linked to create a 13465# shared library. 13466predep_objects=$lt_predep_objects_CXX 13467 13468# Dependencies to place after the objects being linked to create a 13469# shared library. 13470postdep_objects=$lt_postdep_objects_CXX 13471 13472# Dependencies to place before the objects being linked to create a 13473# shared library. 13474predeps=$lt_predeps_CXX 13475 13476# Dependencies to place after the objects being linked to create a 13477# shared library. 13478postdeps=$lt_postdeps_CXX 13479 13480# The directories searched by this compiler when creating a shared 13481# library 13482compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 13483 13484# The library search path used internally by the compiler when linking 13485# a shared library. 13486compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13487 13488# Method to check whether dependent libraries are shared objects. 13489deplibs_check_method=$lt_deplibs_check_method 13490 13491# Command to use when deplibs_check_method == file_magic. 13492file_magic_cmd=$lt_file_magic_cmd 13493 13494# Flag that allows shared libraries with undefined symbols to be built. 13495allow_undefined_flag=$lt_allow_undefined_flag_CXX 13496 13497# Flag that forces no undefined symbols. 13498no_undefined_flag=$lt_no_undefined_flag_CXX 13499 13500# Commands used to finish a libtool library installation in a directory. 13501finish_cmds=$lt_finish_cmds 13502 13503# Same as above, but a single script fragment to be evaled but not shown. 13504finish_eval=$lt_finish_eval 13505 13506# Take the output of nm and produce a listing of raw symbols and C names. 13507global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13508 13509# Transform the output of nm in a proper C declaration 13510global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13511 13512# Transform the output of nm in a C name address pair 13513global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13514 13515# This is the shared library runtime path variable. 13516runpath_var=$runpath_var 13517 13518# This is the shared library path variable. 13519shlibpath_var=$shlibpath_var 13520 13521# Is shlibpath searched before the hard-coded library search path? 13522shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13523 13524# How to hardcode a shared library path into an executable. 13525hardcode_action=$hardcode_action_CXX 13526 13527# Whether we should hardcode library paths into libraries. 13528hardcode_into_libs=$hardcode_into_libs 13529 13530# Flag to hardcode \$libdir into a binary during linking. 13531# This must work even if \$libdir does not exist. 13532hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13533 13534# If ld is used when linking, flag to hardcode \$libdir into 13535# a binary during linking. This must work even if \$libdir does 13536# not exist. 13537hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13538 13539# Whether we need a single -rpath flag with a separated argument. 13540hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13541 13542# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13543# resulting binary. 13544hardcode_direct=$hardcode_direct_CXX 13545 13546# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13547# resulting binary. 13548hardcode_minus_L=$hardcode_minus_L_CXX 13549 13550# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13551# the resulting binary. 13552hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13553 13554# Set to yes if building a shared library automatically hardcodes DIR into the library 13555# and all subsequent libraries and executables linked against it. 13556hardcode_automatic=$hardcode_automatic_CXX 13557 13558# Variables whose values should be saved in libtool wrapper scripts and 13559# restored at relink time. 13560variables_saved_for_relink="$variables_saved_for_relink" 13561 13562# Whether libtool must link a program against all its dependency libraries. 13563link_all_deplibs=$link_all_deplibs_CXX 13564 13565# Compile-time system search path for libraries 13566sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13567 13568# Run-time system search path for libraries 13569sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13570 13571# Fix the shell variable \$srcfile for the compiler. 13572fix_srcfile_path=$lt_fix_srcfile_path 13573 13574# Set to yes if exported symbols are required. 13575always_export_symbols=$always_export_symbols_CXX 13576 13577# The commands to list exported symbols. 13578export_symbols_cmds=$lt_export_symbols_cmds_CXX 13579 13580# The commands to extract the exported symbol list from a shared archive. 13581extract_expsyms_cmds=$lt_extract_expsyms_cmds 13582 13583# Symbols that should not be listed in the preloaded symbols. 13584exclude_expsyms=$lt_exclude_expsyms_CXX 13585 13586# Symbols that must always be exported. 13587include_expsyms=$lt_include_expsyms_CXX 13588 13589# ### END LIBTOOL TAG CONFIG: $tagname 13590 13591__EOF__ 13592 13593 13594else 13595 # If there is no Makefile yet, we rely on a make rule to execute 13596 # `config.status --recheck' to rerun these tests and create the 13597 # libtool script then. 13598 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13599 if test -f "$ltmain_in"; then 13600 test -f Makefile && make "$ltmain" 13601 fi 13602fi 13603 13604 13605ac_ext=c 13606ac_cpp='$CPP $CPPFLAGS' 13607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13609ac_compiler_gnu=$ac_cv_c_compiler_gnu 13610 13611CC=$lt_save_CC 13612LDCXX=$LD 13613LD=$lt_save_LD 13614GCC=$lt_save_GCC 13615with_gnu_ldcxx=$with_gnu_ld 13616with_gnu_ld=$lt_save_with_gnu_ld 13617lt_cv_path_LDCXX=$lt_cv_path_LD 13618lt_cv_path_LD=$lt_save_path_LD 13619lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13620lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13621 13622 else 13623 tagname="" 13624 fi 13625 ;; 13626 13627 F77) 13628 if test -n "$F77" && test "X$F77" != "Xno"; then 13629 13630ac_ext=f 13631ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13632ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13633ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13634 13635 13636archive_cmds_need_lc_F77=no 13637allow_undefined_flag_F77= 13638always_export_symbols_F77=no 13639archive_expsym_cmds_F77= 13640export_dynamic_flag_spec_F77= 13641hardcode_direct_F77=no 13642hardcode_libdir_flag_spec_F77= 13643hardcode_libdir_flag_spec_ld_F77= 13644hardcode_libdir_separator_F77= 13645hardcode_minus_L_F77=no 13646hardcode_automatic_F77=no 13647module_cmds_F77= 13648module_expsym_cmds_F77= 13649link_all_deplibs_F77=unknown 13650old_archive_cmds_F77=$old_archive_cmds 13651no_undefined_flag_F77= 13652whole_archive_flag_spec_F77= 13653enable_shared_with_static_runtimes_F77=no 13654 13655# Source file extension for f77 test sources. 13656ac_ext=f 13657 13658# Object file extension for compiled f77 test sources. 13659objext=o 13660objext_F77=$objext 13661 13662# Code to be used in simple compile tests 13663lt_simple_compile_test_code="\ 13664 subroutine t 13665 return 13666 end 13667" 13668 13669# Code to be used in simple link tests 13670lt_simple_link_test_code="\ 13671 program t 13672 end 13673" 13674 13675# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13676 13677# If no C compiler was specified, use CC. 13678LTCC=${LTCC-"$CC"} 13679 13680# If no C compiler flags were specified, use CFLAGS. 13681LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13682 13683# Allow CC to be a program name with arguments. 13684compiler=$CC 13685 13686 13687# save warnings/boilerplate of simple test code 13688ac_outfile=conftest.$ac_objext 13689echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13690eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13691_lt_compiler_boilerplate=`cat conftest.err` 13692$rm conftest* 13693 13694ac_outfile=conftest.$ac_objext 13695echo "$lt_simple_link_test_code" >conftest.$ac_ext 13696eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13697_lt_linker_boilerplate=`cat conftest.err` 13698$rm -r conftest* 13699 13700 13701# Allow CC to be a program name with arguments. 13702lt_save_CC="$CC" 13703CC=${F77-"f77"} 13704compiler=$CC 13705compiler_F77=$CC 13706for cc_temp in $compiler""; do 13707 case $cc_temp in 13708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13710 \-*) ;; 13711 *) break;; 13712 esac 13713done 13714cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13715 13716 13717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13718$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13720$as_echo "$can_build_shared" >&6; } 13721 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13723$as_echo_n "checking whether to build shared libraries... " >&6; } 13724test "$can_build_shared" = "no" && enable_shared=no 13725 13726# On AIX, shared libraries and static libraries use the same namespace, and 13727# are all built from PIC. 13728case $host_os in 13729aix3*) 13730 test "$enable_shared" = yes && enable_static=no 13731 if test -n "$RANLIB"; then 13732 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13733 postinstall_cmds='$RANLIB $lib' 13734 fi 13735 ;; 13736aix[4-9]*) 13737 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13738 test "$enable_shared" = yes && enable_static=no 13739 fi 13740 ;; 13741esac 13742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13743$as_echo "$enable_shared" >&6; } 13744 13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13746$as_echo_n "checking whether to build static libraries... " >&6; } 13747# Make sure either enable_shared or enable_static is yes. 13748test "$enable_shared" = yes || enable_static=yes 13749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13750$as_echo "$enable_static" >&6; } 13751 13752GCC_F77="$G77" 13753LD_F77="$LD" 13754 13755lt_prog_compiler_wl_F77= 13756lt_prog_compiler_pic_F77= 13757lt_prog_compiler_static_F77= 13758 13759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13760$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13761 13762 if test "$GCC" = yes; then 13763 lt_prog_compiler_wl_F77='-Wl,' 13764 lt_prog_compiler_static_F77='-static' 13765 13766 case $host_os in 13767 aix*) 13768 # All AIX code is PIC. 13769 if test "$host_cpu" = ia64; then 13770 # AIX 5 now supports IA64 processor 13771 lt_prog_compiler_static_F77='-Bstatic' 13772 fi 13773 ;; 13774 13775 amigaos*) 13776 # FIXME: we need at least 68020 code to build shared libraries, but 13777 # adding the `-m68020' flag to GCC prevents building anything better, 13778 # like `-m68040'. 13779 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13780 ;; 13781 13782 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13783 # PIC is the default for these OSes. 13784 ;; 13785 13786 mingw* | cygwin* | pw32* | os2*) 13787 # This hack is so that the source file can tell whether it is being 13788 # built for inclusion in a dll (and should export symbols for example). 13789 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13790 # (--disable-auto-import) libraries 13791 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13792 ;; 13793 13794 darwin* | rhapsody*) 13795 # PIC is the default on this platform 13796 # Common symbols not allowed in MH_DYLIB files 13797 lt_prog_compiler_pic_F77='-fno-common' 13798 ;; 13799 13800 interix[3-9]*) 13801 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13802 # Instead, we relocate shared libraries at runtime. 13803 ;; 13804 13805 msdosdjgpp*) 13806 # Just because we use GCC doesn't mean we suddenly get shared libraries 13807 # on systems that don't support them. 13808 lt_prog_compiler_can_build_shared_F77=no 13809 enable_shared=no 13810 ;; 13811 13812 sysv4*MP*) 13813 if test -d /usr/nec; then 13814 lt_prog_compiler_pic_F77=-Kconform_pic 13815 fi 13816 ;; 13817 13818 hpux*) 13819 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13820 # not for PA HP-UX. 13821 case $host_cpu in 13822 hppa*64*|ia64*) 13823 # +Z the default 13824 ;; 13825 *) 13826 lt_prog_compiler_pic_F77='-fPIC' 13827 ;; 13828 esac 13829 ;; 13830 13831 *) 13832 lt_prog_compiler_pic_F77='-fPIC' 13833 ;; 13834 esac 13835 else 13836 # PORTME Check for flag to pass linker flags through the system compiler. 13837 case $host_os in 13838 aix*) 13839 lt_prog_compiler_wl_F77='-Wl,' 13840 if test "$host_cpu" = ia64; then 13841 # AIX 5 now supports IA64 processor 13842 lt_prog_compiler_static_F77='-Bstatic' 13843 else 13844 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13845 fi 13846 ;; 13847 darwin*) 13848 # PIC is the default on this platform 13849 # Common symbols not allowed in MH_DYLIB files 13850 case $cc_basename in 13851 xlc*) 13852 lt_prog_compiler_pic_F77='-qnocommon' 13853 lt_prog_compiler_wl_F77='-Wl,' 13854 ;; 13855 esac 13856 ;; 13857 13858 mingw* | cygwin* | pw32* | os2*) 13859 # This hack is so that the source file can tell whether it is being 13860 # built for inclusion in a dll (and should export symbols for example). 13861 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13862 ;; 13863 13864 hpux9* | hpux10* | hpux11*) 13865 lt_prog_compiler_wl_F77='-Wl,' 13866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13867 # not for PA HP-UX. 13868 case $host_cpu in 13869 hppa*64*|ia64*) 13870 # +Z the default 13871 ;; 13872 *) 13873 lt_prog_compiler_pic_F77='+Z' 13874 ;; 13875 esac 13876 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13877 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13878 ;; 13879 13880 irix5* | irix6* | nonstopux*) 13881 lt_prog_compiler_wl_F77='-Wl,' 13882 # PIC (with -KPIC) is the default. 13883 lt_prog_compiler_static_F77='-non_shared' 13884 ;; 13885 13886 newsos6) 13887 lt_prog_compiler_pic_F77='-KPIC' 13888 lt_prog_compiler_static_F77='-Bstatic' 13889 ;; 13890 13891 linux* | k*bsd*-gnu) 13892 case $cc_basename in 13893 icc* | ecc*) 13894 lt_prog_compiler_wl_F77='-Wl,' 13895 lt_prog_compiler_pic_F77='-KPIC' 13896 lt_prog_compiler_static_F77='-static' 13897 ;; 13898 pgcc* | pgf77* | pgf90* | pgf95*) 13899 # Portland Group compilers (*not* the Pentium gcc compiler, 13900 # which looks to be a dead project) 13901 lt_prog_compiler_wl_F77='-Wl,' 13902 lt_prog_compiler_pic_F77='-fpic' 13903 lt_prog_compiler_static_F77='-Bstatic' 13904 ;; 13905 ccc*) 13906 lt_prog_compiler_wl_F77='-Wl,' 13907 # All Alpha code is PIC. 13908 lt_prog_compiler_static_F77='-non_shared' 13909 ;; 13910 *) 13911 case `$CC -V 2>&1 | sed 5q` in 13912 *Sun\ C*) 13913 # Sun C 5.9 13914 lt_prog_compiler_pic_F77='-KPIC' 13915 lt_prog_compiler_static_F77='-Bstatic' 13916 lt_prog_compiler_wl_F77='-Wl,' 13917 ;; 13918 *Sun\ F*) 13919 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13920 lt_prog_compiler_pic_F77='-KPIC' 13921 lt_prog_compiler_static_F77='-Bstatic' 13922 lt_prog_compiler_wl_F77='' 13923 ;; 13924 esac 13925 ;; 13926 esac 13927 ;; 13928 13929 osf3* | osf4* | osf5*) 13930 lt_prog_compiler_wl_F77='-Wl,' 13931 # All OSF/1 code is PIC. 13932 lt_prog_compiler_static_F77='-non_shared' 13933 ;; 13934 13935 rdos*) 13936 lt_prog_compiler_static_F77='-non_shared' 13937 ;; 13938 13939 solaris*) 13940 lt_prog_compiler_pic_F77='-KPIC' 13941 lt_prog_compiler_static_F77='-Bstatic' 13942 case $cc_basename in 13943 f77* | f90* | f95*) 13944 lt_prog_compiler_wl_F77='-Qoption ld ';; 13945 *) 13946 lt_prog_compiler_wl_F77='-Wl,';; 13947 esac 13948 ;; 13949 13950 sunos4*) 13951 lt_prog_compiler_wl_F77='-Qoption ld ' 13952 lt_prog_compiler_pic_F77='-PIC' 13953 lt_prog_compiler_static_F77='-Bstatic' 13954 ;; 13955 13956 sysv4 | sysv4.2uw2* | sysv4.3*) 13957 lt_prog_compiler_wl_F77='-Wl,' 13958 lt_prog_compiler_pic_F77='-KPIC' 13959 lt_prog_compiler_static_F77='-Bstatic' 13960 ;; 13961 13962 sysv4*MP*) 13963 if test -d /usr/nec ;then 13964 lt_prog_compiler_pic_F77='-Kconform_pic' 13965 lt_prog_compiler_static_F77='-Bstatic' 13966 fi 13967 ;; 13968 13969 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13970 lt_prog_compiler_wl_F77='-Wl,' 13971 lt_prog_compiler_pic_F77='-KPIC' 13972 lt_prog_compiler_static_F77='-Bstatic' 13973 ;; 13974 13975 unicos*) 13976 lt_prog_compiler_wl_F77='-Wl,' 13977 lt_prog_compiler_can_build_shared_F77=no 13978 ;; 13979 13980 uts4*) 13981 lt_prog_compiler_pic_F77='-pic' 13982 lt_prog_compiler_static_F77='-Bstatic' 13983 ;; 13984 13985 *) 13986 lt_prog_compiler_can_build_shared_F77=no 13987 ;; 13988 esac 13989 fi 13990 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5 13992$as_echo "$lt_prog_compiler_pic_F77" >&6; } 13993 13994# 13995# Check to make sure the PIC flag actually works. 13996# 13997if test -n "$lt_prog_compiler_pic_F77"; then 13998 13999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14000$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14001if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then : 14002 $as_echo_n "(cached) " >&6 14003else 14004 lt_cv_prog_compiler_pic_works_F77=no 14005 ac_outfile=conftest.$ac_objext 14006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14007 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14008 # Insert the option either (1) after the last *FLAGS variable, or 14009 # (2) before a word containing "conftest.", or (3) at the end. 14010 # Note that $ac_compile itself does not contain backslashes and begins 14011 # with a dollar sign (not a hyphen), so the echo should work correctly. 14012 # The option is referenced via a variable to avoid confusing sed. 14013 lt_compile=`echo "$ac_compile" | $SED \ 14014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14016 -e 's:$: $lt_compiler_flag:'` 14017 (eval echo "\"\$as_me:14017: $lt_compile\"" >&5) 14018 (eval "$lt_compile" 2>conftest.err) 14019 ac_status=$? 14020 cat conftest.err >&5 14021 echo "$as_me:14021: \$? = $ac_status" >&5 14022 if (exit $ac_status) && test -s "$ac_outfile"; then 14023 # The compiler can only warn and ignore the option if not recognized 14024 # So say no if there are warnings other than the usual output. 14025 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14027 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14028 lt_cv_prog_compiler_pic_works_F77=yes 14029 fi 14030 fi 14031 $rm conftest* 14032 14033fi 14034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14035$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14036 14037if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14038 case $lt_prog_compiler_pic_F77 in 14039 "" | " "*) ;; 14040 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14041 esac 14042else 14043 lt_prog_compiler_pic_F77= 14044 lt_prog_compiler_can_build_shared_F77=no 14045fi 14046 14047fi 14048case $host_os in 14049 # For platforms which do not support PIC, -DPIC is meaningless: 14050 *djgpp*) 14051 lt_prog_compiler_pic_F77= 14052 ;; 14053 *) 14054 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14055 ;; 14056esac 14057 14058# 14059# Check to make sure the static flag actually works. 14060# 14061wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14063$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14064if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then : 14065 $as_echo_n "(cached) " >&6 14066else 14067 lt_cv_prog_compiler_static_works_F77=no 14068 save_LDFLAGS="$LDFLAGS" 14069 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14070 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14072 # The linker can only warn and ignore the option if not recognized 14073 # So say no if there are warnings 14074 if test -s conftest.err; then 14075 # Append any errors to the config.log. 14076 cat conftest.err 1>&5 14077 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14079 if diff conftest.exp conftest.er2 >/dev/null; then 14080 lt_cv_prog_compiler_static_works_F77=yes 14081 fi 14082 else 14083 lt_cv_prog_compiler_static_works_F77=yes 14084 fi 14085 fi 14086 $rm -r conftest* 14087 LDFLAGS="$save_LDFLAGS" 14088 14089fi 14090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 14091$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14092 14093if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14094 : 14095else 14096 lt_prog_compiler_static_F77= 14097fi 14098 14099 14100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14101$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14102if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then : 14103 $as_echo_n "(cached) " >&6 14104else 14105 lt_cv_prog_compiler_c_o_F77=no 14106 $rm -r conftest 2>/dev/null 14107 mkdir conftest 14108 cd conftest 14109 mkdir out 14110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14111 14112 lt_compiler_flag="-o out/conftest2.$ac_objext" 14113 # Insert the option either (1) after the last *FLAGS variable, or 14114 # (2) before a word containing "conftest.", or (3) at the end. 14115 # Note that $ac_compile itself does not contain backslashes and begins 14116 # with a dollar sign (not a hyphen), so the echo should work correctly. 14117 lt_compile=`echo "$ac_compile" | $SED \ 14118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14120 -e 's:$: $lt_compiler_flag:'` 14121 (eval echo "\"\$as_me:14121: $lt_compile\"" >&5) 14122 (eval "$lt_compile" 2>out/conftest.err) 14123 ac_status=$? 14124 cat out/conftest.err >&5 14125 echo "$as_me:14125: \$? = $ac_status" >&5 14126 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14127 then 14128 # The compiler can only warn and ignore the option if not recognized 14129 # So say no if there are warnings 14130 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14133 lt_cv_prog_compiler_c_o_F77=yes 14134 fi 14135 fi 14136 chmod u+w . 2>&5 14137 $rm conftest* 14138 # SGI C++ compiler will create directory out/ii_files/ for 14139 # template instantiation 14140 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14141 $rm out/* && rmdir out 14142 cd .. 14143 rmdir conftest 14144 $rm conftest* 14145 14146fi 14147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 14148$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14149 14150 14151hard_links="nottested" 14152if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14153 # do not overwrite the value of need_locks provided by the user 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14155$as_echo_n "checking if we can lock with hard links... " >&6; } 14156 hard_links=yes 14157 $rm conftest* 14158 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14159 touch conftest.a 14160 ln conftest.a conftest.b 2>&5 || hard_links=no 14161 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14163$as_echo "$hard_links" >&6; } 14164 if test "$hard_links" = no; then 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14166$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14167 need_locks=warn 14168 fi 14169else 14170 need_locks=no 14171fi 14172 14173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14174$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14175 14176 runpath_var= 14177 allow_undefined_flag_F77= 14178 enable_shared_with_static_runtimes_F77=no 14179 archive_cmds_F77= 14180 archive_expsym_cmds_F77= 14181 old_archive_From_new_cmds_F77= 14182 old_archive_from_expsyms_cmds_F77= 14183 export_dynamic_flag_spec_F77= 14184 whole_archive_flag_spec_F77= 14185 thread_safe_flag_spec_F77= 14186 hardcode_libdir_flag_spec_F77= 14187 hardcode_libdir_flag_spec_ld_F77= 14188 hardcode_libdir_separator_F77= 14189 hardcode_direct_F77=no 14190 hardcode_minus_L_F77=no 14191 hardcode_shlibpath_var_F77=unsupported 14192 link_all_deplibs_F77=unknown 14193 hardcode_automatic_F77=no 14194 module_cmds_F77= 14195 module_expsym_cmds_F77= 14196 always_export_symbols_F77=no 14197 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14198 # include_expsyms should be a list of space-separated symbols to be *always* 14199 # included in the symbol list 14200 include_expsyms_F77= 14201 # exclude_expsyms can be an extended regexp of symbols to exclude 14202 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14203 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14204 # as well as any symbol that contains `d'. 14205 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14206 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14207 # platforms (ab)use it in PIC code, but their linkers get confused if 14208 # the symbol is explicitly referenced. Since portable code cannot 14209 # rely on this symbol name, it's probably fine to never include it in 14210 # preloaded symbol tables. 14211 # Exclude shared library initialization/finalization symbols. 14212 extract_expsyms_cmds= 14213 # Just being paranoid about ensuring that cc_basename is set. 14214 for cc_temp in $compiler""; do 14215 case $cc_temp in 14216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14218 \-*) ;; 14219 *) break;; 14220 esac 14221done 14222cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14223 14224 case $host_os in 14225 cygwin* | mingw* | pw32*) 14226 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14227 # When not using gcc, we currently assume that we are using 14228 # Microsoft Visual C++. 14229 if test "$GCC" != yes; then 14230 with_gnu_ld=no 14231 fi 14232 ;; 14233 interix*) 14234 # we just hope/assume this is gcc and not c89 (= MSVC++) 14235 with_gnu_ld=yes 14236 ;; 14237 openbsd*) 14238 with_gnu_ld=no 14239 ;; 14240 esac 14241 14242 ld_shlibs_F77=yes 14243 if test "$with_gnu_ld" = yes; then 14244 # If archive_cmds runs LD, not CC, wlarc should be empty 14245 wlarc='${wl}' 14246 14247 # Set some defaults for GNU ld with shared library support. These 14248 # are reset later if shared libraries are not supported. Putting them 14249 # here allows them to be overridden if necessary. 14250 runpath_var=LD_RUN_PATH 14251 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14252 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14253 # ancient GNU ld didn't support --whole-archive et. al. 14254 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14255 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14256 else 14257 whole_archive_flag_spec_F77= 14258 fi 14259 supports_anon_versioning=no 14260 case `$LD -v 2>/dev/null` in 14261 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14262 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14263 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14264 *\ 2.11.*) ;; # other 2.11 versions 14265 *) supports_anon_versioning=yes ;; 14266 esac 14267 14268 # See if GNU ld supports shared libraries. 14269 case $host_os in 14270 aix[3-9]*) 14271 # On AIX/PPC, the GNU linker is very broken 14272 if test "$host_cpu" != ia64; then 14273 ld_shlibs_F77=no 14274 cat <<EOF 1>&2 14275 14276*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14277*** to be unable to reliably create shared libraries on AIX. 14278*** Therefore, libtool is disabling shared libraries support. If you 14279*** really care for shared libraries, you may want to modify your PATH 14280*** so that a non-GNU linker is found, and then restart. 14281 14282EOF 14283 fi 14284 ;; 14285 14286 amigaos*) 14287 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)' 14288 hardcode_libdir_flag_spec_F77='-L$libdir' 14289 hardcode_minus_L_F77=yes 14290 14291 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14292 # that the semantics of dynamic libraries on AmigaOS, at least up 14293 # to version 4, is to share data among multiple programs linked 14294 # with the same dynamic library. Since this doesn't match the 14295 # behavior of shared libraries on other platforms, we can't use 14296 # them. 14297 ld_shlibs_F77=no 14298 ;; 14299 14300 beos*) 14301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14302 allow_undefined_flag_F77=unsupported 14303 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14304 # support --undefined. This deserves some investigation. FIXME 14305 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14306 else 14307 ld_shlibs_F77=no 14308 fi 14309 ;; 14310 14311 cygwin* | mingw* | pw32*) 14312 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14313 # as there is no search path for DLLs. 14314 hardcode_libdir_flag_spec_F77='-L$libdir' 14315 allow_undefined_flag_F77=unsupported 14316 always_export_symbols_F77=no 14317 enable_shared_with_static_runtimes_F77=yes 14318 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14319 14320 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14321 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14322 # If the export-symbols file already is a .def file (1st line 14323 # is EXPORTS), use it as is; otherwise, prepend... 14324 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14325 cp $export_symbols $output_objdir/$soname.def; 14326 else 14327 echo EXPORTS > $output_objdir/$soname.def; 14328 cat $export_symbols >> $output_objdir/$soname.def; 14329 fi~ 14330 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14331 else 14332 ld_shlibs_F77=no 14333 fi 14334 ;; 14335 14336 interix[3-9]*) 14337 hardcode_direct_F77=no 14338 hardcode_shlibpath_var_F77=no 14339 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14340 export_dynamic_flag_spec_F77='${wl}-E' 14341 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14342 # Instead, shared libraries are loaded at an image base (0x10000000 by 14343 # default) and relocated if they conflict, which is a slow very memory 14344 # consuming and fragmenting process. To avoid this, we pick a random, 14345 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14346 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14347 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' 14348 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' 14349 ;; 14350 14351 gnu* | linux* | k*bsd*-gnu) 14352 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14353 tmp_addflag= 14354 case $cc_basename,$host_cpu in 14355 pgcc*) # Portland Group C compiler 14356 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' 14357 tmp_addflag=' $pic_flag' 14358 ;; 14359 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14360 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' 14361 tmp_addflag=' $pic_flag -Mnomain' ;; 14362 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14363 tmp_addflag=' -i_dynamic' ;; 14364 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14365 tmp_addflag=' -i_dynamic -nofor_main' ;; 14366 ifc* | ifort*) # Intel Fortran compiler 14367 tmp_addflag=' -nofor_main' ;; 14368 esac 14369 case `$CC -V 2>&1 | sed 5q` in 14370 *Sun\ C*) # Sun C 5.9 14371 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' 14372 tmp_sharedflag='-G' ;; 14373 *Sun\ F*) # Sun Fortran 8.3 14374 tmp_sharedflag='-G' ;; 14375 *) 14376 tmp_sharedflag='-shared' ;; 14377 esac 14378 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14379 14380 if test $supports_anon_versioning = yes; then 14381 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14383 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14384 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14385 fi 14386 else 14387 ld_shlibs_F77=no 14388 fi 14389 ;; 14390 14391 netbsd*) 14392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14393 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14394 wlarc= 14395 else 14396 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14397 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14398 fi 14399 ;; 14400 14401 solaris*) 14402 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14403 ld_shlibs_F77=no 14404 cat <<EOF 1>&2 14405 14406*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14407*** create shared libraries on Solaris systems. Therefore, libtool 14408*** is disabling shared libraries support. We urge you to upgrade GNU 14409*** binutils to release 2.9.1 or newer. Another option is to modify 14410*** your PATH or compiler configuration so that the native linker is 14411*** used, and then restart. 14412 14413EOF 14414 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14415 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14416 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14417 else 14418 ld_shlibs_F77=no 14419 fi 14420 ;; 14421 14422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14423 case `$LD -v 2>&1` in 14424 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14425 ld_shlibs_F77=no 14426 cat <<_LT_EOF 1>&2 14427 14428*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14429*** reliably create shared libraries on SCO systems. Therefore, libtool 14430*** is disabling shared libraries support. We urge you to upgrade GNU 14431*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14432*** your PATH or compiler configuration so that the native linker is 14433*** used, and then restart. 14434 14435_LT_EOF 14436 ;; 14437 *) 14438 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14439 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14440 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14441 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14442 else 14443 ld_shlibs_F77=no 14444 fi 14445 ;; 14446 esac 14447 ;; 14448 14449 sunos4*) 14450 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14451 wlarc= 14452 hardcode_direct_F77=yes 14453 hardcode_shlibpath_var_F77=no 14454 ;; 14455 14456 *) 14457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14458 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14459 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14460 else 14461 ld_shlibs_F77=no 14462 fi 14463 ;; 14464 esac 14465 14466 if test "$ld_shlibs_F77" = no; then 14467 runpath_var= 14468 hardcode_libdir_flag_spec_F77= 14469 export_dynamic_flag_spec_F77= 14470 whole_archive_flag_spec_F77= 14471 fi 14472 else 14473 # PORTME fill in a description of your system's linker (not GNU ld) 14474 case $host_os in 14475 aix3*) 14476 allow_undefined_flag_F77=unsupported 14477 always_export_symbols_F77=yes 14478 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' 14479 # Note: this linker hardcodes the directories in LIBPATH if there 14480 # are no directories specified by -L. 14481 hardcode_minus_L_F77=yes 14482 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14483 # Neither direct hardcoding nor static linking is supported with a 14484 # broken collect2. 14485 hardcode_direct_F77=unsupported 14486 fi 14487 ;; 14488 14489 aix[4-9]*) 14490 if test "$host_cpu" = ia64; then 14491 # On IA64, the linker does run time linking by default, so we don't 14492 # have to do anything special. 14493 aix_use_runtimelinking=no 14494 exp_sym_flag='-Bexport' 14495 no_entry_flag="" 14496 else 14497 # If we're using GNU nm, then we don't want the "-C" option. 14498 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14499 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14500 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' 14501 else 14502 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' 14503 fi 14504 aix_use_runtimelinking=no 14505 14506 # Test if we are trying to use run time linking or normal 14507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14508 # need to do runtime linking. 14509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14510 for ld_flag in $LDFLAGS; do 14511 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14512 aix_use_runtimelinking=yes 14513 break 14514 fi 14515 done 14516 ;; 14517 esac 14518 14519 exp_sym_flag='-bexport' 14520 no_entry_flag='-bnoentry' 14521 fi 14522 14523 # When large executables or shared objects are built, AIX ld can 14524 # have problems creating the table of contents. If linking a library 14525 # or program results in "error TOC overflow" add -mminimal-toc to 14526 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14527 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14528 14529 archive_cmds_F77='' 14530 hardcode_direct_F77=yes 14531 hardcode_libdir_separator_F77=':' 14532 link_all_deplibs_F77=yes 14533 14534 if test "$GCC" = yes; then 14535 case $host_os in aix4.[012]|aix4.[012].*) 14536 # We only want to do this on AIX 4.2 and lower, the check 14537 # below for broken collect2 doesn't work under 4.3+ 14538 collect2name=`${CC} -print-prog-name=collect2` 14539 if test -f "$collect2name" && \ 14540 strings "$collect2name" | grep resolve_lib_name >/dev/null 14541 then 14542 # We have reworked collect2 14543 : 14544 else 14545 # We have old collect2 14546 hardcode_direct_F77=unsupported 14547 # It fails to find uninstalled libraries when the uninstalled 14548 # path is not listed in the libpath. Setting hardcode_minus_L 14549 # to unsupported forces relinking 14550 hardcode_minus_L_F77=yes 14551 hardcode_libdir_flag_spec_F77='-L$libdir' 14552 hardcode_libdir_separator_F77= 14553 fi 14554 ;; 14555 esac 14556 shared_flag='-shared' 14557 if test "$aix_use_runtimelinking" = yes; then 14558 shared_flag="$shared_flag "'${wl}-G' 14559 fi 14560 else 14561 # not using gcc 14562 if test "$host_cpu" = ia64; then 14563 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14564 # chokes on -Wl,-G. The following line is correct: 14565 shared_flag='-G' 14566 else 14567 if test "$aix_use_runtimelinking" = yes; then 14568 shared_flag='${wl}-G' 14569 else 14570 shared_flag='${wl}-bM:SRE' 14571 fi 14572 fi 14573 fi 14574 14575 # It seems that -bexpall does not export symbols beginning with 14576 # underscore (_), so it is better to generate a list of symbols to export. 14577 always_export_symbols_F77=yes 14578 if test "$aix_use_runtimelinking" = yes; then 14579 # Warning - without using the other runtime loading flags (-brtl), 14580 # -berok will link without error, but may produce a broken library. 14581 allow_undefined_flag_F77='-berok' 14582 # Determine the default libpath from the value encoded in an empty executable. 14583 cat > conftest.$ac_ext <<_ACEOF 14584 program main 14585 14586 end 14587_ACEOF 14588if ac_fn_f77_try_link "$LINENO"; then : 14589 14590lt_aix_libpath_sed=' 14591 /Import File Strings/,/^$/ { 14592 /^0/ { 14593 s/^0 *\(.*\)$/\1/ 14594 p 14595 } 14596 }' 14597aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14598# Check for a 64-bit object if we didn't find anything. 14599if test -z "$aix_libpath"; then 14600 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14601fi 14602fi 14603rm -f core conftest.err conftest.$ac_objext \ 14604 conftest$ac_exeext conftest.$ac_ext 14605if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14606 14607 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14608 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" 14609 else 14610 if test "$host_cpu" = ia64; then 14611 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14612 allow_undefined_flag_F77="-z nodefs" 14613 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" 14614 else 14615 # Determine the default libpath from the value encoded in an empty executable. 14616 cat > conftest.$ac_ext <<_ACEOF 14617 program main 14618 14619 end 14620_ACEOF 14621if ac_fn_f77_try_link "$LINENO"; then : 14622 14623lt_aix_libpath_sed=' 14624 /Import File Strings/,/^$/ { 14625 /^0/ { 14626 s/^0 *\(.*\)$/\1/ 14627 p 14628 } 14629 }' 14630aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14631# Check for a 64-bit object if we didn't find anything. 14632if test -z "$aix_libpath"; then 14633 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14634fi 14635fi 14636rm -f core conftest.err conftest.$ac_objext \ 14637 conftest$ac_exeext conftest.$ac_ext 14638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14639 14640 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14641 # Warning - without using the other run time loading flags, 14642 # -berok will link without error, but may produce a broken library. 14643 no_undefined_flag_F77=' ${wl}-bernotok' 14644 allow_undefined_flag_F77=' ${wl}-berok' 14645 # Exported symbols can be pulled into shared objects from archives 14646 whole_archive_flag_spec_F77='$convenience' 14647 archive_cmds_need_lc_F77=yes 14648 # This is similar to how AIX traditionally builds its shared libraries. 14649 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' 14650 fi 14651 fi 14652 ;; 14653 14654 amigaos*) 14655 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)' 14656 hardcode_libdir_flag_spec_F77='-L$libdir' 14657 hardcode_minus_L_F77=yes 14658 # see comment about different semantics on the GNU ld section 14659 ld_shlibs_F77=no 14660 ;; 14661 14662 bsdi[45]*) 14663 export_dynamic_flag_spec_F77=-rdynamic 14664 ;; 14665 14666 cygwin* | mingw* | pw32*) 14667 # When not using gcc, we currently assume that we are using 14668 # Microsoft Visual C++. 14669 # hardcode_libdir_flag_spec is actually meaningless, as there is 14670 # no search path for DLLs. 14671 hardcode_libdir_flag_spec_F77=' ' 14672 allow_undefined_flag_F77=unsupported 14673 # Tell ltmain to make .lib files, not .a files. 14674 libext=lib 14675 # Tell ltmain to make .dll files, not .so files. 14676 shrext_cmds=".dll" 14677 # FIXME: Setting linknames here is a bad hack. 14678 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14679 # The linker will automatically build a .lib file if we build a DLL. 14680 old_archive_From_new_cmds_F77='true' 14681 # FIXME: Should let the user specify the lib program. 14682 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14683 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14684 enable_shared_with_static_runtimes_F77=yes 14685 ;; 14686 14687 darwin* | rhapsody*) 14688 case $host_os in 14689 rhapsody* | darwin1.[012]) 14690 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14691 ;; 14692 *) # Darwin 1.3 on 14693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14694 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14695 else 14696 case ${MACOSX_DEPLOYMENT_TARGET} in 14697 10.[012]) 14698 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14699 ;; 14700 10.*) 14701 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14702 ;; 14703 esac 14704 fi 14705 ;; 14706 esac 14707 archive_cmds_need_lc_F77=no 14708 hardcode_direct_F77=no 14709 hardcode_automatic_F77=yes 14710 hardcode_shlibpath_var_F77=unsupported 14711 whole_archive_flag_spec_F77='' 14712 link_all_deplibs_F77=yes 14713 if test "$GCC" = yes ; then 14714 output_verbose_link_cmd='echo' 14715 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}" 14716 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14717 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}" 14718 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}" 14719 else 14720 case $cc_basename in 14721 xlc*) 14722 output_verbose_link_cmd='echo' 14723 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14724 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14726 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}' 14727 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}' 14728 ;; 14729 *) 14730 ld_shlibs_F77=no 14731 ;; 14732 esac 14733 fi 14734 ;; 14735 14736 dgux*) 14737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14738 hardcode_libdir_flag_spec_F77='-L$libdir' 14739 hardcode_shlibpath_var_F77=no 14740 ;; 14741 14742 freebsd1*) 14743 ld_shlibs_F77=no 14744 ;; 14745 14746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14747 # support. Future versions do this automatically, but an explicit c++rt0.o 14748 # does not break anything, and helps significantly (at the cost of a little 14749 # extra space). 14750 freebsd2.2*) 14751 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14752 hardcode_libdir_flag_spec_F77='-R$libdir' 14753 hardcode_direct_F77=yes 14754 hardcode_shlibpath_var_F77=no 14755 ;; 14756 14757 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14758 freebsd2*) 14759 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14760 hardcode_direct_F77=yes 14761 hardcode_minus_L_F77=yes 14762 hardcode_shlibpath_var_F77=no 14763 ;; 14764 14765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14766 freebsd* | dragonfly*) 14767 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14768 hardcode_libdir_flag_spec_F77='-R$libdir' 14769 hardcode_direct_F77=yes 14770 hardcode_shlibpath_var_F77=no 14771 ;; 14772 14773 hpux9*) 14774 if test "$GCC" = yes; then 14775 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' 14776 else 14777 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' 14778 fi 14779 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14780 hardcode_libdir_separator_F77=: 14781 hardcode_direct_F77=yes 14782 14783 # hardcode_minus_L: Not really in the search PATH, 14784 # but as the default location of the library. 14785 hardcode_minus_L_F77=yes 14786 export_dynamic_flag_spec_F77='${wl}-E' 14787 ;; 14788 14789 hpux10*) 14790 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14791 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14792 else 14793 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14794 fi 14795 if test "$with_gnu_ld" = no; then 14796 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14797 hardcode_libdir_separator_F77=: 14798 14799 hardcode_direct_F77=yes 14800 export_dynamic_flag_spec_F77='${wl}-E' 14801 14802 # hardcode_minus_L: Not really in the search PATH, 14803 # but as the default location of the library. 14804 hardcode_minus_L_F77=yes 14805 fi 14806 ;; 14807 14808 hpux11*) 14809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14810 case $host_cpu in 14811 hppa*64*) 14812 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14813 ;; 14814 ia64*) 14815 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14816 ;; 14817 *) 14818 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14819 ;; 14820 esac 14821 else 14822 case $host_cpu in 14823 hppa*64*) 14824 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14825 ;; 14826 ia64*) 14827 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14828 ;; 14829 *) 14830 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14831 ;; 14832 esac 14833 fi 14834 if test "$with_gnu_ld" = no; then 14835 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14836 hardcode_libdir_separator_F77=: 14837 14838 case $host_cpu in 14839 hppa*64*|ia64*) 14840 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14841 hardcode_direct_F77=no 14842 hardcode_shlibpath_var_F77=no 14843 ;; 14844 *) 14845 hardcode_direct_F77=yes 14846 export_dynamic_flag_spec_F77='${wl}-E' 14847 14848 # hardcode_minus_L: Not really in the search PATH, 14849 # but as the default location of the library. 14850 hardcode_minus_L_F77=yes 14851 ;; 14852 esac 14853 fi 14854 ;; 14855 14856 irix5* | irix6* | nonstopux*) 14857 if test "$GCC" = yes; then 14858 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' 14859 else 14860 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' 14861 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14862 fi 14863 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14864 hardcode_libdir_separator_F77=: 14865 link_all_deplibs_F77=yes 14866 ;; 14867 14868 netbsd*) 14869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14870 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14871 else 14872 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14873 fi 14874 hardcode_libdir_flag_spec_F77='-R$libdir' 14875 hardcode_direct_F77=yes 14876 hardcode_shlibpath_var_F77=no 14877 ;; 14878 14879 newsos6) 14880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14881 hardcode_direct_F77=yes 14882 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14883 hardcode_libdir_separator_F77=: 14884 hardcode_shlibpath_var_F77=no 14885 ;; 14886 14887 openbsd*) 14888 if test -f /usr/libexec/ld.so; then 14889 hardcode_direct_F77=yes 14890 hardcode_shlibpath_var_F77=no 14891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14892 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14893 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14894 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14895 export_dynamic_flag_spec_F77='${wl}-E' 14896 else 14897 case $host_os in 14898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14899 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14900 hardcode_libdir_flag_spec_F77='-R$libdir' 14901 ;; 14902 *) 14903 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14904 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14905 ;; 14906 esac 14907 fi 14908 else 14909 ld_shlibs_F77=no 14910 fi 14911 ;; 14912 14913 os2*) 14914 hardcode_libdir_flag_spec_F77='-L$libdir' 14915 hardcode_minus_L_F77=yes 14916 allow_undefined_flag_F77=unsupported 14917 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' 14918 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14919 ;; 14920 14921 osf3*) 14922 if test "$GCC" = yes; then 14923 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14924 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' 14925 else 14926 allow_undefined_flag_F77=' -expect_unresolved \*' 14927 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' 14928 fi 14929 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14930 hardcode_libdir_separator_F77=: 14931 ;; 14932 14933 osf4* | osf5*) # as osf3* with the addition of -msym flag 14934 if test "$GCC" = yes; then 14935 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14936 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' 14937 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14938 else 14939 allow_undefined_flag_F77=' -expect_unresolved \*' 14940 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' 14941 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~ 14942 $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' 14943 14944 # Both c and cxx compiler support -rpath directly 14945 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14946 fi 14947 hardcode_libdir_separator_F77=: 14948 ;; 14949 14950 solaris*) 14951 no_undefined_flag_F77=' -z text' 14952 if test "$GCC" = yes; then 14953 wlarc='${wl}' 14954 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14955 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14956 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14957 else 14958 wlarc='' 14959 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14960 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14961 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14962 fi 14963 hardcode_libdir_flag_spec_F77='-R$libdir' 14964 hardcode_shlibpath_var_F77=no 14965 case $host_os in 14966 solaris2.[0-5] | solaris2.[0-5].*) ;; 14967 *) 14968 # The compiler driver will combine and reorder linker options, 14969 # but understands `-z linker_flag'. GCC discards it without `$wl', 14970 # but is careful enough not to reorder. 14971 # Supported since Solaris 2.6 (maybe 2.5.1?) 14972 if test "$GCC" = yes; then 14973 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14974 else 14975 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 14976 fi 14977 ;; 14978 esac 14979 link_all_deplibs_F77=yes 14980 ;; 14981 14982 sunos4*) 14983 if test "x$host_vendor" = xsequent; then 14984 # Use $CC to link under sequent, because it throws in some extra .o 14985 # files that make .init and .fini sections work. 14986 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14987 else 14988 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14989 fi 14990 hardcode_libdir_flag_spec_F77='-L$libdir' 14991 hardcode_direct_F77=yes 14992 hardcode_minus_L_F77=yes 14993 hardcode_shlibpath_var_F77=no 14994 ;; 14995 14996 sysv4) 14997 case $host_vendor in 14998 sni) 14999 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15000 hardcode_direct_F77=yes # is this really true??? 15001 ;; 15002 siemens) 15003 ## LD is ld it makes a PLAMLIB 15004 ## CC just makes a GrossModule. 15005 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15006 reload_cmds_F77='$CC -r -o $output$reload_objs' 15007 hardcode_direct_F77=no 15008 ;; 15009 motorola) 15010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15011 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15012 ;; 15013 esac 15014 runpath_var='LD_RUN_PATH' 15015 hardcode_shlibpath_var_F77=no 15016 ;; 15017 15018 sysv4.3*) 15019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15020 hardcode_shlibpath_var_F77=no 15021 export_dynamic_flag_spec_F77='-Bexport' 15022 ;; 15023 15024 sysv4*MP*) 15025 if test -d /usr/nec; then 15026 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15027 hardcode_shlibpath_var_F77=no 15028 runpath_var=LD_RUN_PATH 15029 hardcode_runpath_var=yes 15030 ld_shlibs_F77=yes 15031 fi 15032 ;; 15033 15034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15035 no_undefined_flag_F77='${wl}-z,text' 15036 archive_cmds_need_lc_F77=no 15037 hardcode_shlibpath_var_F77=no 15038 runpath_var='LD_RUN_PATH' 15039 15040 if test "$GCC" = yes; then 15041 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15042 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15043 else 15044 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15045 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15046 fi 15047 ;; 15048 15049 sysv5* | sco3.2v5* | sco5v6*) 15050 # Note: We can NOT use -z defs as we might desire, because we do not 15051 # link with -lc, and that would cause any symbols used from libc to 15052 # always be unresolved, which means just about no library would 15053 # ever link correctly. If we're not using GNU ld we use -z text 15054 # though, which does catch some bad symbols but isn't as heavy-handed 15055 # as -z defs. 15056 no_undefined_flag_F77='${wl}-z,text' 15057 allow_undefined_flag_F77='${wl}-z,nodefs' 15058 archive_cmds_need_lc_F77=no 15059 hardcode_shlibpath_var_F77=no 15060 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15061 hardcode_libdir_separator_F77=':' 15062 link_all_deplibs_F77=yes 15063 export_dynamic_flag_spec_F77='${wl}-Bexport' 15064 runpath_var='LD_RUN_PATH' 15065 15066 if test "$GCC" = yes; then 15067 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15068 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15069 else 15070 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15071 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15072 fi 15073 ;; 15074 15075 uts4*) 15076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15077 hardcode_libdir_flag_spec_F77='-L$libdir' 15078 hardcode_shlibpath_var_F77=no 15079 ;; 15080 15081 *) 15082 ld_shlibs_F77=no 15083 ;; 15084 esac 15085 fi 15086 15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 15088$as_echo "$ld_shlibs_F77" >&6; } 15089test "$ld_shlibs_F77" = no && can_build_shared=no 15090 15091# 15092# Do we need to explicitly link libc? 15093# 15094case "x$archive_cmds_need_lc_F77" in 15095x|xyes) 15096 # Assume -lc should be added 15097 archive_cmds_need_lc_F77=yes 15098 15099 if test "$enable_shared" = yes && test "$GCC" = yes; then 15100 case $archive_cmds_F77 in 15101 *'~'*) 15102 # FIXME: we may have to deal with multi-command sequences. 15103 ;; 15104 '$CC '*) 15105 # Test whether the compiler implicitly links with -lc since on some 15106 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15107 # to ld, don't add -lc before -lgcc. 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15109$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15110 $rm conftest* 15111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15112 15113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15114 (eval $ac_compile) 2>&5 15115 ac_status=$? 15116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15117 test $ac_status = 0; } 2>conftest.err; then 15118 soname=conftest 15119 lib=conftest 15120 libobjs=conftest.$ac_objext 15121 deplibs= 15122 wl=$lt_prog_compiler_wl_F77 15123 pic_flag=$lt_prog_compiler_pic_F77 15124 compiler_flags=-v 15125 linker_flags=-v 15126 verstring= 15127 output_objdir=. 15128 libname=conftest 15129 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15130 allow_undefined_flag_F77= 15131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15132 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15133 ac_status=$? 15134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15135 test $ac_status = 0; } 15136 then 15137 archive_cmds_need_lc_F77=no 15138 else 15139 archive_cmds_need_lc_F77=yes 15140 fi 15141 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15142 else 15143 cat conftest.err 1>&5 15144 fi 15145 $rm conftest* 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5 15147$as_echo "$archive_cmds_need_lc_F77" >&6; } 15148 ;; 15149 esac 15150 fi 15151 ;; 15152esac 15153 15154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15155$as_echo_n "checking dynamic linker characteristics... " >&6; } 15156library_names_spec= 15157libname_spec='lib$name' 15158soname_spec= 15159shrext_cmds=".so" 15160postinstall_cmds= 15161postuninstall_cmds= 15162finish_cmds= 15163finish_eval= 15164shlibpath_var= 15165shlibpath_overrides_runpath=unknown 15166version_type=none 15167dynamic_linker="$host_os ld.so" 15168sys_lib_dlsearch_path_spec="/lib /usr/lib" 15169 15170need_lib_prefix=unknown 15171hardcode_into_libs=no 15172 15173# when you set need_version to no, make sure it does not cause -set_version 15174# flags to be left without arguments 15175need_version=unknown 15176 15177case $host_os in 15178aix3*) 15179 version_type=linux 15180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15181 shlibpath_var=LIBPATH 15182 15183 # AIX 3 has no versioning support, so we append a major version to the name. 15184 soname_spec='${libname}${release}${shared_ext}$major' 15185 ;; 15186 15187aix[4-9]*) 15188 version_type=linux 15189 need_lib_prefix=no 15190 need_version=no 15191 hardcode_into_libs=yes 15192 if test "$host_cpu" = ia64; then 15193 # AIX 5 supports IA64 15194 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15195 shlibpath_var=LD_LIBRARY_PATH 15196 else 15197 # With GCC up to 2.95.x, collect2 would create an import file 15198 # for dependence libraries. The import file would start with 15199 # the line `#! .'. This would cause the generated library to 15200 # depend on `.', always an invalid library. This was fixed in 15201 # development snapshots of GCC prior to 3.0. 15202 case $host_os in 15203 aix4 | aix4.[01] | aix4.[01].*) 15204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15205 echo ' yes ' 15206 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15207 : 15208 else 15209 can_build_shared=no 15210 fi 15211 ;; 15212 esac 15213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15214 # soname into executable. Probably we can add versioning support to 15215 # collect2, so additional links can be useful in future. 15216 if test "$aix_use_runtimelinking" = yes; then 15217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15218 # instead of lib<name>.a to let people know that these are not 15219 # typical AIX shared libraries. 15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15221 else 15222 # We preserve .a as extension for shared libraries through AIX4.2 15223 # and later when we are not doing run time linking. 15224 library_names_spec='${libname}${release}.a $libname.a' 15225 soname_spec='${libname}${release}${shared_ext}$major' 15226 fi 15227 shlibpath_var=LIBPATH 15228 fi 15229 ;; 15230 15231amigaos*) 15232 library_names_spec='$libname.ixlibrary $libname.a' 15233 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15234 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' 15235 ;; 15236 15237beos*) 15238 library_names_spec='${libname}${shared_ext}' 15239 dynamic_linker="$host_os ld.so" 15240 shlibpath_var=LIBRARY_PATH 15241 ;; 15242 15243bsdi[45]*) 15244 version_type=linux 15245 need_version=no 15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15247 soname_spec='${libname}${release}${shared_ext}$major' 15248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15249 shlibpath_var=LD_LIBRARY_PATH 15250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15252 # the default ld.so.conf also contains /usr/contrib/lib and 15253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15254 # libtool to hard-code these into programs 15255 ;; 15256 15257cygwin* | mingw* | pw32*) 15258 version_type=windows 15259 shrext_cmds=".dll" 15260 need_version=no 15261 need_lib_prefix=no 15262 15263 case $GCC,$host_os in 15264 yes,cygwin* | yes,mingw* | yes,pw32*) 15265 library_names_spec='$libname.dll.a' 15266 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15267 postinstall_cmds='base_file=`basename \${file}`~ 15268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15269 dldir=$destdir/`dirname \$dlpath`~ 15270 test -d \$dldir || mkdir -p \$dldir~ 15271 $install_prog $dir/$dlname \$dldir/$dlname~ 15272 chmod a+x \$dldir/$dlname' 15273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15274 dlpath=$dir/\$dldll~ 15275 $rm \$dlpath' 15276 shlibpath_overrides_runpath=yes 15277 15278 case $host_os in 15279 cygwin*) 15280 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15281 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15282 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15283 ;; 15284 mingw*) 15285 # MinGW DLLs use traditional 'lib' prefix 15286 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15287 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15288 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15289 # It is most probably a Windows format PATH printed by 15290 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15291 # path with ; separators, and with drive letters. We can handle the 15292 # drive letters (cygwin fileutils understands them), so leave them, 15293 # especially as we might pass files found there to a mingw objdump, 15294 # which wouldn't understand a cygwinified path. Ahh. 15295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15296 else 15297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15298 fi 15299 ;; 15300 pw32*) 15301 # pw32 DLLs use 'pw' prefix rather than 'lib' 15302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15303 ;; 15304 esac 15305 ;; 15306 15307 *) 15308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15309 ;; 15310 esac 15311 dynamic_linker='Win32 ld.exe' 15312 # FIXME: first we should search . and the directory the executable is in 15313 shlibpath_var=PATH 15314 ;; 15315 15316darwin* | rhapsody*) 15317 dynamic_linker="$host_os dyld" 15318 version_type=darwin 15319 need_lib_prefix=no 15320 need_version=no 15321 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15322 soname_spec='${libname}${release}${major}$shared_ext' 15323 shlibpath_overrides_runpath=yes 15324 shlibpath_var=DYLD_LIBRARY_PATH 15325 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15326 15327 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15328 ;; 15329 15330dgux*) 15331 version_type=linux 15332 need_lib_prefix=no 15333 need_version=no 15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15335 soname_spec='${libname}${release}${shared_ext}$major' 15336 shlibpath_var=LD_LIBRARY_PATH 15337 ;; 15338 15339freebsd1*) 15340 dynamic_linker=no 15341 ;; 15342 15343freebsd* | dragonfly*) 15344 # DragonFly does not have aout. When/if they implement a new 15345 # versioning mechanism, adjust this. 15346 if test -x /usr/bin/objformat; then 15347 objformat=`/usr/bin/objformat` 15348 else 15349 case $host_os in 15350 freebsd[123]*) objformat=aout ;; 15351 *) objformat=elf ;; 15352 esac 15353 fi 15354 version_type=freebsd-$objformat 15355 case $version_type in 15356 freebsd-elf*) 15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15358 need_version=no 15359 need_lib_prefix=no 15360 ;; 15361 freebsd-*) 15362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15363 need_version=yes 15364 ;; 15365 esac 15366 shlibpath_var=LD_LIBRARY_PATH 15367 case $host_os in 15368 freebsd2*) 15369 shlibpath_overrides_runpath=yes 15370 ;; 15371 freebsd3.[01]* | freebsdelf3.[01]*) 15372 shlibpath_overrides_runpath=yes 15373 hardcode_into_libs=yes 15374 ;; 15375 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15376 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15377 shlibpath_overrides_runpath=no 15378 hardcode_into_libs=yes 15379 ;; 15380 *) # from 4.6 on, and DragonFly 15381 shlibpath_overrides_runpath=yes 15382 hardcode_into_libs=yes 15383 ;; 15384 esac 15385 ;; 15386 15387gnu*) 15388 version_type=linux 15389 need_lib_prefix=no 15390 need_version=no 15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15392 soname_spec='${libname}${release}${shared_ext}$major' 15393 shlibpath_var=LD_LIBRARY_PATH 15394 hardcode_into_libs=yes 15395 ;; 15396 15397hpux9* | hpux10* | hpux11*) 15398 # Give a soname corresponding to the major version so that dld.sl refuses to 15399 # link against other versions. 15400 version_type=sunos 15401 need_lib_prefix=no 15402 need_version=no 15403 case $host_cpu in 15404 ia64*) 15405 shrext_cmds='.so' 15406 hardcode_into_libs=yes 15407 dynamic_linker="$host_os dld.so" 15408 shlibpath_var=LD_LIBRARY_PATH 15409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15411 soname_spec='${libname}${release}${shared_ext}$major' 15412 if test "X$HPUX_IA64_MODE" = X32; then 15413 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15414 else 15415 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15416 fi 15417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15418 ;; 15419 hppa*64*) 15420 shrext_cmds='.sl' 15421 hardcode_into_libs=yes 15422 dynamic_linker="$host_os dld.sl" 15423 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15426 soname_spec='${libname}${release}${shared_ext}$major' 15427 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15429 ;; 15430 *) 15431 shrext_cmds='.sl' 15432 dynamic_linker="$host_os dld.sl" 15433 shlibpath_var=SHLIB_PATH 15434 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15436 soname_spec='${libname}${release}${shared_ext}$major' 15437 ;; 15438 esac 15439 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15440 postinstall_cmds='chmod 555 $lib' 15441 ;; 15442 15443interix[3-9]*) 15444 version_type=linux 15445 need_lib_prefix=no 15446 need_version=no 15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15448 soname_spec='${libname}${release}${shared_ext}$major' 15449 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15450 shlibpath_var=LD_LIBRARY_PATH 15451 shlibpath_overrides_runpath=no 15452 hardcode_into_libs=yes 15453 ;; 15454 15455irix5* | irix6* | nonstopux*) 15456 case $host_os in 15457 nonstopux*) version_type=nonstopux ;; 15458 *) 15459 if test "$lt_cv_prog_gnu_ld" = yes; then 15460 version_type=linux 15461 else 15462 version_type=irix 15463 fi ;; 15464 esac 15465 need_lib_prefix=no 15466 need_version=no 15467 soname_spec='${libname}${release}${shared_ext}$major' 15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15469 case $host_os in 15470 irix5* | nonstopux*) 15471 libsuff= shlibsuff= 15472 ;; 15473 *) 15474 case $LD in # libtool.m4 will add one of these switches to LD 15475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15476 libsuff= shlibsuff= libmagic=32-bit;; 15477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15478 libsuff=32 shlibsuff=N32 libmagic=N32;; 15479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15480 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15481 *) libsuff= shlibsuff= libmagic=never-match;; 15482 esac 15483 ;; 15484 esac 15485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15486 shlibpath_overrides_runpath=no 15487 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15488 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15489 hardcode_into_libs=yes 15490 ;; 15491 15492# No shared lib support for Linux oldld, aout, or coff. 15493linux*oldld* | linux*aout* | linux*coff*) 15494 dynamic_linker=no 15495 ;; 15496 15497# This must be Linux ELF. 15498linux* | k*bsd*-gnu) 15499 version_type=linux 15500 need_lib_prefix=no 15501 need_version=no 15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15503 soname_spec='${libname}${release}${shared_ext}$major' 15504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15505 shlibpath_var=LD_LIBRARY_PATH 15506 shlibpath_overrides_runpath=no 15507 # This implies no fast_install, which is unacceptable. 15508 # Some rework will be needed to allow for fast_install 15509 # before this can be enabled. 15510 hardcode_into_libs=yes 15511 15512 # Append ld.so.conf contents to the search path 15513 if test -f /etc/ld.so.conf; then 15514 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' ' '` 15515 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15516 fi 15517 15518 # We used to test for /lib/ld.so.1 and disable shared libraries on 15519 # powerpc, because MkLinux only supported shared libraries with the 15520 # GNU dynamic linker. Since this was broken with cross compilers, 15521 # most powerpc-linux boxes support dynamic linking these days and 15522 # people can always --disable-shared, the test was removed, and we 15523 # assume the GNU/Linux dynamic linker is in use. 15524 dynamic_linker='GNU/Linux ld.so' 15525 ;; 15526 15527netbsd*) 15528 version_type=sunos 15529 need_lib_prefix=no 15530 need_version=no 15531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15534 dynamic_linker='NetBSD (a.out) ld.so' 15535 else 15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15537 soname_spec='${libname}${release}${shared_ext}$major' 15538 dynamic_linker='NetBSD ld.elf_so' 15539 fi 15540 shlibpath_var=LD_LIBRARY_PATH 15541 shlibpath_overrides_runpath=yes 15542 hardcode_into_libs=yes 15543 ;; 15544 15545newsos6) 15546 version_type=linux 15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15548 shlibpath_var=LD_LIBRARY_PATH 15549 shlibpath_overrides_runpath=yes 15550 ;; 15551 15552nto-qnx*) 15553 version_type=linux 15554 need_lib_prefix=no 15555 need_version=no 15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15557 soname_spec='${libname}${release}${shared_ext}$major' 15558 shlibpath_var=LD_LIBRARY_PATH 15559 shlibpath_overrides_runpath=yes 15560 ;; 15561 15562openbsd*) 15563 version_type=sunos 15564 sys_lib_dlsearch_path_spec="/usr/lib" 15565 need_lib_prefix=no 15566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15567 case $host_os in 15568 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15569 *) need_version=no ;; 15570 esac 15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15573 shlibpath_var=LD_LIBRARY_PATH 15574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15575 case $host_os in 15576 openbsd2.[89] | openbsd2.[89].*) 15577 shlibpath_overrides_runpath=no 15578 ;; 15579 *) 15580 shlibpath_overrides_runpath=yes 15581 ;; 15582 esac 15583 else 15584 shlibpath_overrides_runpath=yes 15585 fi 15586 ;; 15587 15588os2*) 15589 libname_spec='$name' 15590 shrext_cmds=".dll" 15591 need_lib_prefix=no 15592 library_names_spec='$libname${shared_ext} $libname.a' 15593 dynamic_linker='OS/2 ld.exe' 15594 shlibpath_var=LIBPATH 15595 ;; 15596 15597osf3* | osf4* | osf5*) 15598 version_type=osf 15599 need_lib_prefix=no 15600 need_version=no 15601 soname_spec='${libname}${release}${shared_ext}$major' 15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15603 shlibpath_var=LD_LIBRARY_PATH 15604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15606 ;; 15607 15608rdos*) 15609 dynamic_linker=no 15610 ;; 15611 15612solaris*) 15613 version_type=linux 15614 need_lib_prefix=no 15615 need_version=no 15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15617 soname_spec='${libname}${release}${shared_ext}$major' 15618 shlibpath_var=LD_LIBRARY_PATH 15619 shlibpath_overrides_runpath=yes 15620 hardcode_into_libs=yes 15621 # ldd complains unless libraries are executable 15622 postinstall_cmds='chmod +x $lib' 15623 ;; 15624 15625sunos4*) 15626 version_type=sunos 15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15629 shlibpath_var=LD_LIBRARY_PATH 15630 shlibpath_overrides_runpath=yes 15631 if test "$with_gnu_ld" = yes; then 15632 need_lib_prefix=no 15633 fi 15634 need_version=yes 15635 ;; 15636 15637sysv4 | sysv4.3*) 15638 version_type=linux 15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15640 soname_spec='${libname}${release}${shared_ext}$major' 15641 shlibpath_var=LD_LIBRARY_PATH 15642 case $host_vendor in 15643 sni) 15644 shlibpath_overrides_runpath=no 15645 need_lib_prefix=no 15646 export_dynamic_flag_spec='${wl}-Blargedynsym' 15647 runpath_var=LD_RUN_PATH 15648 ;; 15649 siemens) 15650 need_lib_prefix=no 15651 ;; 15652 motorola) 15653 need_lib_prefix=no 15654 need_version=no 15655 shlibpath_overrides_runpath=no 15656 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15657 ;; 15658 esac 15659 ;; 15660 15661sysv4*MP*) 15662 if test -d /usr/nec ;then 15663 version_type=linux 15664 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15665 soname_spec='$libname${shared_ext}.$major' 15666 shlibpath_var=LD_LIBRARY_PATH 15667 fi 15668 ;; 15669 15670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15671 version_type=freebsd-elf 15672 need_lib_prefix=no 15673 need_version=no 15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15675 soname_spec='${libname}${release}${shared_ext}$major' 15676 shlibpath_var=LD_LIBRARY_PATH 15677 hardcode_into_libs=yes 15678 if test "$with_gnu_ld" = yes; then 15679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15680 shlibpath_overrides_runpath=no 15681 else 15682 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15683 shlibpath_overrides_runpath=yes 15684 case $host_os in 15685 sco3.2v5*) 15686 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15687 ;; 15688 esac 15689 fi 15690 sys_lib_dlsearch_path_spec='/usr/lib' 15691 ;; 15692 15693uts4*) 15694 version_type=linux 15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15696 soname_spec='${libname}${release}${shared_ext}$major' 15697 shlibpath_var=LD_LIBRARY_PATH 15698 ;; 15699 15700*) 15701 dynamic_linker=no 15702 ;; 15703esac 15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15705$as_echo "$dynamic_linker" >&6; } 15706test "$dynamic_linker" = no && can_build_shared=no 15707 15708if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 15709 $as_echo_n "(cached) " >&6 15710else 15711 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 15712fi 15713 15714sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15715if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 15716 $as_echo_n "(cached) " >&6 15717else 15718 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 15719fi 15720 15721sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15722 15723variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15724if test "$GCC" = yes; then 15725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15726fi 15727 15728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15729$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15730hardcode_action_F77= 15731if test -n "$hardcode_libdir_flag_spec_F77" || \ 15732 test -n "$runpath_var_F77" || \ 15733 test "X$hardcode_automatic_F77" = "Xyes" ; then 15734 15735 # We can hardcode non-existant directories. 15736 if test "$hardcode_direct_F77" != no && 15737 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15738 # have to relink, otherwise we might link with an installed library 15739 # when we should be linking with a yet-to-be-installed one 15740 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15741 test "$hardcode_minus_L_F77" != no; then 15742 # Linking always hardcodes the temporary library directory. 15743 hardcode_action_F77=relink 15744 else 15745 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15746 hardcode_action_F77=immediate 15747 fi 15748else 15749 # We cannot hardcode anything, or else we can only hardcode existing 15750 # directories. 15751 hardcode_action_F77=unsupported 15752fi 15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 15754$as_echo "$hardcode_action_F77" >&6; } 15755 15756if test "$hardcode_action_F77" = relink; then 15757 # Fast installation is not supported 15758 enable_fast_install=no 15759elif test "$shlibpath_overrides_runpath" = yes || 15760 test "$enable_shared" = no; then 15761 # Fast installation is not necessary 15762 enable_fast_install=needless 15763fi 15764 15765 15766# The else clause should only fire when bootstrapping the 15767# libtool distribution, otherwise you forgot to ship ltmain.sh 15768# with your package, and you will get complaints that there are 15769# no rules to generate ltmain.sh. 15770if test -f "$ltmain"; then 15771 # See if we are running on zsh, and set the options which allow our commands through 15772 # without removal of \ escapes. 15773 if test -n "${ZSH_VERSION+set}" ; then 15774 setopt NO_GLOB_SUBST 15775 fi 15776 # Now quote all the things that may contain metacharacters while being 15777 # careful not to overquote the AC_SUBSTed values. We take copies of the 15778 # variables and quote the copies for generation of the libtool script. 15779 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15780 SED SHELL STRIP \ 15781 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15782 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15783 deplibs_check_method reload_flag reload_cmds need_locks \ 15784 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15785 lt_cv_sys_global_symbol_to_c_name_address \ 15786 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15787 old_postinstall_cmds old_postuninstall_cmds \ 15788 compiler_F77 \ 15789 CC_F77 \ 15790 LD_F77 \ 15791 lt_prog_compiler_wl_F77 \ 15792 lt_prog_compiler_pic_F77 \ 15793 lt_prog_compiler_static_F77 \ 15794 lt_prog_compiler_no_builtin_flag_F77 \ 15795 export_dynamic_flag_spec_F77 \ 15796 thread_safe_flag_spec_F77 \ 15797 whole_archive_flag_spec_F77 \ 15798 enable_shared_with_static_runtimes_F77 \ 15799 old_archive_cmds_F77 \ 15800 old_archive_from_new_cmds_F77 \ 15801 predep_objects_F77 \ 15802 postdep_objects_F77 \ 15803 predeps_F77 \ 15804 postdeps_F77 \ 15805 compiler_lib_search_path_F77 \ 15806 compiler_lib_search_dirs_F77 \ 15807 archive_cmds_F77 \ 15808 archive_expsym_cmds_F77 \ 15809 postinstall_cmds_F77 \ 15810 postuninstall_cmds_F77 \ 15811 old_archive_from_expsyms_cmds_F77 \ 15812 allow_undefined_flag_F77 \ 15813 no_undefined_flag_F77 \ 15814 export_symbols_cmds_F77 \ 15815 hardcode_libdir_flag_spec_F77 \ 15816 hardcode_libdir_flag_spec_ld_F77 \ 15817 hardcode_libdir_separator_F77 \ 15818 hardcode_automatic_F77 \ 15819 module_cmds_F77 \ 15820 module_expsym_cmds_F77 \ 15821 lt_cv_prog_compiler_c_o_F77 \ 15822 fix_srcfile_path_F77 \ 15823 exclude_expsyms_F77 \ 15824 include_expsyms_F77; do 15825 15826 case $var in 15827 old_archive_cmds_F77 | \ 15828 old_archive_from_new_cmds_F77 | \ 15829 archive_cmds_F77 | \ 15830 archive_expsym_cmds_F77 | \ 15831 module_cmds_F77 | \ 15832 module_expsym_cmds_F77 | \ 15833 old_archive_from_expsyms_cmds_F77 | \ 15834 export_symbols_cmds_F77 | \ 15835 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15836 postinstall_cmds | postuninstall_cmds | \ 15837 old_postinstall_cmds | old_postuninstall_cmds | \ 15838 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15839 # Double-quote double-evaled strings. 15840 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15841 ;; 15842 *) 15843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15844 ;; 15845 esac 15846 done 15847 15848 case $lt_echo in 15849 *'\$0 --fallback-echo"') 15850 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15851 ;; 15852 esac 15853 15854cfgfile="$ofile" 15855 15856 cat <<__EOF__ >> "$cfgfile" 15857# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15858 15859# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15860 15861# Shell to use when invoking shell scripts. 15862SHELL=$lt_SHELL 15863 15864# Whether or not to build shared libraries. 15865build_libtool_libs=$enable_shared 15866 15867# Whether or not to build static libraries. 15868build_old_libs=$enable_static 15869 15870# Whether or not to add -lc for building shared libraries. 15871build_libtool_need_lc=$archive_cmds_need_lc_F77 15872 15873# Whether or not to disallow shared libs when runtime libs are static 15874allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15875 15876# Whether or not to optimize for fast installation. 15877fast_install=$enable_fast_install 15878 15879# The host system. 15880host_alias=$host_alias 15881host=$host 15882host_os=$host_os 15883 15884# The build system. 15885build_alias=$build_alias 15886build=$build 15887build_os=$build_os 15888 15889# An echo program that does not interpret backslashes. 15890echo=$lt_echo 15891 15892# The archiver. 15893AR=$lt_AR 15894AR_FLAGS=$lt_AR_FLAGS 15895 15896# A C compiler. 15897LTCC=$lt_LTCC 15898 15899# LTCC compiler flags. 15900LTCFLAGS=$lt_LTCFLAGS 15901 15902# A language-specific compiler. 15903CC=$lt_compiler_F77 15904 15905# Is the compiler the GNU C compiler? 15906with_gcc=$GCC_F77 15907 15908# An ERE matcher. 15909EGREP=$lt_EGREP 15910 15911# The linker used to build libraries. 15912LD=$lt_LD_F77 15913 15914# Whether we need hard or soft links. 15915LN_S=$lt_LN_S 15916 15917# A BSD-compatible nm program. 15918NM=$lt_NM 15919 15920# A symbol stripping program 15921STRIP=$lt_STRIP 15922 15923# Used to examine libraries when file_magic_cmd begins "file" 15924MAGIC_CMD=$MAGIC_CMD 15925 15926# Used on cygwin: DLL creation program. 15927DLLTOOL="$DLLTOOL" 15928 15929# Used on cygwin: object dumper. 15930OBJDUMP="$OBJDUMP" 15931 15932# Used on cygwin: assembler. 15933AS="$AS" 15934 15935# The name of the directory that contains temporary libtool files. 15936objdir=$objdir 15937 15938# How to create reloadable object files. 15939reload_flag=$lt_reload_flag 15940reload_cmds=$lt_reload_cmds 15941 15942# How to pass a linker flag through the compiler. 15943wl=$lt_lt_prog_compiler_wl_F77 15944 15945# Object file suffix (normally "o"). 15946objext="$ac_objext" 15947 15948# Old archive suffix (normally "a"). 15949libext="$libext" 15950 15951# Shared library suffix (normally ".so"). 15952shrext_cmds='$shrext_cmds' 15953 15954# Executable file suffix (normally ""). 15955exeext="$exeext" 15956 15957# Additional compiler flags for building library objects. 15958pic_flag=$lt_lt_prog_compiler_pic_F77 15959pic_mode=$pic_mode 15960 15961# What is the maximum length of a command? 15962max_cmd_len=$lt_cv_sys_max_cmd_len 15963 15964# Does compiler simultaneously support -c and -o options? 15965compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15966 15967# Must we lock files when doing compilation? 15968need_locks=$lt_need_locks 15969 15970# Do we need the lib prefix for modules? 15971need_lib_prefix=$need_lib_prefix 15972 15973# Do we need a version for libraries? 15974need_version=$need_version 15975 15976# Whether dlopen is supported. 15977dlopen_support=$enable_dlopen 15978 15979# Whether dlopen of programs is supported. 15980dlopen_self=$enable_dlopen_self 15981 15982# Whether dlopen of statically linked programs is supported. 15983dlopen_self_static=$enable_dlopen_self_static 15984 15985# Compiler flag to prevent dynamic linking. 15986link_static_flag=$lt_lt_prog_compiler_static_F77 15987 15988# Compiler flag to turn off builtin functions. 15989no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15990 15991# Compiler flag to allow reflexive dlopens. 15992export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15993 15994# Compiler flag to generate shared objects directly from archives. 15995whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15996 15997# Compiler flag to generate thread-safe objects. 15998thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15999 16000# Library versioning type. 16001version_type=$version_type 16002 16003# Format of library name prefix. 16004libname_spec=$lt_libname_spec 16005 16006# List of archive names. First name is the real one, the rest are links. 16007# The last name is the one that the linker finds with -lNAME. 16008library_names_spec=$lt_library_names_spec 16009 16010# The coded name of the library, if different from the real name. 16011soname_spec=$lt_soname_spec 16012 16013# Commands used to build and install an old-style archive. 16014RANLIB=$lt_RANLIB 16015old_archive_cmds=$lt_old_archive_cmds_F77 16016old_postinstall_cmds=$lt_old_postinstall_cmds 16017old_postuninstall_cmds=$lt_old_postuninstall_cmds 16018 16019# Create an old-style archive from a shared archive. 16020old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16021 16022# Create a temporary old-style archive to link instead of a shared archive. 16023old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16024 16025# Commands used to build and install a shared archive. 16026archive_cmds=$lt_archive_cmds_F77 16027archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16028postinstall_cmds=$lt_postinstall_cmds 16029postuninstall_cmds=$lt_postuninstall_cmds 16030 16031# Commands used to build a loadable module (assumed same as above if empty) 16032module_cmds=$lt_module_cmds_F77 16033module_expsym_cmds=$lt_module_expsym_cmds_F77 16034 16035# Commands to strip libraries. 16036old_striplib=$lt_old_striplib 16037striplib=$lt_striplib 16038 16039# Dependencies to place before the objects being linked to create a 16040# shared library. 16041predep_objects=$lt_predep_objects_F77 16042 16043# Dependencies to place after the objects being linked to create a 16044# shared library. 16045postdep_objects=$lt_postdep_objects_F77 16046 16047# Dependencies to place before the objects being linked to create a 16048# shared library. 16049predeps=$lt_predeps_F77 16050 16051# Dependencies to place after the objects being linked to create a 16052# shared library. 16053postdeps=$lt_postdeps_F77 16054 16055# The directories searched by this compiler when creating a shared 16056# library 16057compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16058 16059# The library search path used internally by the compiler when linking 16060# a shared library. 16061compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16062 16063# Method to check whether dependent libraries are shared objects. 16064deplibs_check_method=$lt_deplibs_check_method 16065 16066# Command to use when deplibs_check_method == file_magic. 16067file_magic_cmd=$lt_file_magic_cmd 16068 16069# Flag that allows shared libraries with undefined symbols to be built. 16070allow_undefined_flag=$lt_allow_undefined_flag_F77 16071 16072# Flag that forces no undefined symbols. 16073no_undefined_flag=$lt_no_undefined_flag_F77 16074 16075# Commands used to finish a libtool library installation in a directory. 16076finish_cmds=$lt_finish_cmds 16077 16078# Same as above, but a single script fragment to be evaled but not shown. 16079finish_eval=$lt_finish_eval 16080 16081# Take the output of nm and produce a listing of raw symbols and C names. 16082global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16083 16084# Transform the output of nm in a proper C declaration 16085global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16086 16087# Transform the output of nm in a C name address pair 16088global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16089 16090# This is the shared library runtime path variable. 16091runpath_var=$runpath_var 16092 16093# This is the shared library path variable. 16094shlibpath_var=$shlibpath_var 16095 16096# Is shlibpath searched before the hard-coded library search path? 16097shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16098 16099# How to hardcode a shared library path into an executable. 16100hardcode_action=$hardcode_action_F77 16101 16102# Whether we should hardcode library paths into libraries. 16103hardcode_into_libs=$hardcode_into_libs 16104 16105# Flag to hardcode \$libdir into a binary during linking. 16106# This must work even if \$libdir does not exist. 16107hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16108 16109# If ld is used when linking, flag to hardcode \$libdir into 16110# a binary during linking. This must work even if \$libdir does 16111# not exist. 16112hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16113 16114# Whether we need a single -rpath flag with a separated argument. 16115hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16116 16117# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16118# resulting binary. 16119hardcode_direct=$hardcode_direct_F77 16120 16121# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16122# resulting binary. 16123hardcode_minus_L=$hardcode_minus_L_F77 16124 16125# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16126# the resulting binary. 16127hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16128 16129# Set to yes if building a shared library automatically hardcodes DIR into the library 16130# and all subsequent libraries and executables linked against it. 16131hardcode_automatic=$hardcode_automatic_F77 16132 16133# Variables whose values should be saved in libtool wrapper scripts and 16134# restored at relink time. 16135variables_saved_for_relink="$variables_saved_for_relink" 16136 16137# Whether libtool must link a program against all its dependency libraries. 16138link_all_deplibs=$link_all_deplibs_F77 16139 16140# Compile-time system search path for libraries 16141sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16142 16143# Run-time system search path for libraries 16144sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16145 16146# Fix the shell variable \$srcfile for the compiler. 16147fix_srcfile_path=$lt_fix_srcfile_path 16148 16149# Set to yes if exported symbols are required. 16150always_export_symbols=$always_export_symbols_F77 16151 16152# The commands to list exported symbols. 16153export_symbols_cmds=$lt_export_symbols_cmds_F77 16154 16155# The commands to extract the exported symbol list from a shared archive. 16156extract_expsyms_cmds=$lt_extract_expsyms_cmds 16157 16158# Symbols that should not be listed in the preloaded symbols. 16159exclude_expsyms=$lt_exclude_expsyms_F77 16160 16161# Symbols that must always be exported. 16162include_expsyms=$lt_include_expsyms_F77 16163 16164# ### END LIBTOOL TAG CONFIG: $tagname 16165 16166__EOF__ 16167 16168 16169else 16170 # If there is no Makefile yet, we rely on a make rule to execute 16171 # `config.status --recheck' to rerun these tests and create the 16172 # libtool script then. 16173 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16174 if test -f "$ltmain_in"; then 16175 test -f Makefile && make "$ltmain" 16176 fi 16177fi 16178 16179 16180ac_ext=c 16181ac_cpp='$CPP $CPPFLAGS' 16182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16184ac_compiler_gnu=$ac_cv_c_compiler_gnu 16185 16186CC="$lt_save_CC" 16187 16188 else 16189 tagname="" 16190 fi 16191 ;; 16192 16193 GCJ) 16194 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16195 16196 16197# Source file extension for Java test sources. 16198ac_ext=java 16199 16200# Object file extension for compiled Java test sources. 16201objext=o 16202objext_GCJ=$objext 16203 16204# Code to be used in simple compile tests 16205lt_simple_compile_test_code="class foo {}" 16206 16207# Code to be used in simple link tests 16208lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16209 16210# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16211 16212# If no C compiler was specified, use CC. 16213LTCC=${LTCC-"$CC"} 16214 16215# If no C compiler flags were specified, use CFLAGS. 16216LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16217 16218# Allow CC to be a program name with arguments. 16219compiler=$CC 16220 16221 16222# save warnings/boilerplate of simple test code 16223ac_outfile=conftest.$ac_objext 16224echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16225eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16226_lt_compiler_boilerplate=`cat conftest.err` 16227$rm conftest* 16228 16229ac_outfile=conftest.$ac_objext 16230echo "$lt_simple_link_test_code" >conftest.$ac_ext 16231eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16232_lt_linker_boilerplate=`cat conftest.err` 16233$rm -r conftest* 16234 16235 16236# Allow CC to be a program name with arguments. 16237lt_save_CC="$CC" 16238CC=${GCJ-"gcj"} 16239compiler=$CC 16240compiler_GCJ=$CC 16241for cc_temp in $compiler""; do 16242 case $cc_temp in 16243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16245 \-*) ;; 16246 *) break;; 16247 esac 16248done 16249cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16250 16251 16252# GCJ did not exist at the time GCC didn't implicitly link libc in. 16253archive_cmds_need_lc_GCJ=no 16254 16255old_archive_cmds_GCJ=$old_archive_cmds 16256 16257## CAVEAT EMPTOR: 16258## There is no encapsulation within the following macros, do not change 16259## the running order or otherwise move them around unless you know exactly 16260## what you are doing... 16261 16262lt_prog_compiler_no_builtin_flag_GCJ= 16263 16264if test "$GCC" = yes; then 16265 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16266 16267 16268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16269$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16270if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 16271 $as_echo_n "(cached) " >&6 16272else 16273 lt_cv_prog_compiler_rtti_exceptions=no 16274 ac_outfile=conftest.$ac_objext 16275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16276 lt_compiler_flag="-fno-rtti -fno-exceptions" 16277 # Insert the option either (1) after the last *FLAGS variable, or 16278 # (2) before a word containing "conftest.", or (3) at the end. 16279 # Note that $ac_compile itself does not contain backslashes and begins 16280 # with a dollar sign (not a hyphen), so the echo should work correctly. 16281 # The option is referenced via a variable to avoid confusing sed. 16282 lt_compile=`echo "$ac_compile" | $SED \ 16283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16285 -e 's:$: $lt_compiler_flag:'` 16286 (eval echo "\"\$as_me:16286: $lt_compile\"" >&5) 16287 (eval "$lt_compile" 2>conftest.err) 16288 ac_status=$? 16289 cat conftest.err >&5 16290 echo "$as_me:16290: \$? = $ac_status" >&5 16291 if (exit $ac_status) && test -s "$ac_outfile"; then 16292 # The compiler can only warn and ignore the option if not recognized 16293 # So say no if there are warnings other than the usual output. 16294 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16297 lt_cv_prog_compiler_rtti_exceptions=yes 16298 fi 16299 fi 16300 $rm conftest* 16301 16302fi 16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16304$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16305 16306if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16307 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16308else 16309 : 16310fi 16311 16312fi 16313 16314lt_prog_compiler_wl_GCJ= 16315lt_prog_compiler_pic_GCJ= 16316lt_prog_compiler_static_GCJ= 16317 16318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16319$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16320 16321 if test "$GCC" = yes; then 16322 lt_prog_compiler_wl_GCJ='-Wl,' 16323 lt_prog_compiler_static_GCJ='-static' 16324 16325 case $host_os in 16326 aix*) 16327 # All AIX code is PIC. 16328 if test "$host_cpu" = ia64; then 16329 # AIX 5 now supports IA64 processor 16330 lt_prog_compiler_static_GCJ='-Bstatic' 16331 fi 16332 ;; 16333 16334 amigaos*) 16335 # FIXME: we need at least 68020 code to build shared libraries, but 16336 # adding the `-m68020' flag to GCC prevents building anything better, 16337 # like `-m68040'. 16338 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16339 ;; 16340 16341 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16342 # PIC is the default for these OSes. 16343 ;; 16344 16345 mingw* | cygwin* | pw32* | os2*) 16346 # This hack is so that the source file can tell whether it is being 16347 # built for inclusion in a dll (and should export symbols for example). 16348 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16349 # (--disable-auto-import) libraries 16350 16351 ;; 16352 16353 darwin* | rhapsody*) 16354 # PIC is the default on this platform 16355 # Common symbols not allowed in MH_DYLIB files 16356 lt_prog_compiler_pic_GCJ='-fno-common' 16357 ;; 16358 16359 interix[3-9]*) 16360 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16361 # Instead, we relocate shared libraries at runtime. 16362 ;; 16363 16364 msdosdjgpp*) 16365 # Just because we use GCC doesn't mean we suddenly get shared libraries 16366 # on systems that don't support them. 16367 lt_prog_compiler_can_build_shared_GCJ=no 16368 enable_shared=no 16369 ;; 16370 16371 sysv4*MP*) 16372 if test -d /usr/nec; then 16373 lt_prog_compiler_pic_GCJ=-Kconform_pic 16374 fi 16375 ;; 16376 16377 hpux*) 16378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16379 # not for PA HP-UX. 16380 case $host_cpu in 16381 hppa*64*|ia64*) 16382 # +Z the default 16383 ;; 16384 *) 16385 lt_prog_compiler_pic_GCJ='-fPIC' 16386 ;; 16387 esac 16388 ;; 16389 16390 *) 16391 lt_prog_compiler_pic_GCJ='-fPIC' 16392 ;; 16393 esac 16394 else 16395 # PORTME Check for flag to pass linker flags through the system compiler. 16396 case $host_os in 16397 aix*) 16398 lt_prog_compiler_wl_GCJ='-Wl,' 16399 if test "$host_cpu" = ia64; then 16400 # AIX 5 now supports IA64 processor 16401 lt_prog_compiler_static_GCJ='-Bstatic' 16402 else 16403 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16404 fi 16405 ;; 16406 darwin*) 16407 # PIC is the default on this platform 16408 # Common symbols not allowed in MH_DYLIB files 16409 case $cc_basename in 16410 xlc*) 16411 lt_prog_compiler_pic_GCJ='-qnocommon' 16412 lt_prog_compiler_wl_GCJ='-Wl,' 16413 ;; 16414 esac 16415 ;; 16416 16417 mingw* | cygwin* | pw32* | os2*) 16418 # This hack is so that the source file can tell whether it is being 16419 # built for inclusion in a dll (and should export symbols for example). 16420 16421 ;; 16422 16423 hpux9* | hpux10* | hpux11*) 16424 lt_prog_compiler_wl_GCJ='-Wl,' 16425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16426 # not for PA HP-UX. 16427 case $host_cpu in 16428 hppa*64*|ia64*) 16429 # +Z the default 16430 ;; 16431 *) 16432 lt_prog_compiler_pic_GCJ='+Z' 16433 ;; 16434 esac 16435 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16436 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16437 ;; 16438 16439 irix5* | irix6* | nonstopux*) 16440 lt_prog_compiler_wl_GCJ='-Wl,' 16441 # PIC (with -KPIC) is the default. 16442 lt_prog_compiler_static_GCJ='-non_shared' 16443 ;; 16444 16445 newsos6) 16446 lt_prog_compiler_pic_GCJ='-KPIC' 16447 lt_prog_compiler_static_GCJ='-Bstatic' 16448 ;; 16449 16450 linux* | k*bsd*-gnu) 16451 case $cc_basename in 16452 icc* | ecc*) 16453 lt_prog_compiler_wl_GCJ='-Wl,' 16454 lt_prog_compiler_pic_GCJ='-KPIC' 16455 lt_prog_compiler_static_GCJ='-static' 16456 ;; 16457 pgcc* | pgf77* | pgf90* | pgf95*) 16458 # Portland Group compilers (*not* the Pentium gcc compiler, 16459 # which looks to be a dead project) 16460 lt_prog_compiler_wl_GCJ='-Wl,' 16461 lt_prog_compiler_pic_GCJ='-fpic' 16462 lt_prog_compiler_static_GCJ='-Bstatic' 16463 ;; 16464 ccc*) 16465 lt_prog_compiler_wl_GCJ='-Wl,' 16466 # All Alpha code is PIC. 16467 lt_prog_compiler_static_GCJ='-non_shared' 16468 ;; 16469 *) 16470 case `$CC -V 2>&1 | sed 5q` in 16471 *Sun\ C*) 16472 # Sun C 5.9 16473 lt_prog_compiler_pic_GCJ='-KPIC' 16474 lt_prog_compiler_static_GCJ='-Bstatic' 16475 lt_prog_compiler_wl_GCJ='-Wl,' 16476 ;; 16477 *Sun\ F*) 16478 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16479 lt_prog_compiler_pic_GCJ='-KPIC' 16480 lt_prog_compiler_static_GCJ='-Bstatic' 16481 lt_prog_compiler_wl_GCJ='' 16482 ;; 16483 esac 16484 ;; 16485 esac 16486 ;; 16487 16488 osf3* | osf4* | osf5*) 16489 lt_prog_compiler_wl_GCJ='-Wl,' 16490 # All OSF/1 code is PIC. 16491 lt_prog_compiler_static_GCJ='-non_shared' 16492 ;; 16493 16494 rdos*) 16495 lt_prog_compiler_static_GCJ='-non_shared' 16496 ;; 16497 16498 solaris*) 16499 lt_prog_compiler_pic_GCJ='-KPIC' 16500 lt_prog_compiler_static_GCJ='-Bstatic' 16501 case $cc_basename in 16502 f77* | f90* | f95*) 16503 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16504 *) 16505 lt_prog_compiler_wl_GCJ='-Wl,';; 16506 esac 16507 ;; 16508 16509 sunos4*) 16510 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16511 lt_prog_compiler_pic_GCJ='-PIC' 16512 lt_prog_compiler_static_GCJ='-Bstatic' 16513 ;; 16514 16515 sysv4 | sysv4.2uw2* | sysv4.3*) 16516 lt_prog_compiler_wl_GCJ='-Wl,' 16517 lt_prog_compiler_pic_GCJ='-KPIC' 16518 lt_prog_compiler_static_GCJ='-Bstatic' 16519 ;; 16520 16521 sysv4*MP*) 16522 if test -d /usr/nec ;then 16523 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16524 lt_prog_compiler_static_GCJ='-Bstatic' 16525 fi 16526 ;; 16527 16528 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16529 lt_prog_compiler_wl_GCJ='-Wl,' 16530 lt_prog_compiler_pic_GCJ='-KPIC' 16531 lt_prog_compiler_static_GCJ='-Bstatic' 16532 ;; 16533 16534 unicos*) 16535 lt_prog_compiler_wl_GCJ='-Wl,' 16536 lt_prog_compiler_can_build_shared_GCJ=no 16537 ;; 16538 16539 uts4*) 16540 lt_prog_compiler_pic_GCJ='-pic' 16541 lt_prog_compiler_static_GCJ='-Bstatic' 16542 ;; 16543 16544 *) 16545 lt_prog_compiler_can_build_shared_GCJ=no 16546 ;; 16547 esac 16548 fi 16549 16550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 16551$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 16552 16553# 16554# Check to make sure the PIC flag actually works. 16555# 16556if test -n "$lt_prog_compiler_pic_GCJ"; then 16557 16558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16559$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 16560if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then : 16561 $as_echo_n "(cached) " >&6 16562else 16563 lt_cv_prog_compiler_pic_works_GCJ=no 16564 ac_outfile=conftest.$ac_objext 16565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16566 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16567 # Insert the option either (1) after the last *FLAGS variable, or 16568 # (2) before a word containing "conftest.", or (3) at the end. 16569 # Note that $ac_compile itself does not contain backslashes and begins 16570 # with a dollar sign (not a hyphen), so the echo should work correctly. 16571 # The option is referenced via a variable to avoid confusing sed. 16572 lt_compile=`echo "$ac_compile" | $SED \ 16573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16575 -e 's:$: $lt_compiler_flag:'` 16576 (eval echo "\"\$as_me:16576: $lt_compile\"" >&5) 16577 (eval "$lt_compile" 2>conftest.err) 16578 ac_status=$? 16579 cat conftest.err >&5 16580 echo "$as_me:16580: \$? = $ac_status" >&5 16581 if (exit $ac_status) && test -s "$ac_outfile"; then 16582 # The compiler can only warn and ignore the option if not recognized 16583 # So say no if there are warnings other than the usual output. 16584 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16586 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16587 lt_cv_prog_compiler_pic_works_GCJ=yes 16588 fi 16589 fi 16590 $rm conftest* 16591 16592fi 16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 16594$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 16595 16596if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 16597 case $lt_prog_compiler_pic_GCJ in 16598 "" | " "*) ;; 16599 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16600 esac 16601else 16602 lt_prog_compiler_pic_GCJ= 16603 lt_prog_compiler_can_build_shared_GCJ=no 16604fi 16605 16606fi 16607case $host_os in 16608 # For platforms which do not support PIC, -DPIC is meaningless: 16609 *djgpp*) 16610 lt_prog_compiler_pic_GCJ= 16611 ;; 16612 *) 16613 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16614 ;; 16615esac 16616 16617# 16618# Check to make sure the static flag actually works. 16619# 16620wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16622$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16623if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then : 16624 $as_echo_n "(cached) " >&6 16625else 16626 lt_cv_prog_compiler_static_works_GCJ=no 16627 save_LDFLAGS="$LDFLAGS" 16628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16629 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16631 # The linker can only warn and ignore the option if not recognized 16632 # So say no if there are warnings 16633 if test -s conftest.err; then 16634 # Append any errors to the config.log. 16635 cat conftest.err 1>&5 16636 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16638 if diff conftest.exp conftest.er2 >/dev/null; then 16639 lt_cv_prog_compiler_static_works_GCJ=yes 16640 fi 16641 else 16642 lt_cv_prog_compiler_static_works_GCJ=yes 16643 fi 16644 fi 16645 $rm -r conftest* 16646 LDFLAGS="$save_LDFLAGS" 16647 16648fi 16649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 16650$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 16651 16652if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 16653 : 16654else 16655 lt_prog_compiler_static_GCJ= 16656fi 16657 16658 16659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16660$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16661if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 16662 $as_echo_n "(cached) " >&6 16663else 16664 lt_cv_prog_compiler_c_o_GCJ=no 16665 $rm -r conftest 2>/dev/null 16666 mkdir conftest 16667 cd conftest 16668 mkdir out 16669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16670 16671 lt_compiler_flag="-o out/conftest2.$ac_objext" 16672 # Insert the option either (1) after the last *FLAGS variable, or 16673 # (2) before a word containing "conftest.", or (3) at the end. 16674 # Note that $ac_compile itself does not contain backslashes and begins 16675 # with a dollar sign (not a hyphen), so the echo should work correctly. 16676 lt_compile=`echo "$ac_compile" | $SED \ 16677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16679 -e 's:$: $lt_compiler_flag:'` 16680 (eval echo "\"\$as_me:16680: $lt_compile\"" >&5) 16681 (eval "$lt_compile" 2>out/conftest.err) 16682 ac_status=$? 16683 cat out/conftest.err >&5 16684 echo "$as_me:16684: \$? = $ac_status" >&5 16685 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16686 then 16687 # The compiler can only warn and ignore the option if not recognized 16688 # So say no if there are warnings 16689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16692 lt_cv_prog_compiler_c_o_GCJ=yes 16693 fi 16694 fi 16695 chmod u+w . 2>&5 16696 $rm conftest* 16697 # SGI C++ compiler will create directory out/ii_files/ for 16698 # template instantiation 16699 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16700 $rm out/* && rmdir out 16701 cd .. 16702 rmdir conftest 16703 $rm conftest* 16704 16705fi 16706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16707$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16708 16709 16710hard_links="nottested" 16711if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16712 # do not overwrite the value of need_locks provided by the user 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16714$as_echo_n "checking if we can lock with hard links... " >&6; } 16715 hard_links=yes 16716 $rm conftest* 16717 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16718 touch conftest.a 16719 ln conftest.a conftest.b 2>&5 || hard_links=no 16720 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16722$as_echo "$hard_links" >&6; } 16723 if test "$hard_links" = no; then 16724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16725$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16726 need_locks=warn 16727 fi 16728else 16729 need_locks=no 16730fi 16731 16732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16733$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16734 16735 runpath_var= 16736 allow_undefined_flag_GCJ= 16737 enable_shared_with_static_runtimes_GCJ=no 16738 archive_cmds_GCJ= 16739 archive_expsym_cmds_GCJ= 16740 old_archive_From_new_cmds_GCJ= 16741 old_archive_from_expsyms_cmds_GCJ= 16742 export_dynamic_flag_spec_GCJ= 16743 whole_archive_flag_spec_GCJ= 16744 thread_safe_flag_spec_GCJ= 16745 hardcode_libdir_flag_spec_GCJ= 16746 hardcode_libdir_flag_spec_ld_GCJ= 16747 hardcode_libdir_separator_GCJ= 16748 hardcode_direct_GCJ=no 16749 hardcode_minus_L_GCJ=no 16750 hardcode_shlibpath_var_GCJ=unsupported 16751 link_all_deplibs_GCJ=unknown 16752 hardcode_automatic_GCJ=no 16753 module_cmds_GCJ= 16754 module_expsym_cmds_GCJ= 16755 always_export_symbols_GCJ=no 16756 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16757 # include_expsyms should be a list of space-separated symbols to be *always* 16758 # included in the symbol list 16759 include_expsyms_GCJ= 16760 # exclude_expsyms can be an extended regexp of symbols to exclude 16761 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16762 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16763 # as well as any symbol that contains `d'. 16764 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16765 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16766 # platforms (ab)use it in PIC code, but their linkers get confused if 16767 # the symbol is explicitly referenced. Since portable code cannot 16768 # rely on this symbol name, it's probably fine to never include it in 16769 # preloaded symbol tables. 16770 # Exclude shared library initialization/finalization symbols. 16771 extract_expsyms_cmds= 16772 # Just being paranoid about ensuring that cc_basename is set. 16773 for cc_temp in $compiler""; do 16774 case $cc_temp in 16775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16777 \-*) ;; 16778 *) break;; 16779 esac 16780done 16781cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16782 16783 case $host_os in 16784 cygwin* | mingw* | pw32*) 16785 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16786 # When not using gcc, we currently assume that we are using 16787 # Microsoft Visual C++. 16788 if test "$GCC" != yes; then 16789 with_gnu_ld=no 16790 fi 16791 ;; 16792 interix*) 16793 # we just hope/assume this is gcc and not c89 (= MSVC++) 16794 with_gnu_ld=yes 16795 ;; 16796 openbsd*) 16797 with_gnu_ld=no 16798 ;; 16799 esac 16800 16801 ld_shlibs_GCJ=yes 16802 if test "$with_gnu_ld" = yes; then 16803 # If archive_cmds runs LD, not CC, wlarc should be empty 16804 wlarc='${wl}' 16805 16806 # Set some defaults for GNU ld with shared library support. These 16807 # are reset later if shared libraries are not supported. Putting them 16808 # here allows them to be overridden if necessary. 16809 runpath_var=LD_RUN_PATH 16810 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16811 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16812 # ancient GNU ld didn't support --whole-archive et. al. 16813 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16814 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16815 else 16816 whole_archive_flag_spec_GCJ= 16817 fi 16818 supports_anon_versioning=no 16819 case `$LD -v 2>/dev/null` in 16820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16823 *\ 2.11.*) ;; # other 2.11 versions 16824 *) supports_anon_versioning=yes ;; 16825 esac 16826 16827 # See if GNU ld supports shared libraries. 16828 case $host_os in 16829 aix[3-9]*) 16830 # On AIX/PPC, the GNU linker is very broken 16831 if test "$host_cpu" != ia64; then 16832 ld_shlibs_GCJ=no 16833 cat <<EOF 1>&2 16834 16835*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16836*** to be unable to reliably create shared libraries on AIX. 16837*** Therefore, libtool is disabling shared libraries support. If you 16838*** really care for shared libraries, you may want to modify your PATH 16839*** so that a non-GNU linker is found, and then restart. 16840 16841EOF 16842 fi 16843 ;; 16844 16845 amigaos*) 16846 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)' 16847 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16848 hardcode_minus_L_GCJ=yes 16849 16850 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16851 # that the semantics of dynamic libraries on AmigaOS, at least up 16852 # to version 4, is to share data among multiple programs linked 16853 # with the same dynamic library. Since this doesn't match the 16854 # behavior of shared libraries on other platforms, we can't use 16855 # them. 16856 ld_shlibs_GCJ=no 16857 ;; 16858 16859 beos*) 16860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16861 allow_undefined_flag_GCJ=unsupported 16862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16863 # support --undefined. This deserves some investigation. FIXME 16864 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16865 else 16866 ld_shlibs_GCJ=no 16867 fi 16868 ;; 16869 16870 cygwin* | mingw* | pw32*) 16871 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16872 # as there is no search path for DLLs. 16873 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16874 allow_undefined_flag_GCJ=unsupported 16875 always_export_symbols_GCJ=no 16876 enable_shared_with_static_runtimes_GCJ=yes 16877 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16878 16879 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16880 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16881 # If the export-symbols file already is a .def file (1st line 16882 # is EXPORTS), use it as is; otherwise, prepend... 16883 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16884 cp $export_symbols $output_objdir/$soname.def; 16885 else 16886 echo EXPORTS > $output_objdir/$soname.def; 16887 cat $export_symbols >> $output_objdir/$soname.def; 16888 fi~ 16889 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16890 else 16891 ld_shlibs_GCJ=no 16892 fi 16893 ;; 16894 16895 interix[3-9]*) 16896 hardcode_direct_GCJ=no 16897 hardcode_shlibpath_var_GCJ=no 16898 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16899 export_dynamic_flag_spec_GCJ='${wl}-E' 16900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16901 # Instead, shared libraries are loaded at an image base (0x10000000 by 16902 # default) and relocated if they conflict, which is a slow very memory 16903 # consuming and fragmenting process. To avoid this, we pick a random, 16904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16905 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16906 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' 16907 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' 16908 ;; 16909 16910 gnu* | linux* | k*bsd*-gnu) 16911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16912 tmp_addflag= 16913 case $cc_basename,$host_cpu in 16914 pgcc*) # Portland Group C compiler 16915 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' 16916 tmp_addflag=' $pic_flag' 16917 ;; 16918 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16919 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' 16920 tmp_addflag=' $pic_flag -Mnomain' ;; 16921 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16922 tmp_addflag=' -i_dynamic' ;; 16923 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16924 tmp_addflag=' -i_dynamic -nofor_main' ;; 16925 ifc* | ifort*) # Intel Fortran compiler 16926 tmp_addflag=' -nofor_main' ;; 16927 esac 16928 case `$CC -V 2>&1 | sed 5q` in 16929 *Sun\ C*) # Sun C 5.9 16930 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' 16931 tmp_sharedflag='-G' ;; 16932 *Sun\ F*) # Sun Fortran 8.3 16933 tmp_sharedflag='-G' ;; 16934 *) 16935 tmp_sharedflag='-shared' ;; 16936 esac 16937 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16938 16939 if test $supports_anon_versioning = yes; then 16940 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16942 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16943 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16944 fi 16945 else 16946 ld_shlibs_GCJ=no 16947 fi 16948 ;; 16949 16950 netbsd*) 16951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16952 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16953 wlarc= 16954 else 16955 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16956 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16957 fi 16958 ;; 16959 16960 solaris*) 16961 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16962 ld_shlibs_GCJ=no 16963 cat <<EOF 1>&2 16964 16965*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16966*** create shared libraries on Solaris systems. Therefore, libtool 16967*** is disabling shared libraries support. We urge you to upgrade GNU 16968*** binutils to release 2.9.1 or newer. Another option is to modify 16969*** your PATH or compiler configuration so that the native linker is 16970*** used, and then restart. 16971 16972EOF 16973 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16974 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16975 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16976 else 16977 ld_shlibs_GCJ=no 16978 fi 16979 ;; 16980 16981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16982 case `$LD -v 2>&1` in 16983 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16984 ld_shlibs_GCJ=no 16985 cat <<_LT_EOF 1>&2 16986 16987*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16988*** reliably create shared libraries on SCO systems. Therefore, libtool 16989*** is disabling shared libraries support. We urge you to upgrade GNU 16990*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16991*** your PATH or compiler configuration so that the native linker is 16992*** used, and then restart. 16993 16994_LT_EOF 16995 ;; 16996 *) 16997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16998 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17000 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17001 else 17002 ld_shlibs_GCJ=no 17003 fi 17004 ;; 17005 esac 17006 ;; 17007 17008 sunos4*) 17009 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17010 wlarc= 17011 hardcode_direct_GCJ=yes 17012 hardcode_shlibpath_var_GCJ=no 17013 ;; 17014 17015 *) 17016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17018 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17019 else 17020 ld_shlibs_GCJ=no 17021 fi 17022 ;; 17023 esac 17024 17025 if test "$ld_shlibs_GCJ" = no; then 17026 runpath_var= 17027 hardcode_libdir_flag_spec_GCJ= 17028 export_dynamic_flag_spec_GCJ= 17029 whole_archive_flag_spec_GCJ= 17030 fi 17031 else 17032 # PORTME fill in a description of your system's linker (not GNU ld) 17033 case $host_os in 17034 aix3*) 17035 allow_undefined_flag_GCJ=unsupported 17036 always_export_symbols_GCJ=yes 17037 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' 17038 # Note: this linker hardcodes the directories in LIBPATH if there 17039 # are no directories specified by -L. 17040 hardcode_minus_L_GCJ=yes 17041 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17042 # Neither direct hardcoding nor static linking is supported with a 17043 # broken collect2. 17044 hardcode_direct_GCJ=unsupported 17045 fi 17046 ;; 17047 17048 aix[4-9]*) 17049 if test "$host_cpu" = ia64; then 17050 # On IA64, the linker does run time linking by default, so we don't 17051 # have to do anything special. 17052 aix_use_runtimelinking=no 17053 exp_sym_flag='-Bexport' 17054 no_entry_flag="" 17055 else 17056 # If we're using GNU nm, then we don't want the "-C" option. 17057 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17058 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17059 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' 17060 else 17061 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' 17062 fi 17063 aix_use_runtimelinking=no 17064 17065 # Test if we are trying to use run time linking or normal 17066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17067 # need to do runtime linking. 17068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17069 for ld_flag in $LDFLAGS; do 17070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17071 aix_use_runtimelinking=yes 17072 break 17073 fi 17074 done 17075 ;; 17076 esac 17077 17078 exp_sym_flag='-bexport' 17079 no_entry_flag='-bnoentry' 17080 fi 17081 17082 # When large executables or shared objects are built, AIX ld can 17083 # have problems creating the table of contents. If linking a library 17084 # or program results in "error TOC overflow" add -mminimal-toc to 17085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17087 17088 archive_cmds_GCJ='' 17089 hardcode_direct_GCJ=yes 17090 hardcode_libdir_separator_GCJ=':' 17091 link_all_deplibs_GCJ=yes 17092 17093 if test "$GCC" = yes; then 17094 case $host_os in aix4.[012]|aix4.[012].*) 17095 # We only want to do this on AIX 4.2 and lower, the check 17096 # below for broken collect2 doesn't work under 4.3+ 17097 collect2name=`${CC} -print-prog-name=collect2` 17098 if test -f "$collect2name" && \ 17099 strings "$collect2name" | grep resolve_lib_name >/dev/null 17100 then 17101 # We have reworked collect2 17102 : 17103 else 17104 # We have old collect2 17105 hardcode_direct_GCJ=unsupported 17106 # It fails to find uninstalled libraries when the uninstalled 17107 # path is not listed in the libpath. Setting hardcode_minus_L 17108 # to unsupported forces relinking 17109 hardcode_minus_L_GCJ=yes 17110 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17111 hardcode_libdir_separator_GCJ= 17112 fi 17113 ;; 17114 esac 17115 shared_flag='-shared' 17116 if test "$aix_use_runtimelinking" = yes; then 17117 shared_flag="$shared_flag "'${wl}-G' 17118 fi 17119 else 17120 # not using gcc 17121 if test "$host_cpu" = ia64; then 17122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17123 # chokes on -Wl,-G. The following line is correct: 17124 shared_flag='-G' 17125 else 17126 if test "$aix_use_runtimelinking" = yes; then 17127 shared_flag='${wl}-G' 17128 else 17129 shared_flag='${wl}-bM:SRE' 17130 fi 17131 fi 17132 fi 17133 17134 # It seems that -bexpall does not export symbols beginning with 17135 # underscore (_), so it is better to generate a list of symbols to export. 17136 always_export_symbols_GCJ=yes 17137 if test "$aix_use_runtimelinking" = yes; then 17138 # Warning - without using the other runtime loading flags (-brtl), 17139 # -berok will link without error, but may produce a broken library. 17140 allow_undefined_flag_GCJ='-berok' 17141 # Determine the default libpath from the value encoded in an empty executable. 17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17143/* end confdefs.h. */ 17144 17145int 17146main () 17147{ 17148 17149 ; 17150 return 0; 17151} 17152_ACEOF 17153if ac_fn_c_try_link "$LINENO"; then : 17154 17155lt_aix_libpath_sed=' 17156 /Import File Strings/,/^$/ { 17157 /^0/ { 17158 s/^0 *\(.*\)$/\1/ 17159 p 17160 } 17161 }' 17162aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17163# Check for a 64-bit object if we didn't find anything. 17164if test -z "$aix_libpath"; then 17165 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17166fi 17167fi 17168rm -f core conftest.err conftest.$ac_objext \ 17169 conftest$ac_exeext conftest.$ac_ext 17170if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17171 17172 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17173 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" 17174 else 17175 if test "$host_cpu" = ia64; then 17176 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17177 allow_undefined_flag_GCJ="-z nodefs" 17178 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" 17179 else 17180 # Determine the default libpath from the value encoded in an empty executable. 17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17182/* end confdefs.h. */ 17183 17184int 17185main () 17186{ 17187 17188 ; 17189 return 0; 17190} 17191_ACEOF 17192if ac_fn_c_try_link "$LINENO"; then : 17193 17194lt_aix_libpath_sed=' 17195 /Import File Strings/,/^$/ { 17196 /^0/ { 17197 s/^0 *\(.*\)$/\1/ 17198 p 17199 } 17200 }' 17201aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17202# Check for a 64-bit object if we didn't find anything. 17203if test -z "$aix_libpath"; then 17204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17205fi 17206fi 17207rm -f core conftest.err conftest.$ac_objext \ 17208 conftest$ac_exeext conftest.$ac_ext 17209if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17210 17211 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17212 # Warning - without using the other run time loading flags, 17213 # -berok will link without error, but may produce a broken library. 17214 no_undefined_flag_GCJ=' ${wl}-bernotok' 17215 allow_undefined_flag_GCJ=' ${wl}-berok' 17216 # Exported symbols can be pulled into shared objects from archives 17217 whole_archive_flag_spec_GCJ='$convenience' 17218 archive_cmds_need_lc_GCJ=yes 17219 # This is similar to how AIX traditionally builds its shared libraries. 17220 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' 17221 fi 17222 fi 17223 ;; 17224 17225 amigaos*) 17226 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)' 17227 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17228 hardcode_minus_L_GCJ=yes 17229 # see comment about different semantics on the GNU ld section 17230 ld_shlibs_GCJ=no 17231 ;; 17232 17233 bsdi[45]*) 17234 export_dynamic_flag_spec_GCJ=-rdynamic 17235 ;; 17236 17237 cygwin* | mingw* | pw32*) 17238 # When not using gcc, we currently assume that we are using 17239 # Microsoft Visual C++. 17240 # hardcode_libdir_flag_spec is actually meaningless, as there is 17241 # no search path for DLLs. 17242 hardcode_libdir_flag_spec_GCJ=' ' 17243 allow_undefined_flag_GCJ=unsupported 17244 # Tell ltmain to make .lib files, not .a files. 17245 libext=lib 17246 # Tell ltmain to make .dll files, not .so files. 17247 shrext_cmds=".dll" 17248 # FIXME: Setting linknames here is a bad hack. 17249 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17250 # The linker will automatically build a .lib file if we build a DLL. 17251 old_archive_From_new_cmds_GCJ='true' 17252 # FIXME: Should let the user specify the lib program. 17253 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17254 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17255 enable_shared_with_static_runtimes_GCJ=yes 17256 ;; 17257 17258 darwin* | rhapsody*) 17259 case $host_os in 17260 rhapsody* | darwin1.[012]) 17261 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17262 ;; 17263 *) # Darwin 1.3 on 17264 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17265 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17266 else 17267 case ${MACOSX_DEPLOYMENT_TARGET} in 17268 10.[012]) 17269 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17270 ;; 17271 10.*) 17272 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17273 ;; 17274 esac 17275 fi 17276 ;; 17277 esac 17278 archive_cmds_need_lc_GCJ=no 17279 hardcode_direct_GCJ=no 17280 hardcode_automatic_GCJ=yes 17281 hardcode_shlibpath_var_GCJ=unsupported 17282 whole_archive_flag_spec_GCJ='' 17283 link_all_deplibs_GCJ=yes 17284 if test "$GCC" = yes ; then 17285 output_verbose_link_cmd='echo' 17286 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}" 17287 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17288 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}" 17289 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}" 17290 else 17291 case $cc_basename in 17292 xlc*) 17293 output_verbose_link_cmd='echo' 17294 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17295 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17296 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17297 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}' 17298 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}' 17299 ;; 17300 *) 17301 ld_shlibs_GCJ=no 17302 ;; 17303 esac 17304 fi 17305 ;; 17306 17307 dgux*) 17308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17309 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17310 hardcode_shlibpath_var_GCJ=no 17311 ;; 17312 17313 freebsd1*) 17314 ld_shlibs_GCJ=no 17315 ;; 17316 17317 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17318 # support. Future versions do this automatically, but an explicit c++rt0.o 17319 # does not break anything, and helps significantly (at the cost of a little 17320 # extra space). 17321 freebsd2.2*) 17322 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17323 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17324 hardcode_direct_GCJ=yes 17325 hardcode_shlibpath_var_GCJ=no 17326 ;; 17327 17328 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17329 freebsd2*) 17330 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17331 hardcode_direct_GCJ=yes 17332 hardcode_minus_L_GCJ=yes 17333 hardcode_shlibpath_var_GCJ=no 17334 ;; 17335 17336 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17337 freebsd* | dragonfly*) 17338 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17339 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17340 hardcode_direct_GCJ=yes 17341 hardcode_shlibpath_var_GCJ=no 17342 ;; 17343 17344 hpux9*) 17345 if test "$GCC" = yes; then 17346 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' 17347 else 17348 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' 17349 fi 17350 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17351 hardcode_libdir_separator_GCJ=: 17352 hardcode_direct_GCJ=yes 17353 17354 # hardcode_minus_L: Not really in the search PATH, 17355 # but as the default location of the library. 17356 hardcode_minus_L_GCJ=yes 17357 export_dynamic_flag_spec_GCJ='${wl}-E' 17358 ;; 17359 17360 hpux10*) 17361 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17362 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17363 else 17364 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17365 fi 17366 if test "$with_gnu_ld" = no; then 17367 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17368 hardcode_libdir_separator_GCJ=: 17369 17370 hardcode_direct_GCJ=yes 17371 export_dynamic_flag_spec_GCJ='${wl}-E' 17372 17373 # hardcode_minus_L: Not really in the search PATH, 17374 # but as the default location of the library. 17375 hardcode_minus_L_GCJ=yes 17376 fi 17377 ;; 17378 17379 hpux11*) 17380 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17381 case $host_cpu in 17382 hppa*64*) 17383 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17384 ;; 17385 ia64*) 17386 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17387 ;; 17388 *) 17389 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17390 ;; 17391 esac 17392 else 17393 case $host_cpu in 17394 hppa*64*) 17395 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17396 ;; 17397 ia64*) 17398 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17399 ;; 17400 *) 17401 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17402 ;; 17403 esac 17404 fi 17405 if test "$with_gnu_ld" = no; then 17406 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17407 hardcode_libdir_separator_GCJ=: 17408 17409 case $host_cpu in 17410 hppa*64*|ia64*) 17411 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17412 hardcode_direct_GCJ=no 17413 hardcode_shlibpath_var_GCJ=no 17414 ;; 17415 *) 17416 hardcode_direct_GCJ=yes 17417 export_dynamic_flag_spec_GCJ='${wl}-E' 17418 17419 # hardcode_minus_L: Not really in the search PATH, 17420 # but as the default location of the library. 17421 hardcode_minus_L_GCJ=yes 17422 ;; 17423 esac 17424 fi 17425 ;; 17426 17427 irix5* | irix6* | nonstopux*) 17428 if test "$GCC" = yes; then 17429 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' 17430 else 17431 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' 17432 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17433 fi 17434 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17435 hardcode_libdir_separator_GCJ=: 17436 link_all_deplibs_GCJ=yes 17437 ;; 17438 17439 netbsd*) 17440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17441 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17442 else 17443 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17444 fi 17445 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17446 hardcode_direct_GCJ=yes 17447 hardcode_shlibpath_var_GCJ=no 17448 ;; 17449 17450 newsos6) 17451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17452 hardcode_direct_GCJ=yes 17453 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17454 hardcode_libdir_separator_GCJ=: 17455 hardcode_shlibpath_var_GCJ=no 17456 ;; 17457 17458 openbsd*) 17459 if test -f /usr/libexec/ld.so; then 17460 hardcode_direct_GCJ=yes 17461 hardcode_shlibpath_var_GCJ=no 17462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17463 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17464 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17465 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17466 export_dynamic_flag_spec_GCJ='${wl}-E' 17467 else 17468 case $host_os in 17469 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17470 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17471 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17472 ;; 17473 *) 17474 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17475 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17476 ;; 17477 esac 17478 fi 17479 else 17480 ld_shlibs_GCJ=no 17481 fi 17482 ;; 17483 17484 os2*) 17485 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17486 hardcode_minus_L_GCJ=yes 17487 allow_undefined_flag_GCJ=unsupported 17488 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' 17489 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17490 ;; 17491 17492 osf3*) 17493 if test "$GCC" = yes; then 17494 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17495 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' 17496 else 17497 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17498 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' 17499 fi 17500 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17501 hardcode_libdir_separator_GCJ=: 17502 ;; 17503 17504 osf4* | osf5*) # as osf3* with the addition of -msym flag 17505 if test "$GCC" = yes; then 17506 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17507 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' 17508 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17509 else 17510 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17511 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' 17512 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~ 17513 $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' 17514 17515 # Both c and cxx compiler support -rpath directly 17516 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17517 fi 17518 hardcode_libdir_separator_GCJ=: 17519 ;; 17520 17521 solaris*) 17522 no_undefined_flag_GCJ=' -z text' 17523 if test "$GCC" = yes; then 17524 wlarc='${wl}' 17525 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17526 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17527 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17528 else 17529 wlarc='' 17530 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17531 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17532 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17533 fi 17534 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17535 hardcode_shlibpath_var_GCJ=no 17536 case $host_os in 17537 solaris2.[0-5] | solaris2.[0-5].*) ;; 17538 *) 17539 # The compiler driver will combine and reorder linker options, 17540 # but understands `-z linker_flag'. GCC discards it without `$wl', 17541 # but is careful enough not to reorder. 17542 # Supported since Solaris 2.6 (maybe 2.5.1?) 17543 if test "$GCC" = yes; then 17544 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17545 else 17546 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17547 fi 17548 ;; 17549 esac 17550 link_all_deplibs_GCJ=yes 17551 ;; 17552 17553 sunos4*) 17554 if test "x$host_vendor" = xsequent; then 17555 # Use $CC to link under sequent, because it throws in some extra .o 17556 # files that make .init and .fini sections work. 17557 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17558 else 17559 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17560 fi 17561 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17562 hardcode_direct_GCJ=yes 17563 hardcode_minus_L_GCJ=yes 17564 hardcode_shlibpath_var_GCJ=no 17565 ;; 17566 17567 sysv4) 17568 case $host_vendor in 17569 sni) 17570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17571 hardcode_direct_GCJ=yes # is this really true??? 17572 ;; 17573 siemens) 17574 ## LD is ld it makes a PLAMLIB 17575 ## CC just makes a GrossModule. 17576 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17577 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17578 hardcode_direct_GCJ=no 17579 ;; 17580 motorola) 17581 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17582 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17583 ;; 17584 esac 17585 runpath_var='LD_RUN_PATH' 17586 hardcode_shlibpath_var_GCJ=no 17587 ;; 17588 17589 sysv4.3*) 17590 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17591 hardcode_shlibpath_var_GCJ=no 17592 export_dynamic_flag_spec_GCJ='-Bexport' 17593 ;; 17594 17595 sysv4*MP*) 17596 if test -d /usr/nec; then 17597 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17598 hardcode_shlibpath_var_GCJ=no 17599 runpath_var=LD_RUN_PATH 17600 hardcode_runpath_var=yes 17601 ld_shlibs_GCJ=yes 17602 fi 17603 ;; 17604 17605 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17606 no_undefined_flag_GCJ='${wl}-z,text' 17607 archive_cmds_need_lc_GCJ=no 17608 hardcode_shlibpath_var_GCJ=no 17609 runpath_var='LD_RUN_PATH' 17610 17611 if test "$GCC" = yes; then 17612 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17613 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17614 else 17615 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17616 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17617 fi 17618 ;; 17619 17620 sysv5* | sco3.2v5* | sco5v6*) 17621 # Note: We can NOT use -z defs as we might desire, because we do not 17622 # link with -lc, and that would cause any symbols used from libc to 17623 # always be unresolved, which means just about no library would 17624 # ever link correctly. If we're not using GNU ld we use -z text 17625 # though, which does catch some bad symbols but isn't as heavy-handed 17626 # as -z defs. 17627 no_undefined_flag_GCJ='${wl}-z,text' 17628 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17629 archive_cmds_need_lc_GCJ=no 17630 hardcode_shlibpath_var_GCJ=no 17631 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17632 hardcode_libdir_separator_GCJ=':' 17633 link_all_deplibs_GCJ=yes 17634 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17635 runpath_var='LD_RUN_PATH' 17636 17637 if test "$GCC" = yes; then 17638 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17639 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17640 else 17641 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17642 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17643 fi 17644 ;; 17645 17646 uts4*) 17647 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17648 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17649 hardcode_shlibpath_var_GCJ=no 17650 ;; 17651 17652 *) 17653 ld_shlibs_GCJ=no 17654 ;; 17655 esac 17656 fi 17657 17658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 17659$as_echo "$ld_shlibs_GCJ" >&6; } 17660test "$ld_shlibs_GCJ" = no && can_build_shared=no 17661 17662# 17663# Do we need to explicitly link libc? 17664# 17665case "x$archive_cmds_need_lc_GCJ" in 17666x|xyes) 17667 # Assume -lc should be added 17668 archive_cmds_need_lc_GCJ=yes 17669 17670 if test "$enable_shared" = yes && test "$GCC" = yes; then 17671 case $archive_cmds_GCJ in 17672 *'~'*) 17673 # FIXME: we may have to deal with multi-command sequences. 17674 ;; 17675 '$CC '*) 17676 # Test whether the compiler implicitly links with -lc since on some 17677 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17678 # to ld, don't add -lc before -lgcc. 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17680$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17681 $rm conftest* 17682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17683 17684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17685 (eval $ac_compile) 2>&5 17686 ac_status=$? 17687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17688 test $ac_status = 0; } 2>conftest.err; then 17689 soname=conftest 17690 lib=conftest 17691 libobjs=conftest.$ac_objext 17692 deplibs= 17693 wl=$lt_prog_compiler_wl_GCJ 17694 pic_flag=$lt_prog_compiler_pic_GCJ 17695 compiler_flags=-v 17696 linker_flags=-v 17697 verstring= 17698 output_objdir=. 17699 libname=conftest 17700 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17701 allow_undefined_flag_GCJ= 17702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17703 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17704 ac_status=$? 17705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17706 test $ac_status = 0; } 17707 then 17708 archive_cmds_need_lc_GCJ=no 17709 else 17710 archive_cmds_need_lc_GCJ=yes 17711 fi 17712 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17713 else 17714 cat conftest.err 1>&5 17715 fi 17716 $rm conftest* 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 17718$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 17719 ;; 17720 esac 17721 fi 17722 ;; 17723esac 17724 17725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17726$as_echo_n "checking dynamic linker characteristics... " >&6; } 17727library_names_spec= 17728libname_spec='lib$name' 17729soname_spec= 17730shrext_cmds=".so" 17731postinstall_cmds= 17732postuninstall_cmds= 17733finish_cmds= 17734finish_eval= 17735shlibpath_var= 17736shlibpath_overrides_runpath=unknown 17737version_type=none 17738dynamic_linker="$host_os ld.so" 17739sys_lib_dlsearch_path_spec="/lib /usr/lib" 17740 17741need_lib_prefix=unknown 17742hardcode_into_libs=no 17743 17744# when you set need_version to no, make sure it does not cause -set_version 17745# flags to be left without arguments 17746need_version=unknown 17747 17748case $host_os in 17749aix3*) 17750 version_type=linux 17751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17752 shlibpath_var=LIBPATH 17753 17754 # AIX 3 has no versioning support, so we append a major version to the name. 17755 soname_spec='${libname}${release}${shared_ext}$major' 17756 ;; 17757 17758aix[4-9]*) 17759 version_type=linux 17760 need_lib_prefix=no 17761 need_version=no 17762 hardcode_into_libs=yes 17763 if test "$host_cpu" = ia64; then 17764 # AIX 5 supports IA64 17765 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17766 shlibpath_var=LD_LIBRARY_PATH 17767 else 17768 # With GCC up to 2.95.x, collect2 would create an import file 17769 # for dependence libraries. The import file would start with 17770 # the line `#! .'. This would cause the generated library to 17771 # depend on `.', always an invalid library. This was fixed in 17772 # development snapshots of GCC prior to 3.0. 17773 case $host_os in 17774 aix4 | aix4.[01] | aix4.[01].*) 17775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17776 echo ' yes ' 17777 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17778 : 17779 else 17780 can_build_shared=no 17781 fi 17782 ;; 17783 esac 17784 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17785 # soname into executable. Probably we can add versioning support to 17786 # collect2, so additional links can be useful in future. 17787 if test "$aix_use_runtimelinking" = yes; then 17788 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17789 # instead of lib<name>.a to let people know that these are not 17790 # typical AIX shared libraries. 17791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17792 else 17793 # We preserve .a as extension for shared libraries through AIX4.2 17794 # and later when we are not doing run time linking. 17795 library_names_spec='${libname}${release}.a $libname.a' 17796 soname_spec='${libname}${release}${shared_ext}$major' 17797 fi 17798 shlibpath_var=LIBPATH 17799 fi 17800 ;; 17801 17802amigaos*) 17803 library_names_spec='$libname.ixlibrary $libname.a' 17804 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17805 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' 17806 ;; 17807 17808beos*) 17809 library_names_spec='${libname}${shared_ext}' 17810 dynamic_linker="$host_os ld.so" 17811 shlibpath_var=LIBRARY_PATH 17812 ;; 17813 17814bsdi[45]*) 17815 version_type=linux 17816 need_version=no 17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17818 soname_spec='${libname}${release}${shared_ext}$major' 17819 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17820 shlibpath_var=LD_LIBRARY_PATH 17821 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17822 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17823 # the default ld.so.conf also contains /usr/contrib/lib and 17824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17825 # libtool to hard-code these into programs 17826 ;; 17827 17828cygwin* | mingw* | pw32*) 17829 version_type=windows 17830 shrext_cmds=".dll" 17831 need_version=no 17832 need_lib_prefix=no 17833 17834 case $GCC,$host_os in 17835 yes,cygwin* | yes,mingw* | yes,pw32*) 17836 library_names_spec='$libname.dll.a' 17837 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17838 postinstall_cmds='base_file=`basename \${file}`~ 17839 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17840 dldir=$destdir/`dirname \$dlpath`~ 17841 test -d \$dldir || mkdir -p \$dldir~ 17842 $install_prog $dir/$dlname \$dldir/$dlname~ 17843 chmod a+x \$dldir/$dlname' 17844 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17845 dlpath=$dir/\$dldll~ 17846 $rm \$dlpath' 17847 shlibpath_overrides_runpath=yes 17848 17849 case $host_os in 17850 cygwin*) 17851 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17852 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17853 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17854 ;; 17855 mingw*) 17856 # MinGW DLLs use traditional 'lib' prefix 17857 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17858 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17859 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17860 # It is most probably a Windows format PATH printed by 17861 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17862 # path with ; separators, and with drive letters. We can handle the 17863 # drive letters (cygwin fileutils understands them), so leave them, 17864 # especially as we might pass files found there to a mingw objdump, 17865 # which wouldn't understand a cygwinified path. Ahh. 17866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17867 else 17868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17869 fi 17870 ;; 17871 pw32*) 17872 # pw32 DLLs use 'pw' prefix rather than 'lib' 17873 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17874 ;; 17875 esac 17876 ;; 17877 17878 *) 17879 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17880 ;; 17881 esac 17882 dynamic_linker='Win32 ld.exe' 17883 # FIXME: first we should search . and the directory the executable is in 17884 shlibpath_var=PATH 17885 ;; 17886 17887darwin* | rhapsody*) 17888 dynamic_linker="$host_os dyld" 17889 version_type=darwin 17890 need_lib_prefix=no 17891 need_version=no 17892 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17893 soname_spec='${libname}${release}${major}$shared_ext' 17894 shlibpath_overrides_runpath=yes 17895 shlibpath_var=DYLD_LIBRARY_PATH 17896 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17897 17898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17899 ;; 17900 17901dgux*) 17902 version_type=linux 17903 need_lib_prefix=no 17904 need_version=no 17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17906 soname_spec='${libname}${release}${shared_ext}$major' 17907 shlibpath_var=LD_LIBRARY_PATH 17908 ;; 17909 17910freebsd1*) 17911 dynamic_linker=no 17912 ;; 17913 17914freebsd* | dragonfly*) 17915 # DragonFly does not have aout. When/if they implement a new 17916 # versioning mechanism, adjust this. 17917 if test -x /usr/bin/objformat; then 17918 objformat=`/usr/bin/objformat` 17919 else 17920 case $host_os in 17921 freebsd[123]*) objformat=aout ;; 17922 *) objformat=elf ;; 17923 esac 17924 fi 17925 version_type=freebsd-$objformat 17926 case $version_type in 17927 freebsd-elf*) 17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17929 need_version=no 17930 need_lib_prefix=no 17931 ;; 17932 freebsd-*) 17933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17934 need_version=yes 17935 ;; 17936 esac 17937 shlibpath_var=LD_LIBRARY_PATH 17938 case $host_os in 17939 freebsd2*) 17940 shlibpath_overrides_runpath=yes 17941 ;; 17942 freebsd3.[01]* | freebsdelf3.[01]*) 17943 shlibpath_overrides_runpath=yes 17944 hardcode_into_libs=yes 17945 ;; 17946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17948 shlibpath_overrides_runpath=no 17949 hardcode_into_libs=yes 17950 ;; 17951 *) # from 4.6 on, and DragonFly 17952 shlibpath_overrides_runpath=yes 17953 hardcode_into_libs=yes 17954 ;; 17955 esac 17956 ;; 17957 17958gnu*) 17959 version_type=linux 17960 need_lib_prefix=no 17961 need_version=no 17962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17963 soname_spec='${libname}${release}${shared_ext}$major' 17964 shlibpath_var=LD_LIBRARY_PATH 17965 hardcode_into_libs=yes 17966 ;; 17967 17968hpux9* | hpux10* | hpux11*) 17969 # Give a soname corresponding to the major version so that dld.sl refuses to 17970 # link against other versions. 17971 version_type=sunos 17972 need_lib_prefix=no 17973 need_version=no 17974 case $host_cpu in 17975 ia64*) 17976 shrext_cmds='.so' 17977 hardcode_into_libs=yes 17978 dynamic_linker="$host_os dld.so" 17979 shlibpath_var=LD_LIBRARY_PATH 17980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17982 soname_spec='${libname}${release}${shared_ext}$major' 17983 if test "X$HPUX_IA64_MODE" = X32; then 17984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17985 else 17986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17987 fi 17988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17989 ;; 17990 hppa*64*) 17991 shrext_cmds='.sl' 17992 hardcode_into_libs=yes 17993 dynamic_linker="$host_os dld.sl" 17994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17997 soname_spec='${libname}${release}${shared_ext}$major' 17998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18000 ;; 18001 *) 18002 shrext_cmds='.sl' 18003 dynamic_linker="$host_os dld.sl" 18004 shlibpath_var=SHLIB_PATH 18005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18007 soname_spec='${libname}${release}${shared_ext}$major' 18008 ;; 18009 esac 18010 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18011 postinstall_cmds='chmod 555 $lib' 18012 ;; 18013 18014interix[3-9]*) 18015 version_type=linux 18016 need_lib_prefix=no 18017 need_version=no 18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18019 soname_spec='${libname}${release}${shared_ext}$major' 18020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18021 shlibpath_var=LD_LIBRARY_PATH 18022 shlibpath_overrides_runpath=no 18023 hardcode_into_libs=yes 18024 ;; 18025 18026irix5* | irix6* | nonstopux*) 18027 case $host_os in 18028 nonstopux*) version_type=nonstopux ;; 18029 *) 18030 if test "$lt_cv_prog_gnu_ld" = yes; then 18031 version_type=linux 18032 else 18033 version_type=irix 18034 fi ;; 18035 esac 18036 need_lib_prefix=no 18037 need_version=no 18038 soname_spec='${libname}${release}${shared_ext}$major' 18039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18040 case $host_os in 18041 irix5* | nonstopux*) 18042 libsuff= shlibsuff= 18043 ;; 18044 *) 18045 case $LD in # libtool.m4 will add one of these switches to LD 18046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18047 libsuff= shlibsuff= libmagic=32-bit;; 18048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18049 libsuff=32 shlibsuff=N32 libmagic=N32;; 18050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18051 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18052 *) libsuff= shlibsuff= libmagic=never-match;; 18053 esac 18054 ;; 18055 esac 18056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18057 shlibpath_overrides_runpath=no 18058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18060 hardcode_into_libs=yes 18061 ;; 18062 18063# No shared lib support for Linux oldld, aout, or coff. 18064linux*oldld* | linux*aout* | linux*coff*) 18065 dynamic_linker=no 18066 ;; 18067 18068# This must be Linux ELF. 18069linux* | k*bsd*-gnu) 18070 version_type=linux 18071 need_lib_prefix=no 18072 need_version=no 18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18074 soname_spec='${libname}${release}${shared_ext}$major' 18075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18076 shlibpath_var=LD_LIBRARY_PATH 18077 shlibpath_overrides_runpath=no 18078 # This implies no fast_install, which is unacceptable. 18079 # Some rework will be needed to allow for fast_install 18080 # before this can be enabled. 18081 hardcode_into_libs=yes 18082 18083 # Append ld.so.conf contents to the search path 18084 if test -f /etc/ld.so.conf; then 18085 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' ' '` 18086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18087 fi 18088 18089 # We used to test for /lib/ld.so.1 and disable shared libraries on 18090 # powerpc, because MkLinux only supported shared libraries with the 18091 # GNU dynamic linker. Since this was broken with cross compilers, 18092 # most powerpc-linux boxes support dynamic linking these days and 18093 # people can always --disable-shared, the test was removed, and we 18094 # assume the GNU/Linux dynamic linker is in use. 18095 dynamic_linker='GNU/Linux ld.so' 18096 ;; 18097 18098netbsd*) 18099 version_type=sunos 18100 need_lib_prefix=no 18101 need_version=no 18102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18105 dynamic_linker='NetBSD (a.out) ld.so' 18106 else 18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18108 soname_spec='${libname}${release}${shared_ext}$major' 18109 dynamic_linker='NetBSD ld.elf_so' 18110 fi 18111 shlibpath_var=LD_LIBRARY_PATH 18112 shlibpath_overrides_runpath=yes 18113 hardcode_into_libs=yes 18114 ;; 18115 18116newsos6) 18117 version_type=linux 18118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18119 shlibpath_var=LD_LIBRARY_PATH 18120 shlibpath_overrides_runpath=yes 18121 ;; 18122 18123nto-qnx*) 18124 version_type=linux 18125 need_lib_prefix=no 18126 need_version=no 18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18128 soname_spec='${libname}${release}${shared_ext}$major' 18129 shlibpath_var=LD_LIBRARY_PATH 18130 shlibpath_overrides_runpath=yes 18131 ;; 18132 18133openbsd*) 18134 version_type=sunos 18135 sys_lib_dlsearch_path_spec="/usr/lib" 18136 need_lib_prefix=no 18137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18138 case $host_os in 18139 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18140 *) need_version=no ;; 18141 esac 18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18144 shlibpath_var=LD_LIBRARY_PATH 18145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18146 case $host_os in 18147 openbsd2.[89] | openbsd2.[89].*) 18148 shlibpath_overrides_runpath=no 18149 ;; 18150 *) 18151 shlibpath_overrides_runpath=yes 18152 ;; 18153 esac 18154 else 18155 shlibpath_overrides_runpath=yes 18156 fi 18157 ;; 18158 18159os2*) 18160 libname_spec='$name' 18161 shrext_cmds=".dll" 18162 need_lib_prefix=no 18163 library_names_spec='$libname${shared_ext} $libname.a' 18164 dynamic_linker='OS/2 ld.exe' 18165 shlibpath_var=LIBPATH 18166 ;; 18167 18168osf3* | osf4* | osf5*) 18169 version_type=osf 18170 need_lib_prefix=no 18171 need_version=no 18172 soname_spec='${libname}${release}${shared_ext}$major' 18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18174 shlibpath_var=LD_LIBRARY_PATH 18175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18177 ;; 18178 18179rdos*) 18180 dynamic_linker=no 18181 ;; 18182 18183solaris*) 18184 version_type=linux 18185 need_lib_prefix=no 18186 need_version=no 18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18188 soname_spec='${libname}${release}${shared_ext}$major' 18189 shlibpath_var=LD_LIBRARY_PATH 18190 shlibpath_overrides_runpath=yes 18191 hardcode_into_libs=yes 18192 # ldd complains unless libraries are executable 18193 postinstall_cmds='chmod +x $lib' 18194 ;; 18195 18196sunos4*) 18197 version_type=sunos 18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18200 shlibpath_var=LD_LIBRARY_PATH 18201 shlibpath_overrides_runpath=yes 18202 if test "$with_gnu_ld" = yes; then 18203 need_lib_prefix=no 18204 fi 18205 need_version=yes 18206 ;; 18207 18208sysv4 | sysv4.3*) 18209 version_type=linux 18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18211 soname_spec='${libname}${release}${shared_ext}$major' 18212 shlibpath_var=LD_LIBRARY_PATH 18213 case $host_vendor in 18214 sni) 18215 shlibpath_overrides_runpath=no 18216 need_lib_prefix=no 18217 export_dynamic_flag_spec='${wl}-Blargedynsym' 18218 runpath_var=LD_RUN_PATH 18219 ;; 18220 siemens) 18221 need_lib_prefix=no 18222 ;; 18223 motorola) 18224 need_lib_prefix=no 18225 need_version=no 18226 shlibpath_overrides_runpath=no 18227 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18228 ;; 18229 esac 18230 ;; 18231 18232sysv4*MP*) 18233 if test -d /usr/nec ;then 18234 version_type=linux 18235 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18236 soname_spec='$libname${shared_ext}.$major' 18237 shlibpath_var=LD_LIBRARY_PATH 18238 fi 18239 ;; 18240 18241sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18242 version_type=freebsd-elf 18243 need_lib_prefix=no 18244 need_version=no 18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18246 soname_spec='${libname}${release}${shared_ext}$major' 18247 shlibpath_var=LD_LIBRARY_PATH 18248 hardcode_into_libs=yes 18249 if test "$with_gnu_ld" = yes; then 18250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18251 shlibpath_overrides_runpath=no 18252 else 18253 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18254 shlibpath_overrides_runpath=yes 18255 case $host_os in 18256 sco3.2v5*) 18257 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18258 ;; 18259 esac 18260 fi 18261 sys_lib_dlsearch_path_spec='/usr/lib' 18262 ;; 18263 18264uts4*) 18265 version_type=linux 18266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18267 soname_spec='${libname}${release}${shared_ext}$major' 18268 shlibpath_var=LD_LIBRARY_PATH 18269 ;; 18270 18271*) 18272 dynamic_linker=no 18273 ;; 18274esac 18275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18276$as_echo "$dynamic_linker" >&6; } 18277test "$dynamic_linker" = no && can_build_shared=no 18278 18279if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 18280 $as_echo_n "(cached) " >&6 18281else 18282 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18283fi 18284 18285sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18286if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 18287 $as_echo_n "(cached) " >&6 18288else 18289 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18290fi 18291 18292sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18293 18294variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18295if test "$GCC" = yes; then 18296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18297fi 18298 18299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18300$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18301hardcode_action_GCJ= 18302if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18303 test -n "$runpath_var_GCJ" || \ 18304 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18305 18306 # We can hardcode non-existant directories. 18307 if test "$hardcode_direct_GCJ" != no && 18308 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18309 # have to relink, otherwise we might link with an installed library 18310 # when we should be linking with a yet-to-be-installed one 18311 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18312 test "$hardcode_minus_L_GCJ" != no; then 18313 # Linking always hardcodes the temporary library directory. 18314 hardcode_action_GCJ=relink 18315 else 18316 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18317 hardcode_action_GCJ=immediate 18318 fi 18319else 18320 # We cannot hardcode anything, or else we can only hardcode existing 18321 # directories. 18322 hardcode_action_GCJ=unsupported 18323fi 18324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 18325$as_echo "$hardcode_action_GCJ" >&6; } 18326 18327if test "$hardcode_action_GCJ" = relink; then 18328 # Fast installation is not supported 18329 enable_fast_install=no 18330elif test "$shlibpath_overrides_runpath" = yes || 18331 test "$enable_shared" = no; then 18332 # Fast installation is not necessary 18333 enable_fast_install=needless 18334fi 18335 18336 18337# The else clause should only fire when bootstrapping the 18338# libtool distribution, otherwise you forgot to ship ltmain.sh 18339# with your package, and you will get complaints that there are 18340# no rules to generate ltmain.sh. 18341if test -f "$ltmain"; then 18342 # See if we are running on zsh, and set the options which allow our commands through 18343 # without removal of \ escapes. 18344 if test -n "${ZSH_VERSION+set}" ; then 18345 setopt NO_GLOB_SUBST 18346 fi 18347 # Now quote all the things that may contain metacharacters while being 18348 # careful not to overquote the AC_SUBSTed values. We take copies of the 18349 # variables and quote the copies for generation of the libtool script. 18350 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18351 SED SHELL STRIP \ 18352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18354 deplibs_check_method reload_flag reload_cmds need_locks \ 18355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18356 lt_cv_sys_global_symbol_to_c_name_address \ 18357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18358 old_postinstall_cmds old_postuninstall_cmds \ 18359 compiler_GCJ \ 18360 CC_GCJ \ 18361 LD_GCJ \ 18362 lt_prog_compiler_wl_GCJ \ 18363 lt_prog_compiler_pic_GCJ \ 18364 lt_prog_compiler_static_GCJ \ 18365 lt_prog_compiler_no_builtin_flag_GCJ \ 18366 export_dynamic_flag_spec_GCJ \ 18367 thread_safe_flag_spec_GCJ \ 18368 whole_archive_flag_spec_GCJ \ 18369 enable_shared_with_static_runtimes_GCJ \ 18370 old_archive_cmds_GCJ \ 18371 old_archive_from_new_cmds_GCJ \ 18372 predep_objects_GCJ \ 18373 postdep_objects_GCJ \ 18374 predeps_GCJ \ 18375 postdeps_GCJ \ 18376 compiler_lib_search_path_GCJ \ 18377 compiler_lib_search_dirs_GCJ \ 18378 archive_cmds_GCJ \ 18379 archive_expsym_cmds_GCJ \ 18380 postinstall_cmds_GCJ \ 18381 postuninstall_cmds_GCJ \ 18382 old_archive_from_expsyms_cmds_GCJ \ 18383 allow_undefined_flag_GCJ \ 18384 no_undefined_flag_GCJ \ 18385 export_symbols_cmds_GCJ \ 18386 hardcode_libdir_flag_spec_GCJ \ 18387 hardcode_libdir_flag_spec_ld_GCJ \ 18388 hardcode_libdir_separator_GCJ \ 18389 hardcode_automatic_GCJ \ 18390 module_cmds_GCJ \ 18391 module_expsym_cmds_GCJ \ 18392 lt_cv_prog_compiler_c_o_GCJ \ 18393 fix_srcfile_path_GCJ \ 18394 exclude_expsyms_GCJ \ 18395 include_expsyms_GCJ; do 18396 18397 case $var in 18398 old_archive_cmds_GCJ | \ 18399 old_archive_from_new_cmds_GCJ | \ 18400 archive_cmds_GCJ | \ 18401 archive_expsym_cmds_GCJ | \ 18402 module_cmds_GCJ | \ 18403 module_expsym_cmds_GCJ | \ 18404 old_archive_from_expsyms_cmds_GCJ | \ 18405 export_symbols_cmds_GCJ | \ 18406 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18407 postinstall_cmds | postuninstall_cmds | \ 18408 old_postinstall_cmds | old_postuninstall_cmds | \ 18409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18410 # Double-quote double-evaled strings. 18411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18412 ;; 18413 *) 18414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18415 ;; 18416 esac 18417 done 18418 18419 case $lt_echo in 18420 *'\$0 --fallback-echo"') 18421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18422 ;; 18423 esac 18424 18425cfgfile="$ofile" 18426 18427 cat <<__EOF__ >> "$cfgfile" 18428# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18429 18430# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18431 18432# Shell to use when invoking shell scripts. 18433SHELL=$lt_SHELL 18434 18435# Whether or not to build shared libraries. 18436build_libtool_libs=$enable_shared 18437 18438# Whether or not to build static libraries. 18439build_old_libs=$enable_static 18440 18441# Whether or not to add -lc for building shared libraries. 18442build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18443 18444# Whether or not to disallow shared libs when runtime libs are static 18445allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18446 18447# Whether or not to optimize for fast installation. 18448fast_install=$enable_fast_install 18449 18450# The host system. 18451host_alias=$host_alias 18452host=$host 18453host_os=$host_os 18454 18455# The build system. 18456build_alias=$build_alias 18457build=$build 18458build_os=$build_os 18459 18460# An echo program that does not interpret backslashes. 18461echo=$lt_echo 18462 18463# The archiver. 18464AR=$lt_AR 18465AR_FLAGS=$lt_AR_FLAGS 18466 18467# A C compiler. 18468LTCC=$lt_LTCC 18469 18470# LTCC compiler flags. 18471LTCFLAGS=$lt_LTCFLAGS 18472 18473# A language-specific compiler. 18474CC=$lt_compiler_GCJ 18475 18476# Is the compiler the GNU C compiler? 18477with_gcc=$GCC_GCJ 18478 18479# An ERE matcher. 18480EGREP=$lt_EGREP 18481 18482# The linker used to build libraries. 18483LD=$lt_LD_GCJ 18484 18485# Whether we need hard or soft links. 18486LN_S=$lt_LN_S 18487 18488# A BSD-compatible nm program. 18489NM=$lt_NM 18490 18491# A symbol stripping program 18492STRIP=$lt_STRIP 18493 18494# Used to examine libraries when file_magic_cmd begins "file" 18495MAGIC_CMD=$MAGIC_CMD 18496 18497# Used on cygwin: DLL creation program. 18498DLLTOOL="$DLLTOOL" 18499 18500# Used on cygwin: object dumper. 18501OBJDUMP="$OBJDUMP" 18502 18503# Used on cygwin: assembler. 18504AS="$AS" 18505 18506# The name of the directory that contains temporary libtool files. 18507objdir=$objdir 18508 18509# How to create reloadable object files. 18510reload_flag=$lt_reload_flag 18511reload_cmds=$lt_reload_cmds 18512 18513# How to pass a linker flag through the compiler. 18514wl=$lt_lt_prog_compiler_wl_GCJ 18515 18516# Object file suffix (normally "o"). 18517objext="$ac_objext" 18518 18519# Old archive suffix (normally "a"). 18520libext="$libext" 18521 18522# Shared library suffix (normally ".so"). 18523shrext_cmds='$shrext_cmds' 18524 18525# Executable file suffix (normally ""). 18526exeext="$exeext" 18527 18528# Additional compiler flags for building library objects. 18529pic_flag=$lt_lt_prog_compiler_pic_GCJ 18530pic_mode=$pic_mode 18531 18532# What is the maximum length of a command? 18533max_cmd_len=$lt_cv_sys_max_cmd_len 18534 18535# Does compiler simultaneously support -c and -o options? 18536compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18537 18538# Must we lock files when doing compilation? 18539need_locks=$lt_need_locks 18540 18541# Do we need the lib prefix for modules? 18542need_lib_prefix=$need_lib_prefix 18543 18544# Do we need a version for libraries? 18545need_version=$need_version 18546 18547# Whether dlopen is supported. 18548dlopen_support=$enable_dlopen 18549 18550# Whether dlopen of programs is supported. 18551dlopen_self=$enable_dlopen_self 18552 18553# Whether dlopen of statically linked programs is supported. 18554dlopen_self_static=$enable_dlopen_self_static 18555 18556# Compiler flag to prevent dynamic linking. 18557link_static_flag=$lt_lt_prog_compiler_static_GCJ 18558 18559# Compiler flag to turn off builtin functions. 18560no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18561 18562# Compiler flag to allow reflexive dlopens. 18563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18564 18565# Compiler flag to generate shared objects directly from archives. 18566whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18567 18568# Compiler flag to generate thread-safe objects. 18569thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18570 18571# Library versioning type. 18572version_type=$version_type 18573 18574# Format of library name prefix. 18575libname_spec=$lt_libname_spec 18576 18577# List of archive names. First name is the real one, the rest are links. 18578# The last name is the one that the linker finds with -lNAME. 18579library_names_spec=$lt_library_names_spec 18580 18581# The coded name of the library, if different from the real name. 18582soname_spec=$lt_soname_spec 18583 18584# Commands used to build and install an old-style archive. 18585RANLIB=$lt_RANLIB 18586old_archive_cmds=$lt_old_archive_cmds_GCJ 18587old_postinstall_cmds=$lt_old_postinstall_cmds 18588old_postuninstall_cmds=$lt_old_postuninstall_cmds 18589 18590# Create an old-style archive from a shared archive. 18591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18592 18593# Create a temporary old-style archive to link instead of a shared archive. 18594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18595 18596# Commands used to build and install a shared archive. 18597archive_cmds=$lt_archive_cmds_GCJ 18598archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18599postinstall_cmds=$lt_postinstall_cmds 18600postuninstall_cmds=$lt_postuninstall_cmds 18601 18602# Commands used to build a loadable module (assumed same as above if empty) 18603module_cmds=$lt_module_cmds_GCJ 18604module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18605 18606# Commands to strip libraries. 18607old_striplib=$lt_old_striplib 18608striplib=$lt_striplib 18609 18610# Dependencies to place before the objects being linked to create a 18611# shared library. 18612predep_objects=$lt_predep_objects_GCJ 18613 18614# Dependencies to place after the objects being linked to create a 18615# shared library. 18616postdep_objects=$lt_postdep_objects_GCJ 18617 18618# Dependencies to place before the objects being linked to create a 18619# shared library. 18620predeps=$lt_predeps_GCJ 18621 18622# Dependencies to place after the objects being linked to create a 18623# shared library. 18624postdeps=$lt_postdeps_GCJ 18625 18626# The directories searched by this compiler when creating a shared 18627# library 18628compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 18629 18630# The library search path used internally by the compiler when linking 18631# a shared library. 18632compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18633 18634# Method to check whether dependent libraries are shared objects. 18635deplibs_check_method=$lt_deplibs_check_method 18636 18637# Command to use when deplibs_check_method == file_magic. 18638file_magic_cmd=$lt_file_magic_cmd 18639 18640# Flag that allows shared libraries with undefined symbols to be built. 18641allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18642 18643# Flag that forces no undefined symbols. 18644no_undefined_flag=$lt_no_undefined_flag_GCJ 18645 18646# Commands used to finish a libtool library installation in a directory. 18647finish_cmds=$lt_finish_cmds 18648 18649# Same as above, but a single script fragment to be evaled but not shown. 18650finish_eval=$lt_finish_eval 18651 18652# Take the output of nm and produce a listing of raw symbols and C names. 18653global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18654 18655# Transform the output of nm in a proper C declaration 18656global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18657 18658# Transform the output of nm in a C name address pair 18659global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18660 18661# This is the shared library runtime path variable. 18662runpath_var=$runpath_var 18663 18664# This is the shared library path variable. 18665shlibpath_var=$shlibpath_var 18666 18667# Is shlibpath searched before the hard-coded library search path? 18668shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18669 18670# How to hardcode a shared library path into an executable. 18671hardcode_action=$hardcode_action_GCJ 18672 18673# Whether we should hardcode library paths into libraries. 18674hardcode_into_libs=$hardcode_into_libs 18675 18676# Flag to hardcode \$libdir into a binary during linking. 18677# This must work even if \$libdir does not exist. 18678hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18679 18680# If ld is used when linking, flag to hardcode \$libdir into 18681# a binary during linking. This must work even if \$libdir does 18682# not exist. 18683hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18684 18685# Whether we need a single -rpath flag with a separated argument. 18686hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18687 18688# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18689# resulting binary. 18690hardcode_direct=$hardcode_direct_GCJ 18691 18692# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18693# resulting binary. 18694hardcode_minus_L=$hardcode_minus_L_GCJ 18695 18696# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18697# the resulting binary. 18698hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18699 18700# Set to yes if building a shared library automatically hardcodes DIR into the library 18701# and all subsequent libraries and executables linked against it. 18702hardcode_automatic=$hardcode_automatic_GCJ 18703 18704# Variables whose values should be saved in libtool wrapper scripts and 18705# restored at relink time. 18706variables_saved_for_relink="$variables_saved_for_relink" 18707 18708# Whether libtool must link a program against all its dependency libraries. 18709link_all_deplibs=$link_all_deplibs_GCJ 18710 18711# Compile-time system search path for libraries 18712sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18713 18714# Run-time system search path for libraries 18715sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18716 18717# Fix the shell variable \$srcfile for the compiler. 18718fix_srcfile_path=$lt_fix_srcfile_path 18719 18720# Set to yes if exported symbols are required. 18721always_export_symbols=$always_export_symbols_GCJ 18722 18723# The commands to list exported symbols. 18724export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18725 18726# The commands to extract the exported symbol list from a shared archive. 18727extract_expsyms_cmds=$lt_extract_expsyms_cmds 18728 18729# Symbols that should not be listed in the preloaded symbols. 18730exclude_expsyms=$lt_exclude_expsyms_GCJ 18731 18732# Symbols that must always be exported. 18733include_expsyms=$lt_include_expsyms_GCJ 18734 18735# ### END LIBTOOL TAG CONFIG: $tagname 18736 18737__EOF__ 18738 18739 18740else 18741 # If there is no Makefile yet, we rely on a make rule to execute 18742 # `config.status --recheck' to rerun these tests and create the 18743 # libtool script then. 18744 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18745 if test -f "$ltmain_in"; then 18746 test -f Makefile && make "$ltmain" 18747 fi 18748fi 18749 18750 18751ac_ext=c 18752ac_cpp='$CPP $CPPFLAGS' 18753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18755ac_compiler_gnu=$ac_cv_c_compiler_gnu 18756 18757CC="$lt_save_CC" 18758 18759 else 18760 tagname="" 18761 fi 18762 ;; 18763 18764 RC) 18765 18766 18767# Source file extension for RC test sources. 18768ac_ext=rc 18769 18770# Object file extension for compiled RC test sources. 18771objext=o 18772objext_RC=$objext 18773 18774# Code to be used in simple compile tests 18775lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18776 18777# Code to be used in simple link tests 18778lt_simple_link_test_code="$lt_simple_compile_test_code" 18779 18780# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18781 18782# If no C compiler was specified, use CC. 18783LTCC=${LTCC-"$CC"} 18784 18785# If no C compiler flags were specified, use CFLAGS. 18786LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18787 18788# Allow CC to be a program name with arguments. 18789compiler=$CC 18790 18791 18792# save warnings/boilerplate of simple test code 18793ac_outfile=conftest.$ac_objext 18794echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18795eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18796_lt_compiler_boilerplate=`cat conftest.err` 18797$rm conftest* 18798 18799ac_outfile=conftest.$ac_objext 18800echo "$lt_simple_link_test_code" >conftest.$ac_ext 18801eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18802_lt_linker_boilerplate=`cat conftest.err` 18803$rm -r conftest* 18804 18805 18806# Allow CC to be a program name with arguments. 18807lt_save_CC="$CC" 18808CC=${RC-"windres"} 18809compiler=$CC 18810compiler_RC=$CC 18811for cc_temp in $compiler""; do 18812 case $cc_temp in 18813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18815 \-*) ;; 18816 *) break;; 18817 esac 18818done 18819cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18820 18821lt_cv_prog_compiler_c_o_RC=yes 18822 18823# The else clause should only fire when bootstrapping the 18824# libtool distribution, otherwise you forgot to ship ltmain.sh 18825# with your package, and you will get complaints that there are 18826# no rules to generate ltmain.sh. 18827if test -f "$ltmain"; then 18828 # See if we are running on zsh, and set the options which allow our commands through 18829 # without removal of \ escapes. 18830 if test -n "${ZSH_VERSION+set}" ; then 18831 setopt NO_GLOB_SUBST 18832 fi 18833 # Now quote all the things that may contain metacharacters while being 18834 # careful not to overquote the AC_SUBSTed values. We take copies of the 18835 # variables and quote the copies for generation of the libtool script. 18836 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18837 SED SHELL STRIP \ 18838 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18839 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18840 deplibs_check_method reload_flag reload_cmds need_locks \ 18841 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18842 lt_cv_sys_global_symbol_to_c_name_address \ 18843 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18844 old_postinstall_cmds old_postuninstall_cmds \ 18845 compiler_RC \ 18846 CC_RC \ 18847 LD_RC \ 18848 lt_prog_compiler_wl_RC \ 18849 lt_prog_compiler_pic_RC \ 18850 lt_prog_compiler_static_RC \ 18851 lt_prog_compiler_no_builtin_flag_RC \ 18852 export_dynamic_flag_spec_RC \ 18853 thread_safe_flag_spec_RC \ 18854 whole_archive_flag_spec_RC \ 18855 enable_shared_with_static_runtimes_RC \ 18856 old_archive_cmds_RC \ 18857 old_archive_from_new_cmds_RC \ 18858 predep_objects_RC \ 18859 postdep_objects_RC \ 18860 predeps_RC \ 18861 postdeps_RC \ 18862 compiler_lib_search_path_RC \ 18863 compiler_lib_search_dirs_RC \ 18864 archive_cmds_RC \ 18865 archive_expsym_cmds_RC \ 18866 postinstall_cmds_RC \ 18867 postuninstall_cmds_RC \ 18868 old_archive_from_expsyms_cmds_RC \ 18869 allow_undefined_flag_RC \ 18870 no_undefined_flag_RC \ 18871 export_symbols_cmds_RC \ 18872 hardcode_libdir_flag_spec_RC \ 18873 hardcode_libdir_flag_spec_ld_RC \ 18874 hardcode_libdir_separator_RC \ 18875 hardcode_automatic_RC \ 18876 module_cmds_RC \ 18877 module_expsym_cmds_RC \ 18878 lt_cv_prog_compiler_c_o_RC \ 18879 fix_srcfile_path_RC \ 18880 exclude_expsyms_RC \ 18881 include_expsyms_RC; do 18882 18883 case $var in 18884 old_archive_cmds_RC | \ 18885 old_archive_from_new_cmds_RC | \ 18886 archive_cmds_RC | \ 18887 archive_expsym_cmds_RC | \ 18888 module_cmds_RC | \ 18889 module_expsym_cmds_RC | \ 18890 old_archive_from_expsyms_cmds_RC | \ 18891 export_symbols_cmds_RC | \ 18892 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18893 postinstall_cmds | postuninstall_cmds | \ 18894 old_postinstall_cmds | old_postuninstall_cmds | \ 18895 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18896 # Double-quote double-evaled strings. 18897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18898 ;; 18899 *) 18900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18901 ;; 18902 esac 18903 done 18904 18905 case $lt_echo in 18906 *'\$0 --fallback-echo"') 18907 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18908 ;; 18909 esac 18910 18911cfgfile="$ofile" 18912 18913 cat <<__EOF__ >> "$cfgfile" 18914# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18915 18916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18917 18918# Shell to use when invoking shell scripts. 18919SHELL=$lt_SHELL 18920 18921# Whether or not to build shared libraries. 18922build_libtool_libs=$enable_shared 18923 18924# Whether or not to build static libraries. 18925build_old_libs=$enable_static 18926 18927# Whether or not to add -lc for building shared libraries. 18928build_libtool_need_lc=$archive_cmds_need_lc_RC 18929 18930# Whether or not to disallow shared libs when runtime libs are static 18931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18932 18933# Whether or not to optimize for fast installation. 18934fast_install=$enable_fast_install 18935 18936# The host system. 18937host_alias=$host_alias 18938host=$host 18939host_os=$host_os 18940 18941# The build system. 18942build_alias=$build_alias 18943build=$build 18944build_os=$build_os 18945 18946# An echo program that does not interpret backslashes. 18947echo=$lt_echo 18948 18949# The archiver. 18950AR=$lt_AR 18951AR_FLAGS=$lt_AR_FLAGS 18952 18953# A C compiler. 18954LTCC=$lt_LTCC 18955 18956# LTCC compiler flags. 18957LTCFLAGS=$lt_LTCFLAGS 18958 18959# A language-specific compiler. 18960CC=$lt_compiler_RC 18961 18962# Is the compiler the GNU C compiler? 18963with_gcc=$GCC_RC 18964 18965# An ERE matcher. 18966EGREP=$lt_EGREP 18967 18968# The linker used to build libraries. 18969LD=$lt_LD_RC 18970 18971# Whether we need hard or soft links. 18972LN_S=$lt_LN_S 18973 18974# A BSD-compatible nm program. 18975NM=$lt_NM 18976 18977# A symbol stripping program 18978STRIP=$lt_STRIP 18979 18980# Used to examine libraries when file_magic_cmd begins "file" 18981MAGIC_CMD=$MAGIC_CMD 18982 18983# Used on cygwin: DLL creation program. 18984DLLTOOL="$DLLTOOL" 18985 18986# Used on cygwin: object dumper. 18987OBJDUMP="$OBJDUMP" 18988 18989# Used on cygwin: assembler. 18990AS="$AS" 18991 18992# The name of the directory that contains temporary libtool files. 18993objdir=$objdir 18994 18995# How to create reloadable object files. 18996reload_flag=$lt_reload_flag 18997reload_cmds=$lt_reload_cmds 18998 18999# How to pass a linker flag through the compiler. 19000wl=$lt_lt_prog_compiler_wl_RC 19001 19002# Object file suffix (normally "o"). 19003objext="$ac_objext" 19004 19005# Old archive suffix (normally "a"). 19006libext="$libext" 19007 19008# Shared library suffix (normally ".so"). 19009shrext_cmds='$shrext_cmds' 19010 19011# Executable file suffix (normally ""). 19012exeext="$exeext" 19013 19014# Additional compiler flags for building library objects. 19015pic_flag=$lt_lt_prog_compiler_pic_RC 19016pic_mode=$pic_mode 19017 19018# What is the maximum length of a command? 19019max_cmd_len=$lt_cv_sys_max_cmd_len 19020 19021# Does compiler simultaneously support -c and -o options? 19022compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19023 19024# Must we lock files when doing compilation? 19025need_locks=$lt_need_locks 19026 19027# Do we need the lib prefix for modules? 19028need_lib_prefix=$need_lib_prefix 19029 19030# Do we need a version for libraries? 19031need_version=$need_version 19032 19033# Whether dlopen is supported. 19034dlopen_support=$enable_dlopen 19035 19036# Whether dlopen of programs is supported. 19037dlopen_self=$enable_dlopen_self 19038 19039# Whether dlopen of statically linked programs is supported. 19040dlopen_self_static=$enable_dlopen_self_static 19041 19042# Compiler flag to prevent dynamic linking. 19043link_static_flag=$lt_lt_prog_compiler_static_RC 19044 19045# Compiler flag to turn off builtin functions. 19046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19047 19048# Compiler flag to allow reflexive dlopens. 19049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19050 19051# Compiler flag to generate shared objects directly from archives. 19052whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19053 19054# Compiler flag to generate thread-safe objects. 19055thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19056 19057# Library versioning type. 19058version_type=$version_type 19059 19060# Format of library name prefix. 19061libname_spec=$lt_libname_spec 19062 19063# List of archive names. First name is the real one, the rest are links. 19064# The last name is the one that the linker finds with -lNAME. 19065library_names_spec=$lt_library_names_spec 19066 19067# The coded name of the library, if different from the real name. 19068soname_spec=$lt_soname_spec 19069 19070# Commands used to build and install an old-style archive. 19071RANLIB=$lt_RANLIB 19072old_archive_cmds=$lt_old_archive_cmds_RC 19073old_postinstall_cmds=$lt_old_postinstall_cmds 19074old_postuninstall_cmds=$lt_old_postuninstall_cmds 19075 19076# Create an old-style archive from a shared archive. 19077old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19078 19079# Create a temporary old-style archive to link instead of a shared archive. 19080old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19081 19082# Commands used to build and install a shared archive. 19083archive_cmds=$lt_archive_cmds_RC 19084archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19085postinstall_cmds=$lt_postinstall_cmds 19086postuninstall_cmds=$lt_postuninstall_cmds 19087 19088# Commands used to build a loadable module (assumed same as above if empty) 19089module_cmds=$lt_module_cmds_RC 19090module_expsym_cmds=$lt_module_expsym_cmds_RC 19091 19092# Commands to strip libraries. 19093old_striplib=$lt_old_striplib 19094striplib=$lt_striplib 19095 19096# Dependencies to place before the objects being linked to create a 19097# shared library. 19098predep_objects=$lt_predep_objects_RC 19099 19100# Dependencies to place after the objects being linked to create a 19101# shared library. 19102postdep_objects=$lt_postdep_objects_RC 19103 19104# Dependencies to place before the objects being linked to create a 19105# shared library. 19106predeps=$lt_predeps_RC 19107 19108# Dependencies to place after the objects being linked to create a 19109# shared library. 19110postdeps=$lt_postdeps_RC 19111 19112# The directories searched by this compiler when creating a shared 19113# library 19114compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19115 19116# The library search path used internally by the compiler when linking 19117# a shared library. 19118compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19119 19120# Method to check whether dependent libraries are shared objects. 19121deplibs_check_method=$lt_deplibs_check_method 19122 19123# Command to use when deplibs_check_method == file_magic. 19124file_magic_cmd=$lt_file_magic_cmd 19125 19126# Flag that allows shared libraries with undefined symbols to be built. 19127allow_undefined_flag=$lt_allow_undefined_flag_RC 19128 19129# Flag that forces no undefined symbols. 19130no_undefined_flag=$lt_no_undefined_flag_RC 19131 19132# Commands used to finish a libtool library installation in a directory. 19133finish_cmds=$lt_finish_cmds 19134 19135# Same as above, but a single script fragment to be evaled but not shown. 19136finish_eval=$lt_finish_eval 19137 19138# Take the output of nm and produce a listing of raw symbols and C names. 19139global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19140 19141# Transform the output of nm in a proper C declaration 19142global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19143 19144# Transform the output of nm in a C name address pair 19145global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19146 19147# This is the shared library runtime path variable. 19148runpath_var=$runpath_var 19149 19150# This is the shared library path variable. 19151shlibpath_var=$shlibpath_var 19152 19153# Is shlibpath searched before the hard-coded library search path? 19154shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19155 19156# How to hardcode a shared library path into an executable. 19157hardcode_action=$hardcode_action_RC 19158 19159# Whether we should hardcode library paths into libraries. 19160hardcode_into_libs=$hardcode_into_libs 19161 19162# Flag to hardcode \$libdir into a binary during linking. 19163# This must work even if \$libdir does not exist. 19164hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19165 19166# If ld is used when linking, flag to hardcode \$libdir into 19167# a binary during linking. This must work even if \$libdir does 19168# not exist. 19169hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19170 19171# Whether we need a single -rpath flag with a separated argument. 19172hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19173 19174# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19175# resulting binary. 19176hardcode_direct=$hardcode_direct_RC 19177 19178# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19179# resulting binary. 19180hardcode_minus_L=$hardcode_minus_L_RC 19181 19182# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19183# the resulting binary. 19184hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19185 19186# Set to yes if building a shared library automatically hardcodes DIR into the library 19187# and all subsequent libraries and executables linked against it. 19188hardcode_automatic=$hardcode_automatic_RC 19189 19190# Variables whose values should be saved in libtool wrapper scripts and 19191# restored at relink time. 19192variables_saved_for_relink="$variables_saved_for_relink" 19193 19194# Whether libtool must link a program against all its dependency libraries. 19195link_all_deplibs=$link_all_deplibs_RC 19196 19197# Compile-time system search path for libraries 19198sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19199 19200# Run-time system search path for libraries 19201sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19202 19203# Fix the shell variable \$srcfile for the compiler. 19204fix_srcfile_path=$lt_fix_srcfile_path 19205 19206# Set to yes if exported symbols are required. 19207always_export_symbols=$always_export_symbols_RC 19208 19209# The commands to list exported symbols. 19210export_symbols_cmds=$lt_export_symbols_cmds_RC 19211 19212# The commands to extract the exported symbol list from a shared archive. 19213extract_expsyms_cmds=$lt_extract_expsyms_cmds 19214 19215# Symbols that should not be listed in the preloaded symbols. 19216exclude_expsyms=$lt_exclude_expsyms_RC 19217 19218# Symbols that must always be exported. 19219include_expsyms=$lt_include_expsyms_RC 19220 19221# ### END LIBTOOL TAG CONFIG: $tagname 19222 19223__EOF__ 19224 19225 19226else 19227 # If there is no Makefile yet, we rely on a make rule to execute 19228 # `config.status --recheck' to rerun these tests and create the 19229 # libtool script then. 19230 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19231 if test -f "$ltmain_in"; then 19232 test -f Makefile && make "$ltmain" 19233 fi 19234fi 19235 19236 19237ac_ext=c 19238ac_cpp='$CPP $CPPFLAGS' 19239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19241ac_compiler_gnu=$ac_cv_c_compiler_gnu 19242 19243CC="$lt_save_CC" 19244 19245 ;; 19246 19247 *) 19248 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5 19249 ;; 19250 esac 19251 19252 # Append the new tag name to the list of available tags. 19253 if test -n "$tagname" ; then 19254 available_tags="$available_tags $tagname" 19255 fi 19256 fi 19257 done 19258 IFS="$lt_save_ifs" 19259 19260 # Now substitute the updated list of available tags. 19261 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19262 mv "${ofile}T" "$ofile" 19263 chmod +x "$ofile" 19264 else 19265 rm -f "${ofile}T" 19266 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5 19267 fi 19268fi 19269 19270 19271 19272# This can be used to rebuild libtool when needed 19273LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19274 19275# Always use our own libtool. 19276LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19277 19278# Prevent multiple expansion 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299# Find a good install program. We prefer a C program (faster), 19300# so one script is as good as another. But avoid the broken or 19301# incompatible versions: 19302# SysV /etc/install, /usr/sbin/install 19303# SunOS /usr/etc/install 19304# IRIX /sbin/install 19305# AIX /bin/install 19306# AmigaOS /C/install, which installs bootblocks on floppy discs 19307# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19308# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19309# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19310# OS/2's system install, which has a completely different semantic 19311# ./install, which can be erroneously created by make from ./install.sh. 19312# Reject install programs that cannot install multiple files. 19313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 19314$as_echo_n "checking for a BSD-compatible install... " >&6; } 19315if test -z "$INSTALL"; then 19316if test "${ac_cv_path_install+set}" = set; then : 19317 $as_echo_n "(cached) " >&6 19318else 19319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19320for as_dir in $PATH 19321do 19322 IFS=$as_save_IFS 19323 test -z "$as_dir" && as_dir=. 19324 # Account for people who put trailing slashes in PATH elements. 19325case $as_dir/ in #(( 19326 ./ | .// | /[cC]/* | \ 19327 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19328 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 19329 /usr/ucb/* ) ;; 19330 *) 19331 # OSF1 and SCO ODT 3.0 have their own names for install. 19332 # Don't use installbsd from OSF since it installs stuff as root 19333 # by default. 19334 for ac_prog in ginstall scoinst install; do 19335 for ac_exec_ext in '' $ac_executable_extensions; do 19336 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 19337 if test $ac_prog = install && 19338 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19339 # AIX install. It has an incompatible calling convention. 19340 : 19341 elif test $ac_prog = install && 19342 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19343 # program-specific install script used by HP pwplus--don't use. 19344 : 19345 else 19346 rm -rf conftest.one conftest.two conftest.dir 19347 echo one > conftest.one 19348 echo two > conftest.two 19349 mkdir conftest.dir 19350 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 19351 test -s conftest.one && test -s conftest.two && 19352 test -s conftest.dir/conftest.one && 19353 test -s conftest.dir/conftest.two 19354 then 19355 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 19356 break 3 19357 fi 19358 fi 19359 fi 19360 done 19361 done 19362 ;; 19363esac 19364 19365 done 19366IFS=$as_save_IFS 19367 19368rm -rf conftest.one conftest.two conftest.dir 19369 19370fi 19371 if test "${ac_cv_path_install+set}" = set; then 19372 INSTALL=$ac_cv_path_install 19373 else 19374 # As a last resort, use the slow shell script. Don't cache a 19375 # value for INSTALL within a source directory, because that will 19376 # break other packages using the cache if that directory is 19377 # removed, or if the value is a relative name. 19378 INSTALL=$ac_install_sh 19379 fi 19380fi 19381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 19382$as_echo "$INSTALL" >&6; } 19383 19384# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 19385# It thinks the first close brace ends the variable substitution. 19386test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 19387 19388test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 19389 19390test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 19391 19392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 19393$as_echo_n "checking whether ln -s works... " >&6; } 19394LN_S=$as_ln_s 19395if test "$LN_S" = "ln -s"; then 19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19397$as_echo "yes" >&6; } 19398else 19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 19400$as_echo "no, using $LN_S" >&6; } 19401fi 19402 19403 19404 19405 19406 19407 19408 19409# Warn if the user specified libbind, which is now deprecated 19410# Check whether --enable-libbind was given. 19411if test "${enable_libbind+set}" = set; then : 19412 enableval=$enable_libbind; 19413fi 19414 19415 19416case "$enable_libbind" in 19417 yes) 19418 as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution. 19419It is available from http://www.isc.org as a separate download." "$LINENO" 5 19420 ;; 19421 no|'') 19422 ;; 19423esac 19424 19425# Check whether --enable-developer was given. 19426if test "${enable_developer+set}" = set; then : 19427 enableval=$enable_developer; 19428fi 19429 19430case "$enable_developer" in 19431yes) 19432 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes 19433 test "${with_atf+set}" = set || with_atf=yes 19434 test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes 19435 test "${enable_rpz_nsip+set}" = set || enable_rpz_nsip=yes 19436 test "${enable_rpz_nsdname+set}" = set || enable_rpz_nsdname=yes 19437 test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes 19438 case "$host" in 19439 *-darwin*) 19440 test "${enable_exportlib+set}" = set || enable_exportlib=yes 19441 ;; 19442 *-linux*) 19443 test "${enable_exportlib+set}" = set || enable_exportlib=yes 19444 ;; 19445 esac 19446 ;; 19447esac 19448# 19449# Make very sure that these are the first files processed by 19450# config.status, since we use the processed output as the input for 19451# AC_SUBST_FILE() substitutions in other files. 19452# 19453ac_config_files="$ac_config_files make/rules make/includes" 19454 19455 19456# Extract the first word of "ar", so it can be a program name with args. 19457set dummy ar; ac_word=$2 19458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19459$as_echo_n "checking for $ac_word... " >&6; } 19460if test "${ac_cv_path_AR+set}" = set; then : 19461 $as_echo_n "(cached) " >&6 19462else 19463 case $AR in 19464 [\\/]* | ?:[\\/]*) 19465 ac_cv_path_AR="$AR" # Let the user override the test with a path. 19466 ;; 19467 *) 19468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19469for as_dir in $PATH 19470do 19471 IFS=$as_save_IFS 19472 test -z "$as_dir" && as_dir=. 19473 for ac_exec_ext in '' $ac_executable_extensions; do 19474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19475 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 19476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19477 break 2 19478 fi 19479done 19480 done 19481IFS=$as_save_IFS 19482 19483 ;; 19484esac 19485fi 19486AR=$ac_cv_path_AR 19487if test -n "$AR"; then 19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 19489$as_echo "$AR" >&6; } 19490else 19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19492$as_echo "no" >&6; } 19493fi 19494 19495 19496ARFLAGS="cruv" 19497 19498 19499 19500# The POSIX ln(1) program. Non-POSIX systems may substitute 19501# "copy" or something. 19502LN=ln 19503 19504 19505case "$AR" in 19506 "") 19507 as_fn_error $? " 19508ar program not found. Please fix your PATH to include the directory in 19509which ar resides, or set AR in the environment with the full path to ar. 19510" "$LINENO" 5 19511 19512 ;; 19513esac 19514 19515# 19516# Etags. 19517# 19518for ac_prog in etags emacs-etags 19519do 19520 # Extract the first word of "$ac_prog", so it can be a program name with args. 19521set dummy $ac_prog; ac_word=$2 19522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19523$as_echo_n "checking for $ac_word... " >&6; } 19524if test "${ac_cv_path_ETAGS+set}" = set; then : 19525 $as_echo_n "(cached) " >&6 19526else 19527 case $ETAGS in 19528 [\\/]* | ?:[\\/]*) 19529 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 19530 ;; 19531 *) 19532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19533for as_dir in $PATH 19534do 19535 IFS=$as_save_IFS 19536 test -z "$as_dir" && as_dir=. 19537 for ac_exec_ext in '' $ac_executable_extensions; do 19538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19539 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 19540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19541 break 2 19542 fi 19543done 19544 done 19545IFS=$as_save_IFS 19546 19547 ;; 19548esac 19549fi 19550ETAGS=$ac_cv_path_ETAGS 19551if test -n "$ETAGS"; then 19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5 19553$as_echo "$ETAGS" >&6; } 19554else 19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19556$as_echo "no" >&6; } 19557fi 19558 19559 19560 test -n "$ETAGS" && break 19561done 19562 19563 19564# 19565# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of 19566# GNU emacs etags, and it requires the -L flag. 19567# 19568if test "X$ETAGS" != "X"; then 19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5 19570$as_echo_n "checking for Exuberant Ctags etags... " >&6; } 19571 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then 19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19573$as_echo "yes" >&6; } 19574 ETAGS="$ETAGS -L" 19575 else 19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19577$as_echo "no" >&6; } 19578 fi 19579fi 19580 19581 19582# 19583# Perl is optional; it is used only by some of the system test scripts. 19584# Note: the backtrace feature (see below) uses perl to build the symbol table, 19585# but it still compiles without perl, in which case an empty table will be used. 19586# 19587for ac_prog in perl5 perl 19588do 19589 # Extract the first word of "$ac_prog", so it can be a program name with args. 19590set dummy $ac_prog; ac_word=$2 19591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19592$as_echo_n "checking for $ac_word... " >&6; } 19593if test "${ac_cv_path_PERL+set}" = set; then : 19594 $as_echo_n "(cached) " >&6 19595else 19596 case $PERL in 19597 [\\/]* | ?:[\\/]*) 19598 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19599 ;; 19600 *) 19601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19602for as_dir in $PATH 19603do 19604 IFS=$as_save_IFS 19605 test -z "$as_dir" && as_dir=. 19606 for ac_exec_ext in '' $ac_executable_extensions; do 19607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19608 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19610 break 2 19611 fi 19612done 19613 done 19614IFS=$as_save_IFS 19615 19616 ;; 19617esac 19618fi 19619PERL=$ac_cv_path_PERL 19620if test -n "$PERL"; then 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19622$as_echo "$PERL" >&6; } 19623else 19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19625$as_echo "no" >&6; } 19626fi 19627 19628 19629 test -n "$PERL" && break 19630done 19631 19632 19633 19634# 19635# Special processing of paths depending on whether --prefix, 19636# --sysconfdir or --localstatedir arguments were given. What's 19637# desired is some compatibility with the way previous versions 19638# of BIND built; they defaulted to /usr/local for most parts of 19639# the installation, but named.boot/named.conf was in /etc 19640# and named.pid was in /var/run. 19641# 19642# So ... if none of --prefix, --sysconfdir or --localstatedir are 19643# specified, set things up that way. If --prefix is given, use 19644# it for sysconfdir and localstatedir the way configure normally 19645# would. To change the prefix for everything but leave named.conf 19646# in /etc or named.pid in /var/run, then do this the usual configure way: 19647# ./configure --prefix=/somewhere --sysconfdir=/etc 19648# ./configure --prefix=/somewhere --localstatedir=/var 19649# 19650# To put named.conf and named.pid in /usr/local with everything else, 19651# set the prefix explicitly to /usr/local even though that's the default: 19652# ./configure --prefix=/usr/local 19653# 19654case "$prefix" in 19655 NONE) 19656 case "$sysconfdir" in 19657 '${prefix}/etc') 19658 sysconfdir=/etc 19659 ;; 19660 esac 19661 case "$localstatedir" in 19662 '${prefix}/var') 19663 localstatedir=/var 19664 ;; 19665 esac 19666 ;; 19667esac 19668 19669# 19670# Make sure INSTALL uses an absolute path, else it will be wrong in all 19671# Makefiles, since they use make/rules.in and INSTALL will be adjusted by 19672# configure based on the location of the file where it is substituted. 19673# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate 19674# subdirectory of install-sh, This relative path will be wrong for all 19675# directories more than one level down from install-sh. 19676# 19677case "$INSTALL" in 19678 /*) 19679 ;; 19680 *) 19681 # 19682 # Not all systems have dirname. 19683 # 19684 19685 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`" 19686 19687 19688 ac_prog="`echo $INSTALL | sed 's%.*/%%'`" 19689 test "$ac_dir" = "$ac_prog" && ac_dir=. 19690 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`" 19691 INSTALL="$ac_dir/$ac_prog" 19692 ;; 19693esac 19694 19695# 19696# On these hosts, we really want to use cc, not gcc, even if it is 19697# found. The gcc that these systems have will not correctly handle 19698# pthreads. 19699# 19700# However, if the user sets $CC to be something, let that override 19701# our change. 19702# 19703if test "X$CC" = "X" ; then 19704 case "$host" in 19705 *-dec-osf*) 19706 CC="cc" 19707 ;; 19708 *-solaris*) 19709 # Use Sun's cc if it is available, but watch 19710 # out for /usr/ucb/cc; it will never be the right 19711 # compiler to use. 19712 # 19713 # If setting CC here fails, the AC_PROG_CC done 19714 # below might still find gcc. 19715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 19716 for ac_dir in $PATH; do 19717 test -z "$ac_dir" && ac_dir=. 19718 case "$ac_dir" in 19719 /usr/ucb) 19720 # exclude 19721 ;; 19722 *) 19723 if test -f "$ac_dir/cc"; then 19724 CC="$ac_dir/cc" 19725 break 19726 fi 19727 ;; 19728 esac 19729 done 19730 IFS="$ac_save_ifs" 19731 ;; 19732 *-hp-hpux*) 19733 CC="cc" 19734 ;; 19735 mips-sgi-irix*) 19736 CC="cc" 19737 ;; 19738 esac 19739fi 19740 19741ac_ext=c 19742ac_cpp='$CPP $CPPFLAGS' 19743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19745ac_compiler_gnu=$ac_cv_c_compiler_gnu 19746if test -n "$ac_tool_prefix"; then 19747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19748set dummy ${ac_tool_prefix}gcc; ac_word=$2 19749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19750$as_echo_n "checking for $ac_word... " >&6; } 19751if test "${ac_cv_prog_CC+set}" = set; then : 19752 $as_echo_n "(cached) " >&6 19753else 19754 if test -n "$CC"; then 19755 ac_cv_prog_CC="$CC" # Let the user override the test. 19756else 19757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19758for as_dir in $PATH 19759do 19760 IFS=$as_save_IFS 19761 test -z "$as_dir" && as_dir=. 19762 for ac_exec_ext in '' $ac_executable_extensions; do 19763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19764 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19766 break 2 19767 fi 19768done 19769 done 19770IFS=$as_save_IFS 19771 19772fi 19773fi 19774CC=$ac_cv_prog_CC 19775if test -n "$CC"; then 19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 19777$as_echo "$CC" >&6; } 19778else 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19780$as_echo "no" >&6; } 19781fi 19782 19783 19784fi 19785if test -z "$ac_cv_prog_CC"; then 19786 ac_ct_CC=$CC 19787 # Extract the first word of "gcc", so it can be a program name with args. 19788set dummy gcc; ac_word=$2 19789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19790$as_echo_n "checking for $ac_word... " >&6; } 19791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 19792 $as_echo_n "(cached) " >&6 19793else 19794 if test -n "$ac_ct_CC"; then 19795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19796else 19797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19798for as_dir in $PATH 19799do 19800 IFS=$as_save_IFS 19801 test -z "$as_dir" && as_dir=. 19802 for ac_exec_ext in '' $ac_executable_extensions; do 19803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19804 ac_cv_prog_ac_ct_CC="gcc" 19805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19806 break 2 19807 fi 19808done 19809 done 19810IFS=$as_save_IFS 19811 19812fi 19813fi 19814ac_ct_CC=$ac_cv_prog_ac_ct_CC 19815if test -n "$ac_ct_CC"; then 19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 19817$as_echo "$ac_ct_CC" >&6; } 19818else 19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19820$as_echo "no" >&6; } 19821fi 19822 19823 if test "x$ac_ct_CC" = x; then 19824 CC="" 19825 else 19826 case $cross_compiling:$ac_tool_warned in 19827yes:) 19828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19830ac_tool_warned=yes ;; 19831esac 19832 CC=$ac_ct_CC 19833 fi 19834else 19835 CC="$ac_cv_prog_CC" 19836fi 19837 19838if test -z "$CC"; then 19839 if test -n "$ac_tool_prefix"; then 19840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19841set dummy ${ac_tool_prefix}cc; ac_word=$2 19842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19843$as_echo_n "checking for $ac_word... " >&6; } 19844if test "${ac_cv_prog_CC+set}" = set; then : 19845 $as_echo_n "(cached) " >&6 19846else 19847 if test -n "$CC"; then 19848 ac_cv_prog_CC="$CC" # Let the user override the test. 19849else 19850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19851for as_dir in $PATH 19852do 19853 IFS=$as_save_IFS 19854 test -z "$as_dir" && as_dir=. 19855 for ac_exec_ext in '' $ac_executable_extensions; do 19856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19857 ac_cv_prog_CC="${ac_tool_prefix}cc" 19858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19859 break 2 19860 fi 19861done 19862 done 19863IFS=$as_save_IFS 19864 19865fi 19866fi 19867CC=$ac_cv_prog_CC 19868if test -n "$CC"; then 19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 19870$as_echo "$CC" >&6; } 19871else 19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19873$as_echo "no" >&6; } 19874fi 19875 19876 19877 fi 19878fi 19879if test -z "$CC"; then 19880 # Extract the first word of "cc", so it can be a program name with args. 19881set dummy cc; ac_word=$2 19882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19883$as_echo_n "checking for $ac_word... " >&6; } 19884if test "${ac_cv_prog_CC+set}" = set; then : 19885 $as_echo_n "(cached) " >&6 19886else 19887 if test -n "$CC"; then 19888 ac_cv_prog_CC="$CC" # Let the user override the test. 19889else 19890 ac_prog_rejected=no 19891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19892for as_dir in $PATH 19893do 19894 IFS=$as_save_IFS 19895 test -z "$as_dir" && as_dir=. 19896 for ac_exec_ext in '' $ac_executable_extensions; do 19897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19899 ac_prog_rejected=yes 19900 continue 19901 fi 19902 ac_cv_prog_CC="cc" 19903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19904 break 2 19905 fi 19906done 19907 done 19908IFS=$as_save_IFS 19909 19910if test $ac_prog_rejected = yes; then 19911 # We found a bogon in the path, so make sure we never use it. 19912 set dummy $ac_cv_prog_CC 19913 shift 19914 if test $# != 0; then 19915 # We chose a different compiler from the bogus one. 19916 # However, it has the same basename, so the bogon will be chosen 19917 # first if we set CC to just the basename; use the full file name. 19918 shift 19919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19920 fi 19921fi 19922fi 19923fi 19924CC=$ac_cv_prog_CC 19925if test -n "$CC"; then 19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 19927$as_echo "$CC" >&6; } 19928else 19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19930$as_echo "no" >&6; } 19931fi 19932 19933 19934fi 19935if test -z "$CC"; then 19936 if test -n "$ac_tool_prefix"; then 19937 for ac_prog in cl.exe 19938 do 19939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19940set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19942$as_echo_n "checking for $ac_word... " >&6; } 19943if test "${ac_cv_prog_CC+set}" = set; then : 19944 $as_echo_n "(cached) " >&6 19945else 19946 if test -n "$CC"; then 19947 ac_cv_prog_CC="$CC" # Let the user override the test. 19948else 19949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19950for as_dir in $PATH 19951do 19952 IFS=$as_save_IFS 19953 test -z "$as_dir" && as_dir=. 19954 for ac_exec_ext in '' $ac_executable_extensions; do 19955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19958 break 2 19959 fi 19960done 19961 done 19962IFS=$as_save_IFS 19963 19964fi 19965fi 19966CC=$ac_cv_prog_CC 19967if test -n "$CC"; then 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 19969$as_echo "$CC" >&6; } 19970else 19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19972$as_echo "no" >&6; } 19973fi 19974 19975 19976 test -n "$CC" && break 19977 done 19978fi 19979if test -z "$CC"; then 19980 ac_ct_CC=$CC 19981 for ac_prog in cl.exe 19982do 19983 # Extract the first word of "$ac_prog", so it can be a program name with args. 19984set dummy $ac_prog; ac_word=$2 19985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19986$as_echo_n "checking for $ac_word... " >&6; } 19987if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 19988 $as_echo_n "(cached) " >&6 19989else 19990 if test -n "$ac_ct_CC"; then 19991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19992else 19993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19994for as_dir in $PATH 19995do 19996 IFS=$as_save_IFS 19997 test -z "$as_dir" && as_dir=. 19998 for ac_exec_ext in '' $ac_executable_extensions; do 19999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20000 ac_cv_prog_ac_ct_CC="$ac_prog" 20001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20002 break 2 20003 fi 20004done 20005 done 20006IFS=$as_save_IFS 20007 20008fi 20009fi 20010ac_ct_CC=$ac_cv_prog_ac_ct_CC 20011if test -n "$ac_ct_CC"; then 20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 20013$as_echo "$ac_ct_CC" >&6; } 20014else 20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20016$as_echo "no" >&6; } 20017fi 20018 20019 20020 test -n "$ac_ct_CC" && break 20021done 20022 20023 if test "x$ac_ct_CC" = x; then 20024 CC="" 20025 else 20026 case $cross_compiling:$ac_tool_warned in 20027yes:) 20028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20030ac_tool_warned=yes ;; 20031esac 20032 CC=$ac_ct_CC 20033 fi 20034fi 20035 20036fi 20037 20038 20039test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20041as_fn_error $? "no acceptable C compiler found in \$PATH 20042See \`config.log' for more details" "$LINENO" 5; } 20043 20044# Provide some information about the compiler. 20045$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 20046set X $ac_compile 20047ac_compiler=$2 20048for ac_option in --version -v -V -qversion; do 20049 { { ac_try="$ac_compiler $ac_option >&5" 20050case "(($ac_try" in 20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20052 *) ac_try_echo=$ac_try;; 20053esac 20054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20055$as_echo "$ac_try_echo"; } >&5 20056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 20057 ac_status=$? 20058 if test -s conftest.err; then 20059 sed '10a\ 20060... rest of stderr output deleted ... 20061 10q' conftest.err >conftest.er1 20062 cat conftest.er1 >&5 20063 fi 20064 rm -f conftest.er1 conftest.err 20065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20066 test $ac_status = 0; } 20067done 20068 20069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 20070$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20071if test "${ac_cv_c_compiler_gnu+set}" = set; then : 20072 $as_echo_n "(cached) " >&6 20073else 20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20075/* end confdefs.h. */ 20076 20077int 20078main () 20079{ 20080#ifndef __GNUC__ 20081 choke me 20082#endif 20083 20084 ; 20085 return 0; 20086} 20087_ACEOF 20088if ac_fn_c_try_compile "$LINENO"; then : 20089 ac_compiler_gnu=yes 20090else 20091 ac_compiler_gnu=no 20092fi 20093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20094ac_cv_c_compiler_gnu=$ac_compiler_gnu 20095 20096fi 20097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 20098$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20099if test $ac_compiler_gnu = yes; then 20100 GCC=yes 20101else 20102 GCC= 20103fi 20104ac_test_CFLAGS=${CFLAGS+set} 20105ac_save_CFLAGS=$CFLAGS 20106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 20107$as_echo_n "checking whether $CC accepts -g... " >&6; } 20108if test "${ac_cv_prog_cc_g+set}" = set; then : 20109 $as_echo_n "(cached) " >&6 20110else 20111 ac_save_c_werror_flag=$ac_c_werror_flag 20112 ac_c_werror_flag=yes 20113 ac_cv_prog_cc_g=no 20114 CFLAGS="-g" 20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20116/* end confdefs.h. */ 20117 20118int 20119main () 20120{ 20121 20122 ; 20123 return 0; 20124} 20125_ACEOF 20126if ac_fn_c_try_compile "$LINENO"; then : 20127 ac_cv_prog_cc_g=yes 20128else 20129 CFLAGS="" 20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20131/* end confdefs.h. */ 20132 20133int 20134main () 20135{ 20136 20137 ; 20138 return 0; 20139} 20140_ACEOF 20141if ac_fn_c_try_compile "$LINENO"; then : 20142 20143else 20144 ac_c_werror_flag=$ac_save_c_werror_flag 20145 CFLAGS="-g" 20146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20147/* end confdefs.h. */ 20148 20149int 20150main () 20151{ 20152 20153 ; 20154 return 0; 20155} 20156_ACEOF 20157if ac_fn_c_try_compile "$LINENO"; then : 20158 ac_cv_prog_cc_g=yes 20159fi 20160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20161fi 20162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20163fi 20164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20165 ac_c_werror_flag=$ac_save_c_werror_flag 20166fi 20167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 20168$as_echo "$ac_cv_prog_cc_g" >&6; } 20169if test "$ac_test_CFLAGS" = set; then 20170 CFLAGS=$ac_save_CFLAGS 20171elif test $ac_cv_prog_cc_g = yes; then 20172 if test "$GCC" = yes; then 20173 CFLAGS="-g -O2" 20174 else 20175 CFLAGS="-g" 20176 fi 20177else 20178 if test "$GCC" = yes; then 20179 CFLAGS="-O2" 20180 else 20181 CFLAGS= 20182 fi 20183fi 20184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 20185$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20186if test "${ac_cv_prog_cc_c89+set}" = set; then : 20187 $as_echo_n "(cached) " >&6 20188else 20189 ac_cv_prog_cc_c89=no 20190ac_save_CC=$CC 20191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20192/* end confdefs.h. */ 20193#include <stdarg.h> 20194#include <stdio.h> 20195#include <sys/types.h> 20196#include <sys/stat.h> 20197/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20198struct buf { int x; }; 20199FILE * (*rcsopen) (struct buf *, struct stat *, int); 20200static char *e (p, i) 20201 char **p; 20202 int i; 20203{ 20204 return p[i]; 20205} 20206static char *f (char * (*g) (char **, int), char **p, ...) 20207{ 20208 char *s; 20209 va_list v; 20210 va_start (v,p); 20211 s = g (p, va_arg (v,int)); 20212 va_end (v); 20213 return s; 20214} 20215 20216/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20217 function prototypes and stuff, but not '\xHH' hex character constants. 20218 These don't provoke an error unfortunately, instead are silently treated 20219 as 'x'. The following induces an error, until -std is added to get 20220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20221 array size at least. It's necessary to write '\x00'==0 to get something 20222 that's true only with -std. */ 20223int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20224 20225/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20226 inside strings and character constants. */ 20227#define FOO(x) 'x' 20228int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20229 20230int test (int i, double x); 20231struct s1 {int (*f) (int a);}; 20232struct s2 {int (*f) (double a);}; 20233int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20234int argc; 20235char **argv; 20236int 20237main () 20238{ 20239return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20240 ; 20241 return 0; 20242} 20243_ACEOF 20244for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20246do 20247 CC="$ac_save_CC $ac_arg" 20248 if ac_fn_c_try_compile "$LINENO"; then : 20249 ac_cv_prog_cc_c89=$ac_arg 20250fi 20251rm -f core conftest.err conftest.$ac_objext 20252 test "x$ac_cv_prog_cc_c89" != "xno" && break 20253done 20254rm -f conftest.$ac_ext 20255CC=$ac_save_CC 20256 20257fi 20258# AC_CACHE_VAL 20259case "x$ac_cv_prog_cc_c89" in 20260 x) 20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 20262$as_echo "none needed" >&6; } ;; 20263 xno) 20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 20265$as_echo "unsupported" >&6; } ;; 20266 *) 20267 CC="$CC $ac_cv_prog_cc_c89" 20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 20269$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20270esac 20271if test "x$ac_cv_prog_cc_c89" != xno; then : 20272 20273fi 20274 20275ac_ext=c 20276ac_cpp='$CPP $CPPFLAGS' 20277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20279ac_compiler_gnu=$ac_cv_c_compiler_gnu 20280 20281 20282# 20283# gcc's optimiser is broken at -02 for ultrasparc 20284# 20285if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then 20286 case "$host" in 20287 sparc-*) 20288 CCFLAGS="-g -O1" 20289 ;; 20290 esac 20291fi 20292 20293# 20294# OS dependent CC flags 20295# 20296case "$host" in 20297 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or 20298 # -D_XOPEN_SOURCE_EXTENDED. 20299 *-dec-osf*) 20300 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET" 20301 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET" 20302 ;; 20303 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros 20304 *-hp-hpux*) 20305 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED" 20306 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 20307 LIBS="-lxnet $LIBS" 20308 ;; 20309 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros 20310 *-solaris*) 20311 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__" 20312 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__" 20313 ;; 20314 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides 20315 # parts of the IPv6 Advanced Socket API as a result. This is stupid 20316 # as it breaks how the two halves (Basic and Advanced) of the IPv6 20317 # Socket API were designed to be used but we have to live with it. 20318 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. 20319 *-linux* | *-kfreebsd*-gnu) 20320 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" 20321 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 20322 ;; 20323 # 20324 # Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use. 20325 # Setting this is sufficient to select the correct behavior for BIND 9. 20326 # 20327 *-darwin*) 20328 STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542" 20329 CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542" 20330 ;; 20331esac 20332 20333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 20334$as_echo_n "checking for ANSI C header files... " >&6; } 20335if test "${ac_cv_header_stdc+set}" = set; then : 20336 $as_echo_n "(cached) " >&6 20337else 20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20339/* end confdefs.h. */ 20340#include <stdlib.h> 20341#include <stdarg.h> 20342#include <string.h> 20343#include <float.h> 20344 20345int 20346main () 20347{ 20348 20349 ; 20350 return 0; 20351} 20352_ACEOF 20353if ac_fn_c_try_compile "$LINENO"; then : 20354 ac_cv_header_stdc=yes 20355else 20356 ac_cv_header_stdc=no 20357fi 20358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20359 20360if test $ac_cv_header_stdc = yes; then 20361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20363/* end confdefs.h. */ 20364#include <string.h> 20365 20366_ACEOF 20367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20368 $EGREP "memchr" >/dev/null 2>&1; then : 20369 20370else 20371 ac_cv_header_stdc=no 20372fi 20373rm -f conftest* 20374 20375fi 20376 20377if test $ac_cv_header_stdc = yes; then 20378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20380/* end confdefs.h. */ 20381#include <stdlib.h> 20382 20383_ACEOF 20384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20385 $EGREP "free" >/dev/null 2>&1; then : 20386 20387else 20388 ac_cv_header_stdc=no 20389fi 20390rm -f conftest* 20391 20392fi 20393 20394if test $ac_cv_header_stdc = yes; then 20395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20396 if test "$cross_compiling" = yes; then : 20397 : 20398else 20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20400/* end confdefs.h. */ 20401#include <ctype.h> 20402#include <stdlib.h> 20403#if ((' ' & 0x0FF) == 0x020) 20404# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20405# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20406#else 20407# define ISLOWER(c) \ 20408 (('a' <= (c) && (c) <= 'i') \ 20409 || ('j' <= (c) && (c) <= 'r') \ 20410 || ('s' <= (c) && (c) <= 'z')) 20411# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20412#endif 20413 20414#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20415int 20416main () 20417{ 20418 int i; 20419 for (i = 0; i < 256; i++) 20420 if (XOR (islower (i), ISLOWER (i)) 20421 || toupper (i) != TOUPPER (i)) 20422 return 2; 20423 return 0; 20424} 20425_ACEOF 20426if ac_fn_c_try_run "$LINENO"; then : 20427 20428else 20429 ac_cv_header_stdc=no 20430fi 20431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20432 conftest.$ac_objext conftest.beam conftest.$ac_ext 20433fi 20434 20435fi 20436fi 20437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 20438$as_echo "$ac_cv_header_stdc" >&6; } 20439if test $ac_cv_header_stdc = yes; then 20440 20441$as_echo "#define STDC_HEADERS 1" >>confdefs.h 20442 20443fi 20444 20445 20446for 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 20447do : 20448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20449ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 20450#ifdef HAVE_SYS_PARAM_H 20451# include <sys/param.h> 20452#endif 20453 20454" 20455if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20456 cat >>confdefs.h <<_ACEOF 20457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20458_ACEOF 20459 20460fi 20461 20462done 20463 20464 20465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20466$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20467if test "${ac_cv_c_const+set}" = set; then : 20468 $as_echo_n "(cached) " >&6 20469else 20470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20471/* end confdefs.h. */ 20472 20473int 20474main () 20475{ 20476/* FIXME: Include the comments suggested by Paul. */ 20477#ifndef __cplusplus 20478 /* Ultrix mips cc rejects this. */ 20479 typedef int charset[2]; 20480 const charset cs; 20481 /* SunOS 4.1.1 cc rejects this. */ 20482 char const *const *pcpcc; 20483 char **ppc; 20484 /* NEC SVR4.0.2 mips cc rejects this. */ 20485 struct point {int x, y;}; 20486 static struct point const zero = {0,0}; 20487 /* AIX XL C 1.02.0.0 rejects this. 20488 It does not let you subtract one const X* pointer from another in 20489 an arm of an if-expression whose if-part is not a constant 20490 expression */ 20491 const char *g = "string"; 20492 pcpcc = &g + (g ? g-g : 0); 20493 /* HPUX 7.0 cc rejects these. */ 20494 ++pcpcc; 20495 ppc = (char**) pcpcc; 20496 pcpcc = (char const *const *) ppc; 20497 { /* SCO 3.2v4 cc rejects this. */ 20498 char *t; 20499 char const *s = 0 ? (char *) 0 : (char const *) 0; 20500 20501 *t++ = 0; 20502 if (s) return 0; 20503 } 20504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20505 int x[] = {25, 17}; 20506 const int *foo = &x[0]; 20507 ++foo; 20508 } 20509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20510 typedef const int *iptr; 20511 iptr p = 0; 20512 ++p; 20513 } 20514 { /* AIX XL C 1.02.0.0 rejects this saying 20515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20516 struct s { int j; const int *ap[3]; }; 20517 struct s *b; b->j = 5; 20518 } 20519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20520 const int foo = 10; 20521 if (!foo) return 0; 20522 } 20523 return !cs[0] && !zero.x; 20524#endif 20525 20526 ; 20527 return 0; 20528} 20529_ACEOF 20530if ac_fn_c_try_compile "$LINENO"; then : 20531 ac_cv_c_const=yes 20532else 20533 ac_cv_c_const=no 20534fi 20535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20536fi 20537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20538$as_echo "$ac_cv_c_const" >&6; } 20539if test $ac_cv_c_const = no; then 20540 20541$as_echo "#define const /**/" >>confdefs.h 20542 20543fi 20544 20545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 20546$as_echo_n "checking for inline... " >&6; } 20547if test "${ac_cv_c_inline+set}" = set; then : 20548 $as_echo_n "(cached) " >&6 20549else 20550 ac_cv_c_inline=no 20551for ac_kw in inline __inline__ __inline; do 20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20553/* end confdefs.h. */ 20554#ifndef __cplusplus 20555typedef int foo_t; 20556static $ac_kw foo_t static_foo () {return 0; } 20557$ac_kw foo_t foo () {return 0; } 20558#endif 20559 20560_ACEOF 20561if ac_fn_c_try_compile "$LINENO"; then : 20562 ac_cv_c_inline=$ac_kw 20563fi 20564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20565 test "$ac_cv_c_inline" != no && break 20566done 20567 20568fi 20569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 20570$as_echo "$ac_cv_c_inline" >&6; } 20571 20572case $ac_cv_c_inline in 20573 inline | yes) ;; 20574 *) 20575 case $ac_cv_c_inline in 20576 no) ac_val=;; 20577 *) ac_val=$ac_cv_c_inline;; 20578 esac 20579 cat >>confdefs.h <<_ACEOF 20580#ifndef __cplusplus 20581#define inline $ac_val 20582#endif 20583_ACEOF 20584 ;; 20585esac 20586 20587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 20588$as_echo_n "checking for working volatile... " >&6; } 20589if test "${ac_cv_c_volatile+set}" = set; then : 20590 $as_echo_n "(cached) " >&6 20591else 20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20593/* end confdefs.h. */ 20594 20595int 20596main () 20597{ 20598 20599volatile int x; 20600int * volatile y = (int *) 0; 20601return !x && !y; 20602 ; 20603 return 0; 20604} 20605_ACEOF 20606if ac_fn_c_try_compile "$LINENO"; then : 20607 ac_cv_c_volatile=yes 20608else 20609 ac_cv_c_volatile=no 20610fi 20611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20612fi 20613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 20614$as_echo "$ac_cv_c_volatile" >&6; } 20615if test $ac_cv_c_volatile = no; then 20616 20617$as_echo "#define volatile /**/" >>confdefs.h 20618 20619fi 20620 20621ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname" 20622if test "x$ac_cv_func_sysctlbyname" = x""yes; then : 20623 $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h 20624 20625fi 20626 20627 20628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 20629$as_echo_n "checking for flexible array members... " >&6; } 20630if test "${ac_cv_c_flexmember+set}" = set; then : 20631 $as_echo_n "(cached) " >&6 20632else 20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20634/* end confdefs.h. */ 20635#include <stdlib.h> 20636 #include <stdio.h> 20637 #include <stddef.h> 20638 struct s { int n; double d[]; }; 20639int 20640main () 20641{ 20642int m = getchar (); 20643 struct s *p = malloc (offsetof (struct s, d) 20644 + m * sizeof (double)); 20645 p->d[0] = 0.0; 20646 return p->d != (double *) NULL; 20647 ; 20648 return 0; 20649} 20650_ACEOF 20651if ac_fn_c_try_compile "$LINENO"; then : 20652 ac_cv_c_flexmember=yes 20653else 20654 ac_cv_c_flexmember=no 20655fi 20656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20657fi 20658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 20659$as_echo "$ac_cv_c_flexmember" >&6; } 20660 if test $ac_cv_c_flexmember = yes; then 20661 20662$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 20663 20664 else 20665 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 20666 20667 fi 20668 20669 20670# 20671# Older versions of HP/UX don't define seteuid() and setegid() 20672# 20673for ac_func in seteuid setresuid 20674do : 20675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20676ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20677if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20678 cat >>confdefs.h <<_ACEOF 20679#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20680_ACEOF 20681 20682fi 20683done 20684 20685for ac_func in setegid setresgid 20686do : 20687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20688ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20689if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20690 cat >>confdefs.h <<_ACEOF 20691#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20692_ACEOF 20693 20694fi 20695done 20696 20697 20698# 20699# UnixWare 7.1.1 with the feature supplement to the UDK compiler 20700# is reported to not support "static inline" (RT #1212). 20701# 20702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5 20703$as_echo_n "checking for static inline breakage... " >&6; } 20704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20705/* end confdefs.h. */ 20706 20707int 20708main () 20709{ 20710 20711 foo1(); 20712 } 20713 20714 static inline int foo1() { 20715 return 0; 20716 } 20717 20718 static inline int foo2() { 20719 return foo1(); 20720 20721 ; 20722 return 0; 20723} 20724_ACEOF 20725if ac_fn_c_try_compile "$LINENO"; then : 20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20727$as_echo "no" >&6; } 20728else 20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20730$as_echo "yes" >&6; } 20731 20732$as_echo "#define inline /**/" >>confdefs.h 20733 20734fi 20735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20736 20737ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20738if test "x$ac_cv_type_size_t" = x""yes; then : 20739 20740else 20741 20742cat >>confdefs.h <<_ACEOF 20743#define size_t unsigned int 20744_ACEOF 20745 20746fi 20747 20748ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 20749if test "x$ac_cv_type_ssize_t" = x""yes; then : 20750 20751else 20752 20753cat >>confdefs.h <<_ACEOF 20754#define ssize_t int 20755_ACEOF 20756 20757fi 20758 20759ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 20760if test "x$ac_cv_type_uintptr_t" = x""yes; then : 20761 20762else 20763 20764cat >>confdefs.h <<_ACEOF 20765#define uintptr_t unsigned long 20766_ACEOF 20767 20768fi 20769 20770ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 20771#include <sys/types.h> 20772#include <sys/socket.h> 20773 20774" 20775if test "x$ac_cv_type_socklen_t" = x""yes; then : 20776 $as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h 20777 20778else 20779 20780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20781/* end confdefs.h. */ 20782 20783#include <sys/types.h> 20784#include <sys/socket.h> 20785int getsockname(int, struct sockaddr *, size_t *); 20786 20787int 20788main () 20789{ 20790 20791 ; 20792 return 0; 20793} 20794_ACEOF 20795if ac_fn_c_try_compile "$LINENO"; then : 20796 $as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h 20797 20798else 20799 $as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h 20800 20801fi 20802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20803 20804fi 20805 20806 20807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 20808$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 20809if test "${ac_cv_header_time+set}" = set; then : 20810 $as_echo_n "(cached) " >&6 20811else 20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20813/* end confdefs.h. */ 20814#include <sys/types.h> 20815#include <sys/time.h> 20816#include <time.h> 20817 20818int 20819main () 20820{ 20821if ((struct tm *) 0) 20822return 0; 20823 ; 20824 return 0; 20825} 20826_ACEOF 20827if ac_fn_c_try_compile "$LINENO"; then : 20828 ac_cv_header_time=yes 20829else 20830 ac_cv_header_time=no 20831fi 20832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20833fi 20834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 20835$as_echo "$ac_cv_header_time" >&6; } 20836if test $ac_cv_header_time = yes; then 20837 20838$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 20839 20840fi 20841 20842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 20843$as_echo_n "checking for long long... " >&6; } 20844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20845/* end confdefs.h. */ 20846 20847int 20848main () 20849{ 20850long long i = 0; return (0); 20851 ; 20852 return 0; 20853} 20854_ACEOF 20855if ac_fn_c_try_compile "$LINENO"; then : 20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20857$as_echo "yes" >&6; } 20858 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1" 20859else 20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20861$as_echo "no" >&6; } 20862 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG" 20863fi 20864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20865 20866 20867# 20868# check for GCC noreturn attribute 20869# 20870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5 20871$as_echo_n "checking for GCC noreturn attribute... " >&6; } 20872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20873/* end confdefs.h. */ 20874 20875int 20876main () 20877{ 20878void foo() __attribute__((noreturn)); 20879 ; 20880 return 0; 20881} 20882_ACEOF 20883if ac_fn_c_try_compile "$LINENO"; then : 20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20885$as_echo "yes" >&6; } 20886 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE" 20887 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))" 20888else 20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20890$as_echo "no" >&6; } 20891 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE" 20892 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST" 20893fi 20894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20895 20896 20897 20898# 20899# check if we have lifconf 20900# 20901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5 20902$as_echo_n "checking for struct lifconf... " >&6; } 20903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20904/* end confdefs.h. */ 20905 20906#include <sys/types.h> 20907#include <sys/socket.h> 20908#include <net/if.h> 20909 20910int 20911main () 20912{ 20913 20914struct lifconf lifconf; 20915lifconf.lifc_len = 0; 20916 20917 20918 ; 20919 return 0; 20920} 20921_ACEOF 20922if ac_fn_c_try_compile "$LINENO"; then : 20923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20924$as_echo "yes" >&6; } 20925 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1" 20926else 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20928$as_echo "no" >&6; } 20929 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF" 20930fi 20931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20932 20933 20934# 20935# check if we have kqueue 20936# 20937# Check whether --enable-kqueue was given. 20938if test "${enable_kqueue+set}" = set; then : 20939 enableval=$enable_kqueue; want_kqueue="$enableval" 20940else 20941 want_kqueue="yes" 20942fi 20943 20944case $want_kqueue in 20945yes) 20946 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 20947if test "x$ac_cv_func_kqueue" = x""yes; then : 20948 ac_cv_have_kqueue=yes 20949else 20950 ac_cv_have_kqueue=no 20951fi 20952 20953 case $ac_cv_have_kqueue in 20954 yes) 20955 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1" 20956 ;; 20957 *) 20958 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE" 20959 ;; 20960 esac 20961 ;; 20962*) 20963 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE" 20964 ;; 20965esac 20966 20967 20968# 20969# check if we have epoll. Linux kernel 2.4 has epoll_create() which fails, 20970# so we need to try running the code, not just test its existence. 20971# 20972# Check whether --enable-epoll was given. 20973if test "${enable_epoll+set}" = set; then : 20974 enableval=$enable_epoll; want_epoll="$enableval" 20975else 20976 want_epoll="auto" 20977fi 20978 20979case $want_epoll in 20980auto) 20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5 20982$as_echo_n "checking epoll support... " >&6; } 20983 if test "$cross_compiling" = yes; then : 20984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20986as_fn_error $? "cannot run test program while cross compiling 20987See \`config.log' for more details" "$LINENO" 5; } 20988else 20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20990/* end confdefs.h. */ 20991 20992#include <sys/epoll.h> 20993int main() { 20994 if (epoll_create(1) < 0) 20995 return (1); 20996 return (0); 20997} 20998 20999_ACEOF 21000if ac_fn_c_try_run "$LINENO"; then : 21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21002$as_echo "yes" >&6; } 21003 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1" 21004else 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21006$as_echo "no" >&6; } 21007 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL" 21008fi 21009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21010 conftest.$ac_objext conftest.beam conftest.$ac_ext 21011fi 21012 21013 ;; 21014yes) 21015 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1" 21016 ;; 21017*) 21018 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL" 21019 ;; 21020esac 21021 21022 21023# 21024# check if we support /dev/poll 21025# 21026# Check whether --enable-devpoll was given. 21027if test "${enable_devpoll+set}" = set; then : 21028 enableval=$enable_devpoll; want_devpoll="$enableval" 21029else 21030 want_devpoll="yes" 21031fi 21032 21033case $want_devpoll in 21034yes) 21035 for ac_header in sys/devpoll.h devpoll.h 21036do : 21037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21038ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21039if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21040 cat >>confdefs.h <<_ACEOF 21041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21042_ACEOF 21043 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1" 21044 21045else 21046 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL" 21047 21048fi 21049 21050done 21051 21052 ;; 21053*) 21054 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL" 21055 ;; 21056esac 21057 21058 21059# 21060# check if we need to #include sys/select.h explicitly 21061# 21062case $ac_cv_header_unistd_h in 21063yes) 21064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5 21065$as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; } 21066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21067/* end confdefs.h. */ 21068 21069#include <sys/types.h> /* Ultrix */ 21070#include <unistd.h> 21071int 21072main () 21073{ 21074fd_set read_set; return (0); 21075 ; 21076 return 0; 21077} 21078_ACEOF 21079if ac_fn_c_try_compile "$LINENO"; then : 21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21081$as_echo "yes" >&6; } 21082 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH" 21083 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH" 21084else 21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21086$as_echo "no" >&6; } 21087 case $ac_cv_header_sys_select_h in 21088 yes) 21089 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 21090 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1" 21091 ;; 21092 no) 21093 as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5 21094 ;; 21095 esac 21096 21097fi 21098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21099 ;; 21100no) 21101 case $ac_cv_header_sys_select_h in 21102 yes) 21103 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 21104 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1" 21105 ;; 21106 no) 21107 as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5 21108 ;; 21109 esac 21110 ;; 21111esac 21112 21113 21114 21115# 21116# Find the machine's endian flavor. 21117# 21118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 21119$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 21120if test "${ac_cv_c_bigendian+set}" = set; then : 21121 $as_echo_n "(cached) " >&6 21122else 21123 ac_cv_c_bigendian=unknown 21124 # See if we're dealing with a universal compiler. 21125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21126/* end confdefs.h. */ 21127#ifndef __APPLE_CC__ 21128 not a universal capable compiler 21129 #endif 21130 typedef int dummy; 21131 21132_ACEOF 21133if ac_fn_c_try_compile "$LINENO"; then : 21134 21135 # Check for potential -arch flags. It is not universal unless 21136 # there are at least two -arch flags with different values. 21137 ac_arch= 21138 ac_prev= 21139 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 21140 if test -n "$ac_prev"; then 21141 case $ac_word in 21142 i?86 | x86_64 | ppc | ppc64) 21143 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 21144 ac_arch=$ac_word 21145 else 21146 ac_cv_c_bigendian=universal 21147 break 21148 fi 21149 ;; 21150 esac 21151 ac_prev= 21152 elif test "x$ac_word" = "x-arch"; then 21153 ac_prev=arch 21154 fi 21155 done 21156fi 21157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21158 if test $ac_cv_c_bigendian = unknown; then 21159 # See if sys/param.h defines the BYTE_ORDER macro. 21160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21161/* end confdefs.h. */ 21162#include <sys/types.h> 21163 #include <sys/param.h> 21164 21165int 21166main () 21167{ 21168#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 21169 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 21170 && LITTLE_ENDIAN) 21171 bogus endian macros 21172 #endif 21173 21174 ; 21175 return 0; 21176} 21177_ACEOF 21178if ac_fn_c_try_compile "$LINENO"; then : 21179 # It does; now see whether it defined to BIG_ENDIAN or not. 21180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21181/* end confdefs.h. */ 21182#include <sys/types.h> 21183 #include <sys/param.h> 21184 21185int 21186main () 21187{ 21188#if BYTE_ORDER != BIG_ENDIAN 21189 not big endian 21190 #endif 21191 21192 ; 21193 return 0; 21194} 21195_ACEOF 21196if ac_fn_c_try_compile "$LINENO"; then : 21197 ac_cv_c_bigendian=yes 21198else 21199 ac_cv_c_bigendian=no 21200fi 21201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21202fi 21203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21204 fi 21205 if test $ac_cv_c_bigendian = unknown; then 21206 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 21207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21208/* end confdefs.h. */ 21209#include <limits.h> 21210 21211int 21212main () 21213{ 21214#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 21215 bogus endian macros 21216 #endif 21217 21218 ; 21219 return 0; 21220} 21221_ACEOF 21222if ac_fn_c_try_compile "$LINENO"; then : 21223 # It does; now see whether it defined to _BIG_ENDIAN or not. 21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21225/* end confdefs.h. */ 21226#include <limits.h> 21227 21228int 21229main () 21230{ 21231#ifndef _BIG_ENDIAN 21232 not big endian 21233 #endif 21234 21235 ; 21236 return 0; 21237} 21238_ACEOF 21239if ac_fn_c_try_compile "$LINENO"; then : 21240 ac_cv_c_bigendian=yes 21241else 21242 ac_cv_c_bigendian=no 21243fi 21244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21245fi 21246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21247 fi 21248 if test $ac_cv_c_bigendian = unknown; then 21249 # Compile a test program. 21250 if test "$cross_compiling" = yes; then : 21251 # Try to guess by grepping values from an object file. 21252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21253/* end confdefs.h. */ 21254short int ascii_mm[] = 21255 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 21256 short int ascii_ii[] = 21257 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 21258 int use_ascii (int i) { 21259 return ascii_mm[i] + ascii_ii[i]; 21260 } 21261 short int ebcdic_ii[] = 21262 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 21263 short int ebcdic_mm[] = 21264 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 21265 int use_ebcdic (int i) { 21266 return ebcdic_mm[i] + ebcdic_ii[i]; 21267 } 21268 extern int foo; 21269 21270int 21271main () 21272{ 21273return use_ascii (foo) == use_ebcdic (foo); 21274 ; 21275 return 0; 21276} 21277_ACEOF 21278if ac_fn_c_try_compile "$LINENO"; then : 21279 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 21280 ac_cv_c_bigendian=yes 21281 fi 21282 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 21283 if test "$ac_cv_c_bigendian" = unknown; then 21284 ac_cv_c_bigendian=no 21285 else 21286 # finding both strings is unlikely to happen, but who knows? 21287 ac_cv_c_bigendian=unknown 21288 fi 21289 fi 21290fi 21291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21292else 21293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21294/* end confdefs.h. */ 21295$ac_includes_default 21296int 21297main () 21298{ 21299 21300 /* Are we little or big endian? From Harbison&Steele. */ 21301 union 21302 { 21303 long int l; 21304 char c[sizeof (long int)]; 21305 } u; 21306 u.l = 1; 21307 return u.c[sizeof (long int) - 1] == 1; 21308 21309 ; 21310 return 0; 21311} 21312_ACEOF 21313if ac_fn_c_try_run "$LINENO"; then : 21314 ac_cv_c_bigendian=no 21315else 21316 ac_cv_c_bigendian=yes 21317fi 21318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21319 conftest.$ac_objext conftest.beam conftest.$ac_ext 21320fi 21321 21322 fi 21323fi 21324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 21325$as_echo "$ac_cv_c_bigendian" >&6; } 21326 case $ac_cv_c_bigendian in #( 21327 yes) 21328 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 21329;; #( 21330 no) 21331 ;; #( 21332 universal) 21333 21334$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 21335 21336 ;; #( 21337 *) 21338 as_fn_error $? "unknown endianness 21339 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 21340 esac 21341 21342 21343# 21344# was --with-openssl specified? 21345# 21346OPENSSL_WARNING= 21347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5 21348$as_echo_n "checking for OpenSSL library... " >&6; } 21349 21350# Check whether --with-openssl was given. 21351if test "${with_openssl+set}" = set; then : 21352 withval=$with_openssl; use_openssl="$withval" 21353else 21354 use_openssl="auto" 21355fi 21356 21357 21358openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw" 21359if test "$use_openssl" = "auto" 21360then 21361 for d in $openssldirs 21362 do 21363 if test -f $d/include/openssl/opensslv.h 21364 then 21365 use_openssl=$d 21366 break 21367 fi 21368 done 21369fi 21370OPENSSL_GOST="" 21371case "$use_openssl" in 21372 no) 21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21374$as_echo "no" >&6; } 21375 DST_OPENSSL_INC="" 21376 USE_OPENSSL="" 21377 OPENSSLLINKOBJS="" 21378 OPENSSLLINKSRCS="" 21379 ;; 21380 auto) 21381 DST_OPENSSL_INC="" 21382 USE_OPENSSL="" 21383 OPENSSLLINKOBJS="" 21384 OPENSSLLINKSRCS="" 21385 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path 21386If you don't want OpenSSL, use --without-openssl" "$LINENO" 5 21387 ;; 21388 *) 21389 if test "$use_openssl" = "yes" 21390 then 21391 # User did not specify a path - guess it 21392 for d in $openssldirs 21393 do 21394 if test -f $d/include/openssl/opensslv.h 21395 then 21396 use_openssl=$d 21397 break 21398 fi 21399 done 21400 if test "$use_openssl" = "yes" 21401 then 21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21403$as_echo "not found" >&6; } 21404 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5 21405 fi 21406 elif ! test -f "$use_openssl"/include/openssl/opensslv.h 21407 then 21408 as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5 21409 fi 21410 USE_OPENSSL='-DOPENSSL' 21411 if test "$use_openssl" = "/usr" 21412 then 21413 DST_OPENSSL_INC="" 21414 DNS_OPENSSL_LIBS="-lcrypto" 21415 else 21416 DST_OPENSSL_INC="-I$use_openssl/include" 21417 case $host in 21418 *-solaris*) 21419 DNS_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto" 21420 ;; 21421 *-hp-hpux*) 21422 DNS_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto" 21423 ;; 21424 *-apple-darwin*) 21425 # 21426 # Apple's ld seaches for serially for dynamic 21427 # then static libraries. This means you can't 21428 # use -L to override dynamic system libraries 21429 # with static ones when linking. Instead 21430 # we specify a absolute path. 21431 # 21432 if test -f "$use_openssl/lib/libcrypto.dylib" 21433 then 21434 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto" 21435 else 21436 DNS_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a" 21437 fi 21438 ;; 21439 *) 21440 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto" 21441 ;; 21442 esac 21443 fi 21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5 21445$as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; } 21446 21447 saved_cflags="$CFLAGS" 21448 saved_libs="$LIBS" 21449 CFLAGS="$CFLAGS $DST_OPENSSL_INC" 21450 LIBS="$LIBS $DNS_OPENSSL_LIBS" 21451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5 21452$as_echo_n "checking whether linking with OpenSSL works... " >&6; } 21453 if test "$cross_compiling" = yes; then : 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5 21455$as_echo "assuming it does work on target platform" >&6; } 21456else 21457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21458/* end confdefs.h. */ 21459 21460#include <openssl/err.h> 21461int main() { 21462 ERR_clear_error(); 21463 return (0); 21464} 21465 21466_ACEOF 21467if ac_fn_c_try_run "$LINENO"; then : 21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21469$as_echo "yes" >&6; } 21470else 21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21472$as_echo "no" >&6; } 21473 as_fn_error $? "Could not run test program using OpenSSL from 21474$use_openssl/lib and $use_openssl/include. 21475Please check the argument to --with-openssl and your 21476shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5 21477fi 21478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21479 conftest.$ac_objext conftest.beam conftest.$ac_ext 21480fi 21481 21482 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5 21484$as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; } 21485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21486/* end confdefs.h. */ 21487 21488#include <openssl/err.h> 21489int 21490main () 21491{ 21492 DSO_METHOD_dlfcn(); 21493 ; 21494 return 0; 21495} 21496_ACEOF 21497if ac_fn_c_try_link "$LINENO"; then : 21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21499$as_echo "no" >&6; } 21500else 21501 LIBS="$LIBS -ldl" 21502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21503/* end confdefs.h. */ 21504 21505#include <openssl/err.h> 21506 21507int 21508main () 21509{ 21510 DSO_METHOD_dlfcn(); 21511 ; 21512 return 0; 21513} 21514_ACEOF 21515if ac_fn_c_try_link "$LINENO"; then : 21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21517$as_echo "yes" >&6; } 21518 DNS_OPENSSL_LIBS="$DNS_OPENSSL_LIBS -ldl" 21519 21520else 21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 21522$as_echo "unknown" >&6; } 21523 as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5 21524fi 21525rm -f core conftest.err conftest.$ac_objext \ 21526 conftest$ac_exeext conftest.$ac_ext 21527 21528fi 21529rm -f core conftest.err conftest.$ac_objext \ 21530 conftest$ac_exeext conftest.$ac_ext 21531 21532# Check whether --enable-openssl-version-check was given. 21533if test "${enable_openssl_version_check+set}" = set; then : 21534 enableval=$enable_openssl_version_check; 21535fi 21536 21537case "$enable_openssl_version_check" in 21538yes|'') 21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 21540$as_echo_n "checking OpenSSL library version... " >&6; } 21541 if test "$cross_compiling" = yes; then : 21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform has compatible version" >&5 21543$as_echo "assuming target platform has compatible version" >&6; } 21544else 21545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21546/* end confdefs.h. */ 21547 21548#include <stdio.h> 21549#include <openssl/opensslv.h> 21550int main() { 21551 if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL && 21552 OPENSSL_VERSION_NUMBER < 0x00908000L) || 21553 OPENSSL_VERSION_NUMBER >= 0x0090804fL) 21554 return (0); 21555 printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n", 21556 OPENSSL_VERSION_NUMBER); 21557 printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n" 21558 "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n"); 21559 return (1); 21560} 21561 21562_ACEOF 21563if ac_fn_c_try_run "$LINENO"; then : 21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 21565$as_echo "ok" >&6; } 21566else 21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not compatible" >&5 21568$as_echo "not compatible" >&6; } 21569 OPENSSL_WARNING=yes 21570 21571fi 21572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21573 conftest.$ac_objext conftest.beam conftest.$ac_ext 21574fi 21575 21576;; 21577no) 21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipped OpenSSL version check" >&5 21579$as_echo "Skipped OpenSSL version check" >&6; } 21580;; 21581esac 21582 21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5 21584$as_echo_n "checking for OpenSSL DSA support... " >&6; } 21585 if test -f $use_openssl/include/openssl/dsa.h 21586 then 21587 $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h 21588 21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21590$as_echo "yes" >&6; } 21591 else 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21593$as_echo "no" >&6; } 21594 fi 21595 for ac_func in EVP_sha256 EVP_sha512 21596do : 21597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21598ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21599if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21600 cat >>confdefs.h <<_ACEOF 21601#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21602_ACEOF 21603 21604fi 21605done 21606 21607 21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5 21609$as_echo_n "checking for OpenSSL GOST support... " >&6; } 21610 have_gost="" 21611 if test "$cross_compiling" = yes; then : 21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-gost" >&5 21613$as_echo "using --with-gost" >&6; } 21614else 21615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21616/* end confdefs.h. */ 21617 21618#include <openssl/conf.h> 21619#include <openssl/engine.h> 21620int main() { 21621#if (OPENSSL_VERSION_NUMBER >= 0x10000000L) 21622 ENGINE *e; 21623 EC_KEY *ek; 21624 21625 ek = NULL; 21626 OPENSSL_config(NULL); 21627 21628 e = ENGINE_by_id("gost"); 21629 if (e == NULL) 21630 return (1); 21631 if (ENGINE_init(e) <= 0) 21632 return (1); 21633 return (0); 21634#else 21635 return (1); 21636#endif 21637} 21638 21639_ACEOF 21640if ac_fn_c_try_run "$LINENO"; then : 21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21642$as_echo "yes" >&6; } 21643 have_gost="yes" 21644else 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21646$as_echo "no" >&6; } 21647 have_gost="no" 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# Check whether --with-gost was given. 21655if test "${with_gost+set}" = set; then : 21656 withval=$with_gost; with_gost="$withval" 21657else 21658 with_gost="auto" 21659fi 21660 21661 case "$with_gost" in 21662 yes) 21663 case "$have_gost" in 21664 no) as_fn_error $? "gost not supported" "$LINENO" 5 ;; 21665 *) have_gost=yes ;; 21666 esac 21667 ;; 21668 no) 21669 have_gost=no ;; 21670 *) 21671 case "$have_gost" in 21672 yes|no) ;; 21673 *) as_fn_error $? "need --with-gost=[yes or no]" "$LINENO" 5 ;; 21674 esac 21675 ;; 21676 esac 21677 case $have_gost in 21678 yes) 21679 OPENSSL_GOST="yes" 21680 21681$as_echo "#define HAVE_OPENSSL_GOST 1" >>confdefs.h 21682 21683 ;; 21684 *) 21685 ;; 21686 esac 21687 CFLAGS="$saved_cflags" 21688 LIBS="$saved_libs" 21689 OPENSSLLINKOBJS='${OPENSSLLINKOBJS}' 21690 OPENSSLLINKSRCS='${OPENSSLLINKSRCS}' 21691 21692 ;; 21693esac 21694 21695# 21696# This would include the system openssl path (and linker options to use 21697# it as needed) if it is found. 21698# 21699 21700 21701 21702 21703 21704 21705DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DNS_OPENSSL_LIBS" 21706 21707# 21708# Use OpenSSL for hash functions 21709# 21710 21711# Check whether --enable-openssl-hash was given. 21712if test "${enable_openssl_hash+set}" = set; then : 21713 enableval=$enable_openssl_hash; want_openssl_hash="$enableval" 21714else 21715 want_openssl_hash="no" 21716fi 21717 21718case $want_openssl_hash in 21719 yes) 21720 if test "$USE_OPENSSL" = "" 21721 then 21722 as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5 21723 fi 21724 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1" 21725 ISC_OPENSSL_INC="$DST_OPENSSL_INC" 21726 ;; 21727 no) 21728 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH" 21729 ISC_OPENSSL_INC="" 21730 ;; 21731esac 21732 21733 21734 21735# 21736# PKCS11 (aka crypto hardware) support 21737# 21738# This works only with the right OpenSSL with PKCS11 engine! 21739# 21740 21741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5 21742$as_echo_n "checking for PKCS11 support... " >&6; } 21743 21744# Check whether --with-pkcs11 was given. 21745if test "${with_pkcs11+set}" = set; then : 21746 withval=$with_pkcs11; use_pkcs11="$withval" 21747else 21748 use_pkcs11="no" 21749fi 21750 21751 21752case "$use_pkcs11" in 21753 no|'') 21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21755$as_echo "disabled" >&6; } 21756 USE_PKCS11='' 21757 PKCS11_TOOLS='' 21758 ;; 21759 yes|*) 21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL with PKCS11 support" >&5 21761$as_echo "using OpenSSL with PKCS11 support" >&6; } 21762 USE_PKCS11='-DUSE_PKCS11' 21763 PKCS11_TOOLS=pkcs11 21764 ;; 21765esac 21766 21767 21768 21769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5 21770$as_echo_n "checking for PKCS11 tools... " >&6; } 21771case "$use_pkcs11" in 21772 no|yes|'') 21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21774$as_echo "disabled" >&6; } 21775 PKCS11_PROVIDER="undefined" 21776 ;; 21777 *) 21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PKCS11 provider is \"$use_pkcs11\"" >&5 21779$as_echo "PKCS11 provider is \"$use_pkcs11\"" >&6; } 21780 PKCS11_PROVIDER="$use_pkcs11" 21781 ;; 21782esac 21783 21784 21785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5 21786$as_echo_n "checking for GSSAPI library... " >&6; } 21787 21788# Check whether --with-gssapi was given. 21789if test "${with_gssapi+set}" = set; then : 21790 withval=$with_gssapi; use_gssapi="$withval" 21791else 21792 use_gssapi="yes" 21793fi 21794 21795 21796# gssapi is just the framework, we really require kerberos v5, so 21797# look for those headers (the gssapi headers must be there, too) 21798# The problem with this implementation is that it doesn't allow 21799# for the specification of gssapi and krb5 headers in different locations, 21800# which probably ought to be fixed although fixing might raise the issue of 21801# trying to build with incompatible versions of gssapi and krb5. 21802if test "$use_gssapi" = "yes" 21803then 21804 # first, deal with the obvious 21805 if test \( -f /usr/include/kerberosv5/krb5.h -o \ 21806 -f /usr/include/krb5/krb5.h -o \ 21807 -f /usr/include/krb5.h \) -a \ 21808 \( -f /usr/include/gssapi.h -o \ 21809 -f /usr/include/gssapi/gssapi.h \) 21810 then 21811 use_gssapi=/usr 21812 else 21813 krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr" 21814 for d in $krb5dirs 21815 do 21816 if test -f $d/include/gssapi/gssapi_krb5.h -o \ 21817 -f $d/include/krb5.h 21818 then 21819 if test -f $d/include/gssapi/gssapi.h -o \ 21820 -f $d/include/gssapi.h 21821 then 21822 use_gssapi=$d 21823 break 21824 fi 21825 fi 21826 use_gssapi="no" 21827 done 21828 fi 21829fi 21830 21831case "$use_gssapi" in 21832 no) 21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21834$as_echo "disabled" >&6; } 21835 USE_GSSAPI='' 21836 ;; 21837 yes) 21838 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5 21839 ;; 21840 *) 21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5 21842$as_echo "looking in $use_gssapi/lib" >&6; } 21843 USE_GSSAPI='-DGSSAPI' 21844 saved_cppflags="$CPPFLAGS" 21845 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS" 21846 for ac_header in gssapi.h gssapi/gssapi.h 21847do : 21848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21849ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21850if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21851 cat >>confdefs.h <<_ACEOF 21852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21853_ACEOF 21854 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>" 21855fi 21856 21857done 21858 21859 21860 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then 21861 as_fn_error $? "gssapi.h not found" "$LINENO" 5 21862 fi 21863 21864 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h 21865do : 21866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21867ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21868if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21869 cat >>confdefs.h <<_ACEOF 21870#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21871_ACEOF 21872 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>" 21873fi 21874 21875done 21876 21877 21878 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h 21879do : 21880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21881ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21882if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21883 cat >>confdefs.h <<_ACEOF 21884#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21885_ACEOF 21886 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>" 21887fi 21888 21889done 21890 21891 21892 if test "$ISC_PLATFORM_KRB5HEADER" = ""; then 21893 as_fn_error $? "krb5.h not found" "$LINENO" 5 21894 fi 21895 21896 CPPFLAGS="$saved_cppflags" 21897 21898 # 21899 # XXXDCL This probably doesn't work right on all systems. 21900 # It will need to be worked on as problems become evident. 21901 # 21902 # Essentially the problems here relate to two different 21903 # areas. The first area is building with either KTH 21904 # or MIT Kerberos, particularly when both are present on 21905 # the machine. The other is static versus dynamic linking. 21906 # 21907 # On the KTH vs MIT issue, Both have libkrb5 that can mess 21908 # up the works if one implementation ends up trying to 21909 # use the other's krb. This is unfortunately a situation 21910 # that very easily arises. 21911 # 21912 # Dynamic linking when the dependency information is built 21913 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes 21914 # all such problems go away, but when that setup is not 21915 # present, because either the dynamic libraries lack 21916 # dependencies or static linking is being done, then the 21917 # problems start to show up. 21918 saved_libs="$LIBS" 21919 for TRY_LIBS in \ 21920 "-lgssapi_krb5" \ 21921 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \ 21922 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \ 21923 "-lgssapi" \ 21924 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \ 21925 "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \ 21926 "-lgss -lkrb5" 21927 do 21928 # Note that this does not include $saved_libs, because 21929 # on FreeBSD machines this configure script has added 21930 # -L/usr/local/lib to LIBS, which can make the 21931 # -lgssapi_krb5 test succeed with shared libraries even 21932 # when you are trying to build with KTH in /usr/lib. 21933 if test "$use_gssapi" = "/usr" 21934 then 21935 LIBS="$TRY_LIBS" 21936 else 21937 LIBS="-L$use_gssapi/lib $TRY_LIBS" 21938 fi 21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5 21940$as_echo_n "checking linking as $TRY_LIBS... " >&6; } 21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21942/* end confdefs.h. */ 21943 21944int 21945main () 21946{ 21947gss_acquire_cred();krb5_init_context() 21948 ; 21949 return 0; 21950} 21951_ACEOF 21952if ac_fn_c_try_link "$LINENO"; then : 21953 gssapi_linked=yes 21954else 21955 gssapi_linked=no 21956fi 21957rm -f core conftest.err conftest.$ac_objext \ 21958 conftest$ac_exeext conftest.$ac_ext 21959 case $gssapi_linked in 21960 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21961$as_echo "yes" >&6; }; break ;; 21962 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21963$as_echo "no" >&6; } ;; 21964 esac 21965 done 21966 21967 case $gssapi_linked in 21968 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;; 21969 esac 21970 21971 # 21972 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib 21973 # but MIT in /usr/local/lib and trying to build with KTH. 21974 # /usr/local/lib can end up earlier on the link lines. 21975 # Like most kludges, this one is not only inelegant it 21976 # is also likely to be the wrong thing to do at least as 21977 # many times as it is the right thing. Something better 21978 # needs to be done. 21979 # 21980 if test "$use_gssapi" = "/usr" -a \ 21981 -f /usr/local/lib/libkrb5.a; then 21982 FIX_KTH_VS_MIT=yes 21983 fi 21984 21985 case "$FIX_KTH_VS_MIT" in 21986 yes) 21987 case "$enable_static_linking" in 21988 yes) gssapi_lib_suffix=".a" ;; 21989 *) gssapi_lib_suffix=".so" ;; 21990 esac 21991 21992 for lib in $LIBS; do 21993 case $lib in 21994 -L*) 21995 ;; 21996 -l*) 21997 new_lib=`echo $lib | 21998 sed -e s%^-l%$use_gssapi/lib/lib% \ 21999 -e s%$%$gssapi_lib_suffix%` 22000 NEW_LIBS="$NEW_LIBS $new_lib" 22001 ;; 22002 *) 22003 as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5 22004 ;; 22005 esac 22006 done 22007 LIBS="$NEW_LIBS" 22008 ;; 22009 esac 22010 22011 DST_GSSAPI_INC="-I$use_gssapi/include" 22012 DNS_GSSAPI_LIBS="$LIBS" 22013 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5 22015$as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; } 22016 LIBS="$saved_libs" 22017 ;; 22018esac 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS" 22029 22030# 22031# Applications linking with libdns also need to link with these libraries. 22032# 22033 22034 22035 22036# 22037# was --with-randomdev specified? 22038# 22039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5 22040$as_echo_n "checking for random device... " >&6; } 22041 22042# Check whether --with-randomdev was given. 22043if test "${with_randomdev+set}" = set; then : 22044 withval=$with_randomdev; use_randomdev="$withval" 22045else 22046 use_randomdev="unspec" 22047fi 22048 22049 22050case "$use_randomdev" in 22051 unspec) 22052 case "$host" in 22053 *-openbsd*) 22054 devrandom=/dev/arandom 22055 ;; 22056 *) 22057 devrandom=/dev/random 22058 ;; 22059 esac 22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5 22061$as_echo "$devrandom" >&6; } 22062 as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh` 22063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5 22064$as_echo_n "checking for $devrandom... " >&6; } 22065if eval "test \"\${$as_ac_File+set}\"" = set; then : 22066 $as_echo_n "(cached) " >&6 22067else 22068 test "$cross_compiling" = yes && 22069 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 22070if test -r "$devrandom"; then 22071 eval "$as_ac_File=yes" 22072else 22073 eval "$as_ac_File=no" 22074fi 22075fi 22076eval ac_res=\$$as_ac_File 22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22078$as_echo "$ac_res" >&6; } 22079if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 22080 cat >>confdefs.h <<_ACEOF 22081#define PATH_RANDOMDEV "$devrandom" 22082_ACEOF 22083 22084fi 22085 22086 ;; 22087 yes) 22088 as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5 22089 ;; 22090 no) 22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22092$as_echo "disabled" >&6; } 22093 ;; 22094 *) 22095 cat >>confdefs.h <<_ACEOF 22096#define PATH_RANDOMDEV "$use_randomdev" 22097_ACEOF 22098 22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5 22100$as_echo "using \"$use_randomdev\"" >&6; } 22101 ;; 22102esac 22103 22104# 22105# Do we have arc4random() ? 22106# 22107ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 22108if test "x$ac_cv_func_arc4random" = x""yes; then : 22109 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 22110 22111fi 22112 22113 22114# 22115# Begin pthreads checking. 22116# 22117# First, decide whether to use multithreading or not. 22118# 22119# Enable multithreading by default on systems where it is known 22120# to work well, and where debugging of multithreaded programs 22121# is supported. 22122# 22123 22124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5 22125$as_echo_n "checking whether to build with thread support... " >&6; } 22126 22127case $host in 22128*-dec-osf*) 22129 use_threads=true ;; 22130*-solaris2.[0-6]) 22131 # Thread signals are broken on Solaris 2.6; they are sometimes 22132 # delivered to the wrong thread. 22133 use_threads=false ;; 22134*-solaris*) 22135 use_threads=true ;; 22136*-ibm-aix*) 22137 use_threads=true ;; 22138*-hp-hpux10*) 22139 use_threads=false ;; 22140*-hp-hpux11*) 22141 use_threads=true ;; 22142*-sgi-irix*) 22143 use_threads=true ;; 22144*-sco-sysv*uw*|*-*-sysv*UnixWare*) 22145 # UnixWare 22146 use_threads=false ;; 22147*-*-sysv*OpenUNIX*) 22148 # UnixWare 22149 use_threads=true ;; 22150*-netbsd[1234].*) 22151 # NetBSD earlier than NetBSD 5.0 has poor pthreads. 22152 # Don't use it by default. 22153 use_threads=false ;; 22154*-netbsd*) 22155 use_threads=true ;; 22156*-openbsd*) 22157 # OpenBSD users have reported that named dumps core on 22158 # startup when built with threads. 22159 use_threads=false ;; 22160*-freebsd*) 22161 use_threads=false ;; 22162*-bsdi[234]*) 22163 # Thread signals do not work reliably on some versions of BSD/OS. 22164 use_threads=false ;; 22165*-bsdi5*) 22166 use_threads=true ;; 22167*-linux*) 22168 # Threads are disabled on Linux by default because most 22169 # Linux kernels produce unusable core dumps from multithreaded 22170 # programs, and because of limitations in setuid(). 22171 use_threads=false ;; 22172*) 22173 use_threads=false ;; 22174esac 22175 22176# Check whether --enable-threads was given. 22177if test "${enable_threads+set}" = set; then : 22178 enableval=$enable_threads; 22179fi 22180 22181case "$enable_threads" in 22182 yes) 22183 use_threads=true 22184 ;; 22185 no) 22186 use_threads=false 22187 ;; 22188 '') 22189 # Use system-dependent default 22190 ;; 22191 *) 22192 as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5 22193 ;; 22194esac 22195 22196if $use_threads 22197then 22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22199$as_echo "yes" >&6; } 22200else 22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22202$as_echo "no" >&6; } 22203fi 22204 22205if $use_threads 22206then 22207 # 22208 # Search for / configure pthreads in a system-dependent fashion. 22209 # 22210 case "$host" in 22211 *-freebsd*) 22212 # We don't want to set -lpthread as that break 22213 # the ability to choose threads library at final 22214 # link time and is not valid for all architectures. 22215 22216 PTHREAD= 22217 if test "X$GCC" = "Xyes"; then 22218 saved_cc="$CC" 22219 CC="$CC -pthread" 22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5 22221$as_echo_n "checking for gcc -pthread support... " >&6; }; 22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22223/* end confdefs.h. */ 22224#include <pthread.h> 22225int 22226main () 22227{ 22228printf("%x\n", pthread_create); 22229 ; 22230 return 0; 22231} 22232_ACEOF 22233if ac_fn_c_try_link "$LINENO"; then : 22234 PTHREAD="yes" 22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22236$as_echo "yes" >&6; } 22237else 22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22239$as_echo "no" >&6; } 22240fi 22241rm -f core conftest.err conftest.$ac_objext \ 22242 conftest$ac_exeext conftest.$ac_ext 22243 CC="$saved_cc" 22244 fi 22245 if test "X$PTHREAD" != "Xyes"; then 22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 22247$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 22248if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 22249 $as_echo_n "(cached) " >&6 22250else 22251 ac_check_lib_save_LIBS=$LIBS 22252LIBS="-lpthread $LIBS" 22253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22254/* end confdefs.h. */ 22255 22256/* Override any GCC internal prototype to avoid an error. 22257 Use char because int might match the return type of a GCC 22258 builtin and then its argument prototype would still apply. */ 22259#ifdef __cplusplus 22260extern "C" 22261#endif 22262char pthread_create (); 22263int 22264main () 22265{ 22266return pthread_create (); 22267 ; 22268 return 0; 22269} 22270_ACEOF 22271if ac_fn_c_try_link "$LINENO"; then : 22272 ac_cv_lib_pthread_pthread_create=yes 22273else 22274 ac_cv_lib_pthread_pthread_create=no 22275fi 22276rm -f core conftest.err conftest.$ac_objext \ 22277 conftest$ac_exeext conftest.$ac_ext 22278LIBS=$ac_check_lib_save_LIBS 22279fi 22280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 22281$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 22282if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 22283 cat >>confdefs.h <<_ACEOF 22284#define HAVE_LIBPTHREAD 1 22285_ACEOF 22286 22287 LIBS="-lpthread $LIBS" 22288 22289else 22290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5 22291$as_echo_n "checking for thread_create in -lthr... " >&6; } 22292if test "${ac_cv_lib_thr_thread_create+set}" = set; then : 22293 $as_echo_n "(cached) " >&6 22294else 22295 ac_check_lib_save_LIBS=$LIBS 22296LIBS="-lthr $LIBS" 22297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22298/* end confdefs.h. */ 22299 22300/* Override any GCC internal prototype to avoid an error. 22301 Use char because int might match the return type of a GCC 22302 builtin and then its argument prototype would still apply. */ 22303#ifdef __cplusplus 22304extern "C" 22305#endif 22306char thread_create (); 22307int 22308main () 22309{ 22310return thread_create (); 22311 ; 22312 return 0; 22313} 22314_ACEOF 22315if ac_fn_c_try_link "$LINENO"; then : 22316 ac_cv_lib_thr_thread_create=yes 22317else 22318 ac_cv_lib_thr_thread_create=no 22319fi 22320rm -f core conftest.err conftest.$ac_objext \ 22321 conftest$ac_exeext conftest.$ac_ext 22322LIBS=$ac_check_lib_save_LIBS 22323fi 22324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5 22325$as_echo "$ac_cv_lib_thr_thread_create" >&6; } 22326if test "x$ac_cv_lib_thr_thread_create" = x""yes; then : 22327 cat >>confdefs.h <<_ACEOF 22328#define HAVE_LIBTHR 1 22329_ACEOF 22330 22331 LIBS="-lthr $LIBS" 22332 22333else 22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 22335$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 22336if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : 22337 $as_echo_n "(cached) " >&6 22338else 22339 ac_check_lib_save_LIBS=$LIBS 22340LIBS="-lc_r $LIBS" 22341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22342/* end confdefs.h. */ 22343 22344/* Override any GCC internal prototype to avoid an error. 22345 Use char because int might match the return type of a GCC 22346 builtin and then its argument prototype would still apply. */ 22347#ifdef __cplusplus 22348extern "C" 22349#endif 22350char pthread_create (); 22351int 22352main () 22353{ 22354return pthread_create (); 22355 ; 22356 return 0; 22357} 22358_ACEOF 22359if ac_fn_c_try_link "$LINENO"; then : 22360 ac_cv_lib_c_r_pthread_create=yes 22361else 22362 ac_cv_lib_c_r_pthread_create=no 22363fi 22364rm -f core conftest.err conftest.$ac_objext \ 22365 conftest$ac_exeext conftest.$ac_ext 22366LIBS=$ac_check_lib_save_LIBS 22367fi 22368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 22369$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 22370if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : 22371 cat >>confdefs.h <<_ACEOF 22372#define HAVE_LIBC_R 1 22373_ACEOF 22374 22375 LIBS="-lc_r $LIBS" 22376 22377else 22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 22379$as_echo_n "checking for pthread_create in -lc... " >&6; } 22380if test "${ac_cv_lib_c_pthread_create+set}" = set; then : 22381 $as_echo_n "(cached) " >&6 22382else 22383 ac_check_lib_save_LIBS=$LIBS 22384LIBS="-lc $LIBS" 22385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22386/* end confdefs.h. */ 22387 22388/* Override any GCC internal prototype to avoid an error. 22389 Use char because int might match the return type of a GCC 22390 builtin and then its argument prototype would still apply. */ 22391#ifdef __cplusplus 22392extern "C" 22393#endif 22394char pthread_create (); 22395int 22396main () 22397{ 22398return pthread_create (); 22399 ; 22400 return 0; 22401} 22402_ACEOF 22403if ac_fn_c_try_link "$LINENO"; then : 22404 ac_cv_lib_c_pthread_create=yes 22405else 22406 ac_cv_lib_c_pthread_create=no 22407fi 22408rm -f core conftest.err conftest.$ac_objext \ 22409 conftest$ac_exeext conftest.$ac_ext 22410LIBS=$ac_check_lib_save_LIBS 22411fi 22412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5 22413$as_echo "$ac_cv_lib_c_pthread_create" >&6; } 22414if test "x$ac_cv_lib_c_pthread_create" = x""yes; then : 22415 cat >>confdefs.h <<_ACEOF 22416#define HAVE_LIBC 1 22417_ACEOF 22418 22419 LIBS="-lc $LIBS" 22420 22421else 22422 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5 22423fi 22424 22425fi 22426 22427fi 22428 22429fi 22430 22431 fi 22432 ;; 22433 *) 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 22435$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 22436if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 22437 $as_echo_n "(cached) " >&6 22438else 22439 ac_check_lib_save_LIBS=$LIBS 22440LIBS="-lpthread $LIBS" 22441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22442/* end confdefs.h. */ 22443 22444/* Override any GCC internal prototype to avoid an error. 22445 Use char because int might match the return type of a GCC 22446 builtin and then its argument prototype would still apply. */ 22447#ifdef __cplusplus 22448extern "C" 22449#endif 22450char pthread_create (); 22451int 22452main () 22453{ 22454return pthread_create (); 22455 ; 22456 return 0; 22457} 22458_ACEOF 22459if ac_fn_c_try_link "$LINENO"; then : 22460 ac_cv_lib_pthread_pthread_create=yes 22461else 22462 ac_cv_lib_pthread_pthread_create=no 22463fi 22464rm -f core conftest.err conftest.$ac_objext \ 22465 conftest$ac_exeext conftest.$ac_ext 22466LIBS=$ac_check_lib_save_LIBS 22467fi 22468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 22469$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 22470if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 22471 cat >>confdefs.h <<_ACEOF 22472#define HAVE_LIBPTHREAD 1 22473_ACEOF 22474 22475 LIBS="-lpthread $LIBS" 22476 22477else 22478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5 22479$as_echo_n "checking for __pthread_create in -lpthread... " >&6; } 22480if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then : 22481 $as_echo_n "(cached) " >&6 22482else 22483 ac_check_lib_save_LIBS=$LIBS 22484LIBS="-lpthread $LIBS" 22485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22486/* end confdefs.h. */ 22487 22488/* Override any GCC internal prototype to avoid an error. 22489 Use char because int might match the return type of a GCC 22490 builtin and then its argument prototype would still apply. */ 22491#ifdef __cplusplus 22492extern "C" 22493#endif 22494char __pthread_create (); 22495int 22496main () 22497{ 22498return __pthread_create (); 22499 ; 22500 return 0; 22501} 22502_ACEOF 22503if ac_fn_c_try_link "$LINENO"; then : 22504 ac_cv_lib_pthread___pthread_create=yes 22505else 22506 ac_cv_lib_pthread___pthread_create=no 22507fi 22508rm -f core conftest.err conftest.$ac_objext \ 22509 conftest$ac_exeext conftest.$ac_ext 22510LIBS=$ac_check_lib_save_LIBS 22511fi 22512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5 22513$as_echo "$ac_cv_lib_pthread___pthread_create" >&6; } 22514if test "x$ac_cv_lib_pthread___pthread_create" = x""yes; then : 22515 cat >>confdefs.h <<_ACEOF 22516#define HAVE_LIBPTHREAD 1 22517_ACEOF 22518 22519 LIBS="-lpthread $LIBS" 22520 22521else 22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 22523$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 22524if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then : 22525 $as_echo_n "(cached) " >&6 22526else 22527 ac_check_lib_save_LIBS=$LIBS 22528LIBS="-lpthread $LIBS" 22529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22530/* end confdefs.h. */ 22531 22532/* Override any GCC internal prototype to avoid an error. 22533 Use char because int might match the return type of a GCC 22534 builtin and then its argument prototype would still apply. */ 22535#ifdef __cplusplus 22536extern "C" 22537#endif 22538char __pthread_create_system (); 22539int 22540main () 22541{ 22542return __pthread_create_system (); 22543 ; 22544 return 0; 22545} 22546_ACEOF 22547if ac_fn_c_try_link "$LINENO"; then : 22548 ac_cv_lib_pthread___pthread_create_system=yes 22549else 22550 ac_cv_lib_pthread___pthread_create_system=no 22551fi 22552rm -f core conftest.err conftest.$ac_objext \ 22553 conftest$ac_exeext conftest.$ac_ext 22554LIBS=$ac_check_lib_save_LIBS 22555fi 22556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 22557$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 22558if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then : 22559 cat >>confdefs.h <<_ACEOF 22560#define HAVE_LIBPTHREAD 1 22561_ACEOF 22562 22563 LIBS="-lpthread $LIBS" 22564 22565else 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 22567$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 22568if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : 22569 $as_echo_n "(cached) " >&6 22570else 22571 ac_check_lib_save_LIBS=$LIBS 22572LIBS="-lc_r $LIBS" 22573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22574/* end confdefs.h. */ 22575 22576/* Override any GCC internal prototype to avoid an error. 22577 Use char because int might match the return type of a GCC 22578 builtin and then its argument prototype would still apply. */ 22579#ifdef __cplusplus 22580extern "C" 22581#endif 22582char pthread_create (); 22583int 22584main () 22585{ 22586return pthread_create (); 22587 ; 22588 return 0; 22589} 22590_ACEOF 22591if ac_fn_c_try_link "$LINENO"; then : 22592 ac_cv_lib_c_r_pthread_create=yes 22593else 22594 ac_cv_lib_c_r_pthread_create=no 22595fi 22596rm -f core conftest.err conftest.$ac_objext \ 22597 conftest$ac_exeext conftest.$ac_ext 22598LIBS=$ac_check_lib_save_LIBS 22599fi 22600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 22601$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 22602if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : 22603 cat >>confdefs.h <<_ACEOF 22604#define HAVE_LIBC_R 1 22605_ACEOF 22606 22607 LIBS="-lc_r $LIBS" 22608 22609else 22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 22611$as_echo_n "checking for pthread_create in -lc... " >&6; } 22612if test "${ac_cv_lib_c_pthread_create+set}" = set; then : 22613 $as_echo_n "(cached) " >&6 22614else 22615 ac_check_lib_save_LIBS=$LIBS 22616LIBS="-lc $LIBS" 22617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22618/* end confdefs.h. */ 22619 22620/* Override any GCC internal prototype to avoid an error. 22621 Use char because int might match the return type of a GCC 22622 builtin and then its argument prototype would still apply. */ 22623#ifdef __cplusplus 22624extern "C" 22625#endif 22626char pthread_create (); 22627int 22628main () 22629{ 22630return pthread_create (); 22631 ; 22632 return 0; 22633} 22634_ACEOF 22635if ac_fn_c_try_link "$LINENO"; then : 22636 ac_cv_lib_c_pthread_create=yes 22637else 22638 ac_cv_lib_c_pthread_create=no 22639fi 22640rm -f core conftest.err conftest.$ac_objext \ 22641 conftest$ac_exeext conftest.$ac_ext 22642LIBS=$ac_check_lib_save_LIBS 22643fi 22644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5 22645$as_echo "$ac_cv_lib_c_pthread_create" >&6; } 22646if test "x$ac_cv_lib_c_pthread_create" = x""yes; then : 22647 cat >>confdefs.h <<_ACEOF 22648#define HAVE_LIBC 1 22649_ACEOF 22650 22651 LIBS="-lc $LIBS" 22652 22653else 22654 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5 22655fi 22656 22657fi 22658 22659fi 22660 22661fi 22662 22663fi 22664 22665 ;; 22666 esac 22667fi 22668 22669if $use_threads 22670then 22671 if test "X$GCC" = "Xyes"; then 22672 case "$host" in 22673 *-freebsd*) 22674 CC="$CC -pthread" 22675 CCOPT="$CCOPT -pthread" 22676 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22677 ;; 22678 *-openbsd*) 22679 CC="$CC -pthread" 22680 CCOPT="$CCOPT -pthread" 22681 ;; 22682 *-solaris*) 22683 LIBS="$LIBS -lthread" 22684 ;; 22685 *-ibm-aix*) 22686 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22687 ;; 22688 esac 22689 else 22690 case $host in 22691 *-dec-osf*) 22692 CC="$CC -pthread" 22693 CCOPT="$CCOPT -pthread" 22694 ;; 22695 *-solaris*) 22696 CC="$CC -mt" 22697 CCOPT="$CCOPT -mt" 22698 ;; 22699 *-ibm-aix*) 22700 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22701 ;; 22702 *-sco-sysv*uw*|*-*-sysv*UnixWare*) 22703 CC="$CC -Kthread" 22704 CCOPT="$CCOPT -Kthread" 22705 ;; 22706 *-*-sysv*OpenUNIX*) 22707 CC="$CC -Kpthread" 22708 CCOPT="$CCOPT -Kpthread" 22709 ;; 22710 esac 22711 fi 22712 ALWAYS_DEFINES="-D_REENTRANT" 22713 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1" 22714 THREADOPTOBJS='${THREADOPTOBJS}' 22715 THREADOPTSRCS='${THREADOPTSRCS}' 22716 thread_dir=pthreads 22717 # 22718 # We'd like to use sigwait() too 22719 # 22720 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 22721if test "x$ac_cv_func_sigwait" = x""yes; then : 22722 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 22723 22724else 22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 22726$as_echo_n "checking for sigwait in -lc... " >&6; } 22727if test "${ac_cv_lib_c_sigwait+set}" = set; then : 22728 $as_echo_n "(cached) " >&6 22729else 22730 ac_check_lib_save_LIBS=$LIBS 22731LIBS="-lc $LIBS" 22732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22733/* end confdefs.h. */ 22734 22735/* Override any GCC internal prototype to avoid an error. 22736 Use char because int might match the return type of a GCC 22737 builtin and then its argument prototype would still apply. */ 22738#ifdef __cplusplus 22739extern "C" 22740#endif 22741char sigwait (); 22742int 22743main () 22744{ 22745return sigwait (); 22746 ; 22747 return 0; 22748} 22749_ACEOF 22750if ac_fn_c_try_link "$LINENO"; then : 22751 ac_cv_lib_c_sigwait=yes 22752else 22753 ac_cv_lib_c_sigwait=no 22754fi 22755rm -f core conftest.err conftest.$ac_objext \ 22756 conftest$ac_exeext conftest.$ac_ext 22757LIBS=$ac_check_lib_save_LIBS 22758fi 22759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 22760$as_echo "$ac_cv_lib_c_sigwait" >&6; } 22761if test "x$ac_cv_lib_c_sigwait" = x""yes; then : 22762 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 22763 22764else 22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 22766$as_echo_n "checking for sigwait in -lpthread... " >&6; } 22767if test "${ac_cv_lib_pthread_sigwait+set}" = set; then : 22768 $as_echo_n "(cached) " >&6 22769else 22770 ac_check_lib_save_LIBS=$LIBS 22771LIBS="-lpthread $LIBS" 22772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22773/* end confdefs.h. */ 22774 22775/* Override any GCC internal prototype to avoid an error. 22776 Use char because int might match the return type of a GCC 22777 builtin and then its argument prototype would still apply. */ 22778#ifdef __cplusplus 22779extern "C" 22780#endif 22781char sigwait (); 22782int 22783main () 22784{ 22785return sigwait (); 22786 ; 22787 return 0; 22788} 22789_ACEOF 22790if ac_fn_c_try_link "$LINENO"; then : 22791 ac_cv_lib_pthread_sigwait=yes 22792else 22793 ac_cv_lib_pthread_sigwait=no 22794fi 22795rm -f core conftest.err conftest.$ac_objext \ 22796 conftest$ac_exeext conftest.$ac_ext 22797LIBS=$ac_check_lib_save_LIBS 22798fi 22799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 22800$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 22801if test "x$ac_cv_lib_pthread_sigwait" = x""yes; then : 22802 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 22803 22804else 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 22806$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 22807if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then : 22808 $as_echo_n "(cached) " >&6 22809else 22810 ac_check_lib_save_LIBS=$LIBS 22811LIBS="-lpthread $LIBS" 22812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22813/* end confdefs.h. */ 22814 22815/* Override any GCC internal prototype to avoid an error. 22816 Use char because int might match the return type of a GCC 22817 builtin and then its argument prototype would still apply. */ 22818#ifdef __cplusplus 22819extern "C" 22820#endif 22821char _Psigwait (); 22822int 22823main () 22824{ 22825return _Psigwait (); 22826 ; 22827 return 0; 22828} 22829_ACEOF 22830if ac_fn_c_try_link "$LINENO"; then : 22831 ac_cv_lib_pthread__Psigwait=yes 22832else 22833 ac_cv_lib_pthread__Psigwait=no 22834fi 22835rm -f core conftest.err conftest.$ac_objext \ 22836 conftest$ac_exeext conftest.$ac_ext 22837LIBS=$ac_check_lib_save_LIBS 22838fi 22839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 22840$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 22841if test "x$ac_cv_lib_pthread__Psigwait" = x""yes; then : 22842 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 22843 22844fi 22845 22846fi 22847 22848fi 22849 22850fi 22851 22852 22853 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 22854if test "x$ac_cv_func_pthread_attr_getstacksize" = x""yes; then : 22855 $as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h 22856 22857fi 22858 22859 22860 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" 22861if test "x$ac_cv_func_pthread_attr_setstacksize" = x""yes; then : 22862 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h 22863 22864fi 22865 22866 22867 # 22868 # Additional OS-specific issues related to pthreads and sigwait. 22869 # 22870 case "$host" in 22871 # 22872 # One more place to look for sigwait. 22873 # 22874 *-freebsd*) 22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 22876$as_echo_n "checking for sigwait in -lc_r... " >&6; } 22877if test "${ac_cv_lib_c_r_sigwait+set}" = set; then : 22878 $as_echo_n "(cached) " >&6 22879else 22880 ac_check_lib_save_LIBS=$LIBS 22881LIBS="-lc_r $LIBS" 22882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22883/* end confdefs.h. */ 22884 22885/* Override any GCC internal prototype to avoid an error. 22886 Use char because int might match the return type of a GCC 22887 builtin and then its argument prototype would still apply. */ 22888#ifdef __cplusplus 22889extern "C" 22890#endif 22891char sigwait (); 22892int 22893main () 22894{ 22895return sigwait (); 22896 ; 22897 return 0; 22898} 22899_ACEOF 22900if ac_fn_c_try_link "$LINENO"; then : 22901 ac_cv_lib_c_r_sigwait=yes 22902else 22903 ac_cv_lib_c_r_sigwait=no 22904fi 22905rm -f core conftest.err conftest.$ac_objext \ 22906 conftest$ac_exeext conftest.$ac_ext 22907LIBS=$ac_check_lib_save_LIBS 22908fi 22909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 22910$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 22911if test "x$ac_cv_lib_c_r_sigwait" = x""yes; then : 22912 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 22913 22914fi 22915 22916 case $host in 22917 *-freebsd5.[012]|*-freebsd5.[012].*);; 22918 *-freebsd5.[3456789]|*-freebsd5.[3456789].*) 22919 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 22920 22921 ;; 22922 *-freebsd6.*) 22923 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 22924 22925 ;; 22926 esac 22927 ;; 22928 # 22929 # BSDI 3.0 through 4.0.1 needs pthread_init() to be 22930 # called before certain pthreads calls. This is deprecated 22931 # in BSD/OS 4.1. 22932 # 22933 *-bsdi3.*|*-bsdi4.0*) 22934 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 22935 22936 ;; 22937 # 22938 # LinuxThreads requires some changes to the way we 22939 # deal with signals. 22940 # 22941 *-linux*) 22942 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 22943 22944 ;; 22945 # 22946 # Ensure the right sigwait() semantics on Solaris and make 22947 # sure we call pthread_setconcurrency. 22948 # 22949 *-solaris*) 22950 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 22951 22952 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 22953if test "x$ac_cv_func_pthread_setconcurrency" = x""yes; then : 22954 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 22955 22956fi 22957 22958 ;; 22959 # 22960 # UnixWare does things its own way. 22961 # 22962 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 22963 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 22964 22965 ;; 22966 esac 22967 22968 # 22969 # Look for sysconf to allow detection of the number of processors. 22970 # 22971 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 22972if test "x$ac_cv_func_sysconf" = x""yes; then : 22973 $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 22974 22975fi 22976 22977 22978else 22979 ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS" 22980 thread_dir=nothreads 22981 THREADOPTOBJS="" 22982 THREADOPTSRCS="" 22983 ALWAYS_DEFINES="" 22984fi 22985 22986 22987 22988 22989 22990ISC_THREAD_DIR=$thread_dir 22991 22992 22993# 22994# was --with-libxml2 specified? 22995# 22996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5 22997$as_echo_n "checking for libxml2 library... " >&6; } 22998 22999# Check whether --with-libxml2 was given. 23000if test "${with_libxml2+set}" = set; then : 23001 withval=$with_libxml2; use_libxml2="$withval" 23002else 23003 use_libxml2="auto" 23004fi 23005 23006 23007case "$use_libxml2" in 23008 no) 23009 DST_LIBXML2_INC="" 23010 ;; 23011 auto|yes) 23012 case X`(xml2-config --version) 2>/dev/null` in 23013 X2.[67].*) 23014 libxml2_libs=`xml2-config --libs` 23015 libxml2_cflags=`xml2-config --cflags` 23016 ;; 23017 *) 23018 libxml2_libs= 23019 libxml2_cflags= 23020 ;; 23021 esac 23022 ;; 23023 *) 23024 if test -f "$use_libxml2/bin/xml2-config" ; then 23025 libxml2_libs=`$use_libxml2/bin/xml2-config --libs` 23026 libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags` 23027 fi 23028 ;; 23029esac 23030 23031if test "X$libxml2_libs" != "X" 23032then 23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23034$as_echo "yes" >&6; } 23035 STD_CINCLUDES="$STD_CINCLUDES $libxml2_cflags" 23036 LIBS="$LIBS $libxml2_libs" 23037 23038$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h 23039 23040else 23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23042$as_echo "no" >&6; } 23043fi 23044 23045# 23046# In solaris 10, SMF can manage named service 23047# 23048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5 23049$as_echo_n "checking for smf_enable_instance in -lscf... " >&6; } 23050if test "${ac_cv_lib_scf_smf_enable_instance+set}" = set; then : 23051 $as_echo_n "(cached) " >&6 23052else 23053 ac_check_lib_save_LIBS=$LIBS 23054LIBS="-lscf $LIBS" 23055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23056/* end confdefs.h. */ 23057 23058/* Override any GCC internal prototype to avoid an error. 23059 Use char because int might match the return type of a GCC 23060 builtin and then its argument prototype would still apply. */ 23061#ifdef __cplusplus 23062extern "C" 23063#endif 23064char smf_enable_instance (); 23065int 23066main () 23067{ 23068return smf_enable_instance (); 23069 ; 23070 return 0; 23071} 23072_ACEOF 23073if ac_fn_c_try_link "$LINENO"; then : 23074 ac_cv_lib_scf_smf_enable_instance=yes 23075else 23076 ac_cv_lib_scf_smf_enable_instance=no 23077fi 23078rm -f core conftest.err conftest.$ac_objext \ 23079 conftest$ac_exeext conftest.$ac_ext 23080LIBS=$ac_check_lib_save_LIBS 23081fi 23082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5 23083$as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; } 23084if test "x$ac_cv_lib_scf_smf_enable_instance" = x""yes; then : 23085 cat >>confdefs.h <<_ACEOF 23086#define HAVE_LIBSCF 1 23087_ACEOF 23088 23089 LIBS="-lscf $LIBS" 23090 23091fi 23092 23093 23094# 23095# flockfile is usually provided by pthreads, but we may want to use it 23096# even if compiled with --disable-threads. getc_unlocked might also not 23097# be defined. 23098# 23099ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" 23100if test "x$ac_cv_func_flockfile" = x""yes; then : 23101 $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h 23102 23103fi 23104 23105ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 23106if test "x$ac_cv_func_getc_unlocked" = x""yes; then : 23107 $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h 23108 23109fi 23110 23111 23112# 23113# Indicate what the final decision was regarding threads. 23114# 23115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5 23116$as_echo_n "checking whether to build with threads... " >&6; } 23117if $use_threads; then 23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23119$as_echo "yes" >&6; } 23120else 23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23122$as_echo "no" >&6; } 23123fi 23124 23125# 23126# End of pthreads stuff. 23127# 23128 23129# 23130# Large File 23131# 23132# Check whether --enable-largefile was given. 23133if test "${enable_largefile+set}" = set; then : 23134 enableval=$enable_largefile; want_largefile="yes" 23135else 23136 want_largefile="no" 23137fi 23138 23139case $want_largefile in 23140 yes) 23141 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 23142 ;; 23143 *) 23144 ;; 23145esac 23146 23147# 23148# Additional compiler settings. 23149# 23150MKDEPCC="$CC" 23151MKDEPCFLAGS="-M" 23152IRIX_DNSSEC_WARNINGS_HACK="" 23153 23154if test "X$GCC" = "Xyes"; then 23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5 23156$as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; } 23157 SAVE_CFLAGS=$CFLAGS 23158 CFLAGS="$CFLAGS -fno-strict-aliasing" 23159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23160/* end confdefs.h. */ 23161 23162int 23163main () 23164{ 23165 23166 ; 23167 return 0; 23168} 23169_ACEOF 23170if ac_fn_c_try_compile "$LINENO"; then : 23171 FNOSTRICTALIASING=yes 23172else 23173 FNOSTRICTALIASING=no 23174fi 23175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23176 CFLAGS=$SAVE_CFLAGS 23177 if test "$FNOSTRICTALIASING" = "yes"; then 23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23179$as_echo "yes" >&6; } 23180 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing" 23181 else 23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23183$as_echo "no" >&6; } 23184 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith" 23185 fi 23186 case "$host" in 23187 *-hp-hpux*) 23188 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS" 23189 ;; 23190 esac 23191else 23192 case $host in 23193 *-dec-osf*) 23194 CC="$CC -std" 23195 CCOPT="$CCOPT -std" 23196 MKDEPCC="$CC" 23197 ;; 23198 *-hp-hpux*) 23199 CC="$CC -Ae -z" 23200 # The version of the C compiler that constantly warns about 23201 # 'const' as well as alignment issues is unfortunately not 23202 # able to be discerned via the version of the operating 23203 # system, nor does cc have a version flag. 23204 case "`$CC +W 123 2>&1`" in 23205 *Unknown?option*) 23206 STD_CWARNINGS="+w1" 23207 ;; 23208 *) 23209 # Turn off the pointlessly noisy warnings. 23210 STD_CWARNINGS="+w1 +W 474,530,2193,2236" 23211 ;; 23212 esac 23213 CCOPT="$CCOPT -Ae -z" 23214 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS" 23215 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP' 23216 ;; 23217 *-sgi-irix*) 23218 STD_CWARNINGS="-fullwarn -woff 1209" 23219 # 23220 # Silence more than 250 instances of 23221 # "prototyped function redeclared without prototype" 23222 # and 11 instances of 23223 # "variable ... was set but never used" 23224 # from lib/dns/sec/openssl. 23225 # 23226 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552" 23227 ;; 23228 *-solaris*) 23229 MKDEPCFLAGS="-xM" 23230 ;; 23231 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 23232 # UnixWare 23233 CC="$CC -w" 23234 ;; 23235 esac 23236fi 23237 23238 23239 23240 23241 23242 23243# 23244# NLS 23245# 23246ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets" 23247if test "x$ac_cv_func_catgets" = x""yes; then : 23248 $as_echo "#define HAVE_CATGETS 1" >>confdefs.h 23249 23250fi 23251 23252 23253# 23254# -lxnet buys us one big porting headache... standards, gotta love 'em. 23255# 23256# AC_CHECK_LIB(xnet, socket, , 23257# AC_CHECK_LIB(socket, socket) 23258# ) 23259# 23260# Use this for now, instead: 23261# 23262case "$host" in 23263 mips-sgi-irix*) 23264 ;; 23265 *-linux*) 23266 ;; 23267 *) 23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 23269$as_echo_n "checking for socket in -lsocket... " >&6; } 23270if test "${ac_cv_lib_socket_socket+set}" = set; then : 23271 $as_echo_n "(cached) " >&6 23272else 23273 ac_check_lib_save_LIBS=$LIBS 23274LIBS="-lsocket $LIBS" 23275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23276/* end confdefs.h. */ 23277 23278/* Override any GCC internal prototype to avoid an error. 23279 Use char because int might match the return type of a GCC 23280 builtin and then its argument prototype would still apply. */ 23281#ifdef __cplusplus 23282extern "C" 23283#endif 23284char socket (); 23285int 23286main () 23287{ 23288return socket (); 23289 ; 23290 return 0; 23291} 23292_ACEOF 23293if ac_fn_c_try_link "$LINENO"; then : 23294 ac_cv_lib_socket_socket=yes 23295else 23296 ac_cv_lib_socket_socket=no 23297fi 23298rm -f core conftest.err conftest.$ac_objext \ 23299 conftest$ac_exeext conftest.$ac_ext 23300LIBS=$ac_check_lib_save_LIBS 23301fi 23302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 23303$as_echo "$ac_cv_lib_socket_socket" >&6; } 23304if test "x$ac_cv_lib_socket_socket" = x""yes; then : 23305 cat >>confdefs.h <<_ACEOF 23306#define HAVE_LIBSOCKET 1 23307_ACEOF 23308 23309 LIBS="-lsocket $LIBS" 23310 23311fi 23312 23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 23314$as_echo_n "checking for inet_addr in -lnsl... " >&6; } 23315if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then : 23316 $as_echo_n "(cached) " >&6 23317else 23318 ac_check_lib_save_LIBS=$LIBS 23319LIBS="-lnsl $LIBS" 23320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23321/* end confdefs.h. */ 23322 23323/* Override any GCC internal prototype to avoid an error. 23324 Use char because int might match the return type of a GCC 23325 builtin and then its argument prototype would still apply. */ 23326#ifdef __cplusplus 23327extern "C" 23328#endif 23329char inet_addr (); 23330int 23331main () 23332{ 23333return inet_addr (); 23334 ; 23335 return 0; 23336} 23337_ACEOF 23338if ac_fn_c_try_link "$LINENO"; then : 23339 ac_cv_lib_nsl_inet_addr=yes 23340else 23341 ac_cv_lib_nsl_inet_addr=no 23342fi 23343rm -f core conftest.err conftest.$ac_objext \ 23344 conftest$ac_exeext conftest.$ac_ext 23345LIBS=$ac_check_lib_save_LIBS 23346fi 23347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 23348$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } 23349if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then : 23350 cat >>confdefs.h <<_ACEOF 23351#define HAVE_LIBNSL 1 23352_ACEOF 23353 23354 LIBS="-lnsl $LIBS" 23355 23356fi 23357 23358 ;; 23359esac 23360 23361# 23362# Work around Solaris's select() limitations. 23363# 23364case "$host" in 23365 *-solaris2.[89]|*-solaris2.1?) 23366 23367$as_echo "#define FD_SETSIZE 65536" >>confdefs.h 23368 23369 ;; 23370esac 23371 23372# 23373# Purify support 23374# 23375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5 23376$as_echo_n "checking whether to use purify... " >&6; } 23377 23378# Check whether --with-purify was given. 23379if test "${with_purify+set}" = set; then : 23380 withval=$with_purify; use_purify="$withval" 23381else 23382 use_purify="no" 23383fi 23384 23385 23386case "$use_purify" in 23387 no) 23388 ;; 23389 yes) 23390 # Extract the first word of "purify", so it can be a program name with args. 23391set dummy purify; ac_word=$2 23392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23393$as_echo_n "checking for $ac_word... " >&6; } 23394if test "${ac_cv_path_purify_path+set}" = set; then : 23395 $as_echo_n "(cached) " >&6 23396else 23397 case $purify_path in 23398 [\\/]* | ?:[\\/]*) 23399 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path. 23400 ;; 23401 *) 23402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23403for as_dir in $PATH 23404do 23405 IFS=$as_save_IFS 23406 test -z "$as_dir" && as_dir=. 23407 for ac_exec_ext in '' $ac_executable_extensions; do 23408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23409 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext" 23410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23411 break 2 23412 fi 23413done 23414 done 23415IFS=$as_save_IFS 23416 23417 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify" 23418 ;; 23419esac 23420fi 23421purify_path=$ac_cv_path_purify_path 23422if test -n "$purify_path"; then 23423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5 23424$as_echo "$purify_path" >&6; } 23425else 23426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23427$as_echo "no" >&6; } 23428fi 23429 23430 23431 ;; 23432 *) 23433 purify_path="$use_purify" 23434 ;; 23435esac 23436 23437case "$use_purify" in 23438 no) 23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23440$as_echo "no" >&6; } 23441 PURIFY="" 23442 ;; 23443 *) 23444 if test -f $purify_path || test $purify_path = purify; then 23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5 23446$as_echo "$purify_path" >&6; } 23447 PURIFYFLAGS="`echo $PURIFYOPTIONS`" 23448 PURIFY="$purify_path $PURIFYFLAGS" 23449 else 23450 as_fn_error $? "$purify_path not found. 23451 23452Please choose the proper path with the following command: 23453 23454 configure --with-purify=PATH 23455" "$LINENO" 5 23456 fi 23457 ;; 23458esac 23459 23460 23461 23462 23463 23464# Check whether --with-libtool was given. 23465if test "${with_libtool+set}" = set; then : 23466 withval=$with_libtool; use_libtool="$withval" 23467else 23468 use_libtool="no" 23469fi 23470 23471 23472case $use_libtool in 23473 yes) 23474 23475 O=lo 23476 A=la 23477 LIBTOOL_MKDEP_SED='s;\.o;\.lo;' 23478 LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC' 23479 LIBTOOL_MODE_INSTALL='--mode=install --tag=CC' 23480 LIBTOOL_MODE_LINK='--mode=link --tag=CC' 23481 case "$host" in 23482 *) LIBTOOL_ALLOW_UNDEFINED= ;; 23483 esac 23484 case "$host" in 23485 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;; 23486 *) LIBTOOL_IN_MAIN= ;; 23487 esac; 23488 ;; 23489 *) 23490 O=o 23491 A=a 23492 LIBTOOL= 23493 23494 LIBTOOL_MKDEP_SED= 23495 LIBTOOL_MODE_COMPILE= 23496 LIBTOOL_MODE_INSTALL= 23497 LIBTOOL_MODE_LINK= 23498 LIBTOOL_ALLOW_UNDEFINED= 23499 LIBTOOL_IN_MAIN= 23500 ;; 23501esac 23502 23503# 23504# enable/disable dumping stack backtrace. Also check if the system supports 23505# glibc-compatible backtrace() function. 23506# 23507# Check whether --enable-backtrace was given. 23508if test "${enable_backtrace+set}" = set; then : 23509 enableval=$enable_backtrace; want_backtrace="$enableval" 23510else 23511 want_backtrace="yes" 23512fi 23513 23514case $want_backtrace in 23515yes) 23516 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1" 23517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23518/* end confdefs.h. */ 23519#include <execinfo.h> 23520int 23521main () 23522{ 23523return (backtrace((void **)0, 0)); 23524 ; 23525 return 0; 23526} 23527_ACEOF 23528if ac_fn_c_try_link "$LINENO"; then : 23529 23530$as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h 23531 23532fi 23533rm -f core conftest.err conftest.$ac_objext \ 23534 conftest$ac_exeext conftest.$ac_ext 23535 ;; 23536*) 23537 ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE" 23538 ;; 23539esac 23540 23541 23542# Check whether --enable-symtable was given. 23543if test "${enable_symtable+set}" = set; then : 23544 enableval=$enable_symtable; want_symtable="$enableval" 23545else 23546 want_symtable="minimal" 23547fi 23548 23549case $want_symtable in 23550yes|all|minimal) # "yes" is a hidden value equivalent to "minimal" 23551 if test "$PERL" = "" 23552 then 23553 as_fn_error $? "Internal symbol table requires perl but no perl is found. 23554Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5 23555 fi 23556 if test "$use_libtool" = "yes"; then 23557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5 23558$as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;} 23559 else 23560 # we generate the internal symbol table only for those systems 23561 # known to work to avoid unexpected build failure. Also, warn 23562 # about unsupported systems when the feature is enabled 23563 # manually. 23564 case $host_os in 23565 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*) 23566 MKSYMTBL_PROGRAM="$PERL" 23567 if test $want_symtable = all; then 23568 ALWAYS_MAKE_SYMTABLE="yes" 23569 fi 23570 ;; 23571 *) 23572 if test $want_symtable = yes -o $want_symtable = all 23573 then 23574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5 23575$as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;} 23576 fi 23577 esac 23578 fi 23579 ;; 23580*) 23581 ;; 23582esac 23583 23584 23585 23586# 23587# File name extension for static archive files, for those few places 23588# where they are treated differently from dynamic ones. 23589# 23590SA=a 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602# 23603# build exportable DNS library? 23604# 23605# Check whether --enable-exportlib was given. 23606if test "${enable_exportlib+set}" = set; then : 23607 enableval=$enable_exportlib; 23608fi 23609 23610case "$enable_exportlib" in 23611 yes) 23612 gmake= 23613 for x in gmake gnumake make; do 23614 if $x --version 2>/dev/null | grep GNU > /dev/null; then 23615 gmake=$x 23616 break; 23617 fi 23618 done 23619 if test -z "$gmake"; then 23620 as_fn_error $? "exportlib requires GNU make. Install it or disable the feature." "$LINENO" 5 23621 fi 23622 LIBEXPORT=lib/export 23623 23624 BIND9_CO_RULE="%.$O: \${srcdir}/%.c" 23625 ;; 23626 no|*) 23627 BIND9_CO_RULE=".c.$O:" 23628 ;; 23629esac 23630 23631 23632 23633# Check whether --with-export-libdir was given. 23634if test "${with_export_libdir+set}" = set; then : 23635 withval=$with_export_libdir; export_libdir="$withval" 23636fi 23637 23638if test -z "$export_libdir"; then 23639 export_libdir="\${exec_prefix}/lib/bind9/" 23640fi 23641 23642 23643 23644# Check whether --with-export-includedir was given. 23645if test "${with_export_includedir+set}" = set; then : 23646 withval=$with_export_includedir; export_includedir="$withval" 23647fi 23648 23649if test -z "$export_includedir"; then 23650 export_includedir="\${prefix}/include/bind9/" 23651fi 23652 23653 23654# 23655# Here begins a very long section to determine the system's networking 23656# capabilities. The order of the tests is significant. 23657# 23658 23659# 23660# IPv6 23661# 23662# Check whether --enable-ipv6 was given. 23663if test "${enable_ipv6+set}" = set; then : 23664 enableval=$enable_ipv6; 23665fi 23666 23667 23668case "$enable_ipv6" in 23669 yes|''|autodetect) 23670 $as_echo "#define WANT_IPV6 1" >>confdefs.h 23671 23672 ;; 23673 no) 23674 ;; 23675esac 23676 23677# 23678# We do the IPv6 compilation checking after libtool so that we can put 23679# the right suffix on the files. 23680# 23681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 23682$as_echo_n "checking for IPv6 structures... " >&6; } 23683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23684/* end confdefs.h. */ 23685 23686#include <sys/types.h> 23687#include <sys/socket.h> 23688#include <netinet/in.h> 23689int 23690main () 23691{ 23692struct sockaddr_in6 sin6; return (0); 23693 ; 23694 return 0; 23695} 23696_ACEOF 23697if ac_fn_c_try_compile "$LINENO"; then : 23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23699$as_echo "yes" >&6; } 23700 found_ipv6=yes 23701else 23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23703$as_echo "no" >&6; } 23704 found_ipv6=no 23705fi 23706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23707 23708# 23709# See whether IPv6 support is provided via a Kame add-on. 23710# This is done before other IPv6 linking tests to LIBS is properly set. 23711# 23712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 23713$as_echo_n "checking for Kame IPv6 support... " >&6; } 23714 23715# Check whether --with-kame was given. 23716if test "${with_kame+set}" = set; then : 23717 withval=$with_kame; use_kame="$withval" 23718else 23719 use_kame="no" 23720fi 23721 23722 23723case "$use_kame" in 23724 no) 23725 ;; 23726 yes) 23727 kame_path=/usr/local/v6 23728 ;; 23729 *) 23730 kame_path="$use_kame" 23731 ;; 23732esac 23733 23734case "$use_kame" in 23735 no) 23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23737$as_echo "no" >&6; } 23738 ;; 23739 *) 23740 if test -f $kame_path/lib/libinet6.a; then 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 23742$as_echo "$kame_path/lib/libinet6.a" >&6; } 23743 LIBS="-L$kame_path/lib -linet6 $LIBS" 23744 else 23745 as_fn_error $? "$kame_path/lib/libinet6.a not found. 23746 23747Please choose the proper path with the following command: 23748 23749 configure --with-kame=PATH 23750" "$LINENO" 5 23751 fi 23752 ;; 23753esac 23754 23755# 23756# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 23757# Including it on Kame-using platforms is very bad, though, because 23758# Kame uses #error against direct inclusion. So include it on only 23759# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 23760# This is done before the in6_pktinfo check because that's what 23761# netinet6/in6.h is needed for. 23762# 23763 23764case "$host" in 23765*-bsdi4.[01]*) 23766 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1" 23767 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1" 23768 isc_netinet6in6_hack="#include <netinet6/in6.h>" 23769 ;; 23770*) 23771 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H" 23772 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H" 23773 isc_netinet6in6_hack="" 23774 ;; 23775esac 23776 23777 23778# 23779# This is similar to the netinet6/in6.h issue. 23780# 23781case "$host" in 23782*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 23783 # UnixWare 23784 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1" 23785 LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1" 23786 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1" 23787 isc_netinetin6_hack="#include <netinet/in6.h>" 23788 ;; 23789*) 23790 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H" 23791 LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H" 23792 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR" 23793 isc_netinetin6_hack="" 23794 ;; 23795esac 23796 23797# 23798# Now delve deeper into the suitability of the IPv6 support. 23799# 23800case "$found_ipv6" in 23801 yes) 23802 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1" 23803 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1" 23804 23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5 23806$as_echo_n "checking for in6_addr... " >&6; } 23807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23808/* end confdefs.h. */ 23809 23810#include <sys/types.h> 23811#include <sys/socket.h> 23812#include <netinet/in.h> 23813$isc_netinetin6_hack 23814$isc_netinet6in6_hack 23815 23816int 23817main () 23818{ 23819struct in6_addr in6; return (0); 23820 ; 23821 return 0; 23822} 23823_ACEOF 23824if ac_fn_c_try_compile "$LINENO"; then : 23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23826$as_echo "yes" >&6; } 23827 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6" 23828 LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6" 23829 isc_in_addr6_hack="" 23830else 23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23832$as_echo "no" >&6; } 23833 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1" 23834 LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1" 23835 isc_in_addr6_hack="#define in6_addr in_addr6" 23836fi 23837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23838 23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 23840$as_echo_n "checking for in6addr_any... " >&6; } 23841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23842/* end confdefs.h. */ 23843 23844#include <sys/types.h> 23845#include <sys/socket.h> 23846#include <netinet/in.h> 23847$isc_netinetin6_hack 23848$isc_netinet6in6_hack 23849$isc_in_addr6_hack 23850 23851int 23852main () 23853{ 23854struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]); 23855 ; 23856 return 0; 23857} 23858_ACEOF 23859if ac_fn_c_try_link "$LINENO"; then : 23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23861$as_echo "yes" >&6; } 23862 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY" 23863 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY" 23864else 23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23866$as_echo "no" >&6; } 23867 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1" 23868 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1" 23869fi 23870rm -f core conftest.err conftest.$ac_objext \ 23871 conftest$ac_exeext conftest.$ac_ext 23872 23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5 23874$as_echo_n "checking for in6addr_loopback... " >&6; } 23875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23876/* end confdefs.h. */ 23877 23878#include <sys/types.h> 23879#include <sys/socket.h> 23880#include <netinet/in.h> 23881$isc_netinetin6_hack 23882$isc_netinet6in6_hack 23883$isc_in_addr6_hack 23884 23885int 23886main () 23887{ 23888struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]); 23889 ; 23890 return 0; 23891} 23892_ACEOF 23893if ac_fn_c_try_link "$LINENO"; then : 23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23895$as_echo "yes" >&6; } 23896 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK" 23897 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK" 23898else 23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23900$as_echo "no" >&6; } 23901 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1" 23902 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1" 23903fi 23904rm -f core conftest.err conftest.$ac_objext \ 23905 conftest$ac_exeext conftest.$ac_ext 23906 23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5 23908$as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; } 23909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23910/* end confdefs.h. */ 23911 23912#include <sys/types.h> 23913#include <sys/socket.h> 23914#include <netinet/in.h> 23915$isc_netinetin6_hack 23916$isc_netinet6in6_hack 23917 23918int 23919main () 23920{ 23921struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); 23922 ; 23923 return 0; 23924} 23925_ACEOF 23926if ac_fn_c_try_compile "$LINENO"; then : 23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23928$as_echo "yes" >&6; } 23929 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1" 23930 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 23931else 23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23933$as_echo "no" >&6; } 23934 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID" 23935 result="#undef LWRES_HAVE_SIN6_SCOPE_ID" 23936fi 23937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23938 LWRES_HAVE_SIN6_SCOPE_ID="$result" 23939 23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 23941$as_echo_n "checking for in6_pktinfo... " >&6; } 23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23943/* end confdefs.h. */ 23944 23945#include <sys/types.h> 23946#include <sys/socket.h> 23947#include <netinet/in.h> 23948$isc_netinetin6_hack 23949$isc_netinet6in6_hack 23950 23951int 23952main () 23953{ 23954struct in6_pktinfo xyzzy; return (0); 23955 ; 23956 return 0; 23957} 23958_ACEOF 23959if ac_fn_c_try_compile "$LINENO"; then : 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23961$as_echo "yes" >&6; } 23962 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1" 23963else 23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5 23965$as_echo "no -- disabling runtime ipv6 support" >&6; } 23966 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 23967fi 23968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23969 ;; 23970 no) 23971 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6" 23972 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6" 23973 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY" 23974 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY" 23975 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 23976 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 23977 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1" 23978 ISC_IPV6_H="ipv6.h" 23979 ISC_IPV6_O="ipv6.$O" 23980 ISC_ISCIPV6_O="unix/ipv6.$O" 23981 ISC_IPV6_C="ipv6.c" 23982 ;; 23983esac 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 24007$as_echo_n "checking for struct if_laddrreq... " >&6; } 24008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24009/* end confdefs.h. */ 24010 24011#include <sys/types.h> 24012#include <net/if6.h> 24013 24014int 24015main () 24016{ 24017 struct if_laddrreq a; 24018 ; 24019 return 0; 24020} 24021_ACEOF 24022if ac_fn_c_try_link "$LINENO"; then : 24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24024$as_echo "yes" >&6; } 24025 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" 24026else 24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24028$as_echo "no" >&6; } 24029 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ" 24030fi 24031rm -f core conftest.err conftest.$ac_objext \ 24032 conftest$ac_exeext conftest.$ac_ext 24033 24034 24035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 24036$as_echo_n "checking for struct if_laddrconf... " >&6; } 24037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24038/* end confdefs.h. */ 24039 24040#include <sys/types.h> 24041#include <net/if6.h> 24042 24043int 24044main () 24045{ 24046 struct if_laddrconf a; 24047 ; 24048 return 0; 24049} 24050_ACEOF 24051if ac_fn_c_try_link "$LINENO"; then : 24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24053$as_echo "yes" >&6; } 24054 ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" 24055else 24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24057$as_echo "no" >&6; } 24058 ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF" 24059fi 24060rm -f core conftest.err conftest.$ac_objext \ 24061 conftest$ac_exeext conftest.$ac_ext 24062 24063 24064# 24065# Check for network functions that are often missing. We do this 24066# after the libtool checking, so we can put the right suffix on 24067# the files. It also needs to come after checking for a Kame add-on, 24068# which provides some (all?) of the desired functions. 24069# 24070 24071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5 24072$as_echo_n "checking for inet_ntop with IPv6 support... " >&6; } 24073if test "$cross_compiling" = yes; then : 24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop not needed" >&5 24075$as_echo "assuming inet_ntop not needed" >&6; } 24076 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 24077else 24078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24079/* end confdefs.h. */ 24080 24081#include <sys/types.h> 24082#include <sys/socket.h> 24083#include <netinet/in.h> 24084#include <arpa/inet.h> 24085main() { 24086char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);} 24087_ACEOF 24088if ac_fn_c_try_run "$LINENO"; then : 24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24090$as_echo "yes" >&6; } 24091 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 24092else 24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24094$as_echo "no" >&6; } 24095 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O" 24096 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c" 24097 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1" 24098fi 24099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24100 conftest.$ac_objext conftest.beam conftest.$ac_ext 24101fi 24102 24103 24104 24105# On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts 24106# addresses with less than four octets, like "1.2.3". Also leading 24107# zeros should also be rejected. 24108 24109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5 24110$as_echo_n "checking for working inet_pton with IPv6 support... " >&6; } 24111if test "$cross_compiling" = yes; then : 24112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_pton needed" >&5 24113$as_echo "assuming inet_pton needed" >&6; } 24114 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" 24115 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c" 24116 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1" 24117else 24118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24119/* end confdefs.h. */ 24120 24121#include <sys/types.h> 24122#include <sys/socket.h> 24123#include <netinet/in.h> 24124#include <arpa/inet.h> 24125main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 : 24126 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 : 24127 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); } 24128_ACEOF 24129if ac_fn_c_try_run "$LINENO"; then : 24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24131$as_echo "yes" >&6; } 24132 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 24133else 24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24135$as_echo "no" >&6; } 24136 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" 24137 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c" 24138 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1" 24139fi 24140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24141 conftest.$ac_objext conftest.beam conftest.$ac_ext 24142fi 24143 24144 24145 24146 24147 24148# 24149# Look for a 4.4BSD-style sa_len member in struct sockaddr. 24150# 24151case "$host" in 24152 *-dec-osf*) 24153 # Turn on 4.4BSD style sa_len support. 24154 $as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h 24155 24156 ;; 24157esac 24158 24159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5 24160$as_echo_n "checking for sa_len in struct sockaddr... " >&6; } 24161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24162/* end confdefs.h. */ 24163 24164#include <sys/types.h> 24165#include <sys/socket.h> 24166int 24167main () 24168{ 24169struct sockaddr sa; sa.sa_len = 0; return (0); 24170 ; 24171 return 0; 24172} 24173_ACEOF 24174if ac_fn_c_try_compile "$LINENO"; then : 24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24176$as_echo "yes" >&6; } 24177 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1" 24178 LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1" 24179else 24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24181$as_echo "no" >&6; } 24182 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN" 24183 LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN" 24184fi 24185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24186 24187 24188 24189# 24190# Look for a 4.4BSD or 4.3BSD struct msghdr 24191# 24192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5 24193$as_echo_n "checking for struct msghdr flavor... " >&6; } 24194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24195/* end confdefs.h. */ 24196 24197#include <sys/types.h> 24198#include <sys/socket.h> 24199int 24200main () 24201{ 24202struct msghdr msg; msg.msg_flags = 0; return (0); 24203 ; 24204 return 0; 24205} 24206_ACEOF 24207if ac_fn_c_try_compile "$LINENO"; then : 24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5 24209$as_echo "4.4BSD" >&6; } 24210 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1" 24211else 24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5 24213$as_echo "4.3BSD" >&6; } 24214 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1" 24215fi 24216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24217 24218 24219# 24220# Look for in_port_t. 24221# 24222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5 24223$as_echo_n "checking for type in_port_t... " >&6; } 24224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24225/* end confdefs.h. */ 24226 24227#include <sys/types.h> 24228#include <netinet/in.h> 24229int 24230main () 24231{ 24232in_port_t port = 25; return (0); 24233 ; 24234 return 0; 24235} 24236_ACEOF 24237if ac_fn_c_try_compile "$LINENO"; then : 24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24239$as_echo "yes" >&6; } 24240 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT" 24241else 24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24243$as_echo "no" >&6; } 24244 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1" 24245fi 24246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24247 24248 24249# 24250# Check for addrinfo 24251# 24252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 24253$as_echo_n "checking for struct addrinfo... " >&6; } 24254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24255/* end confdefs.h. */ 24256 24257#include <netdb.h> 24258int 24259main () 24260{ 24261struct addrinfo a; return (0); 24262 ; 24263 return 0; 24264} 24265_ACEOF 24266if ac_fn_c_try_compile "$LINENO"; then : 24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24268$as_echo "yes" >&6; } 24269 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO" 24270 ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO" 24271 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 24272 24273else 24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24275$as_echo "no" >&6; } 24276 ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1" 24277 ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1" 24278fi 24279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24280 24281 24282 24283# 24284# Check for rrsetinfo 24285# 24286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rrsetinfo" >&5 24287$as_echo_n "checking for struct rrsetinfo... " >&6; } 24288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24289/* end confdefs.h. */ 24290 24291#include <netdb.h> 24292int 24293main () 24294{ 24295struct rrsetinfo r; return (0); 24296 ; 24297 return 0; 24298} 24299_ACEOF 24300if ac_fn_c_try_compile "$LINENO"; then : 24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24302$as_echo "yes" >&6; } 24303 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO" 24304else 24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24306$as_echo "no" >&6; } 24307 ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1" 24308fi 24309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24310 24311 24312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int sethostent" >&5 24313$as_echo_n "checking for int sethostent... " >&6; } 24314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24315/* end confdefs.h. */ 24316 24317#include <netdb.h> 24318int 24319main () 24320{ 24321int i = sethostent(0); return(0); 24322 ; 24323 return 0; 24324} 24325_ACEOF 24326if ac_fn_c_try_compile "$LINENO"; then : 24327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24328$as_echo "yes" >&6; } 24329 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1" 24330else 24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24332$as_echo "no" >&6; } 24333 ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT" 24334fi 24335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24336 24337 24338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endhostent" >&5 24339$as_echo_n "checking for int endhostent... " >&6; } 24340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24341/* end confdefs.h. */ 24342 24343#include <netdb.h> 24344int 24345main () 24346{ 24347int i = endhostent(); return(0); 24348 ; 24349 return 0; 24350} 24351_ACEOF 24352if ac_fn_c_try_compile "$LINENO"; then : 24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24354$as_echo "yes" >&6; } 24355 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1" 24356else 24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24358$as_echo "no" >&6; } 24359 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT" 24360fi 24361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24362 24363 24364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnetbyaddr(in_addr_t, ...)" >&5 24365$as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; } 24366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24367/* end confdefs.h. */ 24368 24369#include <netdb.h> 24370struct netent *getnetbyaddr(in_addr_t, int); 24371int 24372main () 24373{ 24374 24375 ; 24376 return 0; 24377} 24378_ACEOF 24379if ac_fn_c_try_compile "$LINENO"; then : 24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24381$as_echo "yes" >&6; } 24382 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1" 24383else 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24385$as_echo "no" >&6; } 24386 ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR" 24387fi 24388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24389 24390 24391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int setnetent" >&5 24392$as_echo_n "checking for int setnetent... " >&6; } 24393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24394/* end confdefs.h. */ 24395 24396#include <netdb.h> 24397int 24398main () 24399{ 24400int i = setnetent(0); return(0); 24401 ; 24402 return 0; 24403} 24404_ACEOF 24405if ac_fn_c_try_compile "$LINENO"; then : 24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24407$as_echo "yes" >&6; } 24408 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1" 24409else 24410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24411$as_echo "no" >&6; } 24412 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT" 24413fi 24414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24415 24416 24417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endnetent" >&5 24418$as_echo_n "checking for int endnetent... " >&6; } 24419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24420/* end confdefs.h. */ 24421 24422#include <netdb.h> 24423int 24424main () 24425{ 24426int i = endnetent(); return(0); 24427 ; 24428 return 0; 24429} 24430_ACEOF 24431if ac_fn_c_try_compile "$LINENO"; then : 24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24433$as_echo "yes" >&6; } 24434 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1" 24435else 24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24437$as_echo "no" >&6; } 24438 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT" 24439fi 24440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24441 24442 24443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr(const void *, size_t, ...)" >&5 24444$as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; } 24445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24446/* end confdefs.h. */ 24447 24448#include <netdb.h> 24449struct hostent *gethostbyaddr(const void *, size_t, int); 24450int 24451main () 24452{ 24453return(0); 24454 ; 24455 return 0; 24456} 24457_ACEOF 24458if ac_fn_c_try_compile "$LINENO"; then : 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24460$as_echo "yes" >&6; } 24461 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1" 24462else 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24464$as_echo "no" >&6; } 24465 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID" 24466fi 24467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24468 24469 24470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5 24471$as_echo_n "checking for h_errno in netdb.h... " >&6; } 24472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24473/* end confdefs.h. */ 24474 24475#include <netdb.h> 24476int 24477main () 24478{ 24479h_errno = 1; return(0); 24480 ; 24481 return 0; 24482} 24483_ACEOF 24484if ac_fn_c_try_compile "$LINENO"; then : 24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24486$as_echo "yes" >&6; } 24487 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO" 24488else 24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24490$as_echo "no" >&6; } 24491 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1" 24492fi 24493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24494 24495 24496# 24497# Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch 24498# known variations here: 24499# 24500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5 24501$as_echo_n "checking for getnameinfo prototype definitions... " >&6; } 24502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24503/* end confdefs.h. */ 24504 24505#include <sys/types.h> 24506#include <sys/socket.h> 24507#include <netdb.h> 24508int getnameinfo(const struct sockaddr *, socklen_t, char *, 24509 socklen_t, char *, socklen_t, unsigned int); 24510int 24511main () 24512{ 24513 return (0); 24514 ; 24515 return 0; 24516} 24517_ACEOF 24518if ac_fn_c_try_compile "$LINENO"; then : 24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; u_int for flags" >&5 24520$as_echo "socklen_t for buflen; u_int for flags" >&6; } 24521 24522$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h 24523 24524 24525$as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h 24526 24527else 24528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24529/* end confdefs.h. */ 24530 24531#include <sys/types.h> 24532#include <sys/socket.h> 24533#include <netdb.h> 24534int getnameinfo(const struct sockaddr *, socklen_t, char *, 24535 size_t, char *, size_t, int); 24536int 24537main () 24538{ 24539 return (0); 24540 ; 24541 return 0; 24542} 24543_ACEOF 24544if ac_fn_c_try_compile "$LINENO"; then : 24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5 24546$as_echo "size_t for buflen; int for flags" >&6; } 24547 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h 24548 24549 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h 24550 24551else 24552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5 24553$as_echo "not match any subspecies; assume standard definition" >&6; } 24554$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h 24555 24556$as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h 24557 24558fi 24559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24560fi 24561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24562 24563# 24564# ...and same for gai_strerror(). 24565# 24566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5 24567$as_echo_n "checking for gai_strerror prototype definitions... " >&6; } 24568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24569/* end confdefs.h. */ 24570 24571#include <sys/types.h> 24572#include <sys/socket.h> 24573#include <netdb.h> 24574char *gai_strerror(int ecode); 24575int 24576main () 24577{ 24578 return (0); 24579 ; 24580 return 0; 24581} 24582_ACEOF 24583if ac_fn_c_try_compile "$LINENO"; then : 24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5 24585$as_echo "returning char *" >&6; } 24586 24587$as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h 24588 24589else 24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5 24591$as_echo "not match any subspecies; assume standard definition" >&6; } 24592$as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h 24593 24594fi 24595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24596 24597ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname" 24598if test "x$ac_cv_func_getipnodebyname" = x""yes; then : 24599 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO" 24600else 24601 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1" 24602fi 24603 24604ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 24605if test "x$ac_cv_func_getnameinfo" = x""yes; then : 24606 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO" 24607else 24608 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1" 24609fi 24610 24611ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 24612if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 24613 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO" 24614 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 24615 24616else 24617 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1" 24618fi 24619 24620ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 24621if test "x$ac_cv_func_gai_strerror" = x""yes; then : 24622 $as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h 24623 24624fi 24625 24626 24627 24628 24629 24630 24631# Check whether --enable-getifaddrs was given. 24632if test "${enable_getifaddrs+set}" = set; then : 24633 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 24634else 24635 want_getifaddrs="yes" 24636fi 24637 24638 24639# 24640# This interface iteration code for getifaddrs() will fall back to using 24641# /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6 24642# addresses. 24643# 24644case $want_getifaddrs in 24645glibc) 24646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5 24647$as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;} 24648ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 24649if test "x$ac_cv_func_getifaddrs" = x""yes; then : 24650 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h 24651 24652fi 24653 24654;; 24655yes) 24656ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 24657if test "x$ac_cv_func_getifaddrs" = x""yes; then : 24658 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h 24659 24660fi 24661 24662;; 24663no) 24664;; 24665esac 24666 24667# 24668# Look for a sysctl call to get the list of network interfaces. 24669# 24670case $ac_cv_header_sys_sysctl_h in 24671yes) 24672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 24673$as_echo_n "checking for interface list sysctl... " >&6; } 24674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24675/* end confdefs.h. */ 24676 24677#include <sys/param.h> 24678#include <sys/sysctl.h> 24679#include <sys/socket.h> 24680#ifdef NET_RT_IFLIST 24681found_rt_iflist 24682#endif 24683 24684_ACEOF 24685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24686 $EGREP "found_rt_iflist" >/dev/null 2>&1; then : 24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24688$as_echo "yes" >&6; } 24689 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 24690 24691else 24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24693$as_echo "no" >&6; } 24694fi 24695rm -f conftest* 24696 24697;; 24698esac 24699 24700# 24701# Check for some other useful functions that are not ever-present. 24702# 24703 24704# We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC 24705# because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77 24706# reportedly defines strsep() without declaring it in <string.h> when 24707# -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and 24708# AC_CHECK_FUNC() incorrectly succeeds because it declares 24709# the function itself. 24710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5 24711$as_echo_n "checking for correctly declared strsep()... " >&6; } 24712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24713/* end confdefs.h. */ 24714#include <string.h> 24715int 24716main () 24717{ 24718char *sp; char *foo = strsep(&sp, "."); 24719 ; 24720 return 0; 24721} 24722_ACEOF 24723if ac_fn_c_try_link "$LINENO"; then : 24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24725$as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP" 24726else 24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24728$as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1" 24729fi 24730rm -f core conftest.err conftest.$ac_objext \ 24731 conftest$ac_exeext conftest.$ac_ext 24732 24733 24734ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 24735if test "x$ac_cv_func_memmove" = x""yes; then : 24736 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE" 24737else 24738 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1" 24739fi 24740 24741 24742 24743ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 24744if test "x$ac_cv_func_strtoul" = x""yes; then : 24745 ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL" 24746 LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL" 24747 GENRANDOMLIB="" 24748else 24749 ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1" 24750 LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1" 24751 GENRANDOMLIB='${ISCLIBS}' 24752fi 24753 24754 24755 24756 24757 24758ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 24759if test "x$ac_cv_func_strlcpy" = x""yes; then : 24760 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY" 24761else 24762 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1" 24763fi 24764 24765 24766 24767ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 24768if test "x$ac_cv_func_strlcat" = x""yes; then : 24769 ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT" 24770else 24771 ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1" 24772fi 24773 24774 24775 24776ISC_PRINT_OBJS= 24777ISC_PRINT_SRCS= 24778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf" >&5 24779$as_echo_n "checking sprintf... " >&6; } 24780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24781/* end confdefs.h. */ 24782 24783#include <stdio.h> 24784 24785int 24786main () 24787{ 24788 char buf[2]; return(*sprintf(buf,"x")); 24789 ; 24790 return 0; 24791} 24792_ACEOF 24793if ac_fn_c_try_compile "$LINENO"; then : 24794 24795ISC_PRINT_OBJS="print.$O" 24796ISC_PRINT_SRCS="print.c" 24797ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF" 24798LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF" 24799 24800else 24801 ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF" 24802 LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF" 24803 24804fi 24805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24806 24807 24808 24809ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 24810if test "x$ac_cv_func_vsnprintf" = x""yes; then : 24811 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF" 24812 LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF" 24813else 24814 ISC_PRINT_OBJS="print.$O" 24815 ISC_PRINT_SRCS="print.c" 24816 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1" 24817 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1" 24818fi 24819 24820 24821 24822ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS" 24823ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS" 24824 24825ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 24826if test "x$ac_cv_func_strerror" = x""yes; then : 24827 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 24828 24829fi 24830 24831 24832 24833 24834 24835# 24836# Use our own SPNEGO implementation? 24837# 24838# Check whether --enable-isc-spnego was given. 24839if test "${enable_isc_spnego+set}" = set; then : 24840 enableval=$enable_isc_spnego; 24841fi 24842 24843 24844if test -n "$USE_GSSAPI" 24845then 24846 case "$enable_isc_spnego" in 24847 yes|'') 24848 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO' 24849 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O" 24850 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c" 24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5 24852$as_echo "using SPNEGO from lib/dns" >&6; } 24853 ;; 24854 no) 24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5 24856$as_echo "using SPNEGO from GSSAPI library" >&6; } 24857 ;; 24858 esac 24859fi 24860 24861 24862 24863 24864 24865 24866# Determine the printf format characters to use when printing 24867# values of type isc_int64_t. This will normally be "ll", but where 24868# the compiler treats "long long" as a alias for "long" and printf 24869# doesn't know about "long long" use "l". Hopefully the sprintf 24870# will produce a inconsistent result in the later case. If the compiler 24871# fails due to seeing "%lld" we fall back to "l". 24872# 24873# Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses 24874# %ld even for (long long)/ 24875# 24876# Win32 uses "%I64d", but that's defined elsewhere since we don't use 24877# configure on Win32. 24878# 24879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format modifier for 64-bit integers" >&5 24880$as_echo_n "checking printf format modifier for 64-bit integers... " >&6; } 24881if test "$cross_compiling" = yes; then : 24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform uses ll" >&5 24883$as_echo "assuming target platform uses ll" >&6; } 24884 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 24885 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"' 24886else 24887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24888/* end confdefs.h. */ 24889 24890#include <stdio.h> 24891main() { 24892 long long int j = 0; 24893 char buf[100]; 24894 buf[0] = 0; 24895 sprintf(buf, "%lld", j); 24896 exit((sizeof(long long int) != sizeof(long int))? 0 : 24897 (strcmp(buf, "0") != 0)); 24898} 24899 24900_ACEOF 24901if ac_fn_c_try_run "$LINENO"; then : 24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ll" >&5 24903$as_echo "ll" >&6; } 24904 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 24905 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"' 24906else 24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: l" >&5 24908$as_echo "l" >&6; } 24909 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"' 24910 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"' 24911fi 24912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24913 conftest.$ac_objext conftest.beam conftest.$ac_ext 24914fi 24915 24916 24917 24918 24919# 24920# Security Stuff 24921# 24922# Note it is very recommended to *not* disable chroot(), 24923# this is only because chroot() was made obsolete by Posix. 24924# Check whether --enable-chroot was given. 24925if test "${enable_chroot+set}" = set; then : 24926 enableval=$enable_chroot; 24927fi 24928 24929case "$enable_chroot" in 24930 yes|'') 24931 for ac_func in chroot 24932do : 24933 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 24934if test "x$ac_cv_func_chroot" = x""yes; then : 24935 cat >>confdefs.h <<_ACEOF 24936#define HAVE_CHROOT 1 24937_ACEOF 24938 24939fi 24940done 24941 24942 ;; 24943 no) 24944 ;; 24945esac 24946# Check whether --enable-linux-caps was given. 24947if test "${enable_linux_caps+set}" = set; then : 24948 enableval=$enable_linux_caps; 24949fi 24950 24951case "$enable_linux_caps" in 24952 yes|'') 24953 for ac_header in linux/capability.h sys/capability.h 24954do : 24955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24956ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24957if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24958 cat >>confdefs.h <<_ACEOF 24959#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24960_ACEOF 24961 24962fi 24963 24964done 24965 24966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5 24967$as_echo_n "checking for cap_set_proc in -lcap... " >&6; } 24968if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then : 24969 $as_echo_n "(cached) " >&6 24970else 24971 ac_check_lib_save_LIBS=$LIBS 24972LIBS="-lcap $LIBS" 24973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24974/* end confdefs.h. */ 24975 24976/* Override any GCC internal prototype to avoid an error. 24977 Use char because int might match the return type of a GCC 24978 builtin and then its argument prototype would still apply. */ 24979#ifdef __cplusplus 24980extern "C" 24981#endif 24982char cap_set_proc (); 24983int 24984main () 24985{ 24986return cap_set_proc (); 24987 ; 24988 return 0; 24989} 24990_ACEOF 24991if ac_fn_c_try_link "$LINENO"; then : 24992 ac_cv_lib_cap_cap_set_proc=yes 24993else 24994 ac_cv_lib_cap_cap_set_proc=no 24995fi 24996rm -f core conftest.err conftest.$ac_objext \ 24997 conftest$ac_exeext conftest.$ac_ext 24998LIBS=$ac_check_lib_save_LIBS 24999fi 25000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5 25001$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; } 25002if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then : 25003 cat >>confdefs.h <<_ACEOF 25004#define HAVE_LIBCAP 1 25005_ACEOF 25006 25007 LIBS="-lcap $LIBS" 25008 25009fi 25010 25011 ;; 25012 no) 25013 ;; 25014esac 25015for ac_header in sys/prctl.h 25016do : 25017 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 25018if test "x$ac_cv_header_sys_prctl_h" = x""yes; then : 25019 cat >>confdefs.h <<_ACEOF 25020#define HAVE_SYS_PRCTL_H 1 25021_ACEOF 25022 25023fi 25024 25025done 25026 25027 25028for ac_header in sys/un.h 25029do : 25030 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 25031if test "x$ac_cv_header_sys_un_h" = x""yes; then : 25032 cat >>confdefs.h <<_ACEOF 25033#define HAVE_SYS_UN_H 1 25034_ACEOF 25035 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1" 25036 25037else 25038 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH" 25039 25040fi 25041 25042done 25043 25044 25045 25046case "$host" in 25047*-solaris*) 25048 25049$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h 25050 25051 ;; 25052*-sunos*) 25053 25054$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h 25055 25056 ;; 25057esac 25058 25059# 25060# Time Zone Stuff 25061# 25062ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 25063if test "x$ac_cv_func_tzset" = x""yes; then : 25064 $as_echo "#define HAVE_TZSET 1" >>confdefs.h 25065 25066fi 25067 25068 25069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5 25070$as_echo_n "checking for optarg declaration... " >&6; } 25071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25072/* end confdefs.h. */ 25073 25074#include <unistd.h> 25075 25076int 25077main () 25078{ 25079optarg = 0; 25080 ; 25081 return 0; 25082} 25083_ACEOF 25084if ac_fn_c_try_compile "$LINENO"; then : 25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25086$as_echo "yes" >&6; } 25087else 25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25089$as_echo "no" >&6; } 25090GEN_NEED_OPTARG="-DNEED_OPTARG=1" 25091 25092$as_echo "#define NEED_OPTARG 1" >>confdefs.h 25093 25094fi 25095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25096 25097# 25098# BSD/OS, and perhaps some others, don't define rlim_t. 25099# 25100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5 25101$as_echo_n "checking for type rlim_t... " >&6; } 25102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25103/* end confdefs.h. */ 25104 25105#include <sys/types.h> 25106#include <sys/time.h> 25107#include <sys/resource.h> 25108int 25109main () 25110{ 25111rlim_t rl = 19671212; return (0); 25112 ; 25113 return 0; 25114} 25115_ACEOF 25116if ac_fn_c_try_compile "$LINENO"; then : 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25118$as_echo "yes" >&6; } 25119 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t" 25120else 25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25122$as_echo "no" >&6; } 25123 25124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5 25125$as_echo_n "checking type of rlim_cur... " >&6; } 25126if test "$cross_compiling" = yes; then : 25127 25128 25129# Check whether --with-rlimtype was given. 25130if test "${with_rlimtype+set}" = set; then : 25131 withval=$with_rlimtype; rlimtype="$withval" 25132else 25133 rlimtype="long long int" 25134fi 25135 25136ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE $rlimtype" 25137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&5 25138$as_echo "cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&6; } 25139else 25140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25141/* end confdefs.h. */ 25142 25143#include <sys/types.h> 25144#include <sys/time.h> 25145#include <sys/resource.h> 25146main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));} 25147_ACEOF 25148if ac_fn_c_try_run "$LINENO"; then : 25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 25150$as_echo "int" >&6; } 25151ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int" 25152else 25153 25154if test "$cross_compiling" = yes; then : 25155 as_fn_error $? "this cannot happen" "$LINENO" 5 25156else 25157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25158/* end confdefs.h. */ 25159 25160#include <sys/types.h> 25161#include <sys/time.h> 25162#include <sys/resource.h> 25163main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));} 25164_ACEOF 25165if ac_fn_c_try_run "$LINENO"; then : 25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5 25167$as_echo "long int" >&6; } 25168ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int" 25169else 25170 25171if test "$cross_compiling" = yes; then : 25172 as_fn_error $? "this cannot happen" "$LINENO" 5 25173else 25174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25175/* end confdefs.h. */ 25176 25177#include <sys/types.h> 25178#include <sys/time.h> 25179#include <sys/resource.h> 25180main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));} 25181_ACEOF 25182if ac_fn_c_try_run "$LINENO"; then : 25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5 25184$as_echo "long long int" >&6; } 25185ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int" 25186else 25187 as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5 25188 25189fi 25190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25191 conftest.$ac_objext conftest.beam conftest.$ac_ext 25192fi 25193 25194 25195fi 25196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25197 conftest.$ac_objext conftest.beam conftest.$ac_ext 25198fi 25199 25200 25201fi 25202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25203 conftest.$ac_objext conftest.beam conftest.$ac_ext 25204fi 25205 25206 25207fi 25208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25209 25210 25211# 25212# Older HP-UX doesn't have gettune 25213# 25214case "$host" in 25215 *-hp-hpux*) 25216 for ac_header in sys/dyntune.h 25217do : 25218 ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default" 25219if test "x$ac_cv_header_sys_dyntune_h" = x""yes; then : 25220 cat >>confdefs.h <<_ACEOF 25221#define HAVE_SYS_DYNTUNE_H 1 25222_ACEOF 25223 25224fi 25225 25226done 25227 25228 ;; 25229 *) 25230 ;; 25231esac 25232 25233 25234# 25235# Compaq TruCluster requires more code for handling cluster IP aliases 25236# 25237case "$host" in 25238 *-dec-osf*) 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5 25240$as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; } 25241if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then : 25242 $as_echo_n "(cached) " >&6 25243else 25244 ac_check_lib_save_LIBS=$LIBS 25245LIBS="-lclua $LIBS" 25246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25247/* end confdefs.h. */ 25248 25249/* Override any GCC internal prototype to avoid an error. 25250 Use char because int might match the return type of a GCC 25251 builtin and then its argument prototype would still apply. */ 25252#ifdef __cplusplus 25253extern "C" 25254#endif 25255char clua_getaliasaddress (); 25256int 25257main () 25258{ 25259return clua_getaliasaddress (); 25260 ; 25261 return 0; 25262} 25263_ACEOF 25264if ac_fn_c_try_link "$LINENO"; then : 25265 ac_cv_lib_clua_clua_getaliasaddress=yes 25266else 25267 ac_cv_lib_clua_clua_getaliasaddress=no 25268fi 25269rm -f core conftest.err conftest.$ac_objext \ 25270 conftest$ac_exeext conftest.$ac_ext 25271LIBS=$ac_check_lib_save_LIBS 25272fi 25273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5 25274$as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; } 25275if test "x$ac_cv_lib_clua_clua_getaliasaddress" = x""yes; then : 25276 LIBS="-lclua $LIBS" 25277fi 25278 25279 ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress" 25280if test "x$ac_cv_func_clua_getaliasaddress" = x""yes; then : 25281 25282$as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h 25283 25284fi 25285 25286 ;; 25287 *) 25288 ;; 25289esac 25290 25291# 25292# Some hosts need msg_namelen to match the size of the socket structure. 25293# Some hosts don't set msg_namelen appropriately on return from recvmsg(). 25294# 25295case $host in 25296*os2*|*hp-mpeix*) 25297 25298$as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h 25299 25300 ;; 25301esac 25302 25303# 25304# Microsoft has their own way of handling shared libraries that requires 25305# additional qualifiers on extern variables. Unix systems don't need it. 25306# 25307 25308ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC" 25309 25310LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC" 25311 25312IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC" 25313 25314# 25315# Random remaining OS-specific issues involving compiler warnings. 25316# XXXDCL print messages to indicate some compensation is being done? 25317# 25318 25319ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT" 25320 25321case "$host" in 25322 *-aix5.[123].*) 25323 hack_shutup_pthreadonceinit=yes 25324 ;; 25325 *-bsdi3.1*) 25326 hack_shutup_sputaux=yes 25327 ;; 25328 *-bsdi4.0*) 25329 hack_shutup_sigwait=yes 25330 hack_shutup_sputaux=yes 25331 ;; 25332 *-bsdi4.[12]*) 25333 hack_shutup_stdargcast=yes 25334 ;; 25335 *-solaris2.[89]) 25336 hack_shutup_pthreadonceinit=yes 25337 ;; 25338 *-solaris2.1[0-9]) 25339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25340/* end confdefs.h. */ 25341 #include <pthread.h> 25342int 25343main () 25344{ 25345 static pthread_once_t once_test = { PTHREAD_ONCE_INIT }; 25346 ; 25347 return 0; 25348} 25349_ACEOF 25350if ac_fn_c_try_compile "$LINENO"; then : 25351 hack_shutup_pthreadonceinit=yes 25352fi 25353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25354 ;; 25355esac 25356 25357case "$hack_shutup_pthreadonceinit" in 25358 yes) 25359 # 25360 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings. 25361 # 25362 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" 25363 ;; 25364esac 25365 25366case "$hack_shutup_sigwait" in 25367 yes) 25368 # 25369 # Shut up a -Wmissing-prototypes warning for sigwait(). 25370 # 25371 $as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h 25372 25373 ;; 25374esac 25375 25376case "$hack_shutup_sputaux" in 25377 yes) 25378 # 25379 # Shut up a -Wmissing-prototypes warning from <stdio.h>. 25380 # 25381 $as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h 25382 25383 ;; 25384esac 25385 25386case "$hack_shutup_stdargcast" in 25387 yes) 25388 # 25389 # Shut up a -Wcast-qual warning from va_start(). 25390 # 25391 $as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h 25392 25393 ;; 25394esac 25395 25396for ac_header in strings.h 25397do : 25398 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 25399if test "x$ac_cv_header_strings_h" = x""yes; then : 25400 cat >>confdefs.h <<_ACEOF 25401#define HAVE_STRINGS_H 1 25402_ACEOF 25403 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1" 25404 25405else 25406 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH" 25407 25408fi 25409 25410done 25411 25412 25413 25414# 25415# Check for if_nametoindex() for IPv6 scoped addresses support 25416# 25417ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 25418if test "x$ac_cv_func_if_nametoindex" = x""yes; then : 25419 ac_cv_have_if_nametoindex=yes 25420else 25421 ac_cv_have_if_nametoindex=no 25422fi 25423 25424case $ac_cv_have_if_nametoindex in 25425no) 25426 case "$host" in 25427 *-hp-hpux*) 25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5 25429$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; } 25430if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then : 25431 $as_echo_n "(cached) " >&6 25432else 25433 ac_check_lib_save_LIBS=$LIBS 25434LIBS="-lipv6 $LIBS" 25435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25436/* end confdefs.h. */ 25437 25438/* Override any GCC internal prototype to avoid an error. 25439 Use char because int might match the return type of a GCC 25440 builtin and then its argument prototype would still apply. */ 25441#ifdef __cplusplus 25442extern "C" 25443#endif 25444char if_nametoindex (); 25445int 25446main () 25447{ 25448return if_nametoindex (); 25449 ; 25450 return 0; 25451} 25452_ACEOF 25453if ac_fn_c_try_link "$LINENO"; then : 25454 ac_cv_lib_ipv6_if_nametoindex=yes 25455else 25456 ac_cv_lib_ipv6_if_nametoindex=no 25457fi 25458rm -f core conftest.err conftest.$ac_objext \ 25459 conftest$ac_exeext conftest.$ac_ext 25460LIBS=$ac_check_lib_save_LIBS 25461fi 25462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5 25463$as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; } 25464if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then : 25465 ac_cv_have_if_nametoindex=yes 25466 LIBS="-lipv6 $LIBS" 25467fi 25468 25469 ;; 25470 esac 25471esac 25472case $ac_cv_have_if_nametoindex in 25473yes) 25474 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" 25475 ;; 25476*) 25477 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX" 25478 ;; 25479esac 25480 25481 25482for ac_func in nanosleep 25483do : 25484 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 25485if test "x$ac_cv_func_nanosleep" = x""yes; then : 25486 cat >>confdefs.h <<_ACEOF 25487#define HAVE_NANOSLEEP 1 25488_ACEOF 25489 25490fi 25491done 25492 25493 25494# 25495# Machine architecture dependent features 25496# 25497# Check whether --enable-atomic was given. 25498if test "${enable_atomic+set}" = set; then : 25499 enableval=$enable_atomic; enable_atomic="$enableval" 25500else 25501 enable_atomic="autodetect" 25502fi 25503 25504case "$enable_atomic" in 25505 yes|''|autodetect) 25506 case "$host" in 25507 powerpc-ibm-aix*) 25508 if test "X$GCC" = "Xyes"; then 25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"isc\"); works" >&5 25510$as_echo_n "checking if asm(\"isc\"); works... " >&6; } 25511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25512/* end confdefs.h. */ 25513 25514int 25515main () 25516{ 25517 25518 main() { asm("ics"); exit(0); } 25519 25520 ; 25521 return 0; 25522} 25523_ACEOF 25524if ac_fn_c_try_compile "$LINENO"; then : 25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25526$as_echo "yes" >&6; } 25527 use_atomic=yes 25528else 25529 25530 saved_cflags="$CFLAGS" 25531 CFLAGS="$CFLAGS -Wa,-many" 25532 if test "$cross_compiling" = yes; then : 25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5 25534$as_echo "cross compile, assume yes" >&6; } 25535 CFLAGS="$saved_cflags" 25536 use_atomic=yes 25537else 25538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25539/* end confdefs.h. */ 25540 25541 main() { asm("ics"); exit(0); } 25542 25543_ACEOF 25544if ac_fn_c_try_run "$LINENO"; then : 25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5 25546$as_echo "yes, required -Wa,-many" >&6; } 25547 use_atomic=yes 25548else 25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5 25550$as_echo "no, use_atomic disabled" >&6; } 25551 CFLAGS="$saved_cflags" 25552 use_atomic=no 25553fi 25554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25555 conftest.$ac_objext conftest.beam conftest.$ac_ext 25556fi 25557 25558 25559 25560fi 25561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25562 else 25563 use_atomic=yes 25564 fi 25565 ;; 25566 *) 25567 use_atomic=yes 25568 ;; 25569 esac 25570 ;; 25571 no) 25572 use_atomic=no 25573 arch=noatomic 25574 ;; 25575esac 25576 25577ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM" 25578if test "$use_atomic" = "yes"; then 25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5 25580$as_echo_n "checking architecture type for atomic operations... " >&6; } 25581 have_atomic=yes # set default 25582 case "$host" in 25583 i[3456]86-*) 25584 # XXX: some old x86 architectures actually do not support 25585 # (some of) these operations. Do we need stricter checks? 25586 # The cast to long int works around a bug in the HP C Compiler 25587# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25588# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25589# This bug is HP SR number 8606223364. 25590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 25591$as_echo_n "checking size of void *... " >&6; } 25592if test "${ac_cv_sizeof_void_p+set}" = set; then : 25593 $as_echo_n "(cached) " >&6 25594else 25595 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 25596 25597else 25598 if test "$ac_cv_type_void_p" = yes; then 25599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25601as_fn_error 77 "cannot compute sizeof (void *) 25602See \`config.log' for more details" "$LINENO" 5; } 25603 else 25604 ac_cv_sizeof_void_p=0 25605 fi 25606fi 25607 25608fi 25609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 25610$as_echo "$ac_cv_sizeof_void_p" >&6; } 25611 25612 25613 25614cat >>confdefs.h <<_ACEOF 25615#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 25616_ACEOF 25617 25618 25619 if test $ac_cv_sizeof_void_p = 8; then 25620 arch=x86_64 25621 have_xaddq=yes 25622 else 25623 arch=x86_32 25624 fi 25625 ;; 25626 x86_64-*|amd64-*) 25627 # The cast to long int works around a bug in the HP C Compiler 25628# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25629# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25630# This bug is HP SR number 8606223364. 25631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 25632$as_echo_n "checking size of void *... " >&6; } 25633if test "${ac_cv_sizeof_void_p+set}" = set; then : 25634 $as_echo_n "(cached) " >&6 25635else 25636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 25637 25638else 25639 if test "$ac_cv_type_void_p" = yes; then 25640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25642as_fn_error 77 "cannot compute sizeof (void *) 25643See \`config.log' for more details" "$LINENO" 5; } 25644 else 25645 ac_cv_sizeof_void_p=0 25646 fi 25647fi 25648 25649fi 25650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 25651$as_echo "$ac_cv_sizeof_void_p" >&6; } 25652 25653 25654 25655cat >>confdefs.h <<_ACEOF 25656#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 25657_ACEOF 25658 25659 25660 if test $ac_cv_sizeof_void_p = 8; then 25661 arch=x86_64 25662 have_xaddq=yes 25663 else 25664 arch=x86_32 25665 fi 25666 ;; 25667 alpha*-*) 25668 arch=alpha 25669 ;; 25670 powerpc-*|powerpc64-*) 25671 arch=powerpc 25672 ;; 25673 mips-*|mipsel-*|mips64-*|mips64el-*) 25674 arch=mips 25675 ;; 25676 ia64-*) 25677 arch=ia64 25678 ;; 25679 *) 25680 have_atomic=no 25681 arch=noatomic 25682 ;; 25683 esac 25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5 25685$as_echo "$arch" >&6; } 25686fi 25687 25688if test "$have_atomic" = "yes"; then 25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5 25690$as_echo_n "checking compiler support for inline assembly code... " >&6; } 25691 25692 compiler=generic 25693 # Check whether the compiler supports the assembly syntax we provide. 25694 if test "X$GCC" = "Xyes"; then 25695 # GCC's ASM extension always works 25696 compiler=gcc 25697 if test $arch = "x86_64"; then 25698 # We can share the same code for gcc with x86_32 25699 arch=x86_32 25700 fi 25701 if test $arch = "powerpc"; then 25702 # 25703 # The MacOS (and maybe others) uses "r0" for register 25704 # zero. Under linux/ibm it is "0" for register 0. 25705 # Probe to see if we have a MacOS style assembler. 25706 # 25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5 25708$as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; } 25709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25710/* end confdefs.h. */ 25711 25712int 25713main () 25714{ 25715 25716 __asm__ volatile ("li r0, 0x0\n"::); 25717 25718 ; 25719 return 0; 25720} 25721_ACEOF 25722if ac_fn_c_try_compile "$LINENO"; then : 25723 25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25725$as_echo "yes" >&6; } 25726 compiler="mac" 25727 ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1" 25728 25729else 25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25731$as_echo "no" >&6; } 25732fi 25733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25734 fi 25735 else 25736 case "$host" in 25737 alpha*-dec-osf*) 25738 # Tru64 compiler has its own syntax for inline 25739 # assembly. 25740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25741/* end confdefs.h. */ 25742 25743int 25744main () 25745{ 25746 25747#ifndef __DECC 25748#error "unexpected compiler" 25749#endif 25750 return (0); 25751 ; 25752 return 0; 25753} 25754_ACEOF 25755if ac_fn_c_try_compile "$LINENO"; then : 25756 compiler=osf 25757fi 25758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25759 ;; 25760 powerpc-ibm-aix*) 25761 compiler=aix 25762 ;; 25763 esac 25764 fi 25765 case "$compiler" in 25766 gcc) 25767 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1" 25768 ;; 25769 osf) 25770 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1" 25771 ;; 25772 aix) 25773 ;; 25774 mac) 25775 ;; 25776 *) 25777 # See if the generic __asm function works. If not, 25778 # we need to disable the atomic operations. 25779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25780/* end confdefs.h. */ 25781 25782int 25783main () 25784{ 25785 25786 __asm("nop") 25787 25788 ; 25789 return 0; 25790} 25791_ACEOF 25792if ac_fn_c_try_link "$LINENO"; then : 25793 compiler="standard" 25794 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1" 25795else 25796 compiler="not supported (atomic operations disabled)" 25797 have_atomic=no 25798 arch=noatomic 25799fi 25800rm -f core conftest.err conftest.$ac_objext \ 25801 conftest$ac_exeext conftest.$ac_ext; 25802 ;; 25803 esac 25804 25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5 25806$as_echo "$compiler" >&6; } 25807fi 25808 25809if test "$have_atomic" = "yes"; then 25810 ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1" 25811 ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1" 25812 ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1" 25813else 25814 ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD" 25815 ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG" 25816 ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE" 25817fi 25818 25819if test "$have_xaddq" = "yes"; then 25820 ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1" 25821else 25822 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ" 25823fi 25824 25825 25826 25827 25828 25829 25830 25831 25832 25833 25834 25835ISC_ARCH_DIR=$arch 25836 25837 25838# 25839# Activate "rrset-order fixed" or not? 25840# 25841# Check whether --enable-fixed-rrset was given. 25842if test "${enable_fixed_rrset+set}" = set; then : 25843 enableval=$enable_fixed_rrset; enable_fixed="$enableval" 25844else 25845 enable_fixed="no" 25846fi 25847 25848case "$enable_fixed" in 25849 yes) 25850 25851$as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h 25852 25853 ;; 25854 no) 25855 ;; 25856 *) 25857 ;; 25858esac 25859 25860# 25861# Enable response policy rewriting using NS IP addresses 25862# 25863# Check whether --enable-rpz-nsip was given. 25864if test "${enable_rpz_nsip+set}" = set; then : 25865 enableval=$enable_rpz_nsip; enable_nsip="$enableval" 25866else 25867 enable_nsip="no" 25868fi 25869 25870case "$enable_nsip" in 25871 yes) 25872 25873$as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h 25874 25875 ;; 25876 no) 25877 ;; 25878 *) 25879 ;; 25880esac 25881 25882# 25883# Enable response policy rewriting using NS name 25884# 25885# Check whether --enable-rpz-nsdname was given. 25886if test "${enable_rpz_nsdname+set}" = set; then : 25887 enableval=$enable_rpz_nsdname; enable_nsdname="$enableval" 25888else 25889 enable_nsdname="no" 25890fi 25891 25892case "$enable_nsdname" in 25893 yes) 25894 25895$as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h 25896 25897 ;; 25898 no) 25899 ;; 25900 *) 25901 ;; 25902esac 25903 25904# 25905# Activate "filter-aaaa-on-v4" or not? 25906# 25907# Check whether --enable-filter-aaaa was given. 25908if test "${enable_filter_aaaa+set}" = set; then : 25909 enableval=$enable_filter_aaaa; enable_filter="$enableval" 25910else 25911 enable_filter="no" 25912fi 25913 25914case "$enable_filter" in 25915 yes) 25916 25917$as_echo "#define ALLOW_FILTER_AAAA_ON_V4 1" >>confdefs.h 25918 25919 ;; 25920 no) 25921 ;; 25922 *) 25923 ;; 25924esac 25925 25926# 25927# The following sets up how non-blocking i/o is established. 25928# Sunos, cygwin and solaris 2.x (x<5) require special handling. 25929# 25930case "$host" in 25931*-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h 25932;; 25933*-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h 25934;; 25935*-solaris2.[01234]) 25936 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h 25937 25938 25939$as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h 25940 25941 ;; 25942*) 25943$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h 25944 25945 ;; 25946esac 25947# 25948# Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket. 25949# This prevents the source address being set. 25950# 25951case "$host" in 25952*-solaris2.[012345]|*-solaris2.5.1) 25953 25954$as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h 25955 25956 ;; 25957esac 25958# 25959# The following sections deal with tools used for formatting 25960# the documentation. They are all optional, unless you are 25961# a developer editing the documentation source. 25962# 25963 25964# 25965# Look for TeX. 25966# 25967 25968for ac_prog in latex 25969do 25970 # Extract the first word of "$ac_prog", so it can be a program name with args. 25971set dummy $ac_prog; ac_word=$2 25972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25973$as_echo_n "checking for $ac_word... " >&6; } 25974if test "${ac_cv_path_LATEX+set}" = set; then : 25975 $as_echo_n "(cached) " >&6 25976else 25977 case $LATEX in 25978 [\\/]* | ?:[\\/]*) 25979 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. 25980 ;; 25981 *) 25982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25983for as_dir in $PATH 25984do 25985 IFS=$as_save_IFS 25986 test -z "$as_dir" && as_dir=. 25987 for ac_exec_ext in '' $ac_executable_extensions; do 25988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25989 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" 25990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25991 break 2 25992 fi 25993done 25994 done 25995IFS=$as_save_IFS 25996 25997 ;; 25998esac 25999fi 26000LATEX=$ac_cv_path_LATEX 26001if test -n "$LATEX"; then 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 26003$as_echo "$LATEX" >&6; } 26004else 26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26006$as_echo "no" >&6; } 26007fi 26008 26009 26010 test -n "$LATEX" && break 26011done 26012test -n "$LATEX" || LATEX="latex" 26013 26014 26015 26016for ac_prog in pdflatex 26017do 26018 # Extract the first word of "$ac_prog", so it can be a program name with args. 26019set dummy $ac_prog; ac_word=$2 26020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26021$as_echo_n "checking for $ac_word... " >&6; } 26022if test "${ac_cv_path_PDFLATEX+set}" = set; then : 26023 $as_echo_n "(cached) " >&6 26024else 26025 case $PDFLATEX in 26026 [\\/]* | ?:[\\/]*) 26027 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. 26028 ;; 26029 *) 26030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26031for as_dir in $PATH 26032do 26033 IFS=$as_save_IFS 26034 test -z "$as_dir" && as_dir=. 26035 for ac_exec_ext in '' $ac_executable_extensions; do 26036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26037 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" 26038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26039 break 2 26040 fi 26041done 26042 done 26043IFS=$as_save_IFS 26044 26045 ;; 26046esac 26047fi 26048PDFLATEX=$ac_cv_path_PDFLATEX 26049if test -n "$PDFLATEX"; then 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 26051$as_echo "$PDFLATEX" >&6; } 26052else 26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26054$as_echo "no" >&6; } 26055fi 26056 26057 26058 test -n "$PDFLATEX" && break 26059done 26060test -n "$PDFLATEX" || PDFLATEX="pdflatex" 26061 26062 26063 26064# 26065# Look for w3m 26066# 26067 26068for ac_prog in w3m 26069do 26070 # Extract the first word of "$ac_prog", so it can be a program name with args. 26071set dummy $ac_prog; ac_word=$2 26072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26073$as_echo_n "checking for $ac_word... " >&6; } 26074if test "${ac_cv_path_W3M+set}" = set; then : 26075 $as_echo_n "(cached) " >&6 26076else 26077 case $W3M in 26078 [\\/]* | ?:[\\/]*) 26079 ac_cv_path_W3M="$W3M" # Let the user override the test with a path. 26080 ;; 26081 *) 26082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26083for as_dir in $PATH 26084do 26085 IFS=$as_save_IFS 26086 test -z "$as_dir" && as_dir=. 26087 for ac_exec_ext in '' $ac_executable_extensions; do 26088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26089 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext" 26090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26091 break 2 26092 fi 26093done 26094 done 26095IFS=$as_save_IFS 26096 26097 ;; 26098esac 26099fi 26100W3M=$ac_cv_path_W3M 26101if test -n "$W3M"; then 26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5 26103$as_echo "$W3M" >&6; } 26104else 26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26106$as_echo "no" >&6; } 26107fi 26108 26109 26110 test -n "$W3M" && break 26111done 26112test -n "$W3M" || W3M="w3m" 26113 26114 26115 26116# 26117# Look for xsltproc (libxslt) 26118# 26119 26120# Extract the first word of "xsltproc", so it can be a program name with args. 26121set dummy xsltproc; ac_word=$2 26122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26123$as_echo_n "checking for $ac_word... " >&6; } 26124if test "${ac_cv_path_XSLTPROC+set}" = set; then : 26125 $as_echo_n "(cached) " >&6 26126else 26127 case $XSLTPROC in 26128 [\\/]* | ?:[\\/]*) 26129 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 26130 ;; 26131 *) 26132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26133for as_dir in $PATH 26134do 26135 IFS=$as_save_IFS 26136 test -z "$as_dir" && as_dir=. 26137 for ac_exec_ext in '' $ac_executable_extensions; do 26138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26139 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 26140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26141 break 2 26142 fi 26143done 26144 done 26145IFS=$as_save_IFS 26146 26147 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc" 26148 ;; 26149esac 26150fi 26151XSLTPROC=$ac_cv_path_XSLTPROC 26152if test -n "$XSLTPROC"; then 26153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 26154$as_echo "$XSLTPROC" >&6; } 26155else 26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26157$as_echo "no" >&6; } 26158fi 26159 26160 26161 26162 26163# 26164# Look for xmllint (libxml2) 26165# 26166 26167# Extract the first word of "xmllint", so it can be a program name with args. 26168set dummy xmllint; ac_word=$2 26169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26170$as_echo_n "checking for $ac_word... " >&6; } 26171if test "${ac_cv_path_XMLLINT+set}" = set; then : 26172 $as_echo_n "(cached) " >&6 26173else 26174 case $XMLLINT in 26175 [\\/]* | ?:[\\/]*) 26176 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path. 26177 ;; 26178 *) 26179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26180for as_dir in $PATH 26181do 26182 IFS=$as_save_IFS 26183 test -z "$as_dir" && as_dir=. 26184 for ac_exec_ext in '' $ac_executable_extensions; do 26185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26186 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext" 26187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26188 break 2 26189 fi 26190done 26191 done 26192IFS=$as_save_IFS 26193 26194 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint" 26195 ;; 26196esac 26197fi 26198XMLLINT=$ac_cv_path_XMLLINT 26199if test -n "$XMLLINT"; then 26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 26201$as_echo "$XMLLINT" >&6; } 26202else 26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26204$as_echo "no" >&6; } 26205fi 26206 26207 26208 26209 26210# 26211# Look for Doxygen 26212# 26213 26214# Extract the first word of "doxygen", so it can be a program name with args. 26215set dummy doxygen; ac_word=$2 26216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26217$as_echo_n "checking for $ac_word... " >&6; } 26218if test "${ac_cv_path_DOXYGEN+set}" = set; then : 26219 $as_echo_n "(cached) " >&6 26220else 26221 case $DOXYGEN in 26222 [\\/]* | ?:[\\/]*) 26223 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 26224 ;; 26225 *) 26226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26227for as_dir in $PATH 26228do 26229 IFS=$as_save_IFS 26230 test -z "$as_dir" && as_dir=. 26231 for ac_exec_ext in '' $ac_executable_extensions; do 26232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26233 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 26234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26235 break 2 26236 fi 26237done 26238 done 26239IFS=$as_save_IFS 26240 26241 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen" 26242 ;; 26243esac 26244fi 26245DOXYGEN=$ac_cv_path_DOXYGEN 26246if test -n "$DOXYGEN"; then 26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 26248$as_echo "$DOXYGEN" >&6; } 26249else 26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26251$as_echo "no" >&6; } 26252fi 26253 26254 26255 26256 26257# 26258# Subroutine for searching for an ordinary file (e.g., a stylesheet) 26259# in a number of directories: 26260# 26261# NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES) 26262# 26263# If the file FILENAME is found in one of the DIRECTORIES, the shell 26264# variable VARIABLE is defined to its absolute pathname. Otherwise, 26265# it is set to FILENAME, with no directory prefix (that's not terribly 26266# useful, but looks less confusing in substitutions than leaving it 26267# empty). The variable VARIABLE will be substituted into output files. 26268# 26269 26270 26271 26272# 26273# Look for Docbook-XSL stylesheets. Location probably varies by system. 26274# If it's not explicitly specified, guess where it might be found, based on 26275# where SGML stuff lives on some systems (FreeBSD is the only one we're sure 26276# of at the moment). 26277# 26278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5 26279$as_echo_n "checking for Docbook-XSL path... " >&6; } 26280 26281# Check whether --with-docbook-xsl was given. 26282if test "${with_docbook_xsl+set}" = set; then : 26283 withval=$with_docbook_xsl; docbook_path="$withval" 26284else 26285 docbook_path="auto" 26286fi 26287 26288case "$docbook_path" in 26289auto) 26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5 26291$as_echo "auto" >&6; } 26292 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook" 26293 ;; 26294*) 26295 docbook_xsl_trees="$withval" 26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5 26297$as_echo "$docbook_xsl_trees" >&6; } 26298 ;; 26299esac 26300 26301# 26302# Look for stylesheets we need. 26303# 26304 26305 26306XSLT_DOCBOOK_STYLE_HTML="" 26307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5 26308$as_echo_n "checking for html/docbook.xsl... " >&6; } 26309for d in $docbook_xsl_trees 26310do 26311 f=$d/html/docbook.xsl 26312 if test -f $f 26313 then 26314 XSLT_DOCBOOK_STYLE_HTML=$f 26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26316$as_echo "$f" >&6; } 26317 break 26318 fi 26319done 26320if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X" 26321then 26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26323$as_echo "\"not found\"" >&6; }; 26324 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl 26325fi 26326 26327 26328 26329XSLT_DOCBOOK_STYLE_XHTML="" 26330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5 26331$as_echo_n "checking for xhtml/docbook.xsl... " >&6; } 26332for d in $docbook_xsl_trees 26333do 26334 f=$d/xhtml/docbook.xsl 26335 if test -f $f 26336 then 26337 XSLT_DOCBOOK_STYLE_XHTML=$f 26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26339$as_echo "$f" >&6; } 26340 break 26341 fi 26342done 26343if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X" 26344then 26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26346$as_echo "\"not found\"" >&6; }; 26347 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl 26348fi 26349 26350 26351 26352XSLT_DOCBOOK_STYLE_MAN="" 26353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5 26354$as_echo_n "checking for manpages/docbook.xsl... " >&6; } 26355for d in $docbook_xsl_trees 26356do 26357 f=$d/manpages/docbook.xsl 26358 if test -f $f 26359 then 26360 XSLT_DOCBOOK_STYLE_MAN=$f 26361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26362$as_echo "$f" >&6; } 26363 break 26364 fi 26365done 26366if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X" 26367then 26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26369$as_echo "\"not found\"" >&6; }; 26370 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl 26371fi 26372 26373 26374 26375XSLT_DOCBOOK_CHUNK_HTML="" 26376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5 26377$as_echo_n "checking for html/chunk.xsl... " >&6; } 26378for d in $docbook_xsl_trees 26379do 26380 f=$d/html/chunk.xsl 26381 if test -f $f 26382 then 26383 XSLT_DOCBOOK_CHUNK_HTML=$f 26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26385$as_echo "$f" >&6; } 26386 break 26387 fi 26388done 26389if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X" 26390then 26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26392$as_echo "\"not found\"" >&6; }; 26393 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl 26394fi 26395 26396 26397 26398XSLT_DOCBOOK_CHUNK_XHTML="" 26399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5 26400$as_echo_n "checking for xhtml/chunk.xsl... " >&6; } 26401for d in $docbook_xsl_trees 26402do 26403 f=$d/xhtml/chunk.xsl 26404 if test -f $f 26405 then 26406 XSLT_DOCBOOK_CHUNK_XHTML=$f 26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26408$as_echo "$f" >&6; } 26409 break 26410 fi 26411done 26412if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X" 26413then 26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26415$as_echo "\"not found\"" >&6; }; 26416 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl 26417fi 26418 26419 26420 26421XSLT_DOCBOOK_CHUNKTOC_HTML="" 26422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5 26423$as_echo_n "checking for html/chunktoc.xsl... " >&6; } 26424for d in $docbook_xsl_trees 26425do 26426 f=$d/html/chunktoc.xsl 26427 if test -f $f 26428 then 26429 XSLT_DOCBOOK_CHUNKTOC_HTML=$f 26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26431$as_echo "$f" >&6; } 26432 break 26433 fi 26434done 26435if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X" 26436then 26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26438$as_echo "\"not found\"" >&6; }; 26439 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl 26440fi 26441 26442 26443 26444XSLT_DOCBOOK_CHUNKTOC_XHTML="" 26445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5 26446$as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; } 26447for d in $docbook_xsl_trees 26448do 26449 f=$d/xhtml/chunktoc.xsl 26450 if test -f $f 26451 then 26452 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f 26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26454$as_echo "$f" >&6; } 26455 break 26456 fi 26457done 26458if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X" 26459then 26460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26461$as_echo "\"not found\"" >&6; }; 26462 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl 26463fi 26464 26465 26466 26467XSLT_DOCBOOK_MAKETOC_HTML="" 26468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5 26469$as_echo_n "checking for html/maketoc.xsl... " >&6; } 26470for d in $docbook_xsl_trees 26471do 26472 f=$d/html/maketoc.xsl 26473 if test -f $f 26474 then 26475 XSLT_DOCBOOK_MAKETOC_HTML=$f 26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26477$as_echo "$f" >&6; } 26478 break 26479 fi 26480done 26481if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X" 26482then 26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26484$as_echo "\"not found\"" >&6; }; 26485 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl 26486fi 26487 26488 26489 26490XSLT_DOCBOOK_MAKETOC_XHTML="" 26491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5 26492$as_echo_n "checking for xhtml/maketoc.xsl... " >&6; } 26493for d in $docbook_xsl_trees 26494do 26495 f=$d/xhtml/maketoc.xsl 26496 if test -f $f 26497 then 26498 XSLT_DOCBOOK_MAKETOC_XHTML=$f 26499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26500$as_echo "$f" >&6; } 26501 break 26502 fi 26503done 26504if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X" 26505then 26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26507$as_echo "\"not found\"" >&6; }; 26508 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl 26509fi 26510 26511 26512 26513# 26514# Same dance for db2latex 26515# 26516# No idea where this lives except on FreeBSD. 26517# 26518 26519db2latex_xsl_trees="/usr/local/share" 26520 26521# 26522# Look for stylesheets we need. 26523# 26524 26525 26526XSLT_DB2LATEX_STYLE="" 26527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex/xsl/docbook.xsl" >&5 26528$as_echo_n "checking for db2latex/xsl/docbook.xsl... " >&6; } 26529for d in $db2latex_xsl_trees 26530do 26531 f=$d/db2latex/xsl/docbook.xsl 26532 if test -f $f 26533 then 26534 XSLT_DB2LATEX_STYLE=$f 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 26536$as_echo "$f" >&6; } 26537 break 26538 fi 26539done 26540if test "X$XSLT_DB2LATEX_STYLE" = "X" 26541then 26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 26543$as_echo "\"not found\"" >&6; }; 26544 XSLT_DB2LATEX_STYLE=db2latex/xsl/docbook.xsl 26545fi 26546 26547 26548 26549# 26550# Look for "admonition" image directory. Can't use NOM_PATH_FILE() 26551# because it's a directory, so just do the same things, inline. 26552# 26553 26554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex/xsl/figures" >&5 26555$as_echo_n "checking for db2latex/xsl/figures... " >&6; } 26556for d in $db2latex_xsl_trees 26557do 26558 dd=$d/db2latex/xsl/figures 26559 if test -d $dd 26560 then 26561 XSLT_DB2LATEX_ADMONITIONS=$dd 26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dd" >&5 26563$as_echo "$dd" >&6; } 26564 break 26565 fi 26566done 26567if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X" 26568then 26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26570$as_echo "not found" >&6; } 26571 XSLT_DB2LATEX_ADMONITIONS=db2latex/xsl/figures 26572fi 26573 26574 26575# 26576# IDN support 26577# 26578 26579# Check whether --with-idn was given. 26580if test "${with_idn+set}" = set; then : 26581 withval=$with_idn; use_idn="$withval" 26582else 26583 use_idn="no" 26584fi 26585 26586case "$use_idn" in 26587yes) 26588 if test X$prefix = XNONE ; then 26589 idn_path=/usr/local 26590 else 26591 idn_path=$prefix 26592 fi 26593 ;; 26594no) 26595 ;; 26596*) 26597 idn_path="$use_idn" 26598 ;; 26599esac 26600 26601iconvinc= 26602iconvlib= 26603 26604# Check whether --with-libiconv was given. 26605if test "${with_libiconv+set}" = set; then : 26606 withval=$with_libiconv; use_libiconv="$withval" 26607else 26608 use_libiconv="no" 26609fi 26610 26611case "$use_libiconv" in 26612yes) 26613 if test X$prefix = XNONE ; then 26614 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv" 26615 else 26616 iconvlib="-L$prefix/lib -R$prefix/lib -liconv" 26617 fi 26618 ;; 26619no) 26620 iconvlib= 26621 ;; 26622*) 26623 iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv" 26624 ;; 26625esac 26626 26627 26628# Check whether --with-iconv was given. 26629if test "${with_iconv+set}" = set; then : 26630 withval=$with_iconv; iconvlib="$withval" 26631fi 26632 26633case "$iconvlib" in 26634no) 26635 iconvlib= 26636 ;; 26637yes) 26638 iconvlib=-liconv 26639 ;; 26640esac 26641 26642 26643# Check whether --with-idnlib was given. 26644if test "${with_idnlib+set}" = set; then : 26645 withval=$with_idnlib; idnlib="$withval" 26646else 26647 idnlib="no" 26648fi 26649 26650if test "$idnlib" = yes; then 26651 as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5 26652fi 26653 26654IDNLIBS= 26655if test "$use_idn" != no; then 26656 26657$as_echo "#define WITH_IDN 1" >>confdefs.h 26658 26659 STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include" 26660 if test "$idnlib" != no; then 26661 IDNLIBS="$idnlib $iconvlib" 26662 else 26663 IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib" 26664 fi 26665fi 26666 26667 26668# 26669# Check whether to build Automated Test Framework unit tests 26670# 26671 26672# Check whether --with-atf was given. 26673if test "${with_atf+set}" = set; then : 26674 withval=$with_atf; atf="$withval" 26675else 26676 atf="no" 26677fi 26678 26679if test "$atf" = yes; then 26680 atf=`pwd`/unit/atf 26681 ATFBUILD=atf-src 26682 26683 ac_config_commands="$ac_config_commands atf-config" 26684 26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building ATF from bind9/unit/atf-src" >&5 26686$as_echo "building ATF from bind9/unit/atf-src" >&6; } 26687fi 26688 26689ATFLIBS= 26690if test "$atf" != no; then 26691 26692$as_echo "#define ATF_TEST 1" >>confdefs.h 26693 26694 STD_CINCLUDES="$STD_CINCLUDES -I$atf/include" 26695 ATFBIN="$atf/bin" 26696 ATFLIBS="-L$atf/lib -latf-c" 26697 UNITTESTS=tests 26698fi 26699 26700 26701 26702 26703for ac_header in locale.h 26704do : 26705 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 26706if test "x$ac_cv_header_locale_h" = x""yes; then : 26707 cat >>confdefs.h <<_ACEOF 26708#define HAVE_LOCALE_H 1 26709_ACEOF 26710 26711fi 26712 26713done 26714 26715for ac_func in setlocale 26716do : 26717 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 26718if test "x$ac_cv_func_setlocale" = x""yes; then : 26719 cat >>confdefs.h <<_ACEOF 26720#define HAVE_SETLOCALE 1 26721_ACEOF 26722 26723fi 26724done 26725 26726 26727# 26728# Substitutions 26729# 26730 26731BIND9_TOP_BUILDDIR=`pwd` 26732 26733 26734 26735 26736 26737 26738 26739if test "X$srcdir" != "X"; then 26740 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include" 26741 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include" 26742 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include" 26743 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include" 26744 BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include" 26745 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include" 26746else 26747 BIND9_ISC_BUILDINCLUDE="" 26748 BIND9_ISCCC_BUILDINCLUDE="" 26749 BIND9_ISCCFG_BUILDINCLUDE="" 26750 BIND9_DNS_BUILDINCLUDE="" 26751 BIND9_LWRES_BUILDINCLUDE="" 26752 BIND9_BIND9_BUILDINCLUDE="" 26753fi 26754 26755 26756BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes 26757 26758 26759BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules 26760 26761. $srcdir/version 26762BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}" 26763 26764 26765if test -z "$ac_configure_args"; then 26766 BIND9_CONFIGARGS="defaults" 26767else 26768 for a in $ac_configure_args 26769 do 26770 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a" 26771 done 26772fi 26773BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`" 26774BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}" 26775 26776 26777 26778LIBISC_API=$srcdir/lib/isc/api 26779 26780 26781LIBISCCC_API=$srcdir/lib/isccc/api 26782 26783 26784LIBISCCFG_API=$srcdir/lib/isccfg/api 26785 26786 26787LIBDNS_API=$srcdir/lib/dns/api 26788 26789 26790LIBBIND9_API=$srcdir/lib/bind9/api 26791 26792 26793LIBLWRES_API=$srcdir/lib/lwres/api 26794 26795 26796LIBIRS_API=$srcdir/lib/irs/api 26797 26798# 26799# Configure any DLZ drivers. 26800# 26801# If config.dlz.in selects one or more DLZ drivers, it will set 26802# CONTRIB_DLZ to a non-empty value, which will be our clue to 26803# build DLZ drivers in contrib. 26804# 26805# This section has to come after the libtool stuff because it needs to 26806# know how to name the driver object files. 26807# 26808 26809CONTRIB_DLZ="" 26810DLZ_DRIVER_INCLUDES="" 26811DLZ_DRIVER_LIBS="" 26812DLZ_DRIVER_SRCS="" 26813DLZ_DRIVER_OBJS="" 26814DLZ_SYSTEM_TEST="" 26815 26816# 26817# Configure support for building a shared library object 26818# 26819# Even when libtool is available it can't always be relied upon 26820# to build an object that can be dlopen()'ed, but this is necessary 26821# for building the dlzexternal system test, so we'll try it the 26822# old-fashioned way. 26823# 26824SO="so" 26825SO_CFLAGS="" 26826SO_LD="" 26827SO_TARGETS="" 26828 26829 26830# Check whether --with-dlopen was given. 26831if test "${with_dlopen+set}" = set; then : 26832 withval=$with_dlopen; dlopen="$withval" 26833else 26834 dlopen="yes" 26835fi 26836 26837 26838if test "$dlopen" = "yes"; then 26839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 26840$as_echo_n "checking for dlopen in -ldl... " >&6; } 26841if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 26842 $as_echo_n "(cached) " >&6 26843else 26844 ac_check_lib_save_LIBS=$LIBS 26845LIBS="-ldl $LIBS" 26846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26847/* end confdefs.h. */ 26848 26849/* Override any GCC internal prototype to avoid an error. 26850 Use char because int might match the return type of a GCC 26851 builtin and then its argument prototype would still apply. */ 26852#ifdef __cplusplus 26853extern "C" 26854#endif 26855char dlopen (); 26856int 26857main () 26858{ 26859return dlopen (); 26860 ; 26861 return 0; 26862} 26863_ACEOF 26864if ac_fn_c_try_link "$LINENO"; then : 26865 ac_cv_lib_dl_dlopen=yes 26866else 26867 ac_cv_lib_dl_dlopen=no 26868fi 26869rm -f core conftest.err conftest.$ac_objext \ 26870 conftest$ac_exeext conftest.$ac_ext 26871LIBS=$ac_check_lib_save_LIBS 26872fi 26873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 26874$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 26875if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 26876 have_dl=yes 26877else 26878 have_dl=no 26879fi 26880 26881 if test "$have_dl" = "yes"; then 26882 LIBS="-ldl $LIBS" 26883 fi 26884 for ac_func in dlopen dlclose dlsym 26885do : 26886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26887ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26888if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26889 cat >>confdefs.h <<_ACEOF 26890#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26891_ACEOF 26892 26893else 26894 dlopen=no 26895fi 26896done 26897 26898fi 26899 26900if test "$dlopen" = "yes"; then 26901 case $host in 26902 *-linux*) 26903 SO_CFLAGS="-fPIC" 26904 if test "$have_dl" = "yes" 26905 then 26906 SO_LD="${CC} -shared" 26907 else 26908 SO_LD="ld -shared" 26909 fi 26910 ;; 26911 *-freebsd*|*-openbsd*|*-netbsd*) 26912 SO_CFLAGS="-fpic" 26913 SO_LD="ld -Bshareable -x" 26914 ;; 26915 *-solaris*) 26916 SO_CFLAGS="-KPIC" 26917 SO_LD="ld -G -z text" 26918 ;; 26919 *-hp-hpux*) 26920 SO=sl 26921 SO_CFLAGS="+z" 26922 SO_LD="ld -b" 26923 ;; 26924 *) 26925 SO_CFLAGS="-fPIC" 26926 ;; 26927 esac 26928 26929 if test "X$GCC" = "Xyes"; then 26930 SO_CFLAGS="-fPIC" 26931 test -n "$SO_LD" || SO_LD="${CC} -shared" 26932 fi 26933 26934 # If we still don't know how to make shared objects, don't make any. 26935 if test -n "$SO_LD"; then 26936 SO_TARGETS="\${SO_TARGETS}" 26937 26938$as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h 26939 26940 fi 26941fi 26942 26943 26944 26945 26946 26947 26948# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC") 26949# 26950# Permission to use, copy, modify, and distribute this software for any 26951# purpose with or without fee is hereby granted, provided that the above 26952# copyright notice and this permission notice appear in all copies. 26953# 26954# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 26955# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 26956# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 26957# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 26958# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 26959# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 26960# PERFORMANCE OF THIS SOFTWARE. 26961 26962# 26963# Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here. 26964# 26965dlzdir='${DLZ_DRIVER_DIR}' 26966 26967# 26968# Private autoconf macro to simplify configuring drivers: 26969# 26970# DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS) 26971# 26972# where: 26973# DEFINE is FOO (to define -DDLZ_FOO) 26974# DRIVER is dlz_foo_driver (sources without the .c) 26975# INCLUDES is any necessary include definitions 26976# LIBS is any necessary library definitions 26977# 26978 26979 26980# 26981# Check for the various DLZ drivers 26982# 26983 26984# 26985# Was --with-dlz-postgres specified? 26986# 26987 26988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5 26989$as_echo_n "checking for Postgres DLZ driver... " >&6; } 26990 26991# Check whether --with-dlz_postgres was given. 26992if test "${with_dlz_postgres+set}" = set; then : 26993 withval=$with_dlz_postgres; use_dlz_postgres="$withval" 26994else 26995 use_dlz_postgres="no" 26996fi 26997 26998 26999if test "$use_dlz_postgres" = "yes" 27000then 27001 # User did not specify a path - guess it 27002 # Ask Postgres to tell us where it is 27003 27004 for ac_prog in pg_config 27005do 27006 # Extract the first word of "$ac_prog", so it can be a program name with args. 27007set dummy $ac_prog; ac_word=$2 27008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27009$as_echo_n "checking for $ac_word... " >&6; } 27010if test "${ac_cv_path_PG_CONFIG+set}" = set; then : 27011 $as_echo_n "(cached) " >&6 27012else 27013 case $PG_CONFIG in 27014 [\\/]* | ?:[\\/]*) 27015 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 27016 ;; 27017 *) 27018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27019for as_dir in $PATH 27020do 27021 IFS=$as_save_IFS 27022 test -z "$as_dir" && as_dir=. 27023 for ac_exec_ext in '' $ac_executable_extensions; do 27024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27025 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 27026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27027 break 2 27028 fi 27029done 27030 done 27031IFS=$as_save_IFS 27032 27033 ;; 27034esac 27035fi 27036PG_CONFIG=$ac_cv_path_PG_CONFIG 27037if test -n "$PG_CONFIG"; then 27038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 27039$as_echo "$PG_CONFIG" >&6; } 27040else 27041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27042$as_echo "no" >&6; } 27043fi 27044 27045 27046 test -n "$PG_CONFIG" && break 27047done 27048test -n "$PG_CONFIG" || PG_CONFIG="not found" 27049 27050 27051 if test "$PG_CONFIG" != "not found" 27052 then 27053 use_dlz_postgres=`$PG_CONFIG --includedir` 27054 use_dlz_postgres_lib=`$PG_CONFIG --libdir` 27055 fi 27056fi 27057 27058if test "$use_dlz_postgres" = "yes" 27059then 27060 # User did not specify path and Postgres didn't say - guess it 27061 27062 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg" 27063 for d in $pgdirs 27064 do 27065 if test -f $d/include/libpq-fe.h 27066 then 27067 use_dlz_postgres=$d/include 27068 use_dlz_postgres_lib=$d/lib 27069 break 27070 fi 27071 done 27072fi 27073 27074if test "$use_dlz_postgres" = "yes" 27075then 27076 # Still no joy, give up 27077 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27079$as_echo "not found" >&6; } 27080 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 27081fi 27082 27083case "$use_dlz_postgres" in 27084 no) 27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27086$as_echo "no" >&6; } 27087 ;; 27088 *) 27089 27090 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES" 27091 for i in dlz_postgres_driver 27092 do 27093 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 27094 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 27095 done 27096 if test -n "-I$use_dlz_postgres" 27097 then 27098 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres" 27099 fi 27100 if test -n "-L$use_dlz_postgres_lib -lpq" 27101 then 27102 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq" 27103 fi 27104 27105 27106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5 27107$as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; } 27108 ;; 27109esac 27110 27111 27112# 27113# Was --with-dlz-mysql specified? 27114# 27115 27116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5 27117$as_echo_n "checking for MySQL DLZ driver... " >&6; } 27118 27119# Check whether --with-dlz_mysql was given. 27120if test "${with_dlz_mysql+set}" = set; then : 27121 withval=$with_dlz_mysql; use_dlz_mysql="$withval" 27122else 27123 use_dlz_mysql="no" 27124fi 27125 27126 27127mysql_include="" 27128mysql_lib="" 27129if test "$use_dlz_mysql" = "yes" 27130then 27131 # User did not specify a path - guess it 27132 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg" 27133 for d in $mysqldirs 27134 do 27135 if test -f $d/include/mysql/mysql.h 27136 then 27137 use_dlz_mysql=$d 27138 mysql_include=$d/include/mysql 27139 if test -d $d/lib/mysql 27140 then 27141 mysql_lib=$d/lib/mysql 27142 else 27143 mysql_lib=$d/lib 27144 fi 27145 break 27146 elif test -f $d/include/mysql.h 27147 then 27148 use_dlz_mysql=$d 27149 mysql_include=$d/include 27150 if test -d $d/lib/mysql 27151 then 27152 mysql_lib=$d/lib/mysql 27153 else 27154 mysql_lib=$d/lib 27155 fi 27156 break 27157 fi 27158 done 27159elif test "$use_dlz_mysql" != "no" 27160then 27161 d=$use_dlz_mysql 27162 if test -f $d/include/mysql/mysql.h 27163 then 27164 mysql_include=$d/include/mysql 27165 if test -d $d/lib/mysql 27166 then 27167 mysql_lib=$d/lib/mysql 27168 else 27169 mysql_lib=$d/lib 27170 fi 27171 elif test -f $d/include/mysql.h 27172 then 27173 mysql_include=$d/include 27174 if test -d $d/lib/mysql 27175 then 27176 mysql_lib=$d/lib/mysql 27177 else 27178 mysql_lib=$d/lib 27179 fi 27180 fi 27181fi 27182 27183if test "$use_dlz_mysql" = "yes" 27184then 27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27186$as_echo "not found" >&6; } 27187 as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5 27188fi 27189 27190case "$use_dlz_mysql" in 27191 no) 27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27193$as_echo "no" >&6; } 27194 ;; 27195 *) 27196 27197 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL" 27198 for i in dlz_mysql_driver 27199 do 27200 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 27201 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 27202 done 27203 if test -n "-I${mysql_include}" 27204 then 27205 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}" 27206 fi 27207 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 27208 then 27209 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 27210 fi 27211 27212 27213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5 27214$as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; } 27215 ;; 27216esac 27217 27218 27219# 27220# Was --with-dlz-bdb specified? 27221# 27222 27223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver" >&5 27224$as_echo_n "checking for Berkeley DB DLZ driver... " >&6; } 27225 27226# Check whether --with-dlz_bdb was given. 27227if test "${with_dlz_bdb+set}" = set; then : 27228 withval=$with_dlz_bdb; use_dlz_bdb="$withval" 27229else 27230 use_dlz_bdb="no" 27231fi 27232 27233 27234case "$use_dlz_bdb" in 27235 no) 27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27237$as_echo "no" >&6; } 27238 ;; 27239 *) 27240 if test "$use_dlz_bdb" = "yes" 27241 then 27242 # User did not specify a path - guess directories 27243 bdbdirs="/usr/local /usr/pkg /usr" 27244 elif test -d "$use_dlz_bdb" 27245 then 27246 # User specified directory and it exists 27247 bdbdirs="$use_dlz_bdb" 27248 else 27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27250$as_echo "not found" >&6; } 27251 as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5 27252 bdbdirs="" 27253 fi 27254 27255 # Use path we were given or guessed. This is insanely 27256 # complicated because we have to search for a bunch of 27257 # platform-specific variations and have to check 27258 # separately for include and library directories. 27259 27260 # Set both to yes, so we can check them later 27261 dlz_bdb_inc="yes" 27262 dlz_bdb_libs="yes" 27263 27264 for dd in $bdbdirs 27265 do 27266 # Skip nonexistant directories 27267 if test ! -d "$dd" 27268 then 27269 continue 27270 fi 27271 27272 # Check other locations for includes. 27273 # Order is important (sigh). 27274 27275 bdb_incdirs="/ /db48/ /db47/ /db46/ /db45/ /db44/ /db43/ /db42/ /db41/ /db4/ /db/" 27276 for d in $bdb_incdirs 27277 do 27278 if test -f "$dd/include${d}db.h" 27279 then 27280 dlz_bdb_inc="-I$dd/include${d}" 27281 break 27282 fi 27283 done 27284 27285 # Give up on this directory if we couldn't 27286 # find the include subdir 27287 27288 if test "$dlz_bdb_inc" = "yes" 27289 then 27290 continue 27291 fi 27292 27293 # Look for libname other than libdb.so. 27294 # Order is important (sigh). 27295 27296 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" 27297 for d in $bdb_libnames 27298 do 27299 if test -f "$dd/lib/lib${d}.so" 27300 then 27301 if test "$dd" != "/usr" 27302 then 27303 dlz_bdb_libs="-L${dd}/lib " 27304 else 27305 dlz_bdb_libs="" 27306 fi 27307 dlz_bdb_libs="${dlz_bdb_libs}-l${d}" 27308 break 27309 fi 27310 done 27311 27312 # If we found both incdir and lib, we're done 27313 if test "$dlz_bdb_libs" != "yes" 27314 then 27315 break 27316 fi 27317 27318 # Otherwise, we're starting over 27319 27320 dlz_bdb_inc="yes" 27321 dlz_bdb_libs="yes" 27322 done 27323 27324 # Done searching, now make sure we got everything. 27325 27326 if test "$dlz_bdb_inc" = "yes" 27327 then 27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27329$as_echo "not found" >&6; } 27330 as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5 27331 fi 27332 27333 if test "$dlz_bdb_libs" = "yes" 27334 then 27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27336$as_echo "not found" >&6; } 27337 as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5 27338 fi 27339 27340 27341 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB" 27342 for i in dlz_bdb_driver dlz_bdbhpt_driver 27343 do 27344 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 27345 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 27346 done 27347 if test -n "$dlz_bdb_inc" 27348 then 27349 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc" 27350 fi 27351 if test -n "$dlz_bdb_libs" 27352 then 27353 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs" 27354 fi 27355 27356 27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5 27358$as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; } 27359 27360 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile" 27361 27362 ;; 27363esac 27364 27365 27366# 27367# Was --with-dlz-filesystem specified? 27368# 27369 27370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5 27371$as_echo_n "checking for file system DLZ driver... " >&6; } 27372 27373# Check whether --with-dlz_filesystem was given. 27374if test "${with_dlz_filesystem+set}" = set; then : 27375 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval" 27376else 27377 use_dlz_filesystem="no" 27378fi 27379 27380 27381case "$use_dlz_filesystem" in 27382 no) 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27384$as_echo "no" >&6; } 27385 ;; 27386 *) 27387 27388 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM" 27389 for i in dlz_filesystem_driver 27390 do 27391 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 27392 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 27393 done 27394 if test -n "" 27395 then 27396 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES " 27397 fi 27398 if test -n "" 27399 then 27400 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS " 27401 fi 27402 27403 DLZ_SYSTEM_TEST=filesystem 27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27405$as_echo "yes" >&6; } 27406 ;; 27407esac 27408 27409 27410# 27411# Was --with-dlz-ldap specified? 27412# 27413 27414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5 27415$as_echo_n "checking for LDAP DLZ driver... " >&6; } 27416 27417# Check whether --with-dlz_ldap was given. 27418if test "${with_dlz_ldap+set}" = set; then : 27419 withval=$with_dlz_ldap; use_dlz_ldap="$withval" 27420else 27421 use_dlz_ldap="no" 27422fi 27423 27424 27425if test "$use_dlz_ldap" = "yes" 27426then 27427 # User did not specify a path - guess it 27428 ldapdirs="/usr /usr/local /usr/pkg" 27429 for d in $ldapdirs 27430 do 27431 if test -f $d/include/ldap.h 27432 then 27433 use_dlz_ldap=$d 27434 break 27435 fi 27436 done 27437fi 27438 27439if test "$use_dlz_ldap" = "yes" 27440then 27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27442$as_echo "not found" >&6; } 27443 as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5 27444fi 27445 27446case "$use_dlz_ldap" in 27447 no) 27448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27449$as_echo "no" >&6; } 27450 ;; 27451 *) 27452 27453 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP" 27454 for i in dlz_ldap_driver 27455 do 27456 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 27457 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 27458 done 27459 if test -n "-I$use_dlz_ldap/include" 27460 then 27461 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include" 27462 fi 27463 if test -n "-L$use_dlz_ldap/lib -lldap -llber" 27464 then 27465 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber" 27466 fi 27467 27468 27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5 27470$as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; } 27471 ;; 27472esac 27473 27474 27475# 27476# Was --with-dlz-odbc specified? 27477# 27478 27479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5 27480$as_echo_n "checking for ODBC DLZ driver... " >&6; } 27481 27482# Check whether --with-dlz_odbc was given. 27483if test "${with_dlz_odbc+set}" = set; then : 27484 withval=$with_dlz_odbc; use_dlz_odbc="$withval" 27485else 27486 use_dlz_odbc="no" 27487fi 27488 27489 27490if test "$use_dlz_odbc" = "yes" 27491then 27492 # User did not specify a path - guess it 27493 odbcdirs="/usr /usr/local /usr/pkg" 27494 for d in $odbcdirs 27495 do 27496 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a 27497 then 27498 use_dlz_odbc=$d 27499 break 27500 fi 27501 done 27502fi 27503 27504case "$use_dlz_odbc" in 27505 no) 27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27507$as_echo "no" >&6; } 27508 ;; 27509 yes) 27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27511$as_echo "not found" >&6; } 27512 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5 27513 ;; 27514 *) 27515 27516 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC" 27517 for i in dlz_odbc_driver 27518 do 27519 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 27520 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 27521 done 27522 if test -n "-I$use_dlz_odbc/include" 27523 then 27524 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_odbc/include" 27525 fi 27526 if test -n "-L$use_dlz_odbc/lib -lodbc" 27527 then 27528 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_odbc/lib -lodbc" 27529 fi 27530 27531 27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5 27533$as_echo "using ODBC from $use_dlz_odbc" >&6; } 27534 ;; 27535esac 27536 27537 27538# 27539# Was --with-dlz-stub specified? 27540# 27541 27542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5 27543$as_echo_n "checking for stub DLZ driver... " >&6; } 27544 27545# Check whether --with-dlz_stub was given. 27546if test "${with_dlz_stub+set}" = set; then : 27547 withval=$with_dlz_stub; use_dlz_stub="$withval" 27548else 27549 use_dlz_stub="no" 27550fi 27551 27552 27553case "$use_dlz_stub" in 27554 no) 27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27556$as_echo "no" >&6; } 27557 ;; 27558 *) 27559 27560 27561 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB" 27562 for i in dlz_stub_driver 27563 do 27564 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 27565 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 27566 done 27567 if test -n "" 27568 then 27569 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES " 27570 fi 27571 if test -n "" 27572 then 27573 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS " 27574 fi 27575 27576 27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27578$as_echo "yes" >&6; } 27579 ;; 27580esac 27581 27582# Add any additional DLZ drivers here. 27583 27584# 27585# Finally, some generic stuff that applies to all drivers, assuming 27586# we're compiling contrib DLZ drivers at all. 27587# 27588if test -n "$CONTRIB_DLZ" 27589then 27590 CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ" 27591 27592 # 27593 # Where to find DLZ driver header files. 27594 # 27595 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES" 27596 27597 # 27598 # Initialization and shutdown wrappers, helper functions. 27599 # 27600 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS" 27601 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS" 27602fi 27603 27604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5 27605$as_echo_n "checking contributed DLZ drivers... " >&6; } 27606 27607if test -n "$CONTRIB_DLZ" 27608then 27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27610$as_echo "yes" >&6; } 27611 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules 27612 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES" 27613 27614else 27615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27616$as_echo "no" >&6; } 27617 DLZ_DRIVER_RULES=/dev/null 27618fi 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628if test "$cross_compiling" = "yes"; then 27629 if test -z "$BUILD_CC"; then 27630 as_fn_error $? "BUILD_CC not set" "$LINENO" 5 27631 fi 27632 BUILD_CFLAGS="$BUILD_CFLAGS" 27633 BUILD_CPPFLAGS="$BUILD_CPPFLAGS" 27634 BUILD_LDFLAGS="$BUILD_LDFLAGS" 27635 BUILD_LIBS="$BUILD_LIBS" 27636else 27637 BUILD_CC="$CC" 27638 BUILD_CFLAGS="$CFLAGS" 27639 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG" 27640 BUILD_LDFLAGS="$LDFLAGS" 27641 BUILD_LIBS="$LIBS" 27642fi 27643 27644NEWFLAGS="" 27645for e in $BUILD_LDFLAGS ; do 27646 case $e in 27647 -L*) 27648 case $host_os in 27649 netbsd*) 27650 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 27651 NEWFLAGS="$NEWFLAGS $e $ee" 27652 ;; 27653 freebsd*) 27654 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 27655 NEWFLAGS="$NEWFLAGS $e $ee" 27656 ;; 27657 solaris*) 27658 ee=`echo $e | sed -e 's%^-L%-R%'` 27659 NEWFLAGS="$NEWFLAGS $e $ee" 27660 ;; 27661 *) 27662 NEWFLAGS="$NEWFLAGS $e" 27663 ;; 27664 esac 27665 ;; 27666 *) 27667 NEWFLAGS="$NEWFLAGS $e" 27668 ;; 27669 esac 27670done 27671BUILD_LDFLAGS="$NEWFLAGS" 27672 27673NEWFLAGS="" 27674for e in $DNS_GSSAPI_LIBS ; do 27675 case $e in 27676 -L*) 27677 case $host_os in 27678 netbsd*) 27679 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 27680 NEWFLAGS="$NEWFLAGS $e $ee" 27681 ;; 27682 freebsd*) 27683 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 27684 NEWFLAGS="$NEWFLAGS $e $ee" 27685 ;; 27686 solaris*) 27687 ee=`echo $e | sed -e 's%^-L%-R%'` 27688 NEWFLAGS="$NEWFLAGS $e $ee" 27689 ;; 27690 *) 27691 NEWFLAGS="$NEWFLAGS $e" 27692 ;; 27693 esac 27694 ;; 27695 *) 27696 NEWFLAGS="$NEWFLAGS $e" 27697 ;; 27698 esac 27699done 27700DNS_GSSAPI_LIBS="$NEWFLAGS" 27701 27702NEWFLAGS="" 27703for e in $DNS_CRYPTO_LIBS ; do 27704 case $e in 27705 -L*) 27706 case $host_os in 27707 netbsd*) 27708 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 27709 NEWFLAGS="$NEWFLAGS $e $ee" 27710 ;; 27711 freebsd*) 27712 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 27713 NEWFLAGS="$NEWFLAGS $e $ee" 27714 ;; 27715 solaris*) 27716 ee=`echo $e | sed -e 's%^-L%-R%'` 27717 NEWFLAGS="$NEWFLAGS $e $ee" 27718 ;; 27719 *) 27720 NEWFLAGS="$NEWFLAGS $e" 27721 ;; 27722 esac 27723 ;; 27724 *) 27725 NEWFLAGS="$NEWFLAGS $e" 27726 ;; 27727 esac 27728done 27729DNS_CRYPTO_LIBS="$NEWFLAGS" 27730 27731 27732 27733 27734 27735 27736 27737# 27738# Commands to run at the end of config.status. 27739# Don't just put these into configure, it won't work right if somebody 27740# runs config.status directly (which autoconf allows). 27741# 27742 27743ac_config_commands="$ac_config_commands chmod" 27744 27745 27746# 27747# Files to configure. These are listed here because we used to 27748# specify them as arguments to AC_OUTPUT. It's (now) ok to move these 27749# elsewhere if there's a good reason for doing so. 27750# 27751 27752ac_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/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/filter-aaaa/Makefile bin/tests/system/gost/prereq.sh bin/tests/system/lwresd/Makefile bin/tests/system/rpz/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" 27753 27754 27755# 27756# Do it 27757# 27758 27759cat >confcache <<\_ACEOF 27760# This file is a shell script that caches the results of configure 27761# tests run on this system so they can be shared between configure 27762# scripts and configure runs, see configure's option --config-cache. 27763# It is not useful on other systems. If it contains results you don't 27764# want to keep, you may remove or edit it. 27765# 27766# config.status only pays attention to the cache file if you give it 27767# the --recheck option to rerun configure. 27768# 27769# `ac_cv_env_foo' variables (set or unset) will be overridden when 27770# loading this file, other *unset* `ac_cv_foo' will be assigned the 27771# following values. 27772 27773_ACEOF 27774 27775# The following way of writing the cache mishandles newlines in values, 27776# but we know of no workaround that is simple, portable, and efficient. 27777# So, we kill variables containing newlines. 27778# Ultrix sh set writes to stderr and can't be redirected directly, 27779# and sets the high bit in the cache file unless we assign to the vars. 27780( 27781 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27782 eval ac_val=\$$ac_var 27783 case $ac_val in #( 27784 *${as_nl}*) 27785 case $ac_var in #( 27786 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 27787$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27788 esac 27789 case $ac_var in #( 27790 _ | IFS | as_nl) ;; #( 27791 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27792 *) { eval $ac_var=; unset $ac_var;} ;; 27793 esac ;; 27794 esac 27795 done 27796 27797 (set) 2>&1 | 27798 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27799 *${as_nl}ac_space=\ *) 27800 # `set' does not quote correctly, so add quotes: double-quote 27801 # substitution turns \\\\ into \\, and sed turns \\ into \. 27802 sed -n \ 27803 "s/'/'\\\\''/g; 27804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27805 ;; #( 27806 *) 27807 # `set' quotes correctly as required by POSIX, so do not add quotes. 27808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27809 ;; 27810 esac | 27811 sort 27812) | 27813 sed ' 27814 /^ac_cv_env_/b end 27815 t clear 27816 :clear 27817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27818 t end 27819 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27820 :end' >>confcache 27821if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27822 if test -w "$cache_file"; then 27823 test "x$cache_file" != "x/dev/null" && 27824 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 27825$as_echo "$as_me: updating cache $cache_file" >&6;} 27826 cat confcache >$cache_file 27827 else 27828 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 27829$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27830 fi 27831fi 27832rm -f confcache 27833 27834test "x$prefix" = xNONE && prefix=$ac_default_prefix 27835# Let make expand exec_prefix. 27836test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27837 27838DEFS=-DHAVE_CONFIG_H 27839 27840ac_libobjs= 27841ac_ltlibobjs= 27842U= 27843for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27844 # 1. Remove the extension, and $U if already installed. 27845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27846 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 27847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27848 # will be set to the directory where LIBOBJS objects are built. 27849 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27850 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 27851done 27852LIBOBJS=$ac_libobjs 27853 27854LTLIBOBJS=$ac_ltlibobjs 27855 27856 27857 27858 27859: ${CONFIG_STATUS=./config.status} 27860ac_write_fail=0 27861ac_clean_files_save=$ac_clean_files 27862ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27863{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 27864$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 27865as_write_fail=0 27866cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 27867#! $SHELL 27868# Generated by $as_me. 27869# Run this file to recreate the current configuration. 27870# Compiler output produced by configure, useful for debugging 27871# configure, is in config.log if it exists. 27872 27873debug=false 27874ac_cs_recheck=false 27875ac_cs_silent=false 27876 27877SHELL=\${CONFIG_SHELL-$SHELL} 27878export SHELL 27879_ASEOF 27880cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 27881## -------------------- ## 27882## M4sh Initialization. ## 27883## -------------------- ## 27884 27885# Be more Bourne compatible 27886DUALCASE=1; export DUALCASE # for MKS sh 27887if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 27888 emulate sh 27889 NULLCMD=: 27890 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27891 # is contrary to our usage. Disable this feature. 27892 alias -g '${1+"$@"}'='"$@"' 27893 setopt NO_GLOB_SUBST 27894else 27895 case `(set -o) 2>/dev/null` in #( 27896 *posix*) : 27897 set -o posix ;; #( 27898 *) : 27899 ;; 27900esac 27901fi 27902 27903 27904as_nl=' 27905' 27906export as_nl 27907# Printing a long string crashes Solaris 7 /usr/bin/printf. 27908as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 27909as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 27910as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 27911# Prefer a ksh shell builtin over an external printf program on Solaris, 27912# but without wasting forks for bash or zsh. 27913if test -z "$BASH_VERSION$ZSH_VERSION" \ 27914 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 27915 as_echo='print -r --' 27916 as_echo_n='print -rn --' 27917elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 27918 as_echo='printf %s\n' 27919 as_echo_n='printf %s' 27920else 27921 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 27922 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 27923 as_echo_n='/usr/ucb/echo -n' 27924 else 27925 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 27926 as_echo_n_body='eval 27927 arg=$1; 27928 case $arg in #( 27929 *"$as_nl"*) 27930 expr "X$arg" : "X\\(.*\\)$as_nl"; 27931 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 27932 esac; 27933 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 27934 ' 27935 export as_echo_n_body 27936 as_echo_n='sh -c $as_echo_n_body as_echo' 27937 fi 27938 export as_echo_body 27939 as_echo='sh -c $as_echo_body as_echo' 27940fi 27941 27942# The user is always right. 27943if test "${PATH_SEPARATOR+set}" != set; then 27944 PATH_SEPARATOR=: 27945 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 27946 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 27947 PATH_SEPARATOR=';' 27948 } 27949fi 27950 27951 27952# IFS 27953# We need space, tab and new line, in precisely that order. Quoting is 27954# there to prevent editors from complaining about space-tab. 27955# (If _AS_PATH_WALK were called with IFS unset, it would disable word 27956# splitting by setting IFS to empty value.) 27957IFS=" "" $as_nl" 27958 27959# Find who we are. Look in the path if we contain no directory separator. 27960case $0 in #(( 27961 *[\\/]* ) as_myself=$0 ;; 27962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27963for as_dir in $PATH 27964do 27965 IFS=$as_save_IFS 27966 test -z "$as_dir" && as_dir=. 27967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27968 done 27969IFS=$as_save_IFS 27970 27971 ;; 27972esac 27973# We did not find ourselves, most probably we were run as `sh COMMAND' 27974# in which case we are not to be found in the path. 27975if test "x$as_myself" = x; then 27976 as_myself=$0 27977fi 27978if test ! -f "$as_myself"; then 27979 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27980 exit 1 27981fi 27982 27983# Unset variables that we do not need and which cause bugs (e.g. in 27984# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 27985# suppresses any "Segmentation fault" message there. '((' could 27986# trigger a bug in pdksh 5.2.14. 27987for as_var in BASH_ENV ENV MAIL MAILPATH 27988do eval test x\${$as_var+set} = xset \ 27989 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 27990done 27991PS1='$ ' 27992PS2='> ' 27993PS4='+ ' 27994 27995# NLS nuisances. 27996LC_ALL=C 27997export LC_ALL 27998LANGUAGE=C 27999export LANGUAGE 28000 28001# CDPATH. 28002(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 28003 28004 28005# as_fn_error STATUS ERROR [LINENO LOG_FD] 28006# ---------------------------------------- 28007# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 28008# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 28009# script with STATUS, using 1 if that was 0. 28010as_fn_error () 28011{ 28012 as_status=$1; test $as_status -eq 0 && as_status=1 28013 if test "$4"; then 28014 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 28015 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 28016 fi 28017 $as_echo "$as_me: error: $2" >&2 28018 as_fn_exit $as_status 28019} # as_fn_error 28020 28021 28022# as_fn_set_status STATUS 28023# ----------------------- 28024# Set $? to STATUS, without forking. 28025as_fn_set_status () 28026{ 28027 return $1 28028} # as_fn_set_status 28029 28030# as_fn_exit STATUS 28031# ----------------- 28032# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 28033as_fn_exit () 28034{ 28035 set +e 28036 as_fn_set_status $1 28037 exit $1 28038} # as_fn_exit 28039 28040# as_fn_unset VAR 28041# --------------- 28042# Portably unset VAR. 28043as_fn_unset () 28044{ 28045 { eval $1=; unset $1;} 28046} 28047as_unset=as_fn_unset 28048# as_fn_append VAR VALUE 28049# ---------------------- 28050# Append the text in VALUE to the end of the definition contained in VAR. Take 28051# advantage of any shell optimizations that allow amortized linear growth over 28052# repeated appends, instead of the typical quadratic growth present in naive 28053# implementations. 28054if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 28055 eval 'as_fn_append () 28056 { 28057 eval $1+=\$2 28058 }' 28059else 28060 as_fn_append () 28061 { 28062 eval $1=\$$1\$2 28063 } 28064fi # as_fn_append 28065 28066# as_fn_arith ARG... 28067# ------------------ 28068# Perform arithmetic evaluation on the ARGs, and store the result in the 28069# global $as_val. Take advantage of shells that can avoid forks. The arguments 28070# must be portable across $(()) and expr. 28071if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 28072 eval 'as_fn_arith () 28073 { 28074 as_val=$(( $* )) 28075 }' 28076else 28077 as_fn_arith () 28078 { 28079 as_val=`expr "$@" || test $? -eq 1` 28080 } 28081fi # as_fn_arith 28082 28083 28084if expr a : '\(a\)' >/dev/null 2>&1 && 28085 test "X`expr 00001 : '.*\(...\)'`" = X001; then 28086 as_expr=expr 28087else 28088 as_expr=false 28089fi 28090 28091if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 28092 as_basename=basename 28093else 28094 as_basename=false 28095fi 28096 28097if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 28098 as_dirname=dirname 28099else 28100 as_dirname=false 28101fi 28102 28103as_me=`$as_basename -- "$0" || 28104$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 28105 X"$0" : 'X\(//\)$' \| \ 28106 X"$0" : 'X\(/\)' \| . 2>/dev/null || 28107$as_echo X/"$0" | 28108 sed '/^.*\/\([^/][^/]*\)\/*$/{ 28109 s//\1/ 28110 q 28111 } 28112 /^X\/\(\/\/\)$/{ 28113 s//\1/ 28114 q 28115 } 28116 /^X\/\(\/\).*/{ 28117 s//\1/ 28118 q 28119 } 28120 s/.*/./; q'` 28121 28122# Avoid depending upon Character Ranges. 28123as_cr_letters='abcdefghijklmnopqrstuvwxyz' 28124as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 28125as_cr_Letters=$as_cr_letters$as_cr_LETTERS 28126as_cr_digits='0123456789' 28127as_cr_alnum=$as_cr_Letters$as_cr_digits 28128 28129ECHO_C= ECHO_N= ECHO_T= 28130case `echo -n x` in #((((( 28131-n*) 28132 case `echo 'xy\c'` in 28133 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 28134 xy) ECHO_C='\c';; 28135 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 28136 ECHO_T=' ';; 28137 esac;; 28138*) 28139 ECHO_N='-n';; 28140esac 28141 28142rm -f conf$$ conf$$.exe conf$$.file 28143if test -d conf$$.dir; then 28144 rm -f conf$$.dir/conf$$.file 28145else 28146 rm -f conf$$.dir 28147 mkdir conf$$.dir 2>/dev/null 28148fi 28149if (echo >conf$$.file) 2>/dev/null; then 28150 if ln -s conf$$.file conf$$ 2>/dev/null; then 28151 as_ln_s='ln -s' 28152 # ... but there are two gotchas: 28153 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 28154 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 28155 # In both cases, we have to default to `cp -p'. 28156 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 28157 as_ln_s='cp -p' 28158 elif ln conf$$.file conf$$ 2>/dev/null; then 28159 as_ln_s=ln 28160 else 28161 as_ln_s='cp -p' 28162 fi 28163else 28164 as_ln_s='cp -p' 28165fi 28166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 28167rmdir conf$$.dir 2>/dev/null 28168 28169 28170# as_fn_mkdir_p 28171# ------------- 28172# Create "$as_dir" as a directory, including parents if necessary. 28173as_fn_mkdir_p () 28174{ 28175 28176 case $as_dir in #( 28177 -*) as_dir=./$as_dir;; 28178 esac 28179 test -d "$as_dir" || eval $as_mkdir_p || { 28180 as_dirs= 28181 while :; do 28182 case $as_dir in #( 28183 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 28184 *) as_qdir=$as_dir;; 28185 esac 28186 as_dirs="'$as_qdir' $as_dirs" 28187 as_dir=`$as_dirname -- "$as_dir" || 28188$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28189 X"$as_dir" : 'X\(//\)[^/]' \| \ 28190 X"$as_dir" : 'X\(//\)$' \| \ 28191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28192$as_echo X"$as_dir" | 28193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28194 s//\1/ 28195 q 28196 } 28197 /^X\(\/\/\)[^/].*/{ 28198 s//\1/ 28199 q 28200 } 28201 /^X\(\/\/\)$/{ 28202 s//\1/ 28203 q 28204 } 28205 /^X\(\/\).*/{ 28206 s//\1/ 28207 q 28208 } 28209 s/.*/./; q'` 28210 test -d "$as_dir" && break 28211 done 28212 test -z "$as_dirs" || eval "mkdir $as_dirs" 28213 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 28214 28215 28216} # as_fn_mkdir_p 28217if mkdir -p . 2>/dev/null; then 28218 as_mkdir_p='mkdir -p "$as_dir"' 28219else 28220 test -d ./-p && rmdir ./-p 28221 as_mkdir_p=false 28222fi 28223 28224if test -x / >/dev/null 2>&1; then 28225 as_test_x='test -x' 28226else 28227 if ls -dL / >/dev/null 2>&1; then 28228 as_ls_L_option=L 28229 else 28230 as_ls_L_option= 28231 fi 28232 as_test_x=' 28233 eval sh -c '\'' 28234 if test -d "$1"; then 28235 test -d "$1/."; 28236 else 28237 case $1 in #( 28238 -*)set "./$1";; 28239 esac; 28240 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 28241 ???[sx]*):;;*)false;;esac;fi 28242 '\'' sh 28243 ' 28244fi 28245as_executable_p=$as_test_x 28246 28247# Sed expression to map a string onto a valid CPP name. 28248as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 28249 28250# Sed expression to map a string onto a valid variable name. 28251as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 28252 28253 28254exec 6>&1 28255## ----------------------------------- ## 28256## Main body of $CONFIG_STATUS script. ## 28257## ----------------------------------- ## 28258_ASEOF 28259test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 28260 28261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28262# Save the log message, to keep $0 and so on meaningful, and to 28263# report actual input values of CONFIG_FILES etc. instead of their 28264# values after options handling. 28265ac_log=" 28266This file was extended by $as_me, which was 28267generated by GNU Autoconf 2.67. Invocation command line was 28268 28269 CONFIG_FILES = $CONFIG_FILES 28270 CONFIG_HEADERS = $CONFIG_HEADERS 28271 CONFIG_LINKS = $CONFIG_LINKS 28272 CONFIG_COMMANDS = $CONFIG_COMMANDS 28273 $ $0 $@ 28274 28275on `(hostname || uname -n) 2>/dev/null | sed 1q` 28276" 28277 28278_ACEOF 28279 28280case $ac_config_files in *" 28281"*) set x $ac_config_files; shift; ac_config_files=$*;; 28282esac 28283 28284case $ac_config_headers in *" 28285"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 28286esac 28287 28288 28289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28290# Files that config.status was made for. 28291config_files="$ac_config_files" 28292config_headers="$ac_config_headers" 28293config_commands="$ac_config_commands" 28294 28295_ACEOF 28296 28297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28298ac_cs_usage="\ 28299\`$as_me' instantiates files and other configuration actions 28300from templates according to the current configuration. Unless the files 28301and actions are specified as TAGs, all are instantiated by default. 28302 28303Usage: $0 [OPTION]... [TAG]... 28304 28305 -h, --help print this help, then exit 28306 -V, --version print version number and configuration settings, then exit 28307 --config print configuration, then exit 28308 -q, --quiet, --silent 28309 do not print progress messages 28310 -d, --debug don't remove temporary files 28311 --recheck update $as_me by reconfiguring in the same conditions 28312 --file=FILE[:TEMPLATE] 28313 instantiate the configuration file FILE 28314 --header=FILE[:TEMPLATE] 28315 instantiate the configuration header FILE 28316 28317Configuration files: 28318$config_files 28319 28320Configuration headers: 28321$config_headers 28322 28323Configuration commands: 28324$config_commands 28325 28326Report bugs to the package provider." 28327 28328_ACEOF 28329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28330ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 28331ac_cs_version="\\ 28332config.status 28333configured by $0, generated by GNU Autoconf 2.67, 28334 with options \\"\$ac_cs_config\\" 28335 28336Copyright (C) 2010 Free Software Foundation, Inc. 28337This config.status script is free software; the Free Software Foundation 28338gives unlimited permission to copy, distribute and modify it." 28339 28340ac_pwd='$ac_pwd' 28341srcdir='$srcdir' 28342INSTALL='$INSTALL' 28343test -n "\$AWK" || AWK=awk 28344_ACEOF 28345 28346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28347# The default lists apply if the user does not specify any file. 28348ac_need_defaults=: 28349while test $# != 0 28350do 28351 case $1 in 28352 --*=?*) 28353 ac_option=`expr "X$1" : 'X\([^=]*\)='` 28354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 28355 ac_shift=: 28356 ;; 28357 --*=) 28358 ac_option=`expr "X$1" : 'X\([^=]*\)='` 28359 ac_optarg= 28360 ac_shift=: 28361 ;; 28362 *) 28363 ac_option=$1 28364 ac_optarg=$2 28365 ac_shift=shift 28366 ;; 28367 esac 28368 28369 case $ac_option in 28370 # Handling of the options. 28371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28372 ac_cs_recheck=: ;; 28373 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 28374 $as_echo "$ac_cs_version"; exit ;; 28375 --config | --confi | --conf | --con | --co | --c ) 28376 $as_echo "$ac_cs_config"; exit ;; 28377 --debug | --debu | --deb | --de | --d | -d ) 28378 debug=: ;; 28379 --file | --fil | --fi | --f ) 28380 $ac_shift 28381 case $ac_optarg in 28382 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28383 '') as_fn_error $? "missing file argument" ;; 28384 esac 28385 as_fn_append CONFIG_FILES " '$ac_optarg'" 28386 ac_need_defaults=false;; 28387 --header | --heade | --head | --hea ) 28388 $ac_shift 28389 case $ac_optarg in 28390 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28391 esac 28392 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 28393 ac_need_defaults=false;; 28394 --he | --h) 28395 # Conflict between --help and --header 28396 as_fn_error $? "ambiguous option: \`$1' 28397Try \`$0 --help' for more information.";; 28398 --help | --hel | -h ) 28399 $as_echo "$ac_cs_usage"; exit ;; 28400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 28401 | -silent | --silent | --silen | --sile | --sil | --si | --s) 28402 ac_cs_silent=: ;; 28403 28404 # This is an error. 28405 -*) as_fn_error $? "unrecognized option: \`$1' 28406Try \`$0 --help' for more information." ;; 28407 28408 *) as_fn_append ac_config_targets " $1" 28409 ac_need_defaults=false ;; 28410 28411 esac 28412 shift 28413done 28414 28415ac_configure_extra_args= 28416 28417if $ac_cs_silent; then 28418 exec 6>/dev/null 28419 ac_configure_extra_args="$ac_configure_extra_args --silent" 28420fi 28421 28422_ACEOF 28423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28424if \$ac_cs_recheck; then 28425 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 28426 shift 28427 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 28428 CONFIG_SHELL='$SHELL' 28429 export CONFIG_SHELL 28430 exec "\$@" 28431fi 28432 28433_ACEOF 28434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28435exec 5>>config.log 28436{ 28437 echo 28438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 28439## Running $as_me. ## 28440_ASBOX 28441 $as_echo "$ac_log" 28442} >&5 28443 28444_ACEOF 28445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28446# 28447# INIT-COMMANDS 28448# 28449atfdir=`pwd`/unit/atf 28450 28451_ACEOF 28452 28453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28454 28455# Handling of arguments. 28456for ac_config_target in $ac_config_targets 28457do 28458 case $ac_config_target in 28459 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 28460 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;; 28461 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;; 28462 "atf-config") CONFIG_COMMANDS="$CONFIG_COMMANDS atf-config" ;; 28463 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;; 28464 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;; 28465 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;; 28466 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; 28467 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;; 28468 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28469 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 28470 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;; 28471 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;; 28472 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;; 28473 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;; 28474 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;; 28475 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;; 28476 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;; 28477 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;; 28478 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;; 28479 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;; 28480 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;; 28481 "bin/tests/atomic/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/atomic/Makefile" ;; 28482 "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;; 28483 "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;; 28484 "bin/tests/hashes/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/hashes/Makefile" ;; 28485 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;; 28486 "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;; 28487 "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;; 28488 "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;; 28489 "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;; 28490 "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;; 28491 "bin/tests/resolver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/resolver/Makefile" ;; 28492 "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;; 28493 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;; 28494 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;; 28495 "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;; 28496 "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;; 28497 "bin/tests/system/dlzexternal/ns1/named.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/named.conf" ;; 28498 "bin/tests/system/filter-aaaa/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/filter-aaaa/Makefile" ;; 28499 "bin/tests/system/gost/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/gost/prereq.sh" ;; 28500 "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;; 28501 "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;; 28502 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;; 28503 "bin/tests/system/tsiggss/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tsiggss/Makefile" ;; 28504 "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;; 28505 "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;; 28506 "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;; 28507 "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;; 28508 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;; 28509 "contrib/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/check-secure-delegation.pl" ;; 28510 "contrib/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/zone-edit.sh" ;; 28511 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 28512 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;; 28513 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;; 28514 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;; 28515 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;; 28516 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; 28517 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;; 28518 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;; 28519 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;; 28520 "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;; 28521 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;; 28522 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;; 28523 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 28524 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;; 28525 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;; 28526 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;; 28527 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;; 28528 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;; 28529 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;; 28530 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;; 28531 "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;; 28532 "lib/export/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/Makefile" ;; 28533 "lib/export/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/Makefile" ;; 28534 "lib/export/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/Makefile" ;; 28535 "lib/export/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dns/Makefile" ;; 28536 "lib/export/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dst/Makefile" ;; 28537 "lib/export/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/Makefile" ;; 28538 "lib/export/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/Makefile" ;; 28539 "lib/export/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/irs/Makefile" ;; 28540 "lib/export/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/Makefile" ;; 28541 "lib/export/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/Makefile" ;; 28542 "lib/export/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/isc/Makefile" ;; 28543 "lib/export/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/Makefile" ;; 28544 "lib/export/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/Makefile" ;; 28545 "lib/export/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/isc/Makefile" ;; 28546 "lib/export/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/nls/Makefile" ;; 28547 "lib/export/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/Makefile" ;; 28548 "lib/export/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/Makefile" ;; 28549 "lib/export/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/isc/Makefile" ;; 28550 "lib/export/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/Makefile" ;; 28551 "lib/export/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/Makefile" ;; 28552 "lib/export/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/isccfg/Makefile" ;; 28553 "lib/export/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile" ;; 28554 "lib/export/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile-postinstall" ;; 28555 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;; 28556 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;; 28557 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;; 28558 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;; 28559 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;; 28560 "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;; 28561 "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;; 28562 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;; 28563 "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;; 28564 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;; 28565 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;; 28566 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;; 28567 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;; 28568 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;; 28569 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;; 28570 "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;; 28571 "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;; 28572 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;; 28573 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;; 28574 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;; 28575 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;; 28576 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;; 28577 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;; 28578 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;; 28579 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;; 28580 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;; 28581 "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;; 28582 "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;; 28583 "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;; 28584 "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;; 28585 "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;; 28586 "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;; 28587 "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;; 28588 "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;; 28589 "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;; 28590 "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;; 28591 "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;; 28592 "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;; 28593 "unit/Makefile") CONFIG_FILES="$CONFIG_FILES unit/Makefile" ;; 28594 "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;; 28595 28596 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 28597 esac 28598done 28599 28600 28601# If the user did not use the arguments to specify the items to instantiate, 28602# then the envvar interface is used. Set only those that are not. 28603# We use the long form for the default assignment because of an extremely 28604# bizarre bug on SunOS 4.1.3. 28605if $ac_need_defaults; then 28606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28609fi 28610 28611# Have a temporary directory for convenience. Make it in the build tree 28612# simply because there is no reason against having it here, and in addition, 28613# creating and moving files from /tmp can sometimes cause problems. 28614# Hook for its removal unless debugging. 28615# Note that there is a small window in which the directory will not be cleaned: 28616# after its creation but before its name has been assigned to `$tmp'. 28617$debug || 28618{ 28619 tmp= 28620 trap 'exit_status=$? 28621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 28622' 0 28623 trap 'as_fn_exit 1' 1 2 13 15 28624} 28625# Create a (secure) tmp directory for tmp files. 28626 28627{ 28628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 28629 test -n "$tmp" && test -d "$tmp" 28630} || 28631{ 28632 tmp=./conf$$-$RANDOM 28633 (umask 077 && mkdir "$tmp") 28634} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 28635 28636# Set up the scripts for CONFIG_FILES section. 28637# No need to generate them if there are no CONFIG_FILES. 28638# This happens for instance with `./config.status config.h'. 28639if test -n "$CONFIG_FILES"; then 28640 28641if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 28642 ac_cs_awk_getline=: 28643 ac_cs_awk_pipe_init= 28644 ac_cs_awk_read_file=' 28645 while ((getline aline < (F[key])) > 0) 28646 print(aline) 28647 close(F[key])' 28648 ac_cs_awk_pipe_fini= 28649else 28650 ac_cs_awk_getline=false 28651 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 28652 ac_cs_awk_read_file=' 28653 print "|#_!!_#|" 28654 print "cat " F[key] " &&" 28655 '$ac_cs_awk_pipe_init 28656 # The final `:' finishes the AND list. 28657 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 28658fi 28659ac_cr=`echo X | tr X '\015'` 28660# On cygwin, bash can eat \r inside `` if the user requested igncr. 28661# But we know of no other shell where ac_cr would be empty at this 28662# point, so we can use a bashism as a fallback. 28663if test "x$ac_cr" = x; then 28664 eval ac_cr=\$\'\\r\' 28665fi 28666ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 28667if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 28668 ac_cs_awk_cr='\\r' 28669else 28670 ac_cs_awk_cr=$ac_cr 28671fi 28672 28673echo 'BEGIN {' >"$tmp/subs1.awk" && 28674_ACEOF 28675 28676# Create commands to substitute file output variables. 28677{ 28678 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 28679 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && 28680 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 28681 echo "_ACAWK" && 28682 echo "_ACEOF" 28683} >conf$$files.sh && 28684. ./conf$$files.sh || 28685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28686rm -f conf$$files.sh 28687 28688{ 28689 echo "cat >conf$$subs.awk <<_ACEOF" && 28690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 28691 echo "_ACEOF" 28692} >conf$$subs.sh || 28693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28694ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 28695ac_delim='%!_!# ' 28696for ac_last_try in false false false false false :; do 28697 . ./conf$$subs.sh || 28698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28699 28700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 28701 if test $ac_delim_n = $ac_delim_num; then 28702 break 28703 elif $ac_last_try; then 28704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28705 else 28706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28707 fi 28708done 28709rm -f conf$$subs.sh 28710 28711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28712cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 28713_ACEOF 28714sed -n ' 28715h 28716s/^/S["/; s/!.*/"]=/ 28717p 28718g 28719s/^[^!]*!// 28720:repl 28721t repl 28722s/'"$ac_delim"'$// 28723t delim 28724:nl 28725h 28726s/\(.\{148\}\)..*/\1/ 28727t more1 28728s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 28729p 28730n 28731b repl 28732:more1 28733s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28734p 28735g 28736s/.\{148\}// 28737t nl 28738:delim 28739h 28740s/\(.\{148\}\)..*/\1/ 28741t more2 28742s/["\\]/\\&/g; s/^/"/; s/$/"/ 28743p 28744b 28745:more2 28746s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28747p 28748g 28749s/.\{148\}// 28750t delim 28751' <conf$$subs.awk | sed ' 28752/^[^""]/{ 28753 N 28754 s/\n// 28755} 28756' >>$CONFIG_STATUS || ac_write_fail=1 28757rm -f conf$$subs.awk 28758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28759_ACAWK 28760cat >>"\$tmp/subs1.awk" <<_ACAWK && 28761 for (key in S) S_is_set[key] = 1 28762 FS = "" 28763 \$ac_cs_awk_pipe_init 28764} 28765{ 28766 line = $ 0 28767 nfields = split(line, field, "@") 28768 substed = 0 28769 len = length(field[1]) 28770 for (i = 2; i < nfields; i++) { 28771 key = field[i] 28772 keylen = length(key) 28773 if (S_is_set[key]) { 28774 value = S[key] 28775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 28776 len += length(value) + length(field[++i]) 28777 substed = 1 28778 } else 28779 len += 1 + keylen 28780 } 28781 if (nfields == 3 && !substed) { 28782 key = field[2] 28783 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 28784 \$ac_cs_awk_read_file 28785 next 28786 } 28787 } 28788 print line 28789} 28790\$ac_cs_awk_pipe_fini 28791_ACAWK 28792_ACEOF 28793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28794if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 28795 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 28796else 28797 cat 28798fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 28799 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 28800_ACEOF 28801 28802# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 28803# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 28804# trailing colons and then remove the whole line if VPATH becomes empty 28805# (actually we leave an empty line to preserve line numbers). 28806if test "x$srcdir" = x.; then 28807 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 28808h 28809s/// 28810s/^/:/ 28811s/[ ]*$/:/ 28812s/:\$(srcdir):/:/g 28813s/:\${srcdir}:/:/g 28814s/:@srcdir@:/:/g 28815s/^:*// 28816s/:*$// 28817x 28818s/\(=[ ]*\).*/\1/ 28819G 28820s/\n// 28821s/^[^=]*=[ ]*$// 28822}' 28823fi 28824 28825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28826fi # test -n "$CONFIG_FILES" 28827 28828# Set up the scripts for CONFIG_HEADERS section. 28829# No need to generate them if there are no CONFIG_HEADERS. 28830# This happens for instance with `./config.status Makefile'. 28831if test -n "$CONFIG_HEADERS"; then 28832cat >"$tmp/defines.awk" <<\_ACAWK || 28833BEGIN { 28834_ACEOF 28835 28836# Transform confdefs.h into an awk script `defines.awk', embedded as 28837# here-document in config.status, that substitutes the proper values into 28838# config.h.in to produce config.h. 28839 28840# Create a delimiter string that does not exist in confdefs.h, to ease 28841# handling of long lines. 28842ac_delim='%!_!# ' 28843for ac_last_try in false false :; do 28844 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 28845 if test -z "$ac_t"; then 28846 break 28847 elif $ac_last_try; then 28848 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 28849 else 28850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28851 fi 28852done 28853 28854# For the awk script, D is an array of macro values keyed by name, 28855# likewise P contains macro parameters if any. Preserve backslash 28856# newline sequences. 28857 28858ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28859sed -n ' 28860s/.\{148\}/&'"$ac_delim"'/g 28861t rset 28862:rset 28863s/^[ ]*#[ ]*define[ ][ ]*/ / 28864t def 28865d 28866:def 28867s/\\$// 28868t bsnl 28869s/["\\]/\\&/g 28870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28871D["\1"]=" \3"/p 28872s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 28873d 28874:bsnl 28875s/["\\]/\\&/g 28876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28877D["\1"]=" \3\\\\\\n"\\/p 28878t cont 28879s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 28880t cont 28881d 28882:cont 28883n 28884s/.\{148\}/&'"$ac_delim"'/g 28885t clear 28886:clear 28887s/\\$// 28888t bsnlc 28889s/["\\]/\\&/g; s/^/"/; s/$/"/p 28890d 28891:bsnlc 28892s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 28893b cont 28894' <confdefs.h | sed ' 28895s/'"$ac_delim"'/"\\\ 28896"/g' >>$CONFIG_STATUS || ac_write_fail=1 28897 28898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28899 for (key in D) D_is_set[key] = 1 28900 FS = "" 28901} 28902/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 28903 line = \$ 0 28904 split(line, arg, " ") 28905 if (arg[1] == "#") { 28906 defundef = arg[2] 28907 mac1 = arg[3] 28908 } else { 28909 defundef = substr(arg[1], 2) 28910 mac1 = arg[2] 28911 } 28912 split(mac1, mac2, "(") #) 28913 macro = mac2[1] 28914 prefix = substr(line, 1, index(line, defundef) - 1) 28915 if (D_is_set[macro]) { 28916 # Preserve the white space surrounding the "#". 28917 print prefix "define", macro P[macro] D[macro] 28918 next 28919 } else { 28920 # Replace #undef with comments. This is necessary, for example, 28921 # in the case of _POSIX_SOURCE, which is predefined and required 28922 # on some systems where configure will not decide to define it. 28923 if (defundef == "undef") { 28924 print "/*", prefix defundef, macro, "*/" 28925 next 28926 } 28927 } 28928} 28929{ print } 28930_ACAWK 28931_ACEOF 28932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28933 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 28934fi # test -n "$CONFIG_HEADERS" 28935 28936 28937eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 28938shift 28939for ac_tag 28940do 28941 case $ac_tag in 28942 :[FHLC]) ac_mode=$ac_tag; continue;; 28943 esac 28944 case $ac_mode$ac_tag in 28945 :[FHL]*:*);; 28946 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 28947 :[FH]-) ac_tag=-:-;; 28948 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 28949 esac 28950 ac_save_IFS=$IFS 28951 IFS=: 28952 set x $ac_tag 28953 IFS=$ac_save_IFS 28954 shift 28955 ac_file=$1 28956 shift 28957 28958 case $ac_mode in 28959 :L) ac_source=$1;; 28960 :[FH]) 28961 ac_file_inputs= 28962 for ac_f 28963 do 28964 case $ac_f in 28965 -) ac_f="$tmp/stdin";; 28966 *) # Look for the file first in the build tree, then in the source tree 28967 # (if the path is not absolute). The absolute path cannot be DOS-style, 28968 # because $ac_f cannot contain `:'. 28969 test -f "$ac_f" || 28970 case $ac_f in 28971 [\\/$]*) false;; 28972 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 28973 esac || 28974 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 28975 esac 28976 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 28977 as_fn_append ac_file_inputs " '$ac_f'" 28978 done 28979 28980 # Let's still pretend it is `configure' which instantiates (i.e., don't 28981 # use $as_me), people would be surprised to read: 28982 # /* config.h. Generated by config.status. */ 28983 configure_input='Generated from '` 28984 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 28985 `' by configure.' 28986 if test x"$ac_file" != x-; then 28987 configure_input="$ac_file. $configure_input" 28988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 28989$as_echo "$as_me: creating $ac_file" >&6;} 28990 fi 28991 # Neutralize special characters interpreted by sed in replacement strings. 28992 case $configure_input in #( 28993 *\&* | *\|* | *\\* ) 28994 ac_sed_conf_input=`$as_echo "$configure_input" | 28995 sed 's/[\\\\&|]/\\\\&/g'`;; #( 28996 *) ac_sed_conf_input=$configure_input;; 28997 esac 28998 28999 case $ac_tag in 29000 *:-:* | *:-) cat >"$tmp/stdin" \ 29001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 29002 esac 29003 ;; 29004 esac 29005 29006 ac_dir=`$as_dirname -- "$ac_file" || 29007$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29008 X"$ac_file" : 'X\(//\)[^/]' \| \ 29009 X"$ac_file" : 'X\(//\)$' \| \ 29010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 29011$as_echo X"$ac_file" | 29012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29013 s//\1/ 29014 q 29015 } 29016 /^X\(\/\/\)[^/].*/{ 29017 s//\1/ 29018 q 29019 } 29020 /^X\(\/\/\)$/{ 29021 s//\1/ 29022 q 29023 } 29024 /^X\(\/\).*/{ 29025 s//\1/ 29026 q 29027 } 29028 s/.*/./; q'` 29029 as_dir="$ac_dir"; as_fn_mkdir_p 29030 ac_builddir=. 29031 29032case "$ac_dir" in 29033.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 29034*) 29035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 29036 # A ".." for each directory in $ac_dir_suffix. 29037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 29038 case $ac_top_builddir_sub in 29039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 29040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 29041 esac ;; 29042esac 29043ac_abs_top_builddir=$ac_pwd 29044ac_abs_builddir=$ac_pwd$ac_dir_suffix 29045# for backward compatibility: 29046ac_top_builddir=$ac_top_build_prefix 29047 29048case $srcdir in 29049 .) # We are building in place. 29050 ac_srcdir=. 29051 ac_top_srcdir=$ac_top_builddir_sub 29052 ac_abs_top_srcdir=$ac_pwd ;; 29053 [\\/]* | ?:[\\/]* ) # Absolute name. 29054 ac_srcdir=$srcdir$ac_dir_suffix; 29055 ac_top_srcdir=$srcdir 29056 ac_abs_top_srcdir=$srcdir ;; 29057 *) # Relative name. 29058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 29059 ac_top_srcdir=$ac_top_build_prefix$srcdir 29060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 29061esac 29062ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 29063 29064 29065 case $ac_mode in 29066 :F) 29067 # 29068 # CONFIG_FILE 29069 # 29070 29071 case $INSTALL in 29072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 29073 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 29074 esac 29075_ACEOF 29076 29077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29078# If the template does not know about datarootdir, expand it. 29079# FIXME: This hack should be removed a few years after 2.60. 29080ac_datarootdir_hack=; ac_datarootdir_seen= 29081ac_sed_dataroot=' 29082/datarootdir/ { 29083 p 29084 q 29085} 29086/@datadir@/p 29087/@docdir@/p 29088/@infodir@/p 29089/@localedir@/p 29090/@mandir@/p' 29091case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 29092*datarootdir*) ac_datarootdir_seen=yes;; 29093*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 29094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 29095$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 29096_ACEOF 29097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29098 ac_datarootdir_hack=' 29099 s&@datadir@&$datadir&g 29100 s&@docdir@&$docdir&g 29101 s&@infodir@&$infodir&g 29102 s&@localedir@&$localedir&g 29103 s&@mandir@&$mandir&g 29104 s&\\\${datarootdir}&$datarootdir&g' ;; 29105esac 29106_ACEOF 29107 29108# Neutralize VPATH when `$srcdir' = `.'. 29109# Shell code in configure.ac might set extrasub. 29110# FIXME: do we really want to maintain this feature? 29111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29112ac_sed_extra="$ac_vpsub 29113$extrasub 29114_ACEOF 29115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29116:t 29117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 29118s|@configure_input@|$ac_sed_conf_input|;t t 29119s&@top_builddir@&$ac_top_builddir_sub&;t t 29120s&@top_build_prefix@&$ac_top_build_prefix&;t t 29121s&@srcdir@&$ac_srcdir&;t t 29122s&@abs_srcdir@&$ac_abs_srcdir&;t t 29123s&@top_srcdir@&$ac_top_srcdir&;t t 29124s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 29125s&@builddir@&$ac_builddir&;t t 29126s&@abs_builddir@&$ac_abs_builddir&;t t 29127s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 29128s&@INSTALL@&$ac_INSTALL&;t t 29129$ac_datarootdir_hack 29130" 29131eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 29132if $ac_cs_awk_getline; then 29133 $AWK -f "$tmp/subs.awk" 29134else 29135 $AWK -f "$tmp/subs.awk" | $SHELL 29136fi >$tmp/out \ 29137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29138 29139test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 29140 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 29141 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 29142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 29143which seems to be undefined. Please make sure it is defined" >&5 29144$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 29145which seems to be undefined. Please make sure it is defined" >&2;} 29146 29147 rm -f "$tmp/stdin" 29148 case $ac_file in 29149 -) cat "$tmp/out" && rm -f "$tmp/out";; 29150 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 29151 esac \ 29152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29153 ;; 29154 :H) 29155 # 29156 # CONFIG_HEADER 29157 # 29158 if test x"$ac_file" != x-; then 29159 { 29160 $as_echo "/* $configure_input */" \ 29161 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 29162 } >"$tmp/config.h" \ 29163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29164 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 29165 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 29166$as_echo "$as_me: $ac_file is unchanged" >&6;} 29167 else 29168 rm -f "$ac_file" 29169 mv "$tmp/config.h" "$ac_file" \ 29170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29171 fi 29172 else 29173 $as_echo "/* $configure_input */" \ 29174 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 29175 || as_fn_error $? "could not create -" "$LINENO" 5 29176 fi 29177 ;; 29178 29179 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 29180$as_echo "$as_me: executing $ac_file commands" >&6;} 29181 ;; 29182 esac 29183 29184 29185 case $ac_file$ac_mode in 29186 "atf-config":C) cd unit/atf-src; ${SHELL} ./configure MISSING=: --prefix $atfdir; cd ../.. ;; 29187 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;; 29188 29189 esac 29190done # for ac_tag 29191 29192 29193as_fn_exit 0 29194_ACEOF 29195ac_clean_files=$ac_clean_files_save 29196 29197test $ac_write_fail = 0 || 29198 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 29199 29200 29201# configure is writing to config.log, and then calls config.status. 29202# config.status does its own redirection, appending to config.log. 29203# Unfortunately, on DOS this fails, as config.log is still kept open 29204# by configure, so config.status won't be able to write to it; its 29205# output is simply discarded. So we exec the FD to /dev/null, 29206# effectively closing config.log, so it can be properly (re)opened and 29207# appended to by config.status. When coming back to configure, we 29208# need to make the FD available again. 29209if test "$no_create" != yes; then 29210 ac_cs_success=: 29211 ac_config_status_args= 29212 test "$silent" = yes && 29213 ac_config_status_args="$ac_config_status_args --quiet" 29214 exec 5>/dev/null 29215 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 29216 exec 5>>config.log 29217 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 29218 # would make configure fail if this is the last instruction. 29219 $ac_cs_success || as_fn_exit 1 29220fi 29221if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 29222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 29223$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 29224fi 29225 29226 29227# 29228# Now that the Makefiles exist we can ensure that everything is rebuilt. 29229# 29230 29231# Check whether --with-make-clean was given. 29232if test "${with_make_clean+set}" = set; then : 29233 withval=$with_make_clean; make_clean="$withval" 29234else 29235 make_clean="yes" 29236fi 29237 29238case "$make_clean" in 29239yes) 29240 make clean 29241 ;; 29242esac 29243 29244if test "X$USE_OPENSSL" = "X"; then 29245cat << \EOF 29246BIND is being built without OpenSSL. This means it will not have DNSSEC support. 29247EOF 29248fi 29249 29250if test "X$OPENSSL_WARNING" != "X"; then 29251cat << \EOF 29252WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 29253WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 29254WARNING WARNING 29255WARNING Your OpenSSL crypto library may be vulnerable to WARNING 29256WARNING one or more of the the following known security WARNING 29257WARNING flaws: WARNING 29258WARNING WARNING 29259WARNING CAN-2002-0659, CAN-2006-4339, CVE-2006-2937 and WARNING 29260WARNING CVE-2006-2940. WARNING 29261WARNING WARNING 29262WARNING It is recommended that you upgrade to OpenSSL WARNING 29263WARNING version 0.9.8d/0.9.7l (or greater). WARNING 29264WARNING WARNING 29265WARNING You can disable this warning by specifying: WARNING 29266WARNING WARNING 29267WARNING --disable-openssl-version-check WARNING 29268WARNING WARNING 29269WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 29270WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 29271EOF 29272fi 29273 29274# Tell Emacs to edit this file in shell mode. 29275# Local Variables: 29276# mode: sh 29277# End: 29278